Andreas Pfeiffer
Forum Replies Created
-
Hi Martin,
This is because the string table is assigned in the $stringtable property of the remote task that is being used.
Note when using Omnis Studio 11 you could also use the $label property of the entry field using this “$st.” notation. Here is the documentation about using string tables in remote forms: https://www.omnis.net/developers/resources/onlinedocs/WebDev/06localization.html#localizing-remote-forms
Normally the browsers language locale is used. However if the user wants he can change the language using the language menu in the logon remote form. It contains some code to change the language. It is a client executed method that reloads the browser with a different language.
Hope this helps.
Best,
Andreas
-
This reply was modified 2 years, 4 months ago by
Andreas Pfeiffer.
-
This reply was modified 2 years, 4 months ago by
Andreas Pfeiffer.
-
This reply was modified 2 years, 4 months ago by
-
Andreas Pfeiffer
AdministratorAugust 11, 2023 at 7:51 am in reply to: Explain the reason why cannot use the build toolHi Khanh,
Actually you cannot use Omnis without installing Omnis. If you have Linux or macOS you can also install the server version for either Windows, Linux or macOS.
Best,
Andreas
-
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
-
Hi Martin,
Actually there is no tooltip.
You might refer to the error handler though? When you press the “save” button it will call the $save method of the table class. The $save method of the table class then calls the $check method of that instance. In that case the $check method of the taPersons is overridden and therefore it checks which fields are mandatory. It also saves the error text and the field name that caused the error. Back in the form if the $save fails it will then load the error text and the field name and show the error directly on that field. So this follows the OO rules and puts the business rules ($check) into the table class instance. See also this tech note I wrote a while ago: https://www.omnis.net/developers/resources/technotes/tnjs0008.jsp
Is this what you are asking for?
Best,
Andreas
-
Hello Martin,
There is a property $inputtype which needs to be set to kJSInputtypeDate. Also there are $datepickermode, $datepickeroptions and $datepickerpopupstyle where you can control how this is going to look.
I hope this helps.
Best,
Andreas
-
Andreas Pfeiffer
AdministratorAugust 11, 2023 at 8:07 am in reply to: Explain the reason why cannot use the build toolYou are welcome.
Have a great day!
Best,
Andreas
-
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