Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create custom element form

TheNewBeeOct 10 2013

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2013
Added on Oct 10 2013
0 comments
215 views