Andreas Pfeiffer
Forum Replies Created
-
Andreas Pfeiffer
AdministratorAugust 10, 2023 at 7:10 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
As said the deployment tool is meant to create a fat client application.
If you want to deploy an Omnis JS web application the documentation is here: https://www.omnis.net/developers/resources/onlinedocs/WebDev/07Deployment.html#chapter-7deploying-your-web-mobile-apps
There is also a tech note that guides you through the process step-by-step which is probably easier: https://www.omnis.net/developers/resources/technotes/tnjs0003.jsp
In that tech note you can then choose what platform and web server you want to use.
Hope that helps. Please let me know if you have any further questions.
Best,
Andreas
-
Hi Martin,
I do not think there is one.
When using the new notational way of coding there is no need to set the current list because all functions are used directly on the list, i.e.
Do myList.$search($ref.$city=’Paris’,kTrue,kFalse,kFalse,kFalse)
I hope this helps.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 9, 2023 at 7:07 am in reply to: Explain the reason why cannot use the build toolHello Khanh,
There is a chapter in the online documentation that explains the deployment tool. Note this is for fat client applications only.
https://omnis.net/developers/resources/onlinedocs/Programming/17Deployment.html#deployment-tool
Maybe this helps.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 8, 2023 at 6:32 pm in reply to: Hourly notifications in my web appAwesome. Let me know if you have any further questions.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 8, 2023 at 6:13 pm in reply to: Hourly notifications in my web appOn the other hand I wonder why you actually need a timer though.
What is the purpose of this function?
Do you want to refresh the data if there are new data in the database? If that is the case and if you use PostgreSQL you could use the PostgreSQL notification and then use the push to the client without using a timer. For example if you create a trigger within PostgreSQL that is executed you could then push Omnis through the session object and Omnis could then send a push to the client that new data have been arrived. This is a little bit more advanced but then code is only executed when new data are stored. In contrary to the timer which will also try to load new data even if there are none. Ok, this might probably depend on how often the data are inserted. If we are talking about lots of new data and you are just loading a total result set then the timer is probably the way to go.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 8, 2023 at 6:05 pm in reply to: Hourly notifications in my web appNo worries. Have fun.
Let me know if you have further question.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 8, 2023 at 5:50 pm in reply to: Hourly notifications in my web appYour code is a little bit confusing.
The “open push” is required on the client. It is for opening the push channel. You do not need to do this for every push.
However I wonder why you would need to push from the server if you are using a timer. So what would you do if the client connection is broken?
Wouldn’t it be easier using a client side timer and then simply call the method that loads the new data? See here: https://omnis.net/developers/resources/onlinedocs/WebDev/03jscomps.html#timer-control
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 8, 2023 at 5:13 pm in reply to: Hourly notifications in my web appHi Greg,
What kind of notification do you mean?
Omnis supports push notification which is documented here: https://omnis.net/developers/resources/onlinedocs/WebDev/02jsremoteforms.html#push-connections
But also notifications for the JS Wrapper. Please see here: https://filestore.omnis.net/temp/230808180805/PushNotifications.3.0.x.pdf
There is also notification in the session object of the PostgreSQL Omnis DAM: https://omnis.net/developers/resources/onlinedocs/Programming/09serv.html#notification-channels
Does this help?
Best,
Andreas
-
Andreas Pfeiffer
AdministratorJuly 31, 2023 at 7:46 am in reply to: Omnis Studio Community macOS no longer starts after "Force Quit"Hello David,
It could be that if you accidentally created some code, i.e. an infinity loop in a $construct that Omnis will just show a spinning wheel, i.e. and seems unresponsive.
However there are several techniques you can use to come around such a situation.
By default Omnis Studio 11 will open all libraries that have not been closed the last time when Omnis has been shut down. That said it will then also try to run the library that might have the tricky loop. You can change this in the config.json file that sits inside the Omnis /studio folder in the application support folder. See also: https://www.omnis.net/developers/resources/onlinedocs/Programming/02libsandclasses.html#starting-omnis-with-a-file
Another way to not run any code in the library is holding down the “option” key when opening the library.
There is also a keyboard shortcut “Cmnd+Opt+I” that would allow to interrupt code execution in an endless loop. See also https://www.omnis.net/developers/resources/onlinedocs/Programming/04debug.html#keyboard-shortcuts
I hope this helps.
Best,
Andreas
-
Hi Franco,
There is a property in the config.json file which you can change either in the file directly or using the new editor that opens when you click on “Edit configuration” in the lower left corner of the Omnis Studio browser.
It is in the IDE section and is called “restoreOpenLibsAtStartup”. Just set it to kFalse and you have the previous behaviour.
There is also a “openStartupTaskWhenRestoringOpenLibrary” which allows you to not instantiate the Startup_Task if the library is automatically opened.
Also see page 91 of the Whatsnew.pdf file: https://www.omnis.net/developers/resources/download/manuals/Whatsnew11.pdf
I hope this helps.
Best,
Andreas
- This reply was modified 11 months, 3 weeks ago by Andreas Pfeiffer.
-
Andreas Pfeiffer
AdministratorAugust 11, 2023 at 7:35 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
The properties do not seem to be right. Please refer to my previous post.
“data-webserverurl” does not seem to be set correctly.
“data-omnisserverandport” must be set to where your Omnis server is running.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 11, 2023 at 7:12 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
The screenshots are not readable for me.
Would you mind copying what you have inside your HTM form. I mean the Omnis relevant section only.
Thanks.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 10, 2023 at 11:28 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
You are not using the right reference within your HTM page.
Here is an example. Please note the data-webserverurl and the omnisserverandport:
<div id=”omnisobject1″ style=”position:absolute; top:0; left:0; width:100%; height:100%;” data-webserverurl=”https://yourwebsite.com/scripts/omnisapi.dll” data-omnisserverandport=”192.168.0.152:5861″ data-omnislibrary=”sherlock” data-omnisclass=”jsLogon” data-themename=”fall” data-appid=”sherlock.jsLogon” data-dss=”‘js320x480Portrait’,’js768x1024Portrait'” data-param1=”” data-param2=”” data-commstimeout=”0″>
</div>
The plugin must be installed correctly and you need specify the path that allows to access it.
I hope this helps.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 10, 2023 at 10:22 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
Sorry – Easgate wants me to login. I do not have an account there.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 10, 2023 at 8:30 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
it is hard to see. The pictures are very tiny and blurry. But it looks like you did not follow the steps adapting the htm file.
So for example you would need to change the data-webserverurl to something like
data-webserverurl=”/cgi-bin/omnisapi.dll
(omnisapi.dll may be changed for nph-omniscgi.exe if you have used the CGI plug-in)”
Also the other property data-omnisserverandport needs to be set accordingly.
Please see the technical note.
Does that help?
Best regards,
Andreas