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
750 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
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

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

Suggested Solutions

Title # Comments Views Activity
enable compression/gzip on oracle XML DB HTTP Server 3 554
Adobe Error Message - kenlly.dll 7 669
flex simple crossdomain problem 1 840
Adobe Experience Manager 4 185
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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

19 Experts available now in Live!

Get 1:1 Help Now