Hi guys, I've been stump on this for a while and cant figure it out. I want to create my own customized QBF.
Please have a look at the attached image, it shows an embedded browse with over 24000 records.
Currently, The form is opened 1st, which takes some time over the network, and I expect this to take longer as time goes by and more records is added, approximately 500 per day.
After the form is open, the user clicks on the "Query" button which opens the dialogue shown (this also takes some time.) on the Query dialogue the user enters the desired search criteria and then hit the search button. Then all queries are run:
1st Action) Show all records
2nd Action) Invoice_Nu = Var->QueryBy_InvNumber If Isnotblank(Var->QueryBy_InvNumber)
3rd Action) (time >= Var->QueryBy_STime ) .and. (time <= Var->QueryBy_ETime ) If Isnotblank(time >= Var->QueryBy_STime)
4th Action) Invoice_Header->Custom_Id = Var->QueryBy_Customer If Isnotblank(Var->QueryBy_Customer)
And so fort until the last option "Company". Each query is set to be combined with existing queries.
The problem with this method is, it takes way too long to open the form because it has to load all the records over the network, then I have to run 7 different queries, meaning I have to search the entire database 7 times if the user should fill in all 7 options, this takes way too long. I would love to open the Query dialogue 1st, then when the user fills in the desired fields and click search, all the options are combined and the database is searched only once, then the target form is opened, displaying only the records that satisfy the query. I cant figure out how to do this, and the built in QBF is too complex for the average user, I want to create my own.
Any pointers anyone?
Please have a look at the attached image, it shows an embedded browse with over 24000 records.
Currently, The form is opened 1st, which takes some time over the network, and I expect this to take longer as time goes by and more records is added, approximately 500 per day.
After the form is open, the user clicks on the "Query" button which opens the dialogue shown (this also takes some time.) on the Query dialogue the user enters the desired search criteria and then hit the search button. Then all queries are run:
1st Action) Show all records
2nd Action) Invoice_Nu = Var->QueryBy_InvNumber If Isnotblank(Var->QueryBy_InvNumber)
3rd Action) (time >= Var->QueryBy_STime ) .and. (time <= Var->QueryBy_ETime ) If Isnotblank(time >= Var->QueryBy_STime)
4th Action) Invoice_Header->Custom_Id = Var->QueryBy_Customer If Isnotblank(Var->QueryBy_Customer)
And so fort until the last option "Company". Each query is set to be combined with existing queries.
The problem with this method is, it takes way too long to open the form because it has to load all the records over the network, then I have to run 7 different queries, meaning I have to search the entire database 7 times if the user should fill in all 7 options, this takes way too long. I would love to open the Query dialogue 1st, then when the user fills in the desired fields and click search, all the options are combined and the database is searched only once, then the target form is opened, displaying only the records that satisfy the query. I cant figure out how to do this, and the built in QBF is too complex for the average user, I want to create my own.
Any pointers anyone?
Comment