NetSuite Application Developer

NetSuite Application Developer practice questions, page 3 of 3, with answer review and explanations.

Question 11

A user is creating a Suitelet and wants to display a select field, only listing customers with more than 100 employees. The user has created a saved search that returns the names of the customers meeting this criterion and executed it using Search.run(). How can the select field containing just the entries returned by the saved search be added?

  1. Use Field.setListValues() and pass the search result object as a parameter.
  2. Pass the search result set object as a parameter to Form.addField().
  3. Use Field.addSelectOption() and iterate through the search result set.
  4. Use Form.addField() and pass the saved search id as the ‘source’ parameter.

Question 12

The custom record type Feedback (id: customrecord_feedback) is set-up as a child of the Customer record using a List/Record Type field (id: custrecord_feedback_customer). In a client script on the Customer record, which API call will correctly set the current date to the sublist field called Feedback Date (id: custrecord_feedback_date) when entering a new Feedback entry?