Normal Topic RunSortSepc (Read 539 times)
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
RunSortSepc
Dec 2nd, 2015 at 9:12am
Print Post Print Post  
Hello everybody,

i got a Form with a subform in it.

I would like to sort the subform entries.

I tried

Code
Select All
var vrun as int
var test2 as string

if(@Mode() = 1)
     {
           vRun = @LoadSortSpec("nach Nummer sortieren")
           if(vRun = 1)
           {
                 RunSortSpec()

           }
     } 



The sort spec gets loaded but it doesn't start.

Does anybody know what i can do to get this sort spec started?
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: RunSortSepc
Reply #1 - Dec 4th, 2015 at 2:00am
Print Post Print Post  
Here's the way I get it to work.

Code
Select All
var vSelect as Int

vSelect = @LoadSortSpec("Sort by Amount")

// Saves main record, which triggers the subform to re-sort
FormCommit("ParentFormNameHere")
 

  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Re: RunSortSepc
Reply #2 - Dec 4th, 2015 at 6:07am
Print Post Print Post  
Hello,

many thanks, it works perfectly  Smiley
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: RunSortSepc
Reply #3 - Dec 4th, 2015 at 2:18pm
Print Post Print Post  
The parent record sort spec can contain the entries for the child's elements. You may want to save and run from the parent's spec.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged