on 10-15-2009 5:45 AM
Hi guys
In a CLM Master Agreement, after I select a company, I am able to select any organizational unit, even if it does not belong to that company. The system does not issue any error message. Is it standard behavior?
Shouldnt the system validate that only the organizational units which are belonging to a particular company be displayed?
Thanks and regards
Ajay
Hi Gov,
Could you let me know how you can get the script to trigger when someone is searching for the Organization Unit?
What script context can we use?
Thanks & Best Regards,
Reshma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It looks it is standard behaviour.
We have put in script to validate and added a query to query group so that user can search ORG UNIT by company code.
//----
//........................Gets company code
//----
getChildFieldByFieldId(parentFieldId,childFieldId){
value=doc.getExtensionField(parentFieldId).get();
if(hasValue(value)){
parenthome=IBeanHomeLocator.lookup(session,value);
parentbean=parenthome.find(value);
childField=parentbean.getExtensionField(childFieldId).get();
return childField;
}
return null;
}
//
//----
//...................................
//----
validateCompanyCodes(parentfieldId,childFieldId){
flag=false;
maCompanyCode=doc.getExtensionField("SAPCCODE").get();
companyCode=getChildFieldByFieldId(parentfieldId,childFieldId);
if(companyCode==null @or !hasValue(maCompanyCode)){
flag=false;
}else if(maCompanyCode.equals(companyCode)){
flag=true;
}
return flag;
}
purchasingOrgCompanyCodeMatch=validateCompanyCodes("SAPPORG","sapccode");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.