This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
I have a segment and i'm dynamically loading data to its rowtemplate. I have enabled reordering . Once the reordering is done i have to save this order , How do i achieve this??
Once you done with the reordering, you are saving the modified data to segment and this will be available till the app is running. Once you close and relaunch the app you will get the original data only. Once the reordering is done you are not writing the data to end service. You need to record the order in your device memory and change it before you render the data on the segment.
Once the reordering is done , onclick of done button i have to save the order in an array or in any format, the screenshot is attached. Is there anyway i can get this rearranged segment data or can i get the order??
On done button click you need t read the data of the segment using form.seg.data or this.view. seg.data and stored in an array in the device storage. When you close and relaunch the app, check the flag the segment has reordering or not. If yes then assign the stored data to segment.