Decision based on URL Parameter

Hi,
I want to make a decision in the GP based on URL Parameter.
I have an application with url that has the ID in the url address and takes out the data from the DB based on the ID if there is no ID then this is a new Form.
If this is a new Form (no ID in URL) I need to call Application A and then B and then send mail and so on...
If this is an saved Form (with ID in the URL) I need to call Application B and then send mail and so on...
I tried to do it with Decision (predefined value) but no luck.
Any suggestion?
Regards,
Silvy

Try implementing that logic into a PhaseListener and see which phase suits you best.

Similar Messages

  • Insert Text file based on URL Parameter

    Hello! I have been able to get data to load using PHP into my
    document. BUT - that is only data that is IN the URL. So, for
    example, the URL might be ...index.php?profile=123456789
    In that case I can make the customer ID appear in all the
    other URLs on the page.
    i.e. : <a href="page2.php?profile=<?php echo
    ("$profile"); ?>">Click Here</a>
    Today, I would like a section of code (probably in a text
    file) to load in the page based on a parameter in the URL.
    Something like a URL ...index.php?destination=Australia
    And then in the body would something like "load australia.txt
    file here".
    I know this is probably bigger than I am making it sound. But
    I don't know how to load a chunk of code inside another chunk of
    code.
    Any starting points would be much appreciated. Are there any
    built-in Dreamweaver CS3 features that do this?
    Jon

    The purpose is to enter an earnest money dollar amount (Real Estate Short Sale contracts), and based on the amount, a corresponding file with a copy of a check with the proper amount will be inserted into the file at page 16.  A button would be fine , but it needs to be on the earnest money deposit line (the look of the form may not be altered).  The earnest money amounts are $1,500, $2,000, $2,500, $3,000, $3,500, $4,000, $4,500 and $5,000.

  • Calling a page with ajax based on url parameter

    please can anyone help me with this problem that i've encountered. i'm able to capture a url parameter with javascript and i want to add it to my jquery code which calls a page in a div  but i'm able to do it. here's my code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
    <script language="javascript" type="text/javascript">
    function urlink()
    var tlink = window.location.search.substring(1)
    jQuery(function($){
        $('#mydiv').load('real_news.asp?'+ urllink());
    </script>

    Your jquery is trying to add data by calling a function. Also, you're just getting the value of the parameter. There's not a key to trigger anything on your server-side script. Make sure real_news.asp is processing correctly, looking for key (some-key) AND value (tlink). You might want to simply try concatenating the value of the var like this though:
    <script>
    var tlink = window.location.search.substring(1);
    $('document').ready(function() {
    $("#mydiv").load("real_news.asp?some-key=" + tlink);
    </script>
    Another way you could do it is use server side scripting to look and see if the URL-PARAM is set and if it is then echo value of URL-PARAM into load() method. php example below. I'm sure you can find an asp equivalent to achieve the same result. I think the key (pun) to this problem is that you do not have a key to associate the value with in order to process anything.
    <script>
    <?php if (isset($_GET['URL-PARAM'])) { ?>
    $('document').ready(function() {
    $("#mydiv").load("real_news.asp?some-key=<?php echo $_GET['URL-PARAM']; ?>");
    <?php }else{ ?>
    alert ("there is no ?URL-PARAM=something in the URL!!!");
    <?php } ?>
    </script>
    best,
    Shocker

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • How can I pass URL parameter value to text field?

    Dear Masters,
    I have a text field. I want it to have a value based on the URL parameter, for example:
    http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
    I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
    Thanks a lot.
    Edited by: user6368519 on Sep 16, 2009 11:39 PM

    Thanks Saad,
    Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
    This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
    Thanks for all the help again I appreciate it. ;)
    Thanks,
    Aaron
    [email protected]

  • How can I pass empty value in URL Parameter

    Hi,
    I am passing different URL parameters to one page, to filter
    the recordset on that page. How can I pass an empty value in the
    URL parameter so that the recordset in unfiltered?
    The URL parameter is based on one field of the database:
    ContentType. So, the link would be to
    default.asp?ContentType=Event
    and then all records that have the ContentType field in the
    DB as Event are displayed. Is it possible to use this system to
    pass an empty parameter so that all records are displayed?
    Thanks
    Ian

    ?ContentType=All
    <% if (ContentType == "All")
    Build recordset w/o filtering
    ASP is rusty, but those are the basics.
    "iandobie" <[email protected]> wrote in
    message
    news:e8im80$q7m$[email protected]..
    > Hi,
    > I am passing different URL parameters to one page, to
    filter the recordset
    > on
    > that page. How can I pass an empty value in the URL
    parameter so that the
    > recordset in unfiltered?
    > The URL parameter is based on one field of the database:
    ContentType. So,
    > the
    > link would be to
    > default.asp?ContentType=Event
    > and then all records that have the ContentType field in
    the DB as Event
    > are
    > displayed. Is it possible to use this system to pass an
    empty parameter so
    > that
    > all records are displayed?
    > Thanks
    > Ian
    >

  • ACE load balancing based on URL

    I am trying to send traffic to one server or another based on the URL. I want traffic to foo.com/selfserv to direct to server A and traffic to foo.com/webui to direct to server B. I found URL inspection etc but I am not sure how to apply it the scenario as I do not want the ACE to inspect all inbound HTTP requests.

    The ACE performs regular expression matching against the received packet data from a particular connection based on the HTTP URL string. To configure a class map to make Layer 7 SLB decisions based on the URL name and, optionally, the HTTP method, use the match http url command in class-map HTTP load balance configuration mode.
    The ACE performs regular expression matching against the received packet data from a particular connection based on the RTSP URL string. You can configure a class map to make Layer 7 SLB decisions based on the URL name and optionally, the RTSP method, by using the match rtsp url command in class-map RTSP load balance configuration mode.
    Configuring Traffic Policies for Server Load Balancing:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/classlb.html

  • Value for a parameter based on another parameter value

    Hi all,
    i am using report 6i and 10g db.
    I have to create a report based on some parameter values. For example
    Two parameter named as P_emp_code and P_emp_name
    In the first parameter p_emp_code has list of values like empcode emp_full_name ie like 0002108 Vanitha Lanet Mendez
    when user select P_emp_code i want to display the fullname in p_emp_name .
    I tried as follows in list of values
    select emp_fullname from emp_master where emp_code=:p_emp_code
    then getting error bind variable cannot be used
    Please suggest a way .
    Thanks
    Rincy

    Hello,
    The thing you are asking for set and editing the reports parameter form's value. Then i don't think you can do this by using the report parameter form.
    But there are two alternatives for this task.
    1. Create one form using form builder and pass the parameter and run the report from there. So, you can use the code as you showed in your first post.
    2. Why don't you make this Title setting automatically? I Mean using the gender column (with decode/case condition) of same table.
    -Ammad

  • Printing report directly on printer or pnly displaying based on a parameter

    Hi All,
    I am running a report from Form Builder - 10g and intend to either preview a report or print it based on a parameter.
    Have searched through this forum and got to use - CLIENT_WIN_API_ENVIRONMENT.Read_Registry in order to find the default printer at the client side.
    This is my code -
    PROCEDURE RUN_REPORT_DN (cID_PRINT_TYPE NATURAL,cListName varchar2)
    IS
    pl_id paramlist;
    v_rep_id report_object;
    v_rep_job_id varchar2(100);
    v_rep_status varchar2(100);
    v_server varchar2(100) := hpm_admin.getcontrolvalue('REPORT_SERVER');
    vjob_id VARCHAR2(100);
    V_PRINTER varchar2(100);
    p_printer_name varchar2(100);
    BEGIN
    -- check whether the paralist name is ok, if not set it right ...
    pl_id := get_parameter_list(cListName);
    -- pl_id := GET_REPORT_RUNMODE( cID_PRINT_TYPE,cListName );
    V_PRINTER := CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY('HKEY_CURRENT_USER\software\Microsoft\Windows NT\CurrentVersion\Windows','Device',TRUE);
    p_printer_name := (substr(V_PRINTER, 1, instr(V_PRINTER, ',' , 1)-1 ));
    -- run the report ...
    if not id_null(pl_id) then
    v_rep_id := find_report_object('REPORT126');      
    if cID_PRINT_TYPE = 0 then ---- parameter to decide preview or print
    set_report_object_property(v_rep_id,REPORT_DESTYPE,cache);
    set_report_object_property(v_rep_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    Else
         set_report_object_property(v_rep_id,REPORT_DESTYPE,PRINTER);
         set_report_object_property(v_rep_id,REPORT_DESNAME,p_printer_name);      set_report_object_property(v_rep_id,REPORT_COMM_MODE,SYNCHRONOUS);
    end if;
    set_report_object_property(v_rep_id,REPORT_DESFORMAT,'PDF');
         set_report_object_property(v_rep_id,REPORT_SERVER,v_server);
    v_rep_job_id := RUN_REPORT_OBJECT(v_rep_id,pl_id);     
    message('v_rep_job_id - '||v_rep_job_id);pause;
    vjob_id := substr(v_rep_job_id, length(v_server)+2 , length(v_rep_job_id));
    message('vjob_id - '||vjob_id);pause;
    v_rep_status := REPORT_OBJECT_STATUS(v_rep_job_id);
    if v_rep_status in ('FINISHED', 'RUNNING','OPENING_REPORT','ENQUEUED') then      
         web.show_document ('/reports/rwservlet/getjobid'||vjob_id ||'?server='|| v_server,'_blank');
    else      
         message ('Report failed with error message '||v_rep_status,acknowledge);
    end if;
    end if;
    END;
    But I am getting the error - CLIENT_WIN_API_ENVIRONMENT.Read_Registry must be declared.
    Wat setup/syntax is missing.
    Can someone advise plz...

    Welcome to Oracle Forums!
    Please acquaint yourself with the forum FAQ and etiquette if you have not already done so.
    The use of CLIENT_XYZ API requires WEBUTIL to be configured. Have you done that?
    Cheers.

  • How can I add a url parameter to choose the right database row to delete using php in Dreamweaver CC

    Hi all,
    I have just upgraded to Adobe Creative Cloup.  Though I find it very good there was one flaw and that was the omision of the database section.  I got this sorted but now I find that once I have set up the connection to the database and want to eithger delete or update records there is no 'url parameter' button to do so.  Can someone advise we how to get round this.
    Seasons Greatings from
    David J

    The link will look similar to
    myPage.php?ID=myVariable

  • Visual Studio - Column visibility - NOT based on a parameter

    I have several columns within a report that need to show / hide dependent upon the results of a query.
    I have tried using the following formula to no effect:
    Iif(Sum([FieldName].[Value]) = 1, True, False)
    I would expect this to show the column if the result of the sum is 1 and hide it if the sum is zero.  The sum in this instance can only be 1 or zero.
    I have used this formula before but it has always been based on a parameter.
    Any ideas please?
    Thanks

    Adding your dataset into the formula will probably fix the issue.  Also, add a text box and place the expression without the iif statement to test the output of the formula.  This will help you troubleshoot as you have a visual guide as to what
    the formula is returning.
    =Iif(Sum([FieldName].[Value], "dataset") = 1, True, False)

  • How to catch URL parameter from Portal URL in Web Dynpro iView

    Hi All,
    I have a web dynpro application running as a portal iView successfully. Now the client wants to make it internationalized with 7 languages. Currently they access the portal - and via role assignment they get to the portal tab with the wd iView. Now they want to send a parameter for the language key with the portal URL. So when they are typing in http://myportal.mydomain.com now they want to type in http://myportal.mydomain.com?sap-locale=de or so. My question is how can I catch this parameter in the WD application when it is running inside a portal iView? Is it at all possible?
    I have written a very small application which is trying to catch a URL parameter named PARAM. The code I have written is the default one as below:
    String paramValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PARAM");
    When I run the application standalone and add the PARAM=something in last of the URL I can catch it. But when I create an iView and while previewing it I add the same PARAM value it is coming as null all the time. Same when I add this iView to a role and show it via role assignment in protal. Please help to let me know how to achieve this. I think if I can read the parameter value from Portal URL in the WD iView - then I can set it as the default locale of the application and then show language specific file to achieve internationalization.
    Your urgent help will be highly appreciated.
    Warm Regards,
    Shubho

    Hi Shubhadip
    Even if you get the parameters, how do you internationalize your application? Are you not following the standard way as described in the following link. In this case you never need to capture any such parameter. This is done by the WD runtime automatically .
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm">Internationalization of WD projects</a>
    You can retrieve application parameters specified at the creation of iview by "adding parameters(with the same name as in iview application parameters) to the default plug of the Component Interface View of the WD application". "onDefaultPlug" method of the interface view controller you get these values as parameters, which you can save in the context node of component controller for later use.This is guaranteed to work.
    But again this is not what you want exactly. You want the user to specify the value at runtime. If you have just 7 languages, you can create 7 set of iviews with different application parameter value indicating language key, and assign to 7 different set of roles, each representing one set of users with common language.
    I hope you find a solution.
    Regards
    kk

  • Hide or show a column based on a parameter?

    I have a parameter that has two values linked to 2 fields and included in my SQL query.  I would like to hide or show columns based on the parameter value chosen for other fields.  How do I begin to write the expression? 

    Hi KittyCat101,
    Based on my understanding, you want to display columns dynamically based on a parameter, right?
    In your scenario, you can specify column visibility for all columns based on the expression which contains selected parameter values. So that if we select a value from the drop-down list of the parameter, the column will display based on the column visibility
    expression. For more information, please refer to this article:
    Conditionally Setting Column Visibility in SSRS.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to pass mysql query id through url parameter to a detail page

    Hi there,
    I am a newbie to JSP and I am trying to pass a url parameter to a detail page so that it will query a mysql data query to show the details of that query. How can I write the query on the details page so that it will display the query results on the page. eg select * From data Where = "passed_url parameter_ value". Please i need urgent help on this please.

    <Acknowledged>
    which should be strongly cautioned against even for "newbies".
    </Acknowledged>
    Right, but the code you posted will "work" in a very harmful wayNot always, I used normal Statements last year and I had no problems.
    Even with pretty capible code brakers trying to cause $h!t with my application.
    Just check for invalid datatypes, and for SQL Injections remove stuff like ' or replace with `
    But yes PStat... are the better way.

  • URL parameter to a detail page

    Hello,
    I a m having trouble with my url parameter which is not fetching the correct record. The code works -  and returns a word title and description; but it returns only the top record no matter which link is used. Please help.
    1. I have a master page with three url links which are sent to the detail page:
    <p><a href="sprydetail.html?word=integrity">integrity</a></p> 
    <p><a href="sprydetail.html?word=voice">voice</a></p>
    <p><a href="sprydetail.html?word=argument">argument</a></p>
    The sprydetail.html page looks like this:
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/word");
    var ds2 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/description");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <h1>{word}</h1>
    </div>
    <div spry:region="ds2">
      <p>{description}</p>
    </div>
    </body>
    My xml file looks like this:
    <tagwords>
    <tagword>
    <word>Integrity</word>
    <description><![CDATA["in·teg·ri·ty [in-teg-ri-tee] Show IPA noun 1. adherence to moral and ethical principles; soundness of moral character; honesty. 2. the state of being whole, entire, or undiminished: to preserve the integrity of the empire. 3. a sound, unimpaired, or perfect condition: the integrity of a ship's hull."]]></description>
    </tagword>
    <tagword>
    <word>Voice</word>
    <description><![CDATA["voyss [voyss] Show IPA noun"]]></description>
    </tagword>
    <tagword>
    <word>Argument</word>
    <description><![CDATA["arg-u-ment[arg-u-ment] Show IPA noun"]]></description>
    </tagword>
    </tagwords>

    1. I have a master page with three url links which are sent to the detail page:
    <p><a href="sprydetail.html?word=integrity">integrity</a></p> 
    <p><a href="sprydetail.html?word=voice">voice</a></p>
    <p><a href="sprydetail.html?word=argument">argument</a></p>
    Please remember that the URL variables are case sensitive, ie if the variable that you are looking for is Integrity then the variable cannot be integrity.
    The sprydetail.html page looks like this:
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/word");
    var ds2 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/description");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <h1>{word}</h1>
    </div>
    <div spry:region="ds2">
      <p>{description}</p>
    </div>
    </body>
    Change the above to
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <div spry:region="ds1">
      <h1>{word}</h1>
    </div>
    <div spry:detailregion="ds1">
      <p>{description}</p>
    </div>
    <script src="SpryAssets/SpryData.js"></script>
    <script src="SpryAssets/xpath.js"></script>
    <script src="SpryAssets/SpryURLUtils.js"></script>
    <script>
    var params = Spry.Utils.getLocationParamsAsObject();
    var ds1 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword[word ='"+params.word+"']");
    </script>
    </body>
    </html>
    First of all I prefer having the JS at the bottom of the document, not absolutely required. Next I have gone for one dataset showing a region and a detailregion. I have also extracted the URL variable placing this into params, the individual value params.word has been used in the xPath definition.
    Gramps

Maybe you are looking for