How to pass variables to SuiteQL Suitelet
I am using a modified version of a suitelet originally created by Timothy Dietrich.
The Suitelet is supposed to load as part of a tab on a Netsuite record in a beforeLoad user event.
I want to pass parameters to the SuiteQL search criteria (the SQL part) from the page.
From the screenshot, line 124 works correctly to extract the record's internal id.
I am trying to pass the id to the function starting on line 148 though can't find the correct syntax online on how to do that.
I have found that 'hard coding' the value like line 153 works.