http://www.newton-inc.com/dev/techinfo/qa/qa.htm
allSoups
frame, and then cause the application to refresh. The cursor that controls the sort order for the layout is built from the masterSoupSlot
slot. Both the default and the overview layouts have a masterSoupSlot
which points back to the relevant allSoups
slot in the app base view. newtAppBase.allSoups
& newtAppBase.allSoups.mySoup
are writeable. (Since the frames reside in the package, they are in protected memory.)newtAppBase.allSoups.mySoup:SetupCursor()
to create a new cursor using the new query spec.newtAppBase:RedoChildren()
to display the items in the new sort order. if IsReadOnly (newtAppBase.allSoups) then newtAppBase.allSoups := {_proto: newtAppBase.allSoups}; if IsReadOnly (newtAppBase.allSoups.mySoup) then newtAppBase.allSoups.mySoup :={ _proto: newtAppBase.allSoups.mySoup}; newtAppBase.allSoups.mySoup.soupQuery := {indexpath: newKey}; // new sort order! newtAppBase.allSoups.mySoup:SetupCursor(); newtAppBase:RedoChildren();