cancel
Showing results for 
Search instead for 
Did you mean: 

How use location field value in header tab of master agreement

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello Expert,

Any help on this issue please.. Need this a bit urgently... Looking forward for your expertise solution..

Thanks much for your cooperation.

Regards,

Gurvi.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Mudit,

Thank you so much for your answer.

I am new to E sourcing. Can you please share me what is the code you used to fetch the location field. I do not know what is reference type for location field. This is a bit impotent to me to resolve.

Thanks much for your cooperation.

Regards,

Gurvi.

Former Member
0 Kudos

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

Answers (0)