The sort picker field should have global storage, and you also need script triggers for a sort script to make sure the records are always sorted.
VBMS-modern_Edit.fmp12.zip 83.2 K
Works flawless now David. Thank you for your help.
Could you please guide me to where you made the changes exactly. So I can learn a thing or two from this
1 of 1 people found this helpful
I didn't take notes while doing this the way I would when doing production work, but from memory:
1. Change field definition Klenten::SelectieSorteren to use global storage.
2. Add script KlantenSortieren.
3. Add a script trigger OnLayoutEnter for KlantenSortieren on the layout Klanten (overzicht).
4. Add a script trigger OnObjectModify for KlantenSortieren on the SeletieSorteren field on the layout Klanten (overzicht).
If you apply those changes in your field from scratch and it's not working, I will have forgotten something...
Thank you man, I really appreciate you taking the time to teach me something .
Have a nice day.