Hi All,
I am very new to building custom adaptor. I am trying a quick test to learn more abourt building custom adaptor. I have developed a custom adaptor as SBO which is not populating all values in dropdown control. It just populate only one value. Please see the follwoing snippet and pleas advise me what I am doing wrong or your solution to what I need to acheive. Thanks and regards Saqib
[code]
public Document execute(IAdaptorParameter[] arg0) throws AdaptorException {
Document doc = null;
try
{
doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
Element data = XMLUtility.createElement(doc, this.strRootElement);
// it means that empty collection is returned
Element item = XMLUtility.createElement(data, this.strRowElement);
XMLUtility.createCDATAElement(item,strCountryName,"United Kingdom");
XMLUtility.createCDATAElement(item,strCountryCode,"UK");
XMLUtility.createCDATAElement(item,strCountryName,"United Stated");
XMLUtility.createCDATAElement(item,strCountryCode,"US");
XMLUtility.createCDATAElement(item,strCountryName,"France");
XMLUtility.createCDATAElement(item,strCountryCode,"FR");
}
catch (Exception e)
{
throw new AdaptorException(e);
}
return doc;
}
[/code]