[Axapta-Knowledge-Village] put enum value into qbds dynamically

2009-11-10 Thread giridharraj
Hi, I would like to get the enum value which is actually in a string into query build value dynamically.i.e.,for ex: str value; value = 'Delivered' fieldName = 'Salesstatus' These are the values that i get during the process.I came to know that to put enum values in querybuild value we need to

Re: [Axapta-Knowledge-Village] put enum value into qbds dynamically

2009-11-10 Thread Anitha S
Hi, Chk if this suits ur requirement. QueryBuildDataSource qbds; QueryBuildRange qbr; str fieldEnum ; qbds = this.query().datasourcetable(TABLENAME); qbr = qbds.addrange(fieldnum(TABLENAME,FIELDNAME) ;// Assume this field is ENUM fieldEnum =