Forum Replies Created

Page 13 of 23
  • Andreas Pfeiffer

    Administrator
    January 7, 2024 at 3:13 pm in reply to: Accessing Sub-Menu Hierarchy

    Hi Kevin,

    you may be interested in the following technical note: https://www.omnis.net/developers/resources/technotes/tngi0001.jsp

    Depending on what you are trying to achieve it might be probably better to put the responsibility on how the menu is going to act right into the menu itself rather trying to control it from the outside. Please see the following technical note that describes this: https://www.omnis.net/developers/resources/technotes/tngi0022.jsp

    Hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 2, 2024 at 11:06 am in reply to: Positioning Studio/IDE windows by code

    Uwe,

    For the Omnis Studio IDE Browser I found a solution that you might want to use:

    Create an instance variable i.e. “iBrowserRef” in the Startup_Task of your library. Then make a method that allows to set the $top, $left, $width and $height property. If you make it a public method you could reach this method from anywhere else in the task context. For example you could create a window class that allows to call this method, i.e. Do $ctask.$setBrowserProps(10,10,600,400)

    Now in the first line of the $construct of your remote task type the following to set the reference:

    Set reference iBrowserRef to $topwind

    The reference should now hold the reference to the browser. However there are a few caveats. If you close and re-open the browser, the reference will be invalid. If you open multiple instances of your browser the reference will only go to the one browser instance that was open, when the library has been opened.

    Also this is not a solution for the Property Manager, as this one is a C++ window and not an Omnis window.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 2, 2024 at 8:09 am in reply to: Positioning Studio/IDE windows by code

    Hi Uwe,

    How about making a copy of your Omnis installation? You could then simply have one version with and another without the external monitor.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 21, 2023 at 2:07 pm in reply to: $makelist WITH column names / maxc() WITHOUT column names

    I see.

    $maximum is a property of a list column. So you could try something like this:

    listVar.$cols.myCol.$maximum()

  • Andreas Pfeiffer

    Administrator
    December 21, 2023 at 10:09 am in reply to: $makelist WITH column names / maxc() WITHOUT column names

    .. alternatively you could use $redefine() to redefine the list. However personally I prefer $cols.$add because this does not require any additional variables for the definition.

  • Andreas Pfeiffer

    Administrator
    December 21, 2023 at 9:47 am in reply to: $makelist WITH column names / maxc() WITHOUT column names

    Hi Uwe,

    You could use $appendlist rather $makelist. This does not destroy the definition.

    Do myList.$cols.$add(‘name’,kCharacter,kSimpleChar,255)

    Do myList.$cols.$add(‘description’,kCharacter,kSimpleChar,255)

    Do $classes.$appendlist(iMyClassList,$ref.$name,$ref.$desc)

    Note that the first parameter of $appendlist is the list where you want to put the result. If the list is not empty it will not delete its content but rather add the content at the end of the list.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 19, 2023 at 9:04 am in reply to: Defining row variables: variable pane vs $definefromsqlclass

    Hi Uwe,

    When you run into that problem the debugger should stop and you ought to be able to see if the method exists in the Interface Manager. Is it possible that you used something like “Calculate lRow as lAnotherRow”. This also copies the definition of the other row variable.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 19, 2023 at 8:51 am in reply to: ‘vertical’ Scope of local variables and parameters

    Hi Uwe,

    When you have an overridden method you can have the same parameter and the same value will be passed to the inherited method as well as its superclass method.

    If you want a different value you could use $cinst.$inherited.$myMethod() and pass a different value there. However I would be careful if you really want this.

    For example if you change the ID to be loaded in the inherited class your superclass will load a different record. Is this what you really want? If the behaviour is different I would rather suggest using another method and then call the other method from within there.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 8, 2024 at 8:10 am in reply to: Positioning Studio/IDE windows by code

    Uwe,

    Nice one!

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 8, 2024 at 8:08 am in reply to: Accessing Sub-Menu Hierarchy

    Hi Kevin,

    I just did a little try and was able to change a property ($enabled) of the submenu instances first line. Please see attached screenshot.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 2, 2024 at 2:36 pm in reply to: Positioning Studio/IDE windows by code

    Hi Uwe,

    Happy New Year to you as well!

    Yes – you can just hold a copy of the omnis.cfg file that contains the positioning of the IDE windows as well as the serialisation.

    If you create an update.sh file you could have some code that copies the required file when Omnis launches. See also: https://www.omnis.net/developers/resources/onlinedocs/Programming/01omnistools.html#auto-updates

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 21, 2023 at 1:11 pm in reply to: $makelist WITH column names / maxc() WITHOUT column names

    What are you trying to achieve?

  • Andreas Pfeiffer

    Administrator
    December 20, 2023 at 10:09 am in reply to: Defining row variables: variable pane vs $definefromsqlclass

    Uwe,

    Most certainly!

    😂

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 20, 2023 at 9:06 am in reply to: Defining row variables: variable pane vs $definefromsqlclass

    Hi Uwe,

    Sorry. The picture does not show the error and the Interface Manager. So I do not know what to see there.

    However we found an issue that was similar in our fault database (ST/DB/1450) which is fixed for build 35439. So it should be fine in the latest Omnis Studio 11 Version.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 18, 2023 at 8:16 am in reply to: Calculate Row as List

    Hi Doug,

    Excellent point!

    But I think if you want to call a method inside the list (which is great since it is encapsulated then) you would need to put that method into a table class where the list is derived from. Either the concrete class or it’s super class.

    Best,

    Andreas

Page 13 of 23