Example: Custom Operations for the Business Number Attribute
In the following example, the Business Number attribute is generated by calling a stored procedure; it is not a physical attribute in the database.
<ImsManagedObjectAttr wellknown="%BUSINESS_NUMBER%" displayname="Business Number" description="Business Number" valuetype="String" required="false" multivalued="false" maxlength="0"> <Operation name="Get" value="call sp_getbusinessnumber(?)"> <Parameter name="%USER_ID%"/> </Operation> <Operation name="Set" value="call sp_setbusinessnumber(?,?)"> <Parameter name="%USER_ID%"/> <Parameter name="%BUSINESS_NUMBER%"/> </Operation> <Operation name="Delete" value="call sp_deletebusinessnumber(?)"> <Parameter name="%USER_ID%"/> </Operation>
Note the following points:
Copyright © 2013 CA.
All rights reserved.
|
|