Newbie
2010-05-04 18:56:01 UTC
I have a method on a form which will validate the user input against the
table data. Normally I will validate by calling the Find method on the table
like CustTable::find(this.getvalue()).
The problem I am having is that I have a variable for table and a variable
for the field in the method. At each call to this method, the values of the
table and field variables can be different, i.e., one call it will be
InventTable, ItemId. Another call, it will be ProjTable, ProjId.
How do I query the table and validate the field input to see if it exists in
the table in X++ by using the variables? What is the syntax?
Thank you very much.
table data. Normally I will validate by calling the Find method on the table
like CustTable::find(this.getvalue()).
The problem I am having is that I have a variable for table and a variable
for the field in the method. At each call to this method, the values of the
table and field variables can be different, i.e., one call it will be
InventTable, ItemId. Another call, it will be ProjTable, ProjId.
How do I query the table and validate the field input to see if it exists in
the table in X++ by using the variables? What is the syntax?
Thank you very much.
--
Ax Newbie
Ax Newbie