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
749 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
Comment Utility
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
Comment Utility
Clever.  I'll test this later today and let you know.
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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 explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

8 Experts available now in Live!

Get 1:1 Help Now