Hi Hema, You can use fieldId2Ext function. For ex :
LedgerTable_ds.query().dataSourceTable(tablenum(LedgerTable)).addRange(fieldId2Ext(fieldnum(LedgerTable, Dimension),1)).value(QueryValue("DepartmentName")); Anil Ozay MBSCP, MCP Software Engineer Anadolu Group (www.bilisimanadolu.com) On 4/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > how do i give the selected dimension in queryrange. the following code > shows error > > > dim=this.query > ().dataSourceNo(1).addRange(fieldnum(eamworkrequest,dimension[1])); > > provide the solution. thank u. > > > regs, > Hema. S > > > > > Sharing the knowledge on Axapta. > Visit www.frappr.com/axapta for axapta friends. > > > ------------------------------ > YAHOO! GROUPS LINKS > > > - Visit your group > "Axapta-Knowledge-Village<http://groups.yahoo.com/group/Axapta-Knowledge-Village>" > on the web. > > - To unsubscribe from this group, send an email to: > [EMAIL PROTECTED]<[EMAIL PROTECTED]> > > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ------------------------------ > [Non-text portions of this message have been removed] Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/