Solved

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

Posted on 2008-10-29
2
2,492 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
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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…
ConnectWise and their customers need to ensure critical alerts automatically reach the right person at the right time. MSP superheros efficiently respond to these alerts key is providing automatic, intelligent alerting that generates a complete audi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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