Solved

How do I pass a parameter within the URLRequest()?

Posted on 2008-10-29
2
2,496 Views
Last Modified: 2010-05-18
I can successfully invoke report (a LogiXML report) until I try to add a parameter; the 'coid=23'.  I can  paste the URL in the browser and the report works fine.  However, inside of Flex, I get the error:

"The reference to entity "coid" must end with the ';' delimiter."  How do I get around this.  I know that I will need to pass multiple parameters in the next series of reports.

My LinkButton code:

<mx:LinkButton id="bLinkToReport" label="View New Report" enabled="true" click="navigateToURL(new URLRequest('http://localhost/wmsrpts/rdPage.aspx?rdReport=Default&coid=23'))"/>
0
Comment
Question by:CubicleGuy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 125 total points
ID: 22832962
Refer this

http://livedocs.adobe.com/flex/2/langref/flash/net/URLVariables.html

add this method below

public function sendRequest() {
            var url:String = "http://localhost/wmsrpts/rdPage.aspx";
            var request:URLRequest = new URLRequest(url);
            var variables:URLVariables = new URLVariables();
            variables.rdReport="Default";
            variables.coid="23";
            request.data = variables;
            navigateToURL(request);
        }

and change the mxml code as shown below:

<mx:LinkButton id="bLinkToReport" label="View New Report" enabled="true" click="sendRequest()"/>
0
 
LVL 1

Author Closing Comment

by:CubicleGuy
ID: 31511213
I missed this entirely in the documentation.  I'm new to Flex, I've worked for 20 years with Magic Software, but I'm absolutely Flex can do whatever I need to do....
Thanks again.
Chris Morse
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question