_$OS 10.1 SmartList Column Movement

Dan Ridinger dlr at futurechalk.com
Mon Jan 4 19:54:44 UTC 2021

If this is a smarlist and you change the number of columns you probably need to turn the smartlist flag off and then back on again. Smartlists have that history component which can affect behaviour.  Just a thought.

Dan Ridinger
Managing Director

FutureChalk Software Inc.			
20521 92A Avenue						
Langley, BC  V1M 1B7
Phone No: 604.723.6837
EMail: dlr at futurechalk.com
www: www.futurechalk.com

> On Jan 4, 2021, at 4:37 AM, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> Happy New Year to all Omnis Funs!
> In the Omnis Hub sample library "list",I have modified the code to move a row content in a column down one line.I have inserted the method below in the $event of a btnObj named arrowDown:
> Calculate lvLineNoNext as iList.$line+1Calculate lvLineCount as iList.$linecountIf lvLineNoNext>lvLineCount   Calculate lvLineNoNext as 1End IfCalculate iList.[iList.$line] as iMovedList.[lvLineNoNext]Calculate iList.[lvLineNoNext] as iMovedList.[iList.$line]Calculate iList.$line as iList.[lvLineNoNext]
> Notice that I have added another list named MovedList to store the original list contents.
> This method executes successfully and moves the contents of a row down one level.
> But if I add another column to the SmartList and click the button arrowDown,Column_1 moves but Column_2 does not move at all.
> Any ideas on how I can move all the contents of a row down a smartlist with multiple columns?
> $Have a great 365 ahead of you all, and full of success, is my humble prayer for all funs$
> Kind regards,Martin Obongita.
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 

More information about the omnisdev-en mailing list