Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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…
Read about the ways of improving workplace communication.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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