on 12-02-2011 10:15 AM
Hello Expert,
I am newly using CLM. We got one requirement to disable diversity if location of the agreement is non US. Now i am trying to use the location field but i do not find the method IAPI JAVADOC under contactIbean. I can see the location field in LineItemIbean interface.
Kindly help me to use the location filed of agreement in the script definition.
Thanks much in advance for your help. Looking forward for your expertise answer.
Regards,
Gurvi.
Hi
In order to retrive the location field from MA use simple getExtensionField method for e.g. doc.getExtensionField("LOCATION").get()
However do take note that this method would retrieve reference to Location object. In order to retrieve display name, locate location Ibean and find the location object reference.
Regards
Mudit Saini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mudit,
Thank you your response.
I got confused as i do not see Location field in AgreenementIBean and ContractIBean interfaces. And this location filed is a dropdown, If i user GetExenstionFiled method will get value of location field? I do not see location IBean in API.contracts.
By surprise i do not see location field in AgreementIBeanInfc and ContractIBeanInfc. So not getting idea how to retrieve the location field value.
Kindly help me as soon as possible as it is bit urgent to implement.
Regards,
Gurvi.
Hi
There is no specific function mentioned in AgreementIbean or ContractIbean to retrieve location field. Try getExtensionField() function as I have specified and use the location reference to search for location using IBeanHomeLocator.lookup() function. This worked fine for me.
Regards
Mudit Saini
Edited by: Mudit_UCB on Dec 9, 2011 10:39 AM
Hi
Try the below mentioned code:
logMsg = Logger.createLogMessage(session);
MALocation=doc.getExtensionField("LOCATION").get();
LocationHome = IBeanHomeLocator.lookup(session,MALocation);
Location1 = LocationHome.find(MALocation);
LocationValue = Location1.getDisplayName();
logMsg.setLogMessage("****LocationValue:"+ LocationValue );
Logger.info(logMsg);
Regards
Mudit Saini
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.