var stockOUT = arguments[0]
var inventID = arguments[1]
var ajustID = arguments[2]
controller.newRecord()
inventory_commited = stockOUT
inventoryid = inventID
inventory_ajustmentsid = ajustID
controller.saveData()
I seem to be able to populate var stockout, and var inventID no problems, but the ajustID does not work. Is it possible to pass arguments through a relationship??
Hi,
I just found the sample code, and updated my code to
//Returns true if the (related)foundset exists and has records
if (databaseManager.hasRecords(inventory_to_inventory_ajustments))
{
forms.planning_line_items.sellInventory(ajustment_calc,productsid,inventory_to_inventory_ajustments.inventory_ajustmentsid);
}
checked it with the debugger, and the method stopped, So can I assume from that there is record to be found, or is my code incorrect??,
Many Thanks