Wednesday, 15 May 2013

Netsuite - Get the current form ID from a script -



Netsuite - Get the current form ID from a script -

i have couple of customized sales order forms, , able determine, within script, form user using.

for example, let's have form called "regular sales order" (internal id 100) , form called "special sales order" (internal id 101). they're identical, little differences. special order form zero-charge orders, such pocs or test licenses. other orders utilize regular form.

our sales orders have "custom price" option, prices can overridden. want add together validation ensure no line item in sales order has 0.00 charge, if form in utilize regular sales order form. conversely, if special form in use, line items should have 0.00 charge.

how can observe current form id script, can tell whether user using regular or special form? in advance.

try customform field

nlapigetfieldvalue('customform'); obj.getfieldvalue('customform');

netsuite

No comments:

Post a Comment