We have a custom record, which uses a custom form. It has a Custom Action as a button. We want that custom button/action to take the data in the custom record, create a salesorder form, fill in the sales order with the data from the custom record (as appropriate), and display, but not yet save, the sales order form.
We have the button appearing, and when clicked the attached SuiteScript runs.
What next - how do I get a sales order form to show up and grab the data from this custom record?
Is there a way to open a sales order form and "tell" it the ID of the custom record, then use a UserEvent script to load that custom record and fill in the sales order fields as appropriate. Is that the way I should be going?
IF SO, how do I open up and sales order form from the button, and send along the ID of the custom record. ( I can get the ID of the custom record easily enough via nlapiGetRecordId() )
IF NOT, and there is a better method to go about this, could you point us in the right direction... what concepts in NetSuite do I need to look into in order to make this work?
Thank you. Sam W.