I am using ICN 3.0.7.I want to set the value for MultiValue property for commonPropertiesLayout EntryTemplate(Migrated EntryTemplatefromworkplace/Creating EntryTemplate without clicking on 'EditLayout' option).
Please find below code snippet:
lang.setObject("customEntryTemplateOpenAction", function(repository, items, callback, teamspace) {
if(items.length==1){
var item = items[0];
repository.retrieveItem(null, lang.hitch(this,function(item){
this.entryTemp=item;
var acid = new AddContentItemDialog();
acid.showUsingTemplateItem(repository, null, true, false, callback, teamspace, this.entryTemp); aspect.after(acid.addContentItemPropertiesPane, "onCompleteRendering", function(){
if(query(".defaultSpan").length == 0){
var acip=acid.addContentItemPropertiesPane;
var commProps = acid.addContentItemPropertiesPane._commonProperties;
//Not Working
if(commProps._propertyEditors){
var props = commProps._propertyEditors._fields;
array.forEach(props, function(prop, i){
var name = prop.name;
if(name === 'strmApplicability'){
var jsonArrVal=new Array(); jsonArrVal.push("test1"); jsonArrVal.push("test2"); prop.setValue(jsonArrVal);
//commProps.setPropertyValue(name,jsonArrVal);}
//Working
else{
var fields = commProps._view.properties;
array.forEach(fields, function(prop, i){
var name = prop.controller.id;
if(name === 'strmApplicability'){
var jsonArrVal=new Array(); jsonArrVal.push("test1"); jsonArrVal.push("test2"); commProps.setPropertyValue(name,jsonArrVal);
}
}
Can you suggest me how to set Value for MultiValued Property for CommonPropertiesLayoutEntryTemplate/Without using 'EditLayout' option'?
#IBMContentNavigator(ICN)#Support#SupportMigration