Normal Topic Creating a sort. (Read 492 times)
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Creating a sort.
Aug 9th, 2007 at 10:57am
Print Post Print Post  
Ok i want to create a sort filter, I have a sub form that contains data in one of these fields are user names that are assigned to jobs, I want to be able to via a drop down box that is located in the main form to be able to do a sort that will only show the information that I need in the sub form

I.E. Drop down box in the main form contains my name, I click on the drop down box and then I look in the Sub form, all of the jobs assigned to my name is the only ones showing,

I will place what I have got I know it is a mess which I am sorry for.

var vSortList as String
var vSpec as Int
var vTree as Int

// List and Select Sort Options. Get and run saved spec


PopupSelectPosition(4, @XPos(ThisElement), @YPos(ThisElement))

// vSortList = @PopupMenu("Last Name;Birthday;City;Record Date;Salary", "What Do You Want to Sort By?")
vSpec = @LoadSortSpec(By QS0)

vTree = @SelectTreeItem("Plan Tracking log!Plan Tracking Log.!Search Update Menu!Results Commands!Sort")



// Plan Tracking!Forms!Search/Update!Plantrack!Plan Tracking log!Plan Tracking Log.


Please note due to other code, it has to be run in update mode.



Help please.

DrastixNZ


**** One day i want to grow up and be like you ****
  
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Creating a sort.
Reply #1 - Aug 9th, 2007 at 4:36pm
Print Post Print Post  
I think what you want to do is first, Save some Sort Specs.
Then show the list of Saved Sort Specs in your popup list.
Then use the @LoadSortSpec command to load the Saved Sort Spec as selected from the PopUp list.

If you only want to see some values, then you should make a new form that only shows those elements.

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Creating a sort.
Reply #2 - Aug 9th, 2007 at 8:03pm
Print Post Print Post  
Thanks for answering my question, I was thinking along the same lines.

If i can create the drop downs or popups, that will allow  me to recreate the subform that I have with the data I want that would be want i want.

The issue that i have is how do i do that.

Thanks in advance.
  
Back to top
IP Logged