IsModificationAllowed

You can review the details about the isModificationAllowed JSP function.

Description

This JSP function is used to determine if modification is permitted for a certain attribute for the current entity.

Syntax

boolean isModificationAllowed(String name, String allowModBinding)

Input parameters

name - Required. Path in the target XML attribute. If this attribute is modifiable for the current entity's status, the function returns true. If it is not modifiable, the function returns false.

allowModBinding - Required. Binding string that points to a set of elements containing modification types that are permitted for the current status.

JSP usage

This example shows how the table footer containing the dynamic add rows feature can be included in a page based on whether or not add rows is permitted for the current order.

   <%if (isModificationAllowed("xml:/@AddInstruction",
"xml:/Order/AllowedModifications"))
{%> 
   <tr>
   	 <td nowrap="true" colspan="3">
    		 <jsp:include page="/common/editabletbl.jsp" >
    		 </jsp:include>
   	 </td>
    </tr>
 <%}%>