Saving Data from Additional Columns

When you add columns to a standard Data Table element, you can save their data to a NetSuite record. In standard mobile processes, a row or column click action on the table captures and stores the data in the state.

On the last entry page, a button click action saves the stored data to a NetSuite record. You can set up RESTlets that perform the same actions for the data retrieved from your additional columns. Your setup procedure depends on whether you have added the columns to a standard process through configuration or to a custom process through customization.

Before you start your configuration or customization, note the following:

See the following set up procedures for each process type:

Saving Data Through Mobile Configuration

For standard mobile process configuration, follow the procedure in this topic to save data from your additional columns to a NetSuite record. For more information about new columns for tables in standard processes, see Adding Columns Through Mobile Configuration.

If you want to follow the standard mobile process setup, you can configure the action for the table elements first. You can set up RESTlet actions for either or both the row click and column click actions. Then, you can set up the RESTlet action for the button element. For guidelines before you start your setup, see Saving Data from Additional Columns.

To save data through mobile configuration:

  1. Access the Mobile Configuration page for the standard mobile process you want to configure.

    To access this page, see Configuring Mobile Page Elements.

  2. If you want to set up the action for the Data Table element, on the Mobile Configuration page, select values in the following fields:

    1. In the Page field, select the page that contains the Data Table Element.

    2. On the Page Element subtab, in the Mobile Page Element field, select the Data Table element that contains your additional column.

  3. If you want to set up the row click action, in the After Row Click Action RESTlet, select an existing RESTlet action.

    Alternatively, click the plus icon to create a new RESTlet action. For instructions, see step 6.

    You can set up a RESTlet that captures data from the additional column and stores it in the state.

  4. If you want to set up the column click action, click the Table Columns subtab, and then select values in the following fields:

    1. Column – Select the additional column that you want to configure.

    2. After Column Click Action RESTlet – Select or create the RESTlet action that is triggered after the on click action. If you want to create a new RESTlet action, see step 6.

      You can set up a RESTlet that captures data from the additional column and stores it in the state.

  5. If you want to set up the Action Button element on the last entry page of the process, do the following:

    1. In the Page field, select the page that contains the Action Button element.

    2. On the Page Element subtab, in the Mobile Page Element field, select the Action Button element that you want to configure.

    3. In the After On Click Action RESTlet field, select or create the RESTlet action that is triggered after the button click action. If you want to create a new mobile action, see step 6.

      You can set up a RESTlet that submits the data captured from your additional column to a NetSuite record.

  6. To set up a new RESTlet action for your row, column, or button click action, do the following:

    1. On the Mobile - Action page, enter values in the following fields:

      • Name – Enter a unique name for the mobile action.

      • Type – Select RESTlet.

      • HTTP Method – Select POST.

      • Script ID – Enter the ID of the RESTlet script.

      • Deployment ID – Enter the ID of the script deployment.

      Make sure you select the RESTlet script and deployment IDs for the appropriate action. You can repeat this step to set up another action.

    2. Click Save.

  7. Click Save.

Saving Data Through Mobile Customization

For custom mobile process customization, follow the procedure in this topic to save data from your additional columns to a NetSuite record. For more information about new table columns for custom processes, see Adding Columns Through Mobile Customization.

If you want to follow the standard mobile process setup, you can customize the action for the table elements first. You can set up RESTlet actions for either or both the row click and column click actions. Then, you can set up the RESTlet action for the button element. For guidelines before you start your setup, see Saving Data from Additional Columns.

To save data through mobile customization:

  1. Access the Mobile - Process page for the custom mobile process you want to customize.

    To access this page, see Customizing Mobile Page Elements.

  2. On the Mobile - Process page, on the Pages subtab, access the page that contains the Data Table or Action Button element you want to customize.

  3. On the Mobile - Page page, on the Page Elements subtab, access the Data Table or Action Button element.

  4. If you want to set up the row click action for the Data Table element, on the Mobile - Page Element page, do the following:

    1. Click the link in the On Row Click Action field.

    2. On the Mobile - Action page, in the After Action RESTlet field, select or create the RESTlet action that is triggered after the row click. If you want to create a new mobile action, see step 6.

    3. Click Save.

  5. If you want to set up the column click action for the Data Table element, on the Mobile - Page Element page, do the following:

    1. On the Table Columns subtab, click the new column to which you want to set up the RESTlet action.

      Tip:

      New columns that you add to a table element have the Yes value in the Is Custom Column column.

    2. On the Mobile - Table Column page, click the link in the On Click Action field.

    3. On the Mobile - Action page, in the After Action RESTlet field, select or create the RESTlet action that is triggered after the row click. If you want to create a new mobile action, see step 6.

    4. Click Save.

  6. To set up a new RESTlet action for your row, column, or button click action, do the following:

    1. On the Mobile - Action page, enter values in the following fields:

      • Name – Enter a unique name for the mobile action.

      • Type – Select RESTlet.

      • HTTP Method – Select POST.

      • Script ID – Enter the ID of the RESTlet script.

      • Deployment ID – Enter the ID of the script deployment.

      Make sure you select the RESTlet script and deployment IDs for the appropriate action. You can repeat this step to set up another action.

    2. Click Save.

  7. Click Save.

  8. After you complete your mobile process customizations, make sure you update the app. See Compiling Mobile Customizations.

After your mobile configuration or customization, you can display the additional columns on the mobile page. For instructions, see SCM Mobile Page Elements (Buttons, Fields, Tables).

Related Topics

SCM Mobile Setup
SCM Mobile App Customization
Customizing Mobile Processes
Customizing Mobile Pages
Customizing Mobile Table Elements
Adding Columns to Table Elements
Mobile Device Basics for NetSuite WMS

General Notices