Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encoding xml prompt values for post to cognos report

Status
Not open for further replies.

xoopus

Programmer
Oct 8, 2003
11
US
Hello,

I am trying to run a report by posting values from one page to another. I am generating a form using javascript and posting it to an iframe. I got it to work at one point but now I can't remember how I was encoding the xml values. If I post a single value and do not use xml it works with no problems, but I need to pass the useValue and displayValue so I am posting something like this:
<selectOption useValue="1" displayValue="January"/>

In the report it is using the full string rather than recognizing that it is xml and populating the use and display values accordingly. I have tried encoding it every way I can think of, but it still shows up as the whole string. I think that when I did have it working I had only encoded a few of the characters, but I can't remember which ones.

If anyone could help I would really appreciate it.

Thanks
 
I found the solution right after I posted the question.

I was missing the selectChoices parent element. I needed to post this instead.

<selectChoices>
<selectOption useValue="1" displayValue="January"/>
</selectChoices>

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top