Solved

What is the proper syntax in Flex for implementing <input type = "hidden" /> as a variable in the navigateToURL() function??

Posted on 2008-10-31
2
766 Views
Last Modified: 2012-08-14
Thanks to some Expert assistance I received earlier, I was able to make my reports work great.  Now, if possible, we'd like to be able to hide the variables being sent.  The problem is how to construct the syntax in Flex.

      private function callInventoryReportRequest(): void {
                  var url:String = "http://localhost/wmsrpts/rdPage.aspx";
                  var request:URLRequest = new URLRequest(url);
                  var variables:URLVariables = new URLVariables();
                  variables.input type='hidden';  //<<<< this will generate an error in Flex......
                  variables.rdReport="ItemMasterListing";
                  variables.coid=model.currentCompany;
                  variables.coname=model.companyName;  
                  request.data = variables;
                  navigateToURL(request);
            }

Thank You!!
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 19

Accepted Solution

by:
Gary Benade earned 400 total points
ID: 22902222
The default method for a URLRequest is GET which appends the variables to the url, if you change it to POST it should solve your problem - you will of course have to check your server side script and make sure you are referencing the urls in the correct context

   
  private function callInventoryReportRequest(): void {
                  var url:String = "http://localhost/wmsrpts/rdPage.aspx";
                  var request:URLRequest = new URLRequest(url);
                  var variables:URLVariables = new URLVariables();
                  variables.rdReport="ItemMasterListing";
                  variables.coid=model.currentCompany;
                  variables.coname=model.companyName;  
                  request.data = variables;
                  request.method = URLRequestMethod.POST;
                  navigateToURL(request);
            }

Open in new window

0
 
LVL 1

Author Comment

by:CubicleGuy
ID: 22922028
Clever.  I'll test this later today and let you know.
Thanks.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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…
The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

688 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