Passing Variable with a URL

Hi,
I’m trying to pass variables first - from a non-secure
web site to a secure (on another server) form. I have that figured
out, but when I go to submit the form, the variables I passed to
the form, are not showing up on my return e-mail from the form.
Here is the code for the FORM ACTION & Reurn Template -

What do you see in the URL scope when you CFDUMP the page?
(Hint: this problem is about scoping variables.)

Similar Messages

  • Passing variables using the URL

    in the past I have alsways used internal navigation methods
    within Flex - i.e. viewStacks, and linkBars etc... but I need to
    use an (existing) external menu and link (communicate) it to my
    Flex Application.....
    is it possible to pass variable to (into) a flex 2
    application using a URL
    e.g.
    http://...............
    ?page=homepage
    picking this variable ("page") up and getting its value (in
    this case "homepage")
    and then use the variable in the Flex application to display
    the relevent component...... ???
    basically, I am trying to navigate through a Flex application
    using an external menu system etc...... and displaying the
    particular components within the Flex application relevent to the
    select links (within the external menu system) communicating the
    two using a URL etc......
    thanks,
    Jon.

    Passing data into a Flex app using the url on startup
    requires working with the html handler, causing it to build
    flashvars in the Embed or Object tag. Inside Flex, these are
    accessed using the Application.parameters array.
    But it sounds like you want ongoing communication between the
    Flex app and the browser. For this you should use
    ExternalInterface. I have not used it at all, so I can't be any
    specific help.
    Tracy

  • Passing variables with page redirect

    I have a cfform. After it is filled out and submitted, the
    action page generates a random reference_no and puts the data into
    a database. I then do a cflocation url and pass the reference_no to
    another page. This page takes the reference_no and does a cfquery
    again to get all the information just entered and displays it on
    the form. A javascript popup/alert message then tells the user the
    form was submitted with the reference_no and to print the form. I
    was advised to do it this way so that the form cannot be
    resubmitted again. Everything works fine the way I have it.
    Now here is what I would like to do. After the form is
    displayed with the popup, I would like to pause 3-5 seconds and
    then redirect that page to another page that is identical (minus
    the javascript popup message) with the cfdoucment tag because I
    want them to print the form in pdf format. The problem I am having
    is when I do another cflocation url at the end of the display page
    and pass the referendce_no, to go to the pdf page, it works but it
    never stops at the display page to display the javascript popup
    message. So I tried to use the meta tag refresh rediredct set at 3
    seconds and pass the reference_no. The display page with the
    javascript message works then the page is redirected but the
    reference_no is never passed and the pdf form comes up but without
    anything to display. I guess you cannot pass variables in a meta
    tag since that is not cf ?
    How can I go from the page with the javascript popup to the
    page with cfdocuement pdf format ?
    Thanks

    You would have to craft the url of the popup page to pass the
    reference_no. I'm going to assume that you're using the "Post"
    method on your form, which means you have to pass the reference_no
    form value as a url/GET value.
    <cflocation
    url="somesite.com/popup.cfm?reference_no="#form.reference_no#">
    and then on the popup.cfm page, consume the url.reference_no
    again as part of the url in the meta refresh
    <cfoutput>
    <meta http-equiv="refresh"
    content="10;url=http://somesite..com/pdfDisplay.cfm?reference_no=#url.reference_no#"
    />
    </cfoutput>
    If you're just trying to prevent double submission, you could
    just lock the
    form from double submission clientside. In the method below,
    it actually hides the form. There are other options such as
    displaying an inline IFRAME which would simulate a popup and would
    remain until the page was refreshed from the form submission. I
    would also consider this old school. You might want to check out
    other options as far as Web 2.0 using AJAX and frameworks such as
    JQuery.
    <script language="javascript">
    function formSubmit(){
    if (document.myForm.isSubmitted.value != "no"){
    return false;
    }else{
    document.myForm.isSubmitted.value = "yes";
    document.getElementById('submitdiv').style.display =
    "block";
    document.getElementById('formdiv').style.display = "none";
    document.myForm.submit();
    </script>
    <div id="submitdiv" style="display:none">
    Your Form has been submitted.
    </div>
    <div id="formdiv" style="display:block">
    <form method="post" name="myForm" id="myForm"
    action="HandleSubmission.cfm">
    <input type="text" name="isSubmitted" value="no">
    <input type="button" name="manSubmit" value="submit"
    onclick="formSubmit();">
    </form>
    </div>

  • Passing variable threw the url to flash

    Is it possible to pass variables to a flash obect threw the
    url and how would the url look?
    something like this?
    http://critcore.wisc-online.org/cri...ml?Objectid=183
    then I would request the objectid in flash using send and
    load? Or how would I retrieve that?
    Thanks for your help I appreciate it

    it would look like:
    http://www.yoursite.com?theVariable1=var1&theVariable2=var2
    in flash you just access it with _level0 ie:
    trace(_level0.theVariable1);
    trace(_level0.theVariable2);

  • Can I pass variables in the URL string?

    I am trying to get some variables into a loaded swf at
    runtime. The variables will carry information so the swf can load
    the correct xml file. I thought we could pass them through the URL
    string like so:
    new URLRequest("testing.swf?myVar=varOne
    but it just throws an URL cannot be found error. How can I
    get variables into my swf at runtime?

    What you are doing is fine. But you will always get that
    error when testing
    the movie (Ctrl+Enter). Try it in a browser and it should
    work.
    BTW, another way of doing the same is to use a URLVariables
    object, like so:
    var req:URLRequest = new URLRequest("testing.swf");
    var vars:URLVariables = new
    URLVariables("myVar=varOne&myVar2=varTwo");
    req.data = vars;

  • Passing variables on the URL

    Is it possibe to pass variables into edge from the URL? I can see a scenario where you could send people a link like site.com/myedgeanimation/?=bob or site.com/myedgeanimation/?=alice and BOB and ALICE could each get a personalized animation.

    Hi,
    If you want to implement the equivalent of Flashvars, you will find an example here.

  • Passing variables inside a url to call a query

    Hello,
    I have created a BSP-application with a restful webservice to transform a BW-query (BI7) into a XML-File for further development with XCelsius.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fwiki%2fsdn_wiki%2fwiki%2fdisplay%2fbi%2fexpose%2bbi%2bquery%2bas%2brestful%2bservice
    The service works fine when I use a query that doesn't need any variables.
    Unfortunately, there is a problem when I try to pass some mandatory variables.
    Here is a sample-url I use to call the restful webservice.
    http://<BW-System>:<Port>/sap/bc/bsp/sap/z_xmlexport1/data.xml?infocube=<my_infocube>&query=<my_query>&VAR_NAME_1=<variable name>&VAR_VALUE_EXT_1=<variable_value>
    But I get this error message on my browser:
    <ERRORMESSAGE>invalid_input</ERRORMESSAGE>
    When debugging the code, I can see that all parameters for the FM 'RRW3_GET_QUERY_VIEW_DATA' are there and filled properly. But still the exception "invalid_input" is raised.
    Any help on calling queries with mandatory variables?
    Thanks!

    Hello,
    0COMP_CODE is an infoobject, how can you directly use an infoobject for selection. I mean am not aware of link passed to Xcelsius but what i feel is you need to first create a variable for 0COMP_CODE by opening your query in query designer. and for VAR_NAME_1 use this variable name.
    You can check the definition of the variable by opening your query in query designer and under 0COMP_CODE expand the list, select your variable and on right side it shows the property. In one of the tab it will show whether its ready for input or not. (its a check box option)
    Regards,
    Shashank
    Edited by: Shashank Dighe on May 20, 2009 1:50 PM

  • READURL Call on Macintosh, won't pass variables with spaces???

    Here is my code and the problem. I am trying to passing a
    tablename and a classname with READURL and the PHP script takes the
    info and returns to me my classid. This works wonderfully on the
    PC, but on the MAC, when I click on a classname with a space I get
    back a empty string as my return value.....here is my code from AW
    and PHP......If you can help I would readlly appreciate it.

    http doesn't like spaces in URLs.
    This clicking on a classname -- is that happening on a web
    page, or in AW?
    Either way, you should urlencode the link. Replace any spaces
    in the URL
    with + signs, either manually on a web page, or by using the
    replace
    function in AW [replace("", "+", string)]. Then, in your PHP
    script, you can
    change the $_classname assignment to include urldecode:
    $_classname = urldecode($_GET["classname"]);
    This should return it to the multi-word format.
    Paul Swanson
    Portland, Oregon, USA
    "bradsteele" <[email protected]> wrote in
    message
    news:[email protected]...
    > Here is my code and the problem. I am trying to passing
    a tablename and a
    > classname with READURL and the PHP script takes the info
    and returns to me
    my
    > classid. This works wonderfully on the PC, but on the
    MAC, when I click
    on a
    > classname with a space I get back a empty string as my
    return
    value.....here is
    > my code from AW and PHP......If you can help I would
    readlly appreciate
    it.
    >
    >
    >
    > getClassID.php code ....
    >
    > <?PHP
    >
    > // MAKE THE SCRIPT NON_CACHEABLE
    > header("Expires: Mon, 26 Jul 1990 05:00:00 GMT");
    > header("Last-Modified: " . gmdate("D, d M Y H:i:s",
    time() + 300) . "
    GMT");
    > header("Cache-Control: no-cache, must-revalidate");
    > header("Pragma: no-cache");
    >
    > // SET VARIABLES
    > $_table = $_GET["table"] . "_classes";
    > $_classname = $_GET["classname"];
    >
    > // LOGIN TO THE DATABASE
    > mysql_connect("localhost", "user", "user") or
    die("Cannot connect to
    DB!");
    > mysql_select_db("trek") or die("Cannot select DB!");
    >
    > // GET CLASS ID
    > $sql = "SELECT classid FROM `$_table` where classname =
    '$_classname'";
    > $r = mysql_query($sql);
    >
    > // IF MORE THAN 1 ROW, THEN PRINT FALSE (ERROR)
    >
    > while ($row = mysql_fetch_assoc($r)) {
    > $query = $row['classid']; }
    > print $query;
    > ?>
    >
    >
    > AUTHORWARE 7.02 CODE BELOW:
    >
    > -- Get the Class ID
    > if NetConnected then
    > www_action := "?action=getData"
    > www_query :="&table=" ^ tablePrefix ^
    "&classname=" ^
    LowerCase(ClassName)
    > www_URLString := NetLocation ^ "getClassID.php" ^
    www_action ^
    www_query
    > www_ClassID := ReadURL(www_URLString, 10)
    > end if
    >

  • Passing variables with cfhttp

    I need to pass a dynamic variable using cfhttp. 
    This code:
    <cfhttp method="get" url="#cgi.server_name#/page.cfm?pageid=#pageid#" resolveurl="Yes">
    <cfoutput>
        #cfhttp.FileContent#
    </cfoutput>
    Returns the error:
    The 3 parameter of the Mid function, which is now -8, must be a non-negative integer.
    This code returns the same error.
    <cfhttp method="post" url="#cgi.server_name#/page.cfm" resolveurl="Yes">
        <cfhttpparam type="Formfield"
            value="#pageid#"
            name="pageid">
    </CFHTTP>
    <cfoutput>
        #cfhttp.FileContent#
    </cfoutput>
    Any assistance would be appreciated.

    You don't say what line in your code is throwing the error...???  Try putting a
         <CFDUMP var="#cgi#">
    before the first line and a
         <CFDUMP var="#cfhttp#">
    after the CFHTTP call.  That will help you to understand if there is something wrong with the CGI var you are trying to pass as part of the URL, and will also show you whether the CFHTTP gets executed and what the return status is. Let us know how that works out and we can help you with further debugging.
    good luck!
    reed

  • Passing Parameters with a URL to an Oracle Report, on an Oracle Reports App. Server

    I have built an Oracle report which resides on a Windows 4.0 / IIS application server with Oracle Reports installed.
    (8i Database / 6i Developer 2000 suite). This works flawlessly when called from an Oracle Form.
    My question is, how do I call the same report from portals and pass it the required parameters. Thanks!

    Hi,
    You will have to encode your parameter value. The problem is because of the spaces in the value. Whenever there any special
    characters in the value it should be encoded.
    example
    select '<area shape="rect" coords="335,66,528,83" href="http://townland:7778/pls/portal30/PORTAL30.RPT_SUMKWH.show_parms?meter='||
    <portal_schema>.wwutl_htf.url_encode('PMS 11BBA01')||'">pams</a>' url
    from meters
    The above is just an example. Please change the names to suit your requirements.
    Thanks,
    Sharmila

  • Passing variables through the URL String

    I have a template and outside the basic html - all the content is grabbed from a db. I want to use 1 template to generate all of the other pages for the site. So basically, the only way to identify the page would be through the URL string.
    So, something like -
    www.mysite.com/template.jsp?page_section=aboutus&pageID=1
    That string would query the database and output the content for page 1 of the about section.
    Does this make sense and where would I start to learn how this is done?.
    Again, I appreciate your help.
    Mark

    since database connections are costly affair i better use
    jsp include tag ratter then getting dadta from database
    assumming that u can devide your comman pages in 4 parts
    just assume
    top - logo
    bottom - common links
    center - data
    left - menu
    my jsp page would look like this (aboutus.jsp)
    <%@ include file="top.html" %>
    <%@ include file="left.html" %>
    <%@ include file="aboustus.html" %>
    <%@ include file="bottom.html" %>
    2) disclaimer.jsp
    <%@ include file="top.html" %>
    <%@ include file="left.html" %>
    <%@ include file="disclaimer.html" %>
    <%@ include file="bottom.html" %>
    this would reduce ur maintainnce as if u want to change top logo only top.html needs to be changed and it would affect in all pages
    regards
    [email protected]

  • Passing variable with function in AS3

    This is a function on the first frame of a .fla updated to AS3 from an old AS2 file:
    function initialize() {
    MovieClip(root).stage_target_mc.max_messages = 600;
    When the function is called it should set "max_messages" to 600 in AS3, right?
    Thanks

    Only if the function is called.  If this is going to be a set value that applies any time, then you don't need that line in a function, and if it's on the main timeline, you don't need the root reference.

  • Unable to pass flashvars in application url in Flex 4.5.

    I am creating an application in which I have to pass variable in application URL like http://localhost/Test/test.html?name=testUser
    It works fine in flex 3.5 and can be read using Application.application.parameters['name']. But with flex 4.5 it is not detected unless declared in html wrapper.
    Problem is, since requirement changes dynamically so somehow its not possible to determine all parameters user want to use so can't be declared in html wrapper.
    Is there any work around for reading flashVars directly from application URL ? how about using browserManager's fragments for solving this problem??

    I am creating an application in which I have to pass variable in application URL like http://localhost/Test/test.html?name=testUser
    It works fine in flex 3.5 and can be read using Application.application.parameters['name']. But with flex 4.5 it is not detected unless declared in html wrapper.
    Problem is, since requirement changes dynamically so somehow its not possible to determine all parameters user want to use so can't be declared in html wrapper.
    Is there any work around for reading flashVars directly from application URL ? how about using browserManager's fragments for solving this problem??

  • Webdispatcher with Dynamic URL

    Dear SDNers,
    How can I pass variables to the URL at webdispatcher. I want dnynamic url to be pass to webdispatcher.
    Is it possible. Please guide me. I searched SDN. But didnt find any clue.
    Regards,
    Venkat

    Dear SDNers,
    We have created a webdynpro application with some variables to pass as
    aparameters. So, the parameter values are not constant. We would like topass variable to the URL which going to mention in Webdispatcher, so
    that
    those URL's shall re-direct to Original URL through webdispatcher. How
    can we achieve this dynamic valriables passing to URL which is there at
    Webdispatcher profile. Kindly guide us.
    eg:
    Here is my Webdnypro URL
    http://fullyqualifieddomainname.local:8000/sap/bc/webdynpro/sap/zticket_log?Incident=<Incident
    No>
    Instead of giving the above URL, I would like to give below URL to user
    https://apps.test.com/Incident=<Incident No>.
    Here <Incident No> will change from one incident to another.
    How can I redirect my webdnypro URL to above url with <Incident No>
    dynamically.
    Hope it is clear.
    Please revert if any clarification is needed.
    Regards,
    Venkat

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

Maybe you are looking for

  • Making dataconnection via JNDI

    Hello I am trying to connect to a MS-ACCESS database which is on the same machine as where WebLogic is installed. In the console I fill in the following values: Name : Serise JNDI Name : weblogic.jdbc.DataSource.weblogic.jdbc.odbc.Serise Pool Name :

  • What is a 3rd generation IPod?

    I am new to all this.

  • WHERE ARE THE INSTRUCTIONS FOR THE FUNCTIONS ON THE NANO PLUS?

    You know this is a nice device, but there is no instruction manual explaining the 40 plus functions of this device, AND TO MAKE MATTERS WORSE THERE IS NO TUTORIAL ON THIS SITE , FOR THE NANO PLUS, GOTO THE NANOPLUS PAGE, HIT TUTORIAL OR HOW TO AND YO

  • Execute query without navigation

    hi all, My problem today that I want to execute query without navigation. I create a global variable (:global.usr := :block.username;) as you see the global variable takes the value of the current user accessing the system. I want the user to be able

  • Popup close problem

    Hello, I'm currently developing  a custom dateChooser component which can display multiple months at once. I created a popup window witch contains the months and created an event that fires when a date is selected. Now all this works, but when I try