Re: [Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-07 Thread giarc 127
@yahoogroups.com Sent: Friday, August 7, 2009 12:04:38 AM Subject: Re: [Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms ok. I guess u r writing the code in Datasource lookup. My code was for formcontrol lookup. That is y u are getting the error. check if the following code works

[Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-06 Thread Girac
Maybe I am not explaining correctly, I have a form that displays a grid of work orders. On grid there is filter for responsible person and department. Both of these are fields on my grid. I would also like to add a new filter called order id, which is also a field on grid, in same table as

Re: [Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-06 Thread Anitha S
ok. I guess u r writing the code in *Datasource* lookup. My code was for formcontrol lookup. That is y u are getting the error. check if the following code works for u. The range for this query is field1. Based on the value of field1, data in field2 will be filtered as lookup. public void

[Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-05 Thread Girac
I have tried your suggestion and no luck. It is acting as if the query is not getting executed. any other suggestions? regards, G --- In Axapta-Knowledge-Village@yahoogroups.com, Anitha S mail2eani...@... wrote: hi.. Try to pass a valid value in QueryValue and check if the commented code

[Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-05 Thread Girac
I am not sure where to put the method. Is this a override, would this go under the datasource, or under my filter from control and is there more code that need to be modified? Regards, G --- In Axapta-Knowledge-Village@yahoogroups.com, Girac girac...@... wrote: I have tried your

[Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-04 Thread Girac
Below is the code I'm using, the table does get queried and results are returned as expected. However, when one is selected the record is not returned. Do I need another method for that? I have looked at the SysTableLookup class on MSDN and Axaptapedia and all looks correct. What did I miss?

Re: [Axapta-Knowledge-Village] Re: Help with adding lookup filters on forms

2009-08-04 Thread Anitha S
hi.. Try to pass a valid value in QueryValue and check if the commented code is working. On Tue, Aug 4, 2009 at 8:03 PM, Girac girac...@yahoo.com wrote: Below is the code I'm using, the table does get queried and results are returned as expected. However, when one is selected the record is