Header of page-how to pass a dynamic value?

Hello

I created a page - which redirects to an external link.
I have following code in the page header.

< META HTTP-EQUIV = "refresh" CONTENT = "2; URL = XYZ.com ">".
< b > < p > < p > < p > < p > < p >

< /b >


When I run this page, redirects after 2 seconds to this particular url: xyz.com.

My query is: Ii would there the URL value dynamically.

I tried with the following code in the header:

var abc = $v ('P97_TEST');
< META HTTP-EQUIV = "refresh" CONTENT = "2; URL = abc ">".
< b > < p > < p > < p > < p > < p >

< /b >

where P97_Test is an element of text field.

But he directs me to a url: my_apex instance/abc. It does not work.

No idea how to pass the value of the url dynamically? I need to get the success of a particular URL.

Thank you
Archana

Dear Archana,

I found the following solution work:

(1) create an element on the page to the URL (in this example, P3_URL)

(2) create a pl/sql process
type: PL/SQL anonymous block
address the point: on the laundry before header
Source:

begin
:P3_URL := 'http://www.google.de/';
end;
-- this can be as sophisticated as you need
    

(3) according to the Page Properties / header before HTML


Marc

Tags: Database

Similar Questions

  • How to pass a dynamic value to display the criteria

    Hello

    I have a requirement to indicate the hierarchy. Here, I want to spend the connected in the id of the Manager to the view criteria so that the hierarchy can change based on the connected Manager.

    Can anyone help how can I accompolish this.
    Can I use the binding variable to pass the value to display the criteria?

    If you get the Director based on the user id, you can run the display criteria based on the user, as follows:
    http://jobinesh.blogspot.com/2010/10/how-to-set-bind-variable-values-at.html

    Ensure that the method is executed until the viewer of the hierarchy is responsible.

    Thank you
    Nini

  • How to pass the return value of VO1 VO2 parameter?

    Hi friends,
    I have two of VO, in a page.
    In the first VO1 I pass 2 parameters, then this vo return a value unique ex: 1234
    Now my second VO2 I want to pass the parameter, the value of first result VO1.
    How to get there.
    But I don't want to capture VO1 result in the form value.

    Could you please any body explain how to achieve this requirement.

    Thanks in advance.
    Jocelyne.

    RAMU

    //Modify the code as per your requirement
       String position = null;
       //First VO
       OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1");
       if(vo!=null)
      {
                     vo.executeQuery();
                     OARow row = (OARow)vo.first();
                     position = (String)row.getAttribute("PositionCode");
       }
    
     //Pass the same value to the new VO as your value returned will be into position variable
    
       OAViewObject vo = (OAViewObject)findViewObject("ManagerVO1");
       if(vo!=null)
      {
                     vo.setWhereClauseParam(0,position );
                     vo.executeQuery();
       }
       
    

    Kind regards
    GYAN

    Published by: Gyan on February 23, 2011 01:30

  • How to pass the dynamic parameter to a function of database in OBIEE

    Hello

    I have a requirement like this. I need to create a report in OBIEE which stood in the discoverer. Now in the Scout report there is a calculated item in the worksheet based on the pkg.functions database. The user setting which gives the runtime parameters are then passed to the discoverer calculated elements dynamically. But I am not able to do this in OBIEE answers.

    Can someone tell me step by step how I can able to transmit the values of user setting selected in the level of response OBIEE.

    The example:

    GET_COMM_VALUE_PTD ('cost AFE & commitment'. ID of the AFE,: ' name at that time (AFE) ', 'cost of the AFE & commitment '. Salt of data, 'cost of the AFE & commitment '. The org ID)

    GET_COMM_VALUE_PTD - database function
    ('Cost AFE & commitment'. ID of the AFE,: ' name at that time (AFE) ', 'cost of the AFE & commitment '. Salt of data, 'cost of the AFE & commitment '. org Id - settings...: "period Name (AFE)" is the dynamic setting of the execution by the user.


    Help, please.

    Thank you

    Titas

    Hello

    Please see this link.

    http://satyaobieesolutions.blogspot.in/2012/08/database-evaluate-function-database.html

    This can be help you.

    Thank you
    Satya

  • How to pass the same value in addition to elements

    Hello

    I need pass a node id to several elements.
    How can I do this?

    my selection is
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status, 
           level, 
           "EXISTING_LICENSE" as title, 
           null as icon, 
           "ID" as value, 
           null as tooltip, 
    'f?p='||:APP_ID||':2:'||:APP_SESSION||'::NO::P2_UPDATE, P2_ID_LIT:'||id  as link
    from "#OWNER#"."LIT_REPORT"
    start with "P_ID" is null
    connect by prior "ID" = "P_ID"
    and the P2_UPDATE I need to add article anoder of my same example page: P2_TEST

    Hello

    In your URL, there is a space between P2_ID_LIT and P2_UPDATE. Removeing the space will solve your problem.

  • How to pass a variable value into a hyperlink?

    Hello

    I put a variable value by using <? xdoxslt:set_variable ($_XDOCTX, 'tstview', concat ((xdoxslt:get_variable($_XDOCTX,'env_url')), (xdoxslt:get_variable($_XDOCTX,_'testpage')))? >)
    I am able to the value of the variable is displayed correctly. I would use this value to create a hyperlink by specifying {$tstview} {ID} in the text of the hyperlink box. However, when I do that, I get the error message: Undefined Variable: "tstview."

    How can I pass the value of the variable to create a hyperlink? Is there another way to do this? I want to be able to build the hyperlink in a dynamic way. Please let me know.

    Thank you!!
    
    

    or try

    {xdoxslt:get_variable($_XDOCTX,'env_url')}{ID}
    
  • How to pass all the values of an element of the shuttle in AJAX

    Hello

    I'm trying to pass the value from the point of the shuttle to a dynamic process using Ajax. But if I use shuttle_right, I'm able to get only the first selected value. If I simply give the shuttle it returns null.
    Please let me know how I can get the set of values separated by ':'

    Thank you
    Vikas

    Vikas,

    Here's a little snippet that should go you:

    var shtVals = '';
    var shuttle = new dhtml_ShuttleObject("PXX_SHUTTLE_LEFT","PXX_SHUTTLE_RIGHT");
    
    for (x=0; x
    

    Kind regards
    Dan

  • How to pass parameters/field values from one screen to another screen in blackberry

    Hi all

    I have two screens in my Application UI that is, login screen and continue the screen.

    Login screen has some fields of seizure as a user name and password and default language (French or English) for the application (Group of radio buttons).

    There is a button for the next who directs the user to another screen.

    This second screen has an input field. This input field is mandatory. The user can only go further if it is entered in this field of entry with valid values (i.e. numbers only).

    This screen has continue button so that the user can go further is on the next screen after you have entered a valid value in the field.

    Now, when the user clicks the continue button on the second screen so I have to validate the credentials of the user, he has provided in the first screen. Also, I need set the locale for the language he has provided to the login screen.

    So, to summarize.

    (1) user enters user name, password and language on the first screen. The user clicks NEXT and goes to the second screen.

    (2) on the second screen, the user enters a name click continuous. ((3) user credentials are validated, defined locale and user is illustrated below third screen).

    So, my question is how do I access username, the password, the language of the first screen in the second screen fieldChanged method?

    fieldChanged second display method will be called when user enter a value class we second screen and clicks continue.

    Please advice

    Thanks in advance...

    Store text values in the fields in your application class, and then pass it as a reference to each form or retrieve your instance of UiApplication and cast to the name of your class.

    public class MyApp extends UiApplication {   public String username;   public String password;   public String language;
    
    }...
    
    // Your first screen
    
    public class MyFirstScreen extends MainScreen {   private MyApp _app;
    
       public MyFirstScreen()   {      _app = (MyApp) UiApplication.getUiApplication();
    
          // Set your fields      // AS AN EXAMPLE, you can use:      // _app.username = field1.getText();      // _app.password = field2.getText();      // _app.language = field3.getText();   }}...
    
    // Your second screen somewhere
    
    public class MySecondScreen extends MainScreen {   private MyApp _app;
    
       public MySecondScreen()   {      _app = (MyApp) UiApplication.getUiApplication();
    
          // Access your fields      // you can use:      // _app.username      // _app.password      // _app.language   }}
    

    Now, this is one of the many ways to do it, but it works in its simplest form.

  • How to recover the dynamic value of ADF text entry?

    Hello

    I'm developing an application where this scenario occurs.

    1. a dynamic text input for the click on the radio button, must be created.  (I am able to do this).

    2. I am entering a value in dynamic text that is created at run time.

    How to get the value of dynamic text in my java code?

    Or what property must be used to retrieve dynamic data of text entry?

    Hello

    Here is a case that as it is similarly instead of your box here a commandbutton control.

    JSPX code

    actionListener="#{viewScope.Mbean.ActionLis}"/ >

    track 1:

    1. here you using "setValueChangeListener".

    2. with the help of MethodBinding to invoke the listener in the same class itself.

    3 MethodBinding and el class has been deprecated in this approach.

    the bean code

    Import javax.faces.context.FacesContext;

    Import javax.faces.el.MethodBinding;

    Import javax.faces.event.ActionEvent;

    Import javax.faces.event.ValueChangeEvent;

    Import javax.faces.event.ValueChangeListener;

    Import oracle.adf.view.rich.component.rich.input.RichInputText;

    Import oracle.adf.view.rich.component.rich.layout.RichPanelBox;

    Import oracle.adf.view.rich.component.rich.nav.RichCommandButton;

    Import oracle.adf.view.rich.context.AdfFacesContext;

    public void ActionLis (ActionEvent actionEvent) {}

    Add the code in the event here...

    RichInputText rt = new RichInputText();

    rt.setAutoSubmit (true);

    Class parms [] = new class [] {ValueChangeEvent.class};

    MethodBinding mbind = FacesContext.getCurrentInstance () .getApplication () .createMethodBinding ("#{viewScope.Mbean.valuchnglis}", parms);

    rt.setValueChangeListener (mbind);

    ((RichCommandButton) actionEvent.getSource ()) .getParent () .getChildren () .add (rt);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (((RichCommandButton) actionEvent.getSource ()) .getParent ());

    }

    {} public void valuchnglis (ValueChangeEvent valueChangeEvent)

    System.out.println ("value" + valueChangeEvent.getNewValue ());

    }

    Track 2:

    1. here you using "addValueChangeListener".

    2. you need an additional class to do so.

    3. you can retrieve the value of processValueChange.

    the bean code

    Import javax.faces.context.FacesContext;

    Import javax.faces.el.MethodBinding;

    Import javax.faces.event.ActionEvent;

    Import javax.faces.event.ValueChangeEvent;

    Import javax.faces.event.ValueChangeListener;

    Import oracle.adf.view.rich.component.rich.input.RichInputText;

    Import oracle.adf.view.rich.component.rich.layout.RichPanelBox;

    Import oracle.adf.view.rich.component.rich.nav.RichCommandButton;

    Import oracle.adf.view.rich.context.AdfFacesContext;

    public void ActionLis (ActionEvent actionEvent) {}

    Add the code in the event here...

    RichInputText rt = new RichInputText();

    rt.setAutoSubmit (true);

    rt.addValueChangeListener (new vc());

    ((RichCommandButton) actionEvent.getSource ()) .getParent () .getChildren () .add (rt);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (((RichCommandButton) actionEvent.getSource ()) .getParent ());

    }

    Import javax.faces.event.ValueChangeEvent;

    Import javax.faces.event.ValueChangeListener;

    public class vc implements {ValueChangeListener

    public void processValueChange (ValueChangeEvent valueChangeEvent)

    {

    System.out.println ("value of the class" + valueChangeEvent.getNewValue ());

    }

    }

    Thank you

  • How to pass a variable value to a Manager click for a function of ACEs?

    I wish I could click a button, pass a value to a variable, then pass this variable to assess within the case routine.

    MXML:

    Click = "someClickHandler (Event);    <!- like the variable to prepare you with the click-> handler

    AS:

    public void genericFunction(event:MouseEvent):void

    {

    Switch (VariableName)

    {

    CASES1:

    action;

    Action2;

    break;

    CASE2:

    action;

    Action2;

    break;

    .

    .

    .

    caseN:

    action;

    Action2;

    break;

    }

    }

    Thank you.

    The click handler is your function to set how you want.

    MXML

    a click = "someClickHandler (event, 5).

    AS

    public function someClickHandler (event: MouseEvent, someVar:int): void

    {

    switch (someVar)

    ...

  • How to pass the numeric value in the format hexadecimal teststep parameter?

    Hello

    My teststep is a custom c# function that has a parameter of type Number (byte).

    How can I insert the data to hexadecimal? (Step parameters + tab Module)

    Can I change like field insert in labview in decimal, hexadecimal, binary?

    THX

    Just use the notation '0 x '.  For example, to 10 (decimal), you will place in "0xA".

  • How to pass the Boolean values of a façade in other block?

    Hi all

    I have a main façade with several Boolean button for example:

    N1-dncc-01

    N1-dncc-02

    N1-dncc-03

    -

    -

    -etc. And for each option, I event structure that calls the other program of labview in subgroup of experts.

    So now that my problem is when I pressed the button dncc-n1-01 its Boolean values should be passed to the program which I am calling the Sub-group of experts.

    So, it is possible? I tried with ref and property of node, but I failed. I guess that I am not on the correct path.

    Thanks in advance

    Pals


  • How to pass a prompt value to the RPD.

    Hi all, I have a unique requirement.

    I need to create a quick Date.
    After have created you, I need to move to the physical layer of the repository.
    I need to create a view in the physical layer in the view has a function that takes the fast values.

    This view would be my dimension with a single record date, based on the value quickly past.
    and I would join this point of view (table Date, date dimension) to all the other tables.

    Please guide me in this issue. It is very crucial and urgent.

    I didn't know where to start...

    Hello

    Try to create a Server Variable or the Session Variable in RPD and use it in your level of content where you actually bring the table.
    So, whenever you make this table by default you will pass the variable, select guest... and you must set the value of the variable through confirmation.

  • [ADF, JDev12.1.3] How to pass an Integer value sets to a workflow, and then it reads a bean?

    Hallo,

    for a test, I need to set the value of an entry of a stubborn workflow used as dialog...

    Then in the bean that is associated with a known fragment of the btf, I need to read the value, so I used this code...

    Integer protocol = (Integer) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("protocol");
    

    This exception triggers...

    javax.el.ELException: java.lang.ClassCastException: java.lang.Long cannot be cast java.lang.Integer

    What's wrong?

    Thank you

    Federico

    If I remember correctly, in JSF that EL has Long type so this probably also applies to ADF.

    For example, you can cast a Long or you can use the type field (from some managed bean) an integer as an input parameter.

    Dario

  • How to pass Dynamic values in the LOV

    Dear all,
    Good evening

    I gave to 02:00

    1 is for of the Lov
    1 is for AM pagelayout

    I'll pass the client id for my lov

    This client code receives well the current page

    How to pass the client code to lov

    pls guide me

    Hello

    Copy the following code

    xxcrmCompPersPKVOImpl vo = getxxcrmCompPersPKVO1();
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam (0, ooportunityid);
    vo.executeQuery ();

    OAListOfValuesBean sb = (OAListOfValuesBean) webBean.findChildRecursive ("xxcrmPeriodicBillingContractLovRN");
    OAApplicationModule am2 = (OAApplicationModule) pageContext.getApplicationModule (sb).

    OAViewObject vo = (OAViewObject) am2.findViewObject ("xxcrmPeriodicBillingContractNoVO");
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam (0,1001);
    vo.setWhereClauseParam (1,1024);
    vo.executeQuery ();

    Thank you
    Gerard

Maybe you are looking for