Posting data to an API

By default, the data found in the editable components of a screen is not sent automatically to a save API, even if the input fields are bound to some XML. The data is only posted if the user has changed it on the screen.

However, sometimes it is necessary to pass some or all of the data in editable components, even if it did not change. For example, screens in which you are defaulting the input boxes to some default value in the JSP require all data to be posted.

If the user does not change the data in the input box, you still want the value to be passed to the API. Therefore, there is a mechanism that identifies that all data in the editable components is passed to the API for the entire JSP regardless of what was actually changed in the user interface. The following code example illustrates how to accomplish this.

<script language="Javascript">
 IgnoreChangeNames();
</script>

Note that typically this code immediately follows the include statements located at the beginning of a JSP.