Solved

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

Posted on 2008-10-29
2
2,485 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

16 Experts available now in Live!

Get 1:1 Help Now