Get the line item id and the value dinamilly with AJAX in tabular form

Hello

I have a table with a Popup Lov presentation, when I select something in the Popup of some elements (in the form of table) must be filled with the value returned from a query that uses the ID of Popup Lov (return value) as a parameter.

How can I get this value and use only for this line?

Thank you
Alan

Hello

OK - that message sounds ok to me. You would like to check the javascript code after this line to see what he does - some alert() messages can help.

To add a blank line to a tabular presentation, you can try:

SELECT NULL Field1name,
NULL Fieldsname
FROM DUAL
UNION ALL
SELECT Field1name,
Field2name
FROM Tablename

or, if you use 4 Apex, you can add a few::AddRow(); in the parameter "execute when Page Loads ' the page attributes

Andy

Published by: ATD February 8, 2011 17:57

Tags: Database

Similar Questions

  • How to get the value of the list item

    Hi all
    How to get the value of the list item?

    I have a problem with the list item object
    in Oracle Forms.
    How can I retrieve the selected item from
    a list?
    I have not found any function as ' list. GET_
    SELECTED_ITEM()'...



    Thank you
    Bala

    Hello

    You get the value as any other element of forms:

    :value := :block.list_tem ;
    

    François

  • 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

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • AF:iterator and get the values of a particular line

    Hello

    I use af:iterator to browse a set of results in the original Version.

    < af:iterator binding = "#{backingBeanScope.backing_subscribe.i1} '"
    value = "#{bindings." SubscriptionPublicView1.collectionModel}.
    var = "row".
    ID = "i1" >

    At each iteration, I display a row of data since my VO in a box.

    Each box has a Link command.

    In general, the bean of my support, I do something like this to get an iterator attribute out of sight.

    Line currentRow = getIterator("SubscriptionPublicView1Iterator").getCurrentRow ();
    int sid = (Integer) currentRow.getAttribute ("Sid");


    However, in this case, I always get the "sid" from the first record in the collectionModel and not the "sid" which corresponds to the commandLink selected by the user.

    What is the best way to do when using an af:iterator?

    Thank you

    Joel

    Joel,
    Take a look at this video: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.html
    In there, Frank shows how to use af:iterator and af:forEach and to avoid warnings.

    It seems that you do not set the current line, so that you always get the value of the first row.

    Timo

  • 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.

  • Get the values and elements of object property

    If I have an object,

    MyObject = ({a: 3, b:5, c:8})})

    How can I get a list of items and their values according to their position

    Let's say I want to know what the name of the second element, how can I get the answer "b"?

    In addition, without knowing the name of the element how can I get the value of the second item "5"?

    Thank you

    Trevor

    It is, of course, a matter of Javascript, and the answer is not specific to InDesign, but I think you knew that already.

    The short answer is: you do not have. JavaScript does not have something on the positioning of the members of an object.

    There is no guarantee that b will remain the second element, and there is no way to get the members of an object by a sort of index rather than by their name.

    BTW, you write:

    MyObject = ({a: 3, b:5, c:8})})

    Which is too complex (extra parens) and missing a semicolon from the finish line. It is better written as:

    MyObject = {a: 3, b:5, c:8};

    You can iterate through the names of the keys of myObject, with i in myObject {...}, but still there is no guarantee of order. In ExtendScript, you could use myObject.reflect.properties to return the keys in a table, but you will get some extra junk and it's not really consider good practices to use the objects of reflection in non debug code.

    If you are wanting to do this, you are probably not using objects correctly.

    Can you tell us more about the problem you are trying to solve, please?

  • How to get the value of the previous item (XSLT/XPATH Hey gurus!)

    Hi all

    I'm building a rich TEXT model for a "letter of reference" - report. Sometimes, there are several lines in the data, which must be printed as one. This is due to consecutive temporary contracts that will be printed as a period of service.

    Here is an example of simplified data to illustrate the problem.

    < ROW >
    < START_DATE > 01/01/1980 < / START_DATE >
    < end_date > 01-01-1988 < / end_date >
    < / ROW >
    < ROW >
    < START_DATE > 01-01-1988 < / START_DATE >
    < end_date > 01/01/1990 < / end_date >
    < / ROW >
    < ROW >
    < START_DATE > 01/01/2000 < / START_DATE >
    < end_date > 01/01/2005 < / end_date >
    < / ROW >

    With the above data, I have to print two lines:
    01/01/1980-01/01/1990
    01/01/2000-01/01/2005

    I need to compare START_DATE to an item (except the first) with the end_date of previous, namely whether to print the end_date for this item or not. How can I get the value of the previous item?

    Thank you and best regards, Mathilde

    This allows to obtain the following end_date

    Try this


    ==================
    Current StartDate
    Current end date
    Next Start Date
    Previous end Date
    ================

    o/p
    ==================
    StartDate current 01/01/1980
    Current Date end 01/01/1988
    Next Start Date 01/01/1990
    Previous end Date
    ================
    ==================
    StartDate current 01-01-1988
    Current Date of end of 01/01/1990
    Next Start Date 01/01/2005
    Previous Date of end 01/01/1988
    ================
    ==================
    StartDate current 01/01/2000
    Current Date of end of 01/01/2005
    Next Start Date
    Previous Date of end 01

  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • 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 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 the property and the hierarchy specified in a global property, by javascripts

    Hi DRM team:

    I want to get a property value and precise when the hierarchy from. So, I thought that LocalNodeObjects method GetReferenceInHier (hierAbbrev), but the question is coming, I'm working on a global property, node. GetReferenceInHier (hierAbbrev) is not available. How can I get the value of the specified node hierarchy?

    Thanks for any response.

    Jim

    Hi Jim.cyciopes

    Try this-

    var worm is node. Version;

    var hier_ref = worm. HierByAbbrev ("name of your hierarchy");

    var node_ref is hier_ref. NodeByAbbrev (node. ABBREV);

    {if(node_ref!=null)}

    var propval is node_ref. VarValeurProp ("YourPropertyName");

    }

    Return propval;

    Thank you

    Denzz

  • get the values of the selected items to RichSelectManyChoice

    Hi all

    I have a RichSelectManyChoice

    When the user clicks on the "submit" button I want to get the values of the selected items...


    ----------------------------------------------------------page.jspx-----------------------------------------------------------------------------

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "untitled1.jspx" id = "d1" > "

    < af:messages id = "m1" / >

    < af:form id = "f1" >

    < af:panelGridLayout id = "pgl1" >

    < af:gridRow height = "100%" id = "gr1" >

    < af:gridCell width = '100% ' halign = "stretch" valign = "stretch" id = "gc1" >

    <! - content - >

    < af:selectManyChoice value = "#{bindings." CountriesView1.inputValue}.

    label = "#{bindings." CountriesView1.label}"id ="smc1.

    valuePassThru Binding = "#{suspect." Country}"="true">

    < f: selectItems value = "#{bindings." CountriesView1.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." CountriesView1.validator} "/ >"

    < / af:selectManyChoice >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < text af:button = "Button 1" id = "b1" action = "#{suspect.valide}" / >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    ---------------------------------------------------------------------------------------------------------------------------------------

    --------------------------------------------------------------------suspect.java-------------------------------------------------------------------

    package test.view;

    import com.sun.org.apache.xpath.internal.operations.String;

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

    public class suspect {}

    RichSelectManyChoice campaign private;

    String string = null;

    public suspect() {}

    ????????????????????????????????????????

    }

    public void valide() {}

    }

    {} public void setCountry (RichSelectManyChoice country)

    This.Country = country;

    }

    public RichSelectManyChoice {} getCountry()

    back country;

    }

    }

    ---------------------------------------------------------------------------------------------------------------------------------------------------------


    Anyone has an idea please?

    Hello

    You can use

    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get ("CountriesView1");

    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i)< str.length;="" i++)="">

    System.out.println (STR [i]);

    }

    in this loop, you will get all the values of selectManyChoice, for details see Ashish Awasthi (Jdev/ADF) Blog: using the selection Multiple (component selectManyListbox & selectManyCheckbox) in ADF

    hope it helps

  • How to get the value of the outputtext in javascript and send it to backing bean

    Hi Experts ADF,

    JDev Version 11.1.1.7.0

    I have the following: the value of the outputtext must be treated in javascript and the serverlistener method has the same value. I founded this value returns a string that wshould see the mouseover NIJ.

    Help, please. Thanks in advance.

    < af:column sortProperty = "#{bindings." OrderProposalReadClient.hints.exceptions.name}.

    filterable = "true" sortable = "true".

    headerText = "#{suiviewBundle.EXCEPTIONS} '"

    ID = "c16" >

    < af:outputText value = "#{row.exceptions}" id = "ot32" clientComponent = "true" > "

    < af:clientListener type = "mouseOver".

    method = "customJsFunction" / >

    < af:serverListener type = "mycustomserverEvent".

    Method="#{pageFlowScope.ChangeOrderProposalBean.handleServerEvent}"/ >

    < / af:outputText >

    < / af:column >

    JavaScript

    < af:resource type = "javascript" >

    var customJsFunction = function (event)

    {

    var exceptiondata = AdfPage.PAGE.findComponentByAbsoluteId ('ot32');

    AdfCustomEvent.queue ();

    Returns true;

    }

    < / af:resource >

    BackingBean

    public String handleServerEvent(EC ClientEvent)

    {

    Please let me know how to get the value that javascript code sends here.

    Let's say javascript sends the value of outputtext as "001".

    So, I have to check "001" in my list and return a value that appears on mouseover.

    }

    Kind regards
    Roy

    Hello, Roy.

    To use the value on another component of the user interface, I shows an example:

    -code of the page

    shortDesc = "shortDesc" >

    method = "customJsFunction" / >


    -the javascript code

    var customJsFunction = function (event)

    {

    var exceptiondata = event.getSource ().findComponent("ot32").getValue ();

    AdfCustomEvent.queue (event.getSource (),

    "mycustomserverEvent,"

    {param1:exceptiondata},

    (true);

    Returns true;

    }

    -OutputTextCase11.java

    public void handleServerEvent (EC ClientEvent)

    {

    String param = (String) ce.getParameters () .get ("param1");

    RichOutputText outputText = (RichOutputText) ce.getComponent () .findComponent ("ot1");

    outputText.setShortDesc (param);

    outputText.setValue (param);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (outputText);

    }

    I hope this helps you.

    RFH.

  • Get the value of the item application from another application

    Hello

    My apologies if this has been answered elsewhere, but it is very difficult to find something relevant when you are interested in the function V!

    My application consists of a number of different applications APEX that use the same cookie so that you can easily navigate between applications without having to log in again and to keep the same session id. Having separate applications allows to group pages and reuse the code easily.

    I have a requirement to be able to write the values stored in the fields in a single application to the database through a process on a page in another application. As a simplified example, that is to create messages and bookmarks of pages to display specific records in the database. The user will navigate through the system and find a record that they are interested, click on a button that displays a page from another application, enter in some details and then save the record in the database.

    The application of 'other' page knows the url of page called him, so that he knows also the application id and the page, but he doesn't know what file is being viewed. I can find the application and the page id is the name of the element that stores the primary key. I noticed that the V function also accepts the stream id, so it should be easy to then get the value by V (v_item_name, v_app_id). However it always returns null.

    I've simplified this by adding a page on the homepage (32561 application) process to insert a value in a table of test using a process page:
    insert into test values ('#'||V('P1_ID'));
    The result is #41
    So if I go to the page in the other application, I have a page process which is:
    insert into test values ('*'||V('P1_ID',32561));
    The result is *.
    I thought that maybe the other page of the application was ignorant of id flow, in that I spent, but change the above to:
    insert into test values ('*'||V('P1_ID',));
    The result is * 1 (the value of P1_ID in the other application)

    I'm doing something wrong? Have I misunderstood how the V function? Or is there another way I can retrieve the value of an element of application in another application?

    I am currently in 3.1.2, but I just tried this on apex.oracle.com (3.2) with the same results.

    Thank you very much
    Sara

    Hi Sara,.

    Have you seen the answer by Scott here -

    Re: Cross App State of Session

    Namely, using APEX_UTIL. FETCH_APP_ITEM

    APEX_UTIL.FETCH_APP_ITEM(
        p_item    IN VARCHAR2,
        p_app     IN NUMBER DEFAULT NULL,
        p_session IN NUMBER DEFAULT NULL)
    RETURN VARCHAR2;
    

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

Maybe you are looking for

  • my MacBook Air has been hacked?

    Suddenly a small 'i' (not sure) instead of in front of URL lock symbol - means I was hacked?

  • Firefox is not the content, especially the links.

    This is my problem in a screenshot: http://d.pr/i/DjkBThe content is not displayed and especially links. Links aren't there and sometimes the text is displayed, but all Web sites are dysfunctional because of this. Here is a link to a screenshot showi

  • Your screen increases beyond the xapacity of the screen display. I want to uninstall firefox completely.

    Only on firefox in my yahoo account, the magnification exceeds the display screen. It is a nuisance. I want to read the screen in a blow without had to keep scrolling to the right. How can I reduce the magnification on firefox. This does not happen o

  • Problem of monitor cable

    HPw1907 monitor, Vista 64-bit. I want to use a longer cable than the foot 6 that came with it. I tried an extension and also a replacement foot 10 with the same results. The images are so great that they don't even fit on the screen. I tried to set t

  • Windows 7 disabled after upgrade failure

    I tried to update my laptop Windows 7 to windows 10 few days back using Windows 10 Upgrade Advisor. He had an oem version of windows 7 (and I had lost all the documents related to the Windows key). The update has started and the computer restarted to