Af:inputListOfValues: updating all attributes from 'List return values'

Hi all,
In my ViewObject, I have one LOV enabled Transient attribute (in order to display content meaningfull for the end user)
In the List return values, I have one extra return value, which updates the real foreign key attribute
When user launches LOV popup and chooses one of the vaules, both of my attributes from the List return values are updates properly
However, when the user entered value directly (so, does not launch LOV popup), then the real foreign key attribute has not been set
What to do in order to set foreign key attribute in both cases ?
Maybe with one valueChangeListener and autoSubmit enabled ?
Any idea ?
P.S. Off topic : Seems thas password finder for my OTN account does not work, is there any way to "unite" my posts from my old account with this new one ?
Edited by: user11208293 on May 28, 2009 8:49 AM

Ok. It seems that no solution for this problem, so end user cannot directly enter the value in the af:inputListOfValues (into transient View attrbibute), since there no way to update the real foreign key value. The only option is to enable LOV not for transient, meaningfull attribute, but for f.k. attribute (which does not mean nothing for end user)
What you doing in this situation ?
Should I discard af:inputListOfValues ?
P.S. just to note : LOV Autocompletion, as described in the Steve Muench atricle :
http://www.oracle.com/technology/oramag/oracle/09-jan/o19frame.html
works only if user presses Tab button (after entering value in the LOV filed).
It does not work if user directly enter into LOV field, and then press some command button by the mouse
Edited by: Cvele_new_account on May 28, 2009 11:38 PM

