Forum Replies Created

  • Marten Verhoeven

    Member
    August 24, 2023 at 9:30 pm in reply to: Data grids – Wrapping text

    You can wrap text in the datagrid. I think you should increase the $autosizeheight property.

    Regards,

    Marten

  • Marten Verhoeven

    Member
    May 16, 2023 at 3:09 pm in reply to: Unix Timestamp in Omnis Studio

    Hi Marco,

    I use this to convert from and to a unix date:

    dadd(kSecond,pDateInteger,dat(‘1970-01-01′,’y-M-D’))

    ddiff(kSecond,dat(‘1970-01-01′,’y-M-D’),pDate)

    Hope this helps,

    Marten

  • Marten Verhoeven

    Member
    April 3, 2023 at 9:21 am in reply to: Removing items from a list with $sendall

    Hi Uwe,

    If you do this, you are changing the list lines in the sendall loop itself which will never work. If you use iList, then $remove can be executed (just pass 0 for the current line, you don’t need to add $ref.$line), but it will leave half the lines, just as it would if you would do this in a for-loop, because the line wich is removed will be replaced by the next line, but the loop will continue with the next line:

    Do iList.$sendall(iList.$remove(0),ktrue)

    It is better to use a $search to select lines and then use $remove(kListDeleteSelected).

    Regards,

    Marten

  • Marten Verhoeven

    Member
    October 2, 2018 at 10:05 am in reply to: Problem with date format

    I think you need to set $emptydateisnull of your DAM to true in order to return null from the database. Otherwise it will return the value of $defaultdate as far as I know.