there are a lot of ways how you do it:
void clicked() //method on button
{
Query currentQuery;
QueryBuildRange queryBuildRange;
;
super();
currentQuery = CustPackingSlipTrans_ds.query();
queryBuildRange = currentQuery.dataSourceNo(1).range(1);
queryBuildRange.value(GroupFilter.text()); //Group filter is the name of
string edit object.
CustPackingSlipTrans_ds.executeQuery();
}
public void init() //and init method on the data source table:
{
QueryBuildRange queryBuildRange;
;
super();
queryBuildRange =
this.query().dataSourceNo(1).addRange(fieldnum(CustPackingSlipTrans,XXXXXX))
;
}
tomas
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] Behalf Of Hemant Kumthekar
Sent: Friday, July 01, 2005 6:40 AM
To: Axapta
Subject: [development-axapta] Filter on Form
Hi,
I want to display a form with all records and then want the user to key in a
value in the variable on the form and based on that I want to filter the
data on the form. I tried with the hardcoded value and it works , but then
when I key in another value, the form doesn't filter the records. Appreciate
your help / suggestions.
Field on the form is Packing Slip : XXXXXXXXX
and the datasource is CustPackingSlipTrans. I want to display all the
records pertaining to the specific packing slip number entered by the user
in the Filter field.
Thanks in Advance,
HK
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
Yahoo! Groups Links
__________ Informace od NOD32 1.1159 (20050630) __________
Tato zprava byla proverena antivirovym systemem NOD32.
http://www.nod32.cz
---- LSpots keywords ?> ---- HM ADS ?>
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

