Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Modify Operation for Custom Oracle Adapter

8 views
Skip to first unread message

Magesh Bothaguru

unread,
Jan 19, 2012, 2:16:02 PM1/19/12
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));
}
}

Thanks

0 new messages