Forum Replies Created

Page 8 of 21
  • Andreas Pfeiffer

    Administrator
    August 8, 2024 at 2:55 pm in reply to: Remove Tab From Within Tab Pane

    Kevin,

    Yes – I always assume that you are using the latest Omnis Studio version when you do not specify in your question.

    There are some new properties in Omnis Studio 11.1 that did not exist in 10.22. You could upgrade couldn’t you?

    Otherwise you could do it manually and drag the objects from the panes right to the one you want to remove onto a 2nd page pane temporarily page by page and moving them one page to the left.

    I would not just hide the page because if you know you do not want to have them anymore it would clutter your code by still having them.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 7, 2024 at 3:27 pm in reply to: Remove Tab From Within Tab Pane

    Do you want to hide the tab or remove it entirely?

    If you just want to hide the tab a quick way would be to add a $construct to the tab pane with the following code:

    Do $cfield.$showpane(2,kFalse) ## hides tab number 2

    If you want to remove a tab in-between you can use the movetab property in the property manager to move all panes to the left from the one that you want to remove, so that the one is the last pane. Then you can delete all objects on that pane and set the tabcount to tabcount-1.

    Make sure to remove the objects in that tab before you reduce the tabcount.

    Hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    July 21, 2024 at 2:05 pm in reply to: Conversations

    Martin,

    Yes. It works like any other forum.

    It helps people to find this forum when they use a search engine.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    July 21, 2024 at 2:03 pm in reply to: $cinst variables deletion

    Hi Martin,

    Do not prefix an instance variable with „$cinst“. Than it should be save to use the command to remove unused variables.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    July 15, 2024 at 12:38 pm in reply to: Renaming objects – missing prompt for search and replace

    Hi Uwe,

    I don’t think there was ever a prompt when you rename a method name. This is only when you rename a class name as far as I know.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    June 17, 2024 at 10:23 am in reply to: How to Improve Page Load Times in Omnis Studio Web Applications?

    Hi Smith loo,

    When using Omnis remote forms we already take care with the controls that only those data will be loaded that are shown on the page. For example the data grid control only shows the data that are visible plus a few lines when the user start scrolling and is dynamically loading the next data to be shown.

    Also when you use subforms to switch between different remote forms it will only load the subform part. You can also cache the subform.

    So it should not be slow at all using the Omnis Studio remote form technology.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    June 4, 2024 at 3:00 pm in reply to: Opening new links in a web application.

    Hi Allan,

    I suppose you are talking about an Omnis JS application?

    You have several options:

    1. Do $cinst.$showurl(‘http://someURL’) .. will open a new browser instance (or tab) and point to the given URL. This only makes sense if you want to refer to a URL outside of the current Omnis app.

    2. Do $cinst.$clientcommand(“subformdialogshow”,row(jsNextForm,300,600)). .. this will open a dialog window inside the current Omnis remote task instance and you can communicate between the main form and the subform by using $cinst.$container, i.e.

    Do $cinst.$container().$getID() .. will call the $getID from the main form

    3. You can use a main form that has a subform field. This can than be used to switch between several other remote forms assigning the $classname of the subform field.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    May 21, 2024 at 1:09 pm in reply to: SMTPWorker example.

    Hi Francesco,

    Check out the Samples section in the HUB. There you go to “Object orientation” group. You will find a sample library for the SMTP worker there.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    May 17, 2024 at 2:10 pm in reply to: Omnis in the Cloud

    Hi Martin,

    I do not understand. An Omnis remote form is per se in the cloud.

    Maybe I do not get it. How do you define a “cloud” in this respect?

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    May 17, 2024 at 1:13 pm in reply to: Query About the Omnis Developer Conference in Dusseldorf

    Hi Paul,

    Sorry – there was no video recording I am afraid.

    All the best to the other side of the earth! Regards to Caroline.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    April 25, 2024 at 2:56 pm in reply to: Get data in MS SQL from Omnis 11 multiple database

    Hi Serge,

    Only the Omnis application can write into the Omnis datafile. So you would need to write a little Omnis app that reads data from the MS SQL Server and writes it back to the Omnis datafile.

    Best,

    Andreas

    • Andreas Pfeiffer

      Administrator
      April 25, 2024 at 2:58 pm in reply to: Get data in MS SQL from Omnis 11 multiple database

      Serge,

      re-reading your post. You might be able to read from an Omnis datafile via ODBC. However tables inside the Omnis datafile must be accessible. So the Omnis developer would need to give access.

      Best,

      Andreas

  • Andreas Pfeiffer

    Administrator
    July 24, 2024 at 8:04 am in reply to: $cinst variables deletion

    Martin,

    Yes – when your code is inside the table class you can refer to that same instance using $cinst. For example: $cinst.name refers to the name column of your row or list variable if your code is inside that table class.

    But when you want to refer to the instance variable outside of that table class, i.e. from within the form, I would recommend not to prefix the instance variable. For example:

    $cinst.iDataRow.name ## would certainly refer to the name column within iDataRow but you lose the tokenisation of that variable. It is better to omit $cinst for this matter.

    The same is true for task variables. Some people prefix a task variable with $ctask which is also not a good idea for the same reason.

    Hope this explanation helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    May 21, 2024 at 1:15 pm in reply to: SMTPWorker example.

    Wonderful!

    Have a great day Francesco!

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    May 18, 2024 at 8:29 am in reply to: Omnis in the Cloud

    Martin,

    Ok. Let me define the cloud then: It is a server that is somehow hosted from a bigger or smaller brand. If you want to host the Omnis application on that cloud you would need to find a cloud server that allows you to install an Omnis server runtime and the database you want to use.

    Does that make sense?

    Best,

    Andreas

Page 8 of 21