Hi Andre,

 

You must use CallEx() method if you want to pass more than 6 parameters.

 

You can find a sample in Axapta Help File.

 

Regards,

 

Anil Ozay
Software Engineer, AX Specialist
MVP Dynamics AX

 

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of ronniemjohns
Sent: Tuesday, December 05, 2006 5:21 PM
To: [email protected]
Subject: [development-axapta] Passing in a datasource

 

Hi all,

I'm trying to pass in a datasource from form A to display on form B.

I've overwritten the init method of form B with something to the 
effect of:

if (element.args().dataset() == tableNum(salesLine))
{
fromSalesLine = element.args().record();
fromSalesLine_ds = element.args().record().dataSource();
}

And it seems to work fine (I can print out fromSalesLine.itemId 
quite nicely).

But I can't seem to get it to display on form B (which is a grid).

I've tried overwriting the init form on the formdatasource for form 
B, but without much success. I've had the suggestion to just do it 
with tempTables, but I'm SURE there is a better solution since I 
already have the data I need being passed in.

Any help would be greatly appreciated.

 



[Non-text portions of this message have been removed]

Reply via email to