Similar Messages

  • Read more than one attribute from list of values record

    Hi,
    I am using Jdev 11.1.1.3.0.
    I have the following situation,
    have defined a read only view (schools information) which is a list of values for schools information ( schoolId, school name and school code) , I have to execute Query for that view as an Invoke Action in the executable s of the page,
    I need three attributes (A, B, C) in another view (name it student's school) to be set to the school information corresponding to a school chosen from a SelectOneChoice List
    I could not define the schools information as LOV for the attributes in the student's school, as I have to execute it in the executable s,
    I have an Iterator for the schools Information on the page and, bound the attribute A (from the student's school) SelectOneChoice as list to the school name (from school Information) , and then tried to read the current row of the schools Information Iterator like this inside a bean:
       Row  tempRow = getIteratorBinding("CmnLookupPrevSchoolRegView1Iterator").getCurrentRow();
       currStdPrevSchoolRow.setAttribute("B", tempRow.getAttribute("SchoolId"));
       currStdPrevSchoolRow.setAttribute("C", tempRow.getAttribute("SchoolCode"));but referring to the data saved in the DB, the values stored for the attributes B and C are not corresponding to the chosen school name , but corresponding to the first row of the iterator. ( not the current chosen)
    is there any suggestions, to have another approach to connect all the three attributes to the corresponding chosen values.
    or maybe it is just some properties for the Iterators,
    thanks in advance
    best regards,

    Hi,
    Have a look here: http://blogs.oracle.com/jdevotnharvest/2010/12/reading_the_selected_value_of_an_adf_bound_select_list_in_java.html
    If you read from a list binding then you get the row value from there as well - not from the iterator as lists don't change the current row
    Frank

  • Get column values from list of values programmatically

    hi all
    how i get column values from list of values programmatically in the
    returnPopupDataListener method

    If this answers your question , please close this thread by marking it as answered.
    Thanks

  • JavaScript function which fetches return_value from List of Values

    Hi,
    I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
    I am new with this and don't know how to handle this case.
    Please help me.

    Hi,
    The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
    This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
    I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
    Cheers,
    Tom.

  • How create temporary table from list of values

    Can you anybody advise me how can I create temporary table from list of values? I have list of values and need create temporary table for next use with command JOIN etc.
    Thank you for help

    NO, you can not create temporary table in oracle on the fly ( Like #Tabels in SQl Server or Sybase ) , you will have to use the GTT i.e Global Temporary Tables
    check the following link GTT :
    to flush the tables after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT DELETE ROWS;In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
    so to keep rows in Table after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT PRESERVE ROWS;

  • Calling function from list of values section?

    can i call a function from list of values(LOV) section as well? I know we can sql query but udf is supported?

    See this recent thread: Display as Text (LOV) or join
    Scott

  • Problem loading images from a return value of a function

    hello, I write because I uin problem in loading images from a return value of a function.
    I created a database with a field "image" of type string, where I put the physical address of the image. I have written like this: {__DIR__ }foto.jpg
    Place the code, so you understand better
    function imageViewImage(): javafx.scene.image.Image {
    connetti();
    lass.forName(driverName);
    con = DriverManager.getConnection(url,user,"");
    stmt = con.createStatement();
    var richiesta:String = "SELECT image from viaggio WHERE id_viaggio=7";
    rs1 = stmt.executeQuery(richiesta);
    var result :String;
    rs1.next();
    risultato = rs1.getString("image");
    JOptionPane.showMessageDialog(null, result);
    var imagez = Image{
    url:"{result}";
    return imagez;
    The image is in the source code package
    First I connect to the database, run the query and I take the contents of the image.
    Can anyone help me?
    Is right to put in the database {__DIR__} foto.jpg or do I put only foto.jpg?

    Hello unkus_nob,
    I would rather suggest you to save only filename of that image like "foto.jpg" in database. And just concat it with the String variable containing "{__DIR__}".
    Actually the javafx compiler converts the {__DIR__} to the existing class directory path something like : "jar:file:/..../".
    var currentDir ="{__DIR__}";
    risultato = "{currentDir}{rs1.getString("immagine"})"; 
    var image = Image{
        url:risultato
    return image;--NARAYAN G.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Using "Update All Mapped Fields" with multi-value attributes

    Is it possible to update a value in a multi-value attribute through the import manager?  It appears that if a source value is different then it just gets added as another value to the record.
    For example, a product has an attribute of speed which is measured in revolutions/minute. Some products can be rated at two speeds (i.e. 1800/3600).
    I created a numeric attribute for speed and enable only nominal rating and selected multi-valued.
    In import manager, I set "/" as multi delimiter for source field.  This created two entries in destination attribute, 1800 and 3600. 
    However, if on subsequent imports the speed values changes for this record (i.e. 1200 and 1800) then I will now have 1200, 1800, and 3600 as values for this record.
    Would the proper solution be to create two individual numeric attributes that are single valued (i.e. Speed1 and Speed2)?

    Hi Aaron,
    in your example it would make sense to use two different attributes called "Speed1" and "Speed2". Using the multi value option, MDM allows you to store a list of values into a single field. This list is more or less unlimited, you can add as many values as you like. A change of an existing value is not possible. The reason is that Import Manager does not know, which value you've changed! So it simply adds the "new" record (which is the 1200 in your example) to your value list. This is the intended behaviour of the "update all mapped fields option". If you really want to replace the values, you can check if the "Replace" option is useable for you. But note, that the replace will replace the complete existing record with the incoming new one. This means if the product you want to import with the replace option is smaller than the existing one (maybe it does not contain values for all segments), you'll loose data in MDM.
    BR Michael

  • Update multiple records from list box

    The idea is to present a list box to allow for the selection
    of multiple records. The records' primary key field having been set
    up as the value parameter in the list box. Then use a single update
    statement to update all selected records with a common value.
    I have tried to do this using code similar to:
    UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN ( @ListOfIntegers ) )
    Where the parameter is configured thus:
    <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]' Type="Int" />
    The idea is that the multiple selection listbox will return a
    comma separated list, which should l work nicely with the WHERE
    [column] IN ( .. ) syntax.
    Unfortunatley if more than one record is selected the
    Complier throws a type conversion error.
    I want to do this using Dreamweaver and C# on .NET.
    Any ideas how to proceed ?

    Are you wanting to update multiple records with the same
    information or
    different information for each record?
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "lyleja" <[email protected]> wrote in
    message
    news:f1cpe5$jj1$[email protected]..
    > The idea is to present a list box to allow for the
    selection of multiple
    > records. The records' primary key field having been set
    up as the value
    > parameter in the list box. Then use a single update
    statement to update
    > all
    > selected records with a common value.
    >
    > I have tried to do this using code similar to:
    >
    > UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN (
    > @ListOfIntegers ) )
    >
    > Where the parameter is configured thus:
    > <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]'
    > Type="Int" />
    >
    >
    > The idea is that the multiple selection listbox will
    return a comma
    > separated
    > list, which should l work nicely with the WHERE [column]
    IN ( .. ) syntax.
    >
    > Unfortunatley if more than one record is selected the
    Complier throws a
    > type
    > conversion error.
    >
    > I want to do this using Dreamweaver and C# on .NET.
    >
    >
    > Any ideas how to proceed ?
    >
    >
    >

  • Can't create detail VO  in one VO that including all attributes from M/D VO

    Hi,
    I have two EOs(BrFixreq/DafDefect) and two VOs(BrFixreqVO/DafDefectVO) based on the EOs, when create association between them I have selected "composition association" check box and "Cascade Update key Attributes" check box, and cardinality is 1 to 1.
    And also another VO( TestViewObj) includes all attributes in BrFixreqVO and DafDefectVO, and set BrFixreq/DafDefect to updatable in TestViewObj definition , and add TestViewObj to an AM(AppModue).
    When I run this AM in Oracle Business Component Browser, click "TestViewObj1" in left tab, and click the green plus sign on the toolbar, it only creates master VO attributes, not including detail VO attributes.
    Any directions will be great help to me!
    Thanks,
    zeroxin

    Hi,
    I presume that your tables are associated "1 to 1".
    This means that you could create your VO's and a viewLink and drop them in the page as Master(form)-Detail(form).
    You would have to bind actions for both VO's in each CRUD button (ex. Insert should execute CreateInsertMaster and CreateInsertDetails).
    Off course it would be better if things worked with a single VO because you would not have to do anything.
    This is simply proposed as a workaround in case that you cannot make it work. More issues regarding the details of your implementation could occur that you would have to deal with.
    Another way to handle this so that you have a single VO would be to create a database view that will handle insert, update, delete on both tables and create an Entity Object based on this view.
    You can read more about this in the Fusion Developer's Guide For Oracle ADF (Chapter 37.5)
    Gabriel.

  • Updating marketing attributes from BW

    Hi anyone!
    We're using the Analysis Process Designer in BW for updating marketing attributes in CRM. We face two problems:
    1. When updating an attribute with several values (have set the multiple value indicator in the transaction maintain attributes) BW only updates one attribute value. The second value overwrites the first one.
    2. When using currency as data type for the attribute value we get an error in BW when we start the process of updating the marketing attributes.
    Have any of you faced the same issue???
    Regards Camilla

    Hello,
    we have a scenerio where in we have to transfer data from BW to CRM (Campaign from BW to CRM) and presently we are on BI 7.0 and CRM 5.0.
    Please can any one of you provide how to guide or steps if Customization required in BW and CRM side.
    One of the method is using APD, but here also i am new..can any one have tried??
    Thanks in Advance..
    Regards
    Ankur

  • JSP, BC4J : Allowing users to choose from List of values when in Insert mode

    Hi,
    I have a requirement in which the user would be able to select a value from a combobox for populating a field when inserting a new record. The list of values in the combo box is derived from a look up table in the database. How can do this?
    Thanks.

    Use the version provided in Jdev 3.2. It has two methods:
    * Enables a LOV (list of values) for the specified attribute in
    * the UI. In the typical case, when an attribute is selected in an
    * HTML form, a LOV will be displayed.
    * <p>
    * This method enables a LOV for one or more of the RowSet's attributes.
    * To return all of the RowSet's attributes,
    * use the {@link #useLOV(String, String) useLOV} method.
    * <p>
    * @param sAtttibute name of the attribute for which an LOV
    * should be enabled.
    * @param voName name of the View Object to which the attribute belongs.
    * @param sDisplayAttributes a comma-separated list of the RowSet's attributes
    * that will be displayed when the attribute is selected.
    * @param sDataAttribute the location from which the attributes' values are
    * obtained.
    * @see #useLOV(String, String)
    public void useListOfValues(String sAttribute , String voName, String sDisplayAttributes, String sDataAttribute)
    JSlibNeeded |= WebBean.JSModalPageConstructorLib;
    LOVField lovField = new LOVField();
    ViewObject vo = qView.getApplicationModule().findViewObject(voName);
    ViewObject dupvo = qView.getApplicationModule().findViewObject(voName + "_query");
    if(dupvo == null)
    dupvo = qView.getApplicationModule().createViewObject(vo.getName() + "_query", vo.getDefFullName());
    lovField.setViewObject(getApplicationName() + "." + dupvo.getName());
    AttributeDef attr = qView.getViewObject().findAttributeDef(sAttribute);
    lovField.setPromptText(getAttributeLabel(qView, attr));
    lovField.setDisplayAttributes(sDisplayAttributes);
    lovField.setDataAttributes(sDataAttribute);
    setFieldRenderer(sAttribute , lovField);
    * Enables a LOV (list of values) for the specified attribute in the UI.
    * In the typical case, when the specified attribute is selected in an
    * HTML form, a LOV will be displayed.
    * <p>
    * This method enables a LOV for all of the RowSet's attributes.
    * To enable a LOV for a subset of the attributes,
    * use the {@link #useListOfValues(String, String, String, String)
    * useListOfValues} method.
    * <p>
    * @param sAtttibute name of the attribute for which an LOV
    * should be enabled.
    * @param voName name of the View Object to which the attribute belongs.
    * @see #useListOfValues(String, String, String, String)
    public void useLOV(String sAttribute, String voName)
    useListOfValues(sAttribute, voName, null, sAttribute);
    null

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • How to set No Selection Attribute in List of Values?

    Hi Everyone,
    I'm developing an ADF form which has a List of Value(LOV) as a requirement.
    I've got it working based on a View Object. However, I'm trying to set the No Selection option in the LOV and it doesnt seem to work. I've set it to the "Labelled Item - First of List" - <Please select a reason>. That doesnt seem to do the trick.
    Is there another attribute I need to set?
    I'm using JDev 11g.
    Many thanks.
    PP.

    if you are using the af:selectonechoice then use it like
    unselectedLabel="Please Select"but its better to debug why you are not getting this done from the VO.. can u give more information on this to solve it in the model itself..
    did u check if the VO is updated properly with the changes???

  • How to get data from list of values (LOV) to be displayed in a text field ?

    Hi guys,
    I am very new to Oracle APEX so please spare me if it is a silly question. How can I get the selected values from a set of list of values (LOV) displayed in a text field (or text area or so) ? Fox example, in my form I create 4 items: STATE, COUNTY, STREET, ZIPCODE and all of them are LOV (list of values). I also create 2 buttons (ADD & REMOVE). Then I create a test field (or text area name SELECTED RECORD). Now here is what I want to do with my form:
    When I set the values for all 4 fields, I will click on the ADD button then I want those values be displayed in the text field.
    For example, if the selected values are:
    STATE = Alabama
    COUNTY = Abbeville
    STREET= 1 Street
    ZIPCODE = 36310
    And the ADD button is pressed. Then in the text field I want it displays like this:
    Alabama,Abbeville,1 Street,36310
    If I choose other values and click ADD again, a new line will be added into the text fields (text area). If I click the REMOVE button, then it will clear those two line in the text field.
    Would it be possible to do it? Any help will be greatly appreciated. Thanks in advance.

    If you can live with the page being submitted and refreshed, make your ADD button do a submit with a request value of ADD and make your REMOVE button do a submit with a request value of REMOVE.
    Then create two computations (one firing with a condition of Request = ADD and the other firing with a condition of Request = REMOVE).
    In the ADD one, concatenate the values together into the text area (most likely a PL/SQL computation wiill be what you want). In the REMOVE one, set it to null with a PL/SQL computation.
    If you want it done without submitting the page, make the buttons each do a redirect to a URL but instead you will have to write two short javascript functions in the page HTML header to manipulate the field values. Each button would call each javascript function in an onclick event.

Maybe you are looking for

  • Fields in Structure ALTLEXDESC

    Hi, Can anyone please explain the fields in the structure ALTLEXDESC I am debugging the function module DSWP_BPM_SEND_ALERT Any pointings will definitely be rewarded. Please help. --Ragu

  • IP Phone VPN connection to ASA using Anyconnect

    Hello, I will be configuring my first Anyconnect VPN to allow an IP Phone to connect over the internet.  I wanted to know what the best practice is in generating a certificate on the ASA...is self generating ok or get one from a CA?  What are the con

  • Why does my curser open and close 2 windoows at once ????

    When I click on a item in a window or sometimes when I close a widow the pointer operates whatever is underneath as well, that may be to close a window or it could be a link on the page undernesth that then opens . This is driving me crazy. i did eve

  • HT5287 how do i install microsoft on my macbook air without having to buy a 80$ disk drive

    i have a macbook air and im trying to install microsft 2008. i have the cd and product key..... how do i install this product without having to buy the external disk?

  • Printing in Photoshop Elements 10

    When printing in Photoshop Elements 10 with 'Centre Image' checked, the printed result is not centred top to bottom, 3.5mm off centre, this causes problems when printing both sides of the sheet 'Tumble-Turn' The ptinter is a Canon Pixma MG6150. Any I