gulya2005
12th December 2005, 12:36
I need to change source of data on form on click button.Is it possible?
george7a
12th December 2005, 13:20
If you have the code yes, you can.
You should check what choice number does that button have. You can check that in Maintain Forms.
Then go to Maintain Scripts & change the code under the right labels.
choice.def.find:
on.choice:
|....
|....
choice.cont.process:
on.choice:
|...
|...
choice.user.0:
on.choice:
| change the code here
I hope it helps,
- George
gulya2005
12th December 2005, 13:35
I have a session with main table . I need to select data from main table on click button similarly works Instruments/Request on Form toolbar.Or similarly
that as works query.extend on before.program but it must to work on click button.I need not all data from main table but only on click button.
darpan
12th December 2005, 15:59
U just make a function and call that function on on.main.table(function name) at your on.choice button
it will solve your problem this is what i thought the answer shuld be
i have a doubt pl'z clarify the problem ?? Descriptive
Hope it works
Darpan
darpan13@rediffmail.com
gulya2005
13th December 2005, 08:16
For example, I have session tiitm0502m000 with main table tiitm001 and i need to select all records from table where is condition tiitm001.csel=5, but just on click button, and on click another button to restore all records on form. Like working Instruments/Request on form. I hope anybody help me.
mr_suleyman
13th December 2005, 10:04
Hi , you have display session tiitm0502m000 with main table tiitm001. In your display session you have two buttons. if you get records only that tiitm001.csel = 5 you should do in session script source :
user.choice.0: |*********** FOR BUTTON 1 *************
on.choice:
query.extension = ("tiitm001.csel=5")
rebuild.query()
execute(find.data)
user.choice.1: | ********* FOR BUTTON 2
on.choice:
query.extension = ("tiitm001.csel<>5")
rebuild.query()
execute(find.data)
I think that it is enough for your case
GOOD LUCK !!!
gulya2005
13th December 2005, 11:30
There is not function rebuild.query() in my help and i did not know that query.extension can be use not only in section before.program.