You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I am building a custom oracle adapter where I am trying to set an
attribute to an old value in the managed resource but I keep on
getting null for conn.getAttribute('attributeName') or
work.getAttribute('attributeName') value. I don't know why. what
should put in the code to get a value which is already present in the
managed resource.
var newValue = getNewValue("cn");
if (newValue != null)
{
ret.value = newValue;
}
return;
function getNewValue(attributeName)
{
var attributeValue = work.getAttribute(attributeName);
if (attributeValue == null)
{
//(here I want it to get and set the same value in the managed
resource)
return (conn.getAttribute('attributeName').toString());
}
else
{
var myValue = attributeValue.toString();
return (myValue.substr(myValue.indexOf("|")+1));
}
}