Hi All,
i am trying to create a custom element form with one browse button that allow author to browse content server document and select any and a text box to display comment metadata of selected file.
but the returned value in undefined in text box.the code for function is as below
Custom.Browse = function()
{
var options = {};
options.params = {};
options.params.QueryText = 'xExtension <matches> `doc` <OR> xExtension <matches> `docx`';
options.callback = function(returnValue)
{
if (WCM.IsValid(returnValue) && WCM.IsValid(returnValue.xComments))
{
alert('success'); //not reachable here
$ID('input-value').value = returnValue.xComments;
}
};
ElementAPI.GetSearchResults(options);
};
same code works when is change it to dDocName or dDocTitle.
can some help me on this.
thanks
Somesh Maurya