Forum Replies Created

Page 16 of 20
  • Andreas Pfeiffer

    Administrator
    August 15, 2023 at 2:59 pm in reply to: Contacts Web Application

    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

  • Andreas Pfeiffer

    Administrator
    August 11, 2023 at 7:51 am in reply to: Explain the reason why cannot use the build tool

    Hi 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

    Administrator
    August 16, 2023 at 10:14 am in reply to: Contacts Web Application

    Hi Martin,

    I suppose no data are in the complex grid. Hence the buttons will not show up.

    If you want to present data you can do the following:

    Add a folder in the Omnis App Support inside the /omnispdf folder and call it “Madagascar”. Then place PDF files there. Those are the one that will be displayed for every of the contacts. Possibly you would need to load the data differently because it would not make sense to present the same files for all contacts.

    To change this: go to the $load method of taFileList. This table class is used in that specific subclass. Then you could probably add some SQL that loads the file list and the pathnames from SQL if you have the information there. But note that only the /omnispdf folder is allowed for downloading. If you need a different folder then you would need to give permission via getpdfFolders in the server section of the config.json file.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 16, 2023 at 9:15 am in reply to: Contacts Web Application
  • Andreas Pfeiffer

    Administrator
    August 16, 2023 at 9:12 am in reply to: Contacts Web Application

    The application support is not in the Program Files folder.

    On Windows go to: c:\user\yourUserName\AppData\Local\Omnis Software\OS 11 35439 x64\studio

  • Andreas Pfeiffer

    Administrator
    August 16, 2023 at 7:38 am in reply to: Contacts Web Application

    Hi Martin,

    Sorry, I have overseen your question regarding config.json and servermgmt.lbs.

    In Omnis Studio 11 you will find the library in the Omnis package (on macOS) /Applications/Omnis\ Studio\ 11\ 35439.app/Contents/MacOS/webserver/servermgmt.lbs

    On Windows it is here: C:\Program Files\Omnis Software\OS 11 35439 x64\webserver

    I will add a documentation fault as it was different in Omnis Studio 10.22

    The config.json file is located in the /studio folder within your app support. Alternatively you can use the little button on the left bottom in your Omnis Studio Browser and pick “edit configuration”. That will allow you to change the content of your config.json file from within Omnis. Here is the reference: https://www.omnis.net/developers/resources/onlinedocs/WebDev/07Deployment.html#server-configuration

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 15, 2023 at 4:32 pm in reply to: Contacts Web Application

    You are welcome.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 15, 2023 at 10:21 am in reply to: Contacts Web Application

    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

  • Andreas Pfeiffer

    Administrator
    August 15, 2023 at 10:12 am in reply to: Contacts Web Application

    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

    Administrator
    August 11, 2023 at 8:07 am in reply to: Explain the reason why cannot use the build tool

    You are welcome.

    Have a great day!

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 11, 2023 at 7:35 am in reply to: Explain the reason why cannot use the build tool

    Hi 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

    Administrator
    August 11, 2023 at 7:12 am in reply to: Explain the reason why cannot use the build tool

    Hi 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

    Administrator
    August 10, 2023 at 11:28 am in reply to: Explain the reason why cannot use the build tool

    Hi 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

    Administrator
    August 10, 2023 at 10:22 am in reply to: Explain the reason why cannot use the build tool

    Hi Khanh,

    Sorry – Easgate wants me to login. I do not have an account there.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 10, 2023 at 8:30 am in reply to: Explain the reason why cannot use the build tool

    Hi 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

Page 16 of 20