Dynamic ReadOnly
Hi
We have a requirement to make some attributes dynamically read only. On reference to DynamicReadOnly Does Not Work As Expected In Open UI (Doc ID 2110164.1) i made the below changes to the cfgrenderer.js file
The bold line of script should be placed in the function showTextBox in the else condition.
function showTextBox ( grpItemId ) {
………..
………..
else
{
innerHTML = generateCfgOuterHTML (
$(SiebelAppFacade.HTMLTemplateManager.GenerateMarkup({
type: consts.get("SWE_CTRL_TEXT"),
className: (( dynReadOnly === "Y" ) ? "siebui-ecfg-editfield-dynDisabled" : "" ),
id: "GRPITEM" + _pipe + grpItemId + _underscore + "ATTTYPE" + _pipe + "TEXT",
value: displayValue,
attrs: (( dynReadOnly === "Y" ) ? "readonly" : " ") // BUG# 22096280: add readonly attribute
})) );
}
…………..
………….
}
But still it's not working. Any suggestion on how to make this work ?