Thanks alot for ur help Harry........I got it.:)
--- In Axapta-Knowledge-Village@yahoogroups.com, Harry Deshpande <har...@...>
wrote:
>
> public boolean unpack(container packedClass)
> {
> Integer version = conpeek(packedClass,1);
> container packedQuery;
> container base;
>
> switch (version)
> {
> case #CurrentVersion:
> [version,base,packedQuery] = packedClass;
> super(base);
> if (packedQuery && conlen(packedQuery) == 1)
> {
> query = new QueryRun(packedQuery);
> }
> break;
> default:
> return false;
> }
> return true;
> }
>
> From: Axapta-Knowledge-Village@yahoogroups.com
> [mailto:axapta-knowledge-vill...@yahoogroups.com] On Behalf Of giridharraj
> Sent: Tuesday, February 09, 2010 11:13 PM
> To: Axapta-Knowledge-Village@yahoogroups.com
> Subject: [Axapta-Knowledge-Village] pack and unpack a query object
>
>
>
> Hi,
>
> I have seen a method query.pack() which returns a container. Is there any
> method which unpacks it i.e., converts back to a query object because i
> didn't find query.unpack().
>
> Simply I want a method which converts a query object to a container and that
> container to be converted into a query object.
>
> Can anybody help me in this.......
>
> Regards,
> giridhar Raj.
>