YfcDoNotPromptForChangesForActions

Description

This JavaScript function can be used when you want to skip the "Changes made to the current screen will be lost" validation that is done when the user clicks actions on an inner panel. Normally, inner panel actions in the Application Console are not used with the editable fields on a screen. Therefore, when the user changes an input field and clicks an action, the warning message is displayed by default. Call this JavaScript method to avoid this validation. You can call this method for all actions on a view by calling it in your JSP in a script tag. Alternatively, you can call this method for a specific action by calling it as part of the JavaScript property of the action resource.

Syntax

yfcDoNotPromptForChangesForActions(value)

Input parameters

value - Required. Pass true to skip the changes made validation. Pass false to turn the validation on. By default, the validation is on.

Return value

None.

Example

This example shows how to call the yfcDoNotPromptForChangesForActions function from a JSP to turn the "changes made" validation off for all actions on the view:

<script language="Javascript" > 
      yfcDoNotPromptForChangesForActions(true); 
</script>