$loadcols $colcount

Martin Obongita martin.obongita at yahoo.com
Wed Apr 20 20:22:21 UTC 2022


 Hi Das,
Thank you for the code.I have tried it but still, it does not move the row.The reason I use $sendall is because I could want to move or hide a column of name "primary key", which might not be necessarily on the first line in the list.
Rgds, Martin.

    On Wednesday, April 20, 2022, 11:03:28 PM GMT+3, Das Goravani <goravanis at gmail.com> wrote:  
 
 
It’s not wise to use a SendAll when you want to move a value from the first line to the last line in a list.
You can accomplish that with a single line of code, too.

Do myList.[myList.$linecount].myColumn.$assign(myList.1.myColumn)

I’m not positive that line of code works, but I think it does. 

> On Apr 20, 2022, at 3:55 PM, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi Kelly,
> I am trying to move the column named 'id' from the first line in a list to the last using:Do lColsList.$sendall($ref.$line.$assign(lColsList.$linecount),($sendallref.lColsName='id'))This code does not react when executed.What have I missed out?
> Rgds, Martin.
> 
> 
>    On Wednesday, April 20, 2022, 12:56:14 AM GMT+3, Kelly Burgess <kellyb at montana.com> wrote:  
> 
> Hi Martin,
> 
>> the grid only displays columns defined as kCharacter
> 
> You're into JS forms now, out of my area - I don't have experience with datagrids on remote forms, so someone else will have to comment.
> 
> Kelly
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
  


More information about the omnisdev-en mailing list