Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Merging list losing smart properties

  • Merging list losing smart properties

    Posted by Obonye on December 27, 2024 at 2:52 pm

    Hi, I have this small library that merges two lists and then saves the changes with the command $dowork. To do this I click on the save button to assign the list property to a smartlist then merge the 2 lists then run iDataList.$dowork. The merge is successful but the smartlist property is set to kFalse and the kRowInsert status is also false. Therefore the $dowork fails. Any help please? ~ Martin.

    Obonye replied 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • Andreas Pfeiffer

    Administrator
    December 30, 2024 at 9:33 am

    Martin,

    I think it is because you are joining the list. That might destroy the $smartlist. I wonder why you are not simply using the import list instead?

    Alternatively you could use a $sendall instead:

    Do iDataList.$clear()

    Do iDataList.$smartlist.$assign(kTrue)

    Do iImportList.$sendall(iDataList.$add().$assignrow($sendallref))

    Do iDataList.$dowork()

    But – it is confusing for me that you are actually calling this method from the popup form – but you are not passing the list as a parameter from the popup form into the method that suppose to store this. Why not saving the data directly within the popup form instead calling a method in the main form?

    Best,

    Andreas

Log in to reply.