Get the value of point of contact OFA

Hi guys,.

I am new to oaf, so this may seem like a very novice question. I tried several things, but could not solve it.

There is an advancedtable region in my page. The first column of the advanced table has been put to contain elements of binding while the rest of the columns are messagestyledtext. The advancedtable would be filled with a few details of the item with the first column is the item number. The requirement is to fill in the details of article on click in the item number which essentially appear as hyperlinks.

I try to get the number of the first column.

pageContext.getParameter ("itemnumber");    ['itemnumber' is the ID of the binding inside the column inside the advancedtable element]

This returns null, so I can't get the item number. Can someone please help me solve this?

Thank you

Sasmas

You can see the bottom of thread for "the line being returned as null Reference".

https://community.Oracle.com/thread/581600

As an alternative, you can add parameters, p_item_num to the PPR method with value in the form ${oa.current.ItemNumber} (if the number represents the VO attribute name)

In the processFormRequest, get the value using "pageContext.getParameter ("p_item_num")"

Therefore, the code will be

 public void processFormRequest(OAPageContext pageContext,
                                   OAWebBean webBean) {
        super.processFormRequest(pageContext, webBean);
        OAApplicationModule am = pageContext.getApplicationModule(webBean);
        String event = pageContext.getParameter("event");
        if ("itemLinkClicked").equals(event)) {
        {
               String itemNumber = pageContext.getParameter("p_item_num");

                Serializable[] parameters = { itemNumber };
                am.invokeMethod("fetchItemDetails", parameters);  

        }
    }

Thank you

Tags: Oracle Applications

