Announcements
Sort( 'To Do Lists', Location, varSortOrder )
With( {_List: YourCurrentGalleryItemsHere}, ClearCollect( colToDo, ForAll( Sequence(CountRows(_List)), Patch( Index( _List, Value ), {RowNo: Value} ) ) ) )
Sort( colToDo, RowNo )
With( { _Present: ThisItem.RowNo, _New: ThisItem.RowNo - 1 }, Patch( colToDo, LookUp( colToDo, RowNo = _New ), {RowNo: 0} ); Patch( colToDo, LookUp( colToDo, RowNo = _Present ), {RowNo: _New} ); Patch( colToDo, LookUp( colToDo, RowNo = 0 ), {RowNo: _Present} ) )
With( { _Present: ThisItem.RowNo, _New: ThisItem.RowNo + 1 }, Patch( colToDo, LookUp( colToDo, RowNo = _New ), {RowNo: 0} ); Patch( colToDo, LookUp( colToDo, RowNo = _Present ), {RowNo: _New} ); Patch( colToDo, LookUp( colToDo, RowNo = 0 ), {RowNo: _Present} ) )
ThisItem.RowNo <> First(colToDo).RowNo
ThisItem.RowNo <> Last(colToDo).RowNo
Select(Parent); // // This patch will move the item one place up by subtracting 1.5 // Patch( 'Desert Island Discs', ThisItem, { Sequence: ThisItem.Sequence - 1.5 } ); Select(btnReIndex)
Select(Parent); // // This patch will move the item down 1 place by adding 1.5 // Patch( 'Desert Island Discs', ThisItem, { Sequence: ThisItem.Sequence + 1.5 } ); Select(btnReIndex)
ClearCollect( colTempSequence, Sort( 'Desert Island Discs', Sequence, SortOrder.Ascending ) ); // // Loop through all the values in the temp collection and assign whole numbers // in sequence starting with 1 // ForAll( Sequence(CountRows(colTempSequence)), Patch( colTempSequence, Index(Sort(colTempSequence, Sequence), Value), { Sequence: Value } ); ); Patch( 'Desert Island Discs', colTempSequence );
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290