Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Insert values using Macros

$
0
0

Hi people,

What I am trying to do in making an insert using values from a method in my class, but I have some problems with the parameters. The macro that I have done is something like this.

#LOCALMACRO.InsertGroupValues

%1.clear();

%1.ItemId = %2;

%1.insert()

#ENDMACRO

public void InsertMethod()

{

Table1  table1;

#InsertGroupValues(table1, "00001")

}

And, in the class method I send the table I want to insert in. The problem is, when I declare the macro, it shows me a syntax error, that means it is not possible to send the table as a parm and insert values in, or I have an error that I haven't seen.

Thank you.


Viewing all articles
Browse latest Browse all 72043

Trending Articles