Similar Questions

  • How to get the values of two points separated in Javascript checkbox

    Hello

    I want to get the values of an element of the checkbox as a form of separted from the colon as what we get in the database. For example '10:11:12 '.

    When I tried to write a code like this it does not work. Please tell me where I'm wrong.


    function getValues (pcheckbox) {}
    cb_name = html_GetElement(pcheckbox+'_0').name;
    cb_array = document.getElementByName (cb_name);
    var val_str =': ';
    for (i = 0; i < cb_array.length; i ++)
    {
    If (cb_arraychecked)
    {
    val_str += cb_array [i] .value + ':';
    }
    }
    html_GetElement (P206_TEXT) .value = val_str;
    }



    I try to call the function getValues ('P206_CHECK');

    Thank you and best regards,
    Vikas Krishna

    Hi Vikas,

    Try this-

    (1) create a checkbox element called PI_CHK
    (2) in the Option of the attributes of the form element, type onclick = "getValues () '"
    (3) create a named text field point PI_TEXT

    Enter the HTML of the Page Header Section

    
    

    Concerning

    Paul

  • How to get the value of a * Global * Application point of JS

    If we declare an element of the request, which is NOT a level of the page in question, how we get the value of this element in an Action dynamic JavaScript on a page?

    For example, we declare a "global" variable as an Application named DEFAULT_AJAX_SEPERATOR and set its value with a calculation of the claim "on the new Instance" a moment later, on a page of the application, we would like to get the value of DEFAULT_AJAX_SEPERATOR via JavaScript.

    Page* level syntax element...
    $v( 'DEFAULT_AJAX_SEPERATOR' );
    .. How does not work. I don't understand why it's like $v can only access the elements on the page. However, the APEX is clearly able to get these global values since, for example, they are available in PL/SQL blocks. Also, I know that it is on the session object, because I can see it when viewing the session.

    So... What is sauce secret for obtaining this value?

    Thank you

    -Joe

    Hello
    Use something like this in your javascript code.

    var appItemVal = "& DEFAULT_AJAX_SEPERATOR.";

    Thank you
    Naidu789.

    If you think, I responded to your question, please mark as answer.

  • How to get the value of a field of flex?

    Hello

    I have a page of the OFA, where flexfield is on the 2nd tab of the page.
    When the page loads, 1 tab loaded. At this point, I want to enter the value in the flex of the 2nd tab type?

    I added this element Flex type using customization on the 2nd tab...

    How to get the value in the field?

    Values Flexfield
    How to get the value Flexfield OAF page Runtime
    Re: Get flexfield value during execution
    Requirement DescritiveFlexField

    Thank you
    -Anil

  • Scatter chart: get the value of the label XYcursor

    Measurement Studio Visual Studio Professional 2012 2013 using,.

    On a scatter chart, it is possible to get the value of the actual label for a xycursor?

    For example, my label displays a date-time on the X axis format, it looks like: [04: 35:49; 0,27101]

    It is possible to get this value? For example, if I want to display in a TextBox?

    I am able to get the xycursor. Which and xycursorYposition but not what I want.

    Thanks for any help!

    Here is a solution to my question:

    {

    Get xy cursor index of the point in plot
    int index = xyCursor1.GetCurrentIndex ();

    Get values at that time (in the plot)
    Double x;
    Double y;
    scatterGraph.Plots [0]. GetDataPoint (index, ByRef x, y);

    X value to the DateTime format & convert to the format of the time
    DateTime t = (DateTime) NationalInstruments.DataConverter.Convert (x, typeof (DateTime));

    string time = t.ToString("hh:mm:ss");

    }

    It is also possible for which xycursor and convert it in the same way.

  • Get the value of the question page before submitting.

    Hello all, I use the Application Express 4.2.5.00.08. I have a question on getting a value for a page element before the page is sent. I have a dynamic action:

    Action: Moving the mouse (on a region/State)

    Real Action: $('a[href*="39"]').each (function (index) {}
    lnk = $(this) .attr ('href');
    $(this) .parent)
    . Parent ('tr')
    .Attr ("href data ', lnk")
    {.mouseover (function ()}
    $(this) .css ("cursor", "pointer");
    Lrowrequired var = $(this) .closest ("tr"),.
    BLOCK = lRow.find("td[headers=BLOCK]").text ();
    $x('P39_BLOCK').value = BLOCK;
    })
    {.mouseleave (function ()}
    $(this) .css ('cursor', 'default');
    })
    });

    I am successfully able to get the value of the line while I'm hovering above the report (and P39_BLOCK is refreshing). But, in this case, the value is not set whenever it changes. My question is, if I need to use this value (say, put an another page element when P39_BLOCK is changed) without submitting the page, how is that possible?

    Kind regards
    MFadel.

    Hi Mohamed,

    That's what bothers! In my first dynamic action, I have real action 'Execute JavaScript Code', which doesn't have a property "Page items to show.". And I need this code to retrieve values from the row of the report.

    On the right, you will have the option 'page elements to present' the dynamic JavaScript actions. Only the PL/SQL. And you do not need to handle things strictly the use of javascript. JavaScript is usually used to manipulate items on the page itself, not the things on the server/session). If you need to present before your PL/SQL block, you can either use AJAX call, or you can create a dynamic action of PL/SQL that runs before your JavaScript. Put this field in the 'submit' page elements and the block of code, just put null;

    Here's a sample in javascript, ajax call. It pushes three elements of the page in the session or in the scope where APEX can access their values. You can return values through AJAX if necessary also:

    $.ajax ({type: 'POST',})

    URL: "wwv_flow.show",

    data: {}

    p_flow_id: $('#pFlowId').val (),.

    p_flow_step_id: page,.

    p_instance: $('#pInstance').val (),.

    "x 01': P39_PAGE_ITEM_1, '.

    "x 02': P39_PAGE_ITEM_2, '.

    "x 03': P39_PAGE_ITEM_3, '.

    p_request: 'APPLICATION_PROCESS = YOUR_PROCESS_NAME'

    },

    success: function (data) {}

    Console.log (Data);

    }

    });

    Then you would have a PL/SQL process called YOUR_PROCESS_NAME that can refer to variables such as

    my_var_1 VARCHAR2 (100 CHAR): = APEX_APPLICATION. G_X01; -Javascript password

    my_var_2 VARCHAR2 (100 CHAR): = APEX_APPLICATION. G_X02; -Javascript password

    my_var_3 VARCHAR2 (4000 TANK): = APEX_APPLICATION. G_X03; -Javascript password

    Can I use in my "PL/SQL procedure? Because in the end, I'm trying to use this value in a PL/SQL procedure:

    To answer your last question, Yes, you can use the P39_BLOCK in your PL/SQL, how you demonstrated above, but you must submit in the 'page' referred to submit box, otherwise it uses the last value that has been submitted.

    What I'm not clear, is do you need really value before executing the PL/SQL or you just want your PL/SQL? If you just try to pass it in PL/SQL and then just use the dynamic action of PL/SQL and pass it by using the "elements of the page to present. '' Remember, if you need a new value to publish on the page, you will need to put these fields in the box "items to display the page.

    If you only need the value of front page because you will use in javascript, somewhere, then reference it with jQuery or js and then use AJAX to continue your treatment.

    A third way, you could do, is to create a dynamic action of PL/SQL that runs before the javascript code that is null; in the body of PL/SQL, but put the P39_BLOCK in the "elements of page to submit" box. Who will just send the page element, and then take action dynamic javascript. But, I don't know why you would do that since you can't have the value submitted for javascript to use.

    Hope that all makes sense.

    Jen

  • How to get the value selected inside the forEach loop

    Hello
    I have foreach loop with a link inside command. It looks like in below:

    * < af:forEach items = "#{PagingBean.pages}" var = "item" > * "
    * < text af:commandLink = ' #{point} "id ="cl1. "
    * actionListener = "#{PagingBean.pageLinkClicked}" / > * "
    * < af:spacer width = "10" height = "10" id = "s1" / > *.
    * < / af:forEach > *.

    where PagingBean.pages is an array of integers.
    Now the links look like this * 1 2 3 4 5 * I want to get the value of the clicked link.
    Anyone please help me to get the value of commandlinks clicked in the bean

    Hello

    How about the text in the actionListener for the clicked commandLink and process accordingly?

    Ex:

     
                           
                           
    
    
        public void pageLinkClicked(ActionEvent actionEvent) {
            // Add event code here...
            System.out.println(((RichCommandLink)actionEvent.getSource()).getText());
        }
    

    Arun-

  • Get the value of the item displayed in emails

    How can I get the display value one item and put in to the email to send?
    I know how to send emails, but I don't know how to get the value of the point in the emails.
    use the Application Express 4.1.1.00.23.

    Change the item P55_MANAGER_INFO and Save Session State value Yes if not already together and try again, it should work now

    because I suspect that you not save the displayed item session state.

  • How to get the value of the global element using javascript or ajax!

    Hello!

    How can I read at global(point application created in the shared components) using ajax or javascript?
    You can imagine that I need to get the value of this element by function as:
    -----
    Function getText() {var itemVal = $x ('MY_GLOBAL_ITEM') .value;}  Return itemVal; }
    -----
    .. .but I can't do it because it is not made to couse of the page it is global element! so, anyone know no work around to do?
    I know that I can make point page and read the value of that, but not what I really need!
    If I have 100 pages and all pages need to use my function, it would take 100 Articles :) - that's why its no good average!

    Please, share your ideas!

    THX

    Rafix,

    You must use a little AJAX to retrieve a request element value. Three steps in this solution. Implementation of a callable JavaScript function, creating an application process on the request and call the JavaScript function with dynamic action.

    1 set up a JavaScript function that can be called by:

    This function calls the process of application level which has a visibility of the element of your application and then returns the value of points.

    Edit your page and JavaScript code according to the code in the 'function and Variable global statement' of your page. You can also add to the model page, that you use, but you also have to encapsulate this code in the script tags.

    getAppItem = function(pItemName){
        var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_APP_ITEM',$v('pStepId'));
        get.addParam('x01',pItemName);
        gReturn = get.get();
        get = null;
        return gReturn;
    }
    

    2. creating an application on request process:

    The application of level process has visibility to your application-level element. It is to retrieve the value of points and it prints the htp buffer. Essentially, this acts as a way to return the values of AJAX calls (the javascript function we set previously);

    go to the shared components > procedures > Create.

    Point process: "We Demand: run this application...". »
    Name: GET_APP_ITEM
    Type: Anonymous PL/SQL block

    declare
       -- get the item name passed into the JavaScript function.
       app_item_name varchar2(30) := apex_application.g_x01;
    begin
        -- print its value to the buffer
        htp.p(v(app_item_name));
    end;
    

    3. call the JavaScript function with dynamic action:

    The function call allows to specify an application-level element name and have its returned value. The trigger event is specific to what you need, but the action must be of type to run JavaScript code. In my case immediately the value of P1_NUMBER to my value of demand points. This code doesn't have to be in a dynamic action, but it helps to stay organized. you could call it from any script tag.

    $s('P1_NUMBER',getAppItem('MY_APP_ITEM'));
    

    See you soon,.
    Janet Tyson

  • Set and get the value of the item application in Javascript

    Hello guys,.
    Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).

    Thanks in advance!

    To get the value of an element, use the following syntax:

      alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
    

    to set the value that you have just made

      $x("MY_TEST_ITEM").value="Set to this value";
    

    Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.

  • How to get the value of the checkbox

    Hi all
    Good evening

    I want to get the value of the checkbox.
    to do this, I wrote like this
    OAMessageCheckBoxBean cbb = (OAMessageCheckBoxBean) webBEan.findChildRecurssive ("item240")
    String val = cbb.getvalue (pageContext) m:System.NET.SocketAddress.ToString ();

    Val getting the value only when the check box is selected.

    Suppose that the checkbox is unchecked that day, I had exceptional POINTER NULL.

    so
    I tried the following way alsoo
    String val = pageContext.getParameter ("item240");

    Here val back "on" only when the box is checked.
    otherwise NULL value returnss.

    but I want to get the value is 'Y' when I ticked the box
    otherwise returns NULL valued.

    already, I put the box alsoo properties
    Verified: Y
    Disabled: N

    pls tell me

    Hello

    use

    Try
    {
    OAMessageCheckBoxBean cbb = (OAMessageCheckBoxBean) webBEan.findChildRecurssive ("item240")
    Test string = cbb.getvalue (pageContext) m:System.NET.SocketAddress.ToString ();
    }
    catch (System.Exception e)
    {
    String test = "";
    }

    in this way, you can handle the null pointer exception.

    Thank you
    Gerard

  • How to get the value of viewattribute and how to assign the text field. URG

    Hi all,
    I created messagestyled text programmatically and I want the value of viewAttribute.
    I don't know how to define the instance of the view and display attribute.

    I tried this way, it is what is called the vo class but after that i dnt know how to set

    Here the code that I used...

    (1) I create the messagestyled text
    OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

    OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

    (2) and I called the view object
    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

    (3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

    (4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

    I'm new to OFA. It's Urgent.

    Thanks in advance
    Fabrice

    Hello

    use
    Import oracle.jbo.Row;

    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
    Line line (Row) = ccview.first ();
    Test String = (String) row.getAttribute ("");

    then to set the value of the text of messagestyled

    OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
    bean.setText (test);

    Thank you
    Gerard

    Published by: Gauravv on August 4, 2009 09:38

  • How to get the value of AF:InputText in Jdev 10.1.3

    Hello..
    I have a java method that needs to get the value of an input field 'ADF form' and make some calculations.
    How can I get a value of this field and the number cast.
    Could someone help me...
    Thank you

    Published by: user10950113 on 03/30/2009 13:54

    Hello

    I tried the below in JDeveloper 10.1.3.4. * #{bindings. Attribute1.inputValue} * points to the value of your inputTexts.

    public String yourMethod() {
        System.out.println(getBeanValue("#{bindings.Attribute1.inputValue}"));
        System.out.println(getBeanValue("#{bindings.Attribute2.inputValue}"));
        System.out.println(getBeanValue("#{bindings.Attribute3.inputValue}"));
        System.out.println(getBeanValue("#{bindings.Attribute4.inputValue}"));
    }
    
    public Object getBeanValue(String el){
        FacesContext fc = getFacesContext();
        return resolveExpression(fc, el);
     }
    

    To cast a value to Long Integer number, try something like this.

    String temp1 = (String)getBeanValue("#{bindings.Attribute1.inputValue}");
    oracle.jbo.domain.Number Num1;
    try {
        Num1 = new oracle.jbo.domain.Number(temp1);
    } catch (SQLException e) {
        // TODO
    }
    

    Kind regards
    Amélie Chan

  • How to get the value of the embedded content Session Variables

    Hello world.

    I have the following requirement: I want to incorporate a web page of external non-Oracle-BI in my dashboard of Oracle BI. I need the Session Variables (for example NQ_SESSION. USER) to control my external web page. My question is how can I get the value of the Oracle's BI dashboard Session Variables.


    Thank you.

    Allen

    Have you used the narrative mode? The narrative point of view to add html customized to your report, using the values in the table view. @2 refers to the second column in your report, @3 to the third, etc.
    By using an iframe, you can open an external Web page and with @2, you can pass the value of the variable user to the external Web page.

    Kind regards
    Stijn

  • HW 2 get the value to select only one option selected by the user in the bean support

    IAM using the select only one option button that is filled during execution.

    I want to get the value selected by the user of a choice selection in the bean to support for other operations of... .IAM using this method, but I got a null pointer exception.

    Public Sub test (ValueChangeEvent tokenChange)
    {
    Integer tokenIndex = (Integer) tokenChange.getNewValue ();
    DCIteratorBinding tokenListIter is getBindings1 () .findIteratorBinding ("TokenIDVOIterator");. in this line null pointer exception
    Token of the line = tokenListIter.getRowAtRangeIndex (tokenIndex.intValue ());
    currenttoken = (Number) token.getAttribute ("TokenId");
    System.out.println ("token ID selected:" + currenttoken);

    }

    I want to know if there is any method to get the value of the value selected by the user to select a choice...

    pls help? //

    3 words:

    "research on the forum.

    asked and answered countless times.

Maybe you are looking for