Solved

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
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.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now