mr_suleyman
6th December 2006, 12:00
Hi All,
I have display session and use Query.extension in before.program part. When user run it , query.extension runs very well. Users can use Query tools on Baan session. Then user runs my query extension and their queries on display. After that user want to see first records on display.I mean only see query.extension results.To do it, user should remove its query from Queries Part on session or exit session and open session. My aim is to add button on display session with name [Reset Filtering]. This shows only query.extension results. How can I handle it ?


Thanks in advice

bigjack
6th December 2006, 18:56
Hi Suleyman,

Is rebuild.query available in BaaN 4. If yes it will solve your problem.
If no then perhaps you will have to do programatically do the same thing what your user does i.e. restart the session.
you can code according to following pseudo code which is executed on pressing a button,

1. Start another instance of same session, thro start.session with mode as modeless(i.e. parent(old instance) and child(new instance) are independent of each other)
2. end the parent session thro exit()

Ive not tested above method but it should work. I'll try it out tomorrow & let u know.

Cya !!!

NPRao
6th December 2006, 21:00
I don't have access to BaaN-4, but based on few other threads on the forum, it seems rebuild.query() is working in BaaN-4.

Yes, you can achieve that. Here is my sample code-

|******************************************************************************
function extern mismatch.records()
{
query.extension = "zmmig104.cnt1 <> zmmig104.cnt2"
rebuild.query()
}
|******************************************************************************
function extern showall.records()
{
query.extension = ""
rebuild.query()
}
|******************************************************************************

mr_suleyman
7th December 2006, 08:28
Thanks Bigjacck and Naproo but rebuild doesn't work for mycase. Beacuse
user use query option on session. In my code there is a only one query.extension.After user used query option on form , I want to get only my query.extension results. I know bigjack solution but I think that there may be more efficient way.

Thanks ...