IgnoreChangeNames

You can review the details about the IgnoreChangeNames function.

Description

Whenever any detail view is posted, the Presentation Framework checks for data changed through the screen controls. For controls that have no changes, the name attribute is changed to "old" + [current name]. By doing this, the data in these controls does not make it to the APIs. This results in improved performance, since unchanged data does not need to be updated. However, some APIs are designed to work in replace mode. They take a complete snapshot of information (including unchanged part) and replace the all of it in the database. For such APIs, all data from the screen must be passed as input.

To achieve this, this function can be called in the onload event. This function sets a custom property in the window object. When the screen is posted, the Presentation Framework checks for this custom property. If the property is set, the automatic name changing does not happen.

The Presentation Framework helps the user remember to save data they have input. When a user has changed some data and begins to navigate away from a page, the Presentation Framework detects the changed data and prompts the user to save their work. This function does not change the behavior of this feature in any way. It simply makes sure that the name property of the controls that have no changes are retained. In this way, this function differs from yfcDoNotPromptForChanges().

Syntax

ignoreChangeNames()

Input parameters

None.

Return value

None.

Example

The example attaches this function to the onload event.

<script language="javascript"> 
window.attachEvent("onload", IgnoreChangeNames); 
</script>