Forum Replies Created

Page 2 of 23
  • Andreas Pfeiffer

    Administrator
    January 31, 2026 at 11:51 am in reply to: Dynamic sorting of lists

    Hi Uwe,

    The $sort requires a reference to the list column, not just the name of the list column. Only if using a list that is defined from other variables it might work like this.

    Do the normal syntax would be something like this:

    Do myList.$sort($ref.myColumn,kFalse,$ref.anotherColumn,kFalse)

    or

    Do myList.$sort(myList.myColumn,kFalse,myList.anotherColumn,kFalse)

    I personally prefer $ref.

    This said you would be able to create your string including the “$ref.” part. But when executing you would need to make sure that the string is executed.

    Not tested though but I guess something of this might work:

    Do myList.$search([mySearchArgument])

    or maybe

    Do myList.$search(eval(mySearchArgument))

    Hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 26, 2026 at 8:06 am in reply to: How to get a Datagrid’s Displayorder?

    Hi Uwe,

    this works after the client has changed the display order. Switch on $::candragdisplayorder and then before using the test button, drag any of the columns so that you get a different display order. Then your test button will display the new display order.

    I think the $::displayorder was meant to either assign a different display order or to read it after it has been changed.

    The initial display order is determined by the order of the columns within the list that is assigned to the grid.

    I hope that makes sense.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 14, 2026 at 8:49 am in reply to: Makelist Class vars

    Hello Martin,

    I can see two issues here.

    1. When using a reference across libraries you would need to ensure that the class in the target library can be found from the service library. You can achieve this either setting the $external property of the class in question or – and I think this is what the service library might want to have – set the $ignoreexternal property of the service library to kTrue.

    2. You actually want to have the $cvardefs rather $cvars. That group contains the definition of the class variables.

    Hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 2, 2026 at 2:00 pm in reply to: Smartlist is outsmarting me

    Uwe,

    If the method is not called I would think that there is no record where the status is kRowInserted. Check $status of an inserted row.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 2, 2026 at 11:51 am in reply to: Smartlist is outsmarting me

    Hi Uwe,

    Happy New Year.

    You could override $doinsert (note – without the ‘s’) and see if you are able to track the error there. $doinserts calls $doinsert for every row where the $status is set to kRowInserted.

    Hope that helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 2, 2025 at 9:29 am in reply to: Tab Order Not Working on Windows Component Droplist in Omnis Studio 11

    Hi Ivan,

    Maybe check out Götz’ reply on this topic:

    https://www.omnis.net/community/forums/forum/discussion/tab-order-not-working-on-window-component-droplist/

  • Andreas Pfeiffer

    Administrator
    December 1, 2025 at 3:29 pm in reply to: Data Grid Filters

    Sam,

    I think you would need to filter the list on the server before you can print it in a report.

    All the component does is to filter it on the client I assume.

    What exactly do you mean when you say “print”? Just display or create a PDF report? In the latter case it would need to be filtered on the server. You can do this by making the list become a smart list, set $smartlist of the list to kTrue. Then you can filter the list using the $filter method of the list. Finally you can pass this list to the report class to create a PDF report out of it.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    December 1, 2025 at 8:43 am in reply to: Data Grid Filters

    Hi Sam,

    So you do not want to print it then?

    Or am I missing something here?

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    November 25, 2025 at 11:18 am in reply to: Data Grid Filters

    Hi Sam,

    You would need to create a report class that defines what is going to be printed. I recommend using an instance variable of type list inside the report. Assign this list as a $listname for the report. Then declare a parameter of type list in the $construct method of the report class and copy the data from the parameter to the instance variable.

    Finally in your remote form you can use the command “print report” with an argument of the list that you have in your remote form. This content will then be transferred into the parameter of the report class.

    I hope this helps.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    November 25, 2025 at 11:13 am in reply to: Windows IIs failure

    Hi Ron,

    make sure you follow the technical note: https://www.omnis.net/developers/resources/technotes/tnjs0003.jsp

    To me it looks like there are some missing resources in the html root.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 7, 2025 at 2:07 pm in reply to: Parsing OBrowser HTML content

    Hi Nathanaël,

    You could read the URL and use the HTTPParse, HTTPPage or any of those commands. Alternatively you can use the HTTP client worker object and fire up a get to the URL.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    August 4, 2025 at 8:28 am in reply to: SubForms

    Kevin,

    and yes – you would need a home button. Although the home is just a page that more or less does not have much content. It is more or less the landing page that is show after the user logged on.

    For example you could have a container (page pane) that has $edgefloat = kEFPosnToolbar and inside the container you have your menu and the home button. I pretty much have it this way. The home button is also when the user clicks on the logo svg icon that sits inside that container on the left side.

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    January 14, 2026 at 2:23 pm in reply to: Makelist Class vars

    Hi Martin,

    I am glad it helped!

    Have a nice day 🙂

    Best,

    Andreas

  • Andreas Pfeiffer

    Administrator
    October 21, 2025 at 11:55 am in reply to: stddevc usage

    Nice one!

  • Andreas Pfeiffer

    Administrator
    August 4, 2025 at 10:01 am in reply to: Issues with oBrowser in a Complex Grid

    Hi Rui,

    Excellent solution, Rui! Now your pictures are consistent and there is no hassle in synchronising two different elements. Great job!

    Have a nice day!

    Best regards,

    Andreas

Page 2 of 23