
Diego Mendoza Muñoz
Forum Replies Created
-
Diego Mendoza Muñoz
MemberFebruary 27, 2025 at 10:16 pm in reply to: Reserved property name conflictlook at this in this library I built a window with complex functions that use full notation.could be something interesting
https://www.omnis.net/community/forums/forum/discussion/contribution-to-the-community-comment/
-
This reply was modified 5 months ago by
Diego Mendoza Muñoz.
omnis.net
Contribution to the community Comment - Omnis Forum
Hola Omnidevs, ojala sea el inicio de una bonita accion de liberar codigo abierto entre la comunidad, les dejo una libreria con algunos objetos y…
-
This reply was modified 5 months ago by
-
Diego Mendoza Muñoz
MemberFebruary 19, 2025 at 11:31 pm in reply to: Reserved property name conflictIt may not be answering your question, but this contribution may help you.
Omnis has an interesting way of working with reserved names try this.
Create a function on the window or some object and add the $customProp method and then add $customProp.$assign
Then you can access the calculate function by directly calling the function. I will send you photos so you can understand better.
The notation in fat client is super powerful but there are not enough examples to fully understand it, each one has to discover.
-
Diego Mendoza Muñoz
MemberJanuary 27, 2025 at 4:27 am in reply to: Speed issues between Omnis and PostgresThe best way to avoid latency in a web application is to make rest calls, create a restful remote task, if you can create a service api or else create a post /restenpoint/exectsql/{apikey} method and send a post the sql query , it works but you have to be careful with security.
This way all calls are executed locally and will reach your webapp as soon as they finish executing..
In my case I use pure javascript xhr and I respond to the form and it works well, I make several calls and while the server sends the data I capture and validate them-
Diego Mendoza Muñoz
MemberJanuary 28, 2025 at 3:08 am in reply to: Speed issues between Omnis and Postgresa simple example of the implementation.
😀$sendall($ref.itWorks!!.$assign(ktrue),$ref.hasInteres=ktrue)
Calculate formInst as $cinst
JavaScript:var request = new XMLHttpRequest()
JavaScript:request.open("GET", url, true)
JavaScript: request.timeout = timeOut;
JavaScript:request.onload = function() {
JavaScript:console.log("queue status response REST "+this.status)
JavaScript: if (this.status=="200"){
JavaScript: formInst.callMethod("myPublicOrPrivateMethod",this.response);
JavaScript: } else {
JavaScript: formInst.callMethod("myPublicOrPrivateMethod",this.response);
JavaScript: }
JavaScript:}
JavaScript:request.send(postData)-
This reply was modified 6 months ago by
Diego Mendoza Muñoz.
-
This reply was modified 6 months ago by
-
-
Diego Mendoza Muñoz
MemberJanuary 14, 2025 at 12:41 am in reply to: Electronic Invoices – State of the Union?<font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”>In my country the e invoice are in xml my solution into a text block 😀 the xml object is very complex to use
</font></font>
-
My solution was to create a sessionState table.
When connecting I have a service rest /getsessionid?user={user} returns a uuid and on each change I send a saveSession/user/key?value={value}.
when starting command /getState/{key}
first command “isLoged”, the service returns me (for isLoged){key=”isLoged”,keyResult=”true”,extraData=”{lastView=”sf_ViewSales”,lastParams=”2025-01-11″}” }
where sf_ViewSales is a remote form.
and when receiving I ask the main Form to show the page, taking into account that my application is a SPA and just to call setContentView the the app open a form
-
Diego Mendoza Muñoz
MemberOctober 8, 2024 at 4:33 am in reply to: jsProgressBar Control – not really controlling progress…$sendcarryon.$assign(kTrue) is a async method the loop have to be inside the event
aa.png is the “next” method
captura is the progress $event method
-
This reply was modified 9 months, 4 weeks ago by
Diego Mendoza Muñoz.
-
This reply was modified 9 months, 4 weeks ago by
-
first assign a variable to dataname in the File Control object (visual object), then you have to take the event (evFileUploaded or evDownloadSent), the file is load in the variable
-
Diego Mendoza Muñoz
MemberOctober 8, 2024 at 3:49 am in reply to: Passing a parameter to a subwindowyou have to passing parameter before assign classname
-
Diego Mendoza Muñoz
MemberAugust 6, 2024 at 11:49 pm in reply to: IOS Dev : is it possible to Include AR KitIn android is very simple you can create yor own class in android studio and make the integrations with AndroidApp and Omnis Wrapper.
In IOS idk, i live in south america and all the retail commerce work with android.
if you have any question about how integrate a kotlin class to OmnisWrapper text me. 🙂 -
eres un bot? o hablas en otro idioma?
-
Diego Mendoza Muñoz
MemberJuly 7, 2024 at 10:29 pm in reply to: Contribution to the community CommentOf course, the idea is to be able to share the “hacks” that we find through experience. If you can see the library, the “CalendarBoard” window has the encapsulated methods to be able to interact with it in a general way. Another thing to note is that the events in the subwindow are communicated to the parent window.
And that the window is empty and is built using the methods it contains.
I will also share the oDiagramV2 object that is interesting for presenting diagrams.
here I leave your example
-
Diego Mendoza Muñoz
MemberJuly 3, 2024 at 7:08 pm in reply to: Contribution to the community Comment*Find and open testMe window
*when you make a change to a property in the right panel. click on the installConfig button if you don’t have it, create it and call the installConfig method
*Dragmode on let you select varios items in the grid, if horizontal value is “yes” you can drag horizontal.
*Gantt windows its the same subwindows but it has a different implementation.
leave me an opinion.
Im from america latina and my english is poor.
-
Diego Mendoza Muñoz
MemberJuly 3, 2024 at 6:53 pm in reply to: Contribution to the community CommentNo sorry i dont have english version, but if you have any question i try to reply earlier
-
Diego Mendoza Muñoz
MemberJanuary 27, 2025 at 4:35 am in reply to: Speed issues between Omnis and PostgresWhat would be the difference between using cte and subqueries?
In your example it has the same result.
SELECT
(SELECT count(1) as count1 FROM table1)
,(SELECT count(1) as count2 FROM table2)