Editable Inline Table with a Dropdown List in Each Row

Dear All,
I am using: JDev 10.1.3.3 + JSF + BC
I need to build a dropdown List in each row for a child table of an inline style. I used the SelectOneChoice and followed Steve Muench example (http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html). I'm unable to get the result. It display the correct value but lose the dropdown style, rather it shows the result as an outputText style.
Can someone please help...
I've tried different way like the table binding by droping the column from the dataControl as a selectOneChoice and did the binding... didn't work.
This is what I have in the source page
<af:column headerText="Cust Id" sortable="false"
sortProperty="CustId"
id="column34">
<af:selectOneChoice value="#{detailRow.CustId}">
<af:forEach var="li"
items="#{bindings.customerLookupVO1.rangeSet}">
<af:selectItem value="#{li.CustId}"
label="#{li.CustText}"/>
</af:forEach>
</af:selectOneChoice>
</af:column>
In this is what I have in the page Def file
<table IterBinding="customerLookupVO1Iterator" id="customerLookupVO1">
<AttrNames>
<Item Value="CustId"/>
<Item Value="CustText"/>
</AttrNames>
</table>

Hi,
looks ok except for: "#{detailRow.CustId}"
did you change the var property of the table? normally it would be "#{row.CustId}"
the fact that your select one choice is not displaying would suggest that there is a problem with the 'value' property of the component.
there is another problem you should be made aware of with ADF editiable tables. If you put anything other than input text components in the table you will have chronic locking problems with the page. Only one person can use that page or else you will get errors all over the page until the user holding the lock commits or signs off.
regards,
Brenden

Similar Messages

  • Problem in displaying dynamic values in dropdown list for each row

    I want to display dynamic values in a drop down list for each row, and these values depends on the column value in each row(ptaid), based on each ptaid i need to fetch values for drop down list. so how can i achieve this..
    Thanks
    Babu

    Babu,
    This has been discussed in many old threads, try to find them. Also u can refer to article "Dependent Dynamic message choicelists ", at my blog
    http://www.mukx.blogspot.com/
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

  • How to set Dropdown list in tablen whith others Dropdown values in each row

    how to set Dropdown list in tablen whith others Dropdown values in each row of the table

    hi ,
    You have to add the parent element before adding data to the child node ...you follow the below steps it will work
    1) Take ContextStructure as follows ...
    tabledata (valuenode)
        ddownbyindex( value node) --within the tabledata node
             value (attribute)
    2)Binding to your layout
      tabledata (node) ---bind this to the dataSource property of your  table
          ddownbyindex( node)
                Value (attribute)--bind to the texts property of you DDbyIndex
    3)In wdinit() method add the following code
         IPrivate<Your view name>.ITabledataElement tabledataElement =wdContext.createTabledataElement();
        wdContext.nodeTabledata().addElement(tabledataElement);
        for(int i=0;i<5;i++)
         IPrivate<Your viewname>.IDdownbyindexElement ddbyindexElement=wdContext.createDdownbyindexElement();
             ddbyindexElement.setValue("Value"+i);
             wdContext.nodeDdownbyindex().addElement(ddbyindexElement);
    And set the cardinality property of the table node as 0..n
    and dropdownbyinex node to 1..n
    You try it ...
    Regards
    Madhavi
    Edited by: madhavi kotra on Sep 2, 2008 6:00 PM

  • Table with a dropdown field with values.....

    Friends, I opened this new thread with my good explanation whatim looking for . sorry for this.
    I have a table:
                        col1            col2               col3
    row1              r1c1           r1c2               r1c3
    row2              r2c1           r2c2               r2c3
    row3              r3c1           r3c2               r3c3.
    I need col2 to be dropdown. Here when doinit default data is being passed to this table. Now when the WDA loads, i want col2 to be dropdown, but with only one value. whatever i have in backend.Here intially i want to disable col2. User should not hcange it.
    But when i hit ADDNEWROW button, it shoudl create row4,  with some (i m writing a query to fetch col2 values) values in the dropdown. User should be able to select any value here.
    The r1c2 and r2c2, r3c2, should not change on ADDNEWROW.  they should remain the same.
    Hope this time i explained you correctly, and im expecting ur replies friends...
    Kindly respondg back to me. thanks to all in advance,
    Niraja

    Hi Niraja,
    Please refer the code below for filling drop down in table.... this is hard coding i.e. i m filling value directly with out using database table .now wht u have to do is that you have to create an internal table with two column one key and one value. select data from database into internal table. thn just replace hard coding with the value and key column of internal table
    Please note SAP doesnt recommend usage of select query in WD abap. use any FM instead.
    DATA LR_NODE_INFO TYPE REF TO if_wd_context_node_info.
    data ls_value type wdy_key_value.
    data lt_value_set type wdy_key_value_table.
    ls_value-key = 'a'.
    ls_value-value = 'APPLE'.
    append ls_value to lt_value_set.
    ls_value-key = 'b'.
    ls_value-value = 'BANANA'.
    append ls_value to lt_value_set.
    ls_value-key = 'c'.
    ls_value-value = 'GRAPES'.
    append ls_value to lt_value_set.
    ls_value-key = 'd'.
    ls_value-value = 'MANGO'.
    append ls_value to lt_value_set.
    lr_node_info = wd_context->get_node_info( ).
    lr_node_info = lr_node_info->get_child_node( 'CN_UITABLE' ).
    lr_node_info->set_attribute_value_set( name = 'CA_COLUMN2' value_set = lt_value_set ).
    As suggested by Stefan you can make the read only field by using enable property.
    regards Pranav
    Edited by: Pranav Nagpal on Nov 21, 2008 5:55 AM

  • Help with Dynamic Dropdown List

    Hi everyone,
    I'm completely new to this, so I hope you will excuse my lack of knowledge.
    I need to add a dropdown menu on a page.  The dropdown will display a list of all the state names in the U.S.  When the person selects a particular state, the access numbers for that state should appear next to it.
    I'm using Dreamweaver CS4.  I was given a Excel spreadsheet with all of the information on it.
    It would be easiest for me if I can use ASP to handle this, since I already have it setup on my machine as a local server to test it.
    But, I can't seem to wrap my head around how to go about this. 
    Any help would be much appreciated.
    Thanks!
    Meb

    Can you tell me if the following statements are correct? 
    - I need to make 2 xml documents.  One for a list of states and one for cities and their phone numbers.
    - I need to add a form to a page in DW.
    - I need to add 2 Spry Regions to the form, one for the states dropdown list and one for the cities and phone numbers.
    - I need to create two Spry Data Sets using the XML data sets I created earlier and insert them in their corresponding regions.
    - And I need to analyze the code from iPHP's example and somehow link all the stuff together.
    Am I even close to correct?
    Thanks again,
    Meb
    1.) What does the source code from the example look like? Are there 2 xml documents?
    2.) Is there a form on the example? Do you want a form on your page?
    3.) How many Spry Regions are in the example?
    4.) What does the source code from the example suggest?
    5.) yes! View source code as previously advised. All of your other questions will be answered once you've done this! See a pattern forming here? You ask a bunch of questions, the answer is to view the source code. You say you've done that and will continue to do so, yet you still ask questions that can be answered by viewing the source code. The result is a lot of redundant discussion.

  • Multiple criteria search with 4 dropdown lists

    I want to perform a multiple criteria search on a MySQL
    database. Users should be able to use from 4 dropdown lists in a
    form only one criterium, all 4 of them or 2 or 3.
    Each used dropdown list gives a numeric variable: Fvar1 ...
    Fvar4. The variables from the dropdown lists used should be matched
    with numeric fields in the database: DBvar1...DBvar4
    The numeric variables from the dropdown lists that are not
    used, should be ignored.
    Example: a user selects a value in dropdown list 2 and 3 and
    does not use dropdown lists 1 and 4. Fvar1 and Fvar 4 should then
    be ignored for the search, that has to be performed with Fvar2 and
    Fvar3, who have to be matched with DBvar2 and DBvar3.
    Anyone who can help me out with the WHERE statement in my SQL
    query?
    Your help will be greatly appreciated.
    Erik

    Erik61 wrote:
    > I want to perform a multiple criteria search on a MySQL
    database. Users should
    > be able to use from 4 dropdown lists in a form only one
    criterium, all 4 of
    > them or 2 or 3.
    Start by using the Advanced Recordset dialog box to create a
    query that
    looks for all four variables. Then switch to Code view and
    start carving
    up the code created by Dreamweaver.
    The query will look something like this:
    $query_getProducts = sprintf("SELECT product_name, price
    FROM products
    WHERE prod_type = %s AND colour = %s AND size = %s AND range
    = %s
    ORDER BY price ASC",
    GetSQLValueString($var1_getProducts, "text"),
    GetSQLValueString($var2_getProducts, "text"),
    GetSQLValueString($var3_getProducts, "text"),
    GetSQLValueString($var4_getProducts, "text"));
    Change it like this:
    $query_getProducts = "SELECT product_name, price
    FROM products
    WHERE ";
    $where = false;
    if (!empty($_GET['prod_type')) {
    $query_getProducts .= sprintf("prod_type = %s ",
    GetSQLValueString($var1_getProducts, "text"));
    $where = true;
    if (!empty($_GET['colour'])) {
    if ($where) {
    $query_getProducts .= 'AND ';
    $query_getProducts .= sprintf('colour = %s ',
    GetSQLValueString($var2_getProducts, "text"));
    $where = true;
    if (!empty($_GET['size'])) {
    if ($where) {
    $query_getProducts .= 'AND ';
    $query_getProducts .= sprintf('size = %s ',
    GetSQLValueString($var3_getProducts, "text"));
    $where = true;
    if (!empty($_GET['range'])) {
    if ($where) {
    $query_getProducts .= 'AND ';
    $query_getProducts .= sprintf('range = %s',
    GetSQLValueString($var4_getProducts, "text"));
    That builds the query in stages using $where to decide
    whether to add
    "AND" in front of the second, third, and fourth variables.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Proving the Input values in a table with a dropdown and save the values

    Hi Experts,
    I have  a requirement to create a table which is empty (in BSP)and I want to enter the values in a table, for eg: Unit , RegNo, Regvalidity date, item categories. are the coulum names.But I have to display the values in the categories column  in dropdown.
    Finally I enter the values in a table and select the values in a categorie column and save the values in a ztable.
    Please provide me solution how to proceed with this requirement?.
    Thanks ,
    Regards,
    Kiran

    Hi Kiran,
    For creating blank tabel in BSP use the iterator. See the beolow  link for information on creating balnk lines using iterator,
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b98a35a111d5992100508b6b8b11/frameset.htm
    the code in render_cell_start method of iterator class should be something like,
    initially you render all cells as blank so that the blank table is created in page.
    when a row is selected you render unit, reg no., reg validity date as inputfield and categories as dropdown listbox.
    Dropdown in Tableview
    link might help you for DDLB in tableview.
    Search the forum and blogs for more code samples.
    Regards,
    Anubhav

  • Dynamic table with drop down lists

    I have a Dynamic table with a header row, Section and footer row.
    Section has the following cells(columns): Cell1 (drop down with locations), button (to remove row), CCode (Color Code RAL), CName (color name).
    I'm starting with 1 row.
    now what I want to do is, when they select in CCode e.g. RAL 1003 (rawValue "1") then in CName the name "signal yellow" (rawValue "1") should appear.
    I'm using javascript
    My first problem is how do I know which value is chosen, because this isn't working:
    if  (this.rawValue == 1)
    xfa.host.messageBox('Today')
    and second how do I set the value in CName
    because this only sets it in the first CName cell:
    xfa.form.DataSheet.TechnicalInformation.Markings.THatchPatterns.Section.CName.rawValue = '1';
    Please help me, I'm totally lost

    solved the problem, instead on change event put script on exit event.
    and the following line does the trick:
    xfa.resolveNode("THatchPatterns.Section[" + this.parent.index + "]").CCode.rawValue = this.rawValue

  • Dependency DropDown List for Multiple Rows in Offline Interactive Form

    Hi I have 2 drop down lists.. in one dropdown list I have "Billable" and "Non Billable" , in second Dropdown list we will have Binding values with "Billable".... when we select "Billable" I need to get the data in Second Dropdown list from Database, and when we Select "Non Billable" then Dropdownlist should become a Inputfield (i.e Dropdown should turn to textfield)...and this should happen for each and every row....based on Index value....help me on this.....

    Hi,
    You can create one input text field and make it visible when a user choses non billable option in dropdown 1, using -
    <this>.presence = "visible";
    when billable is chosen from dropdown 1, I can think of two ways.
    - Since you have binding 'billable' options with second dropdown, make it visible when billabile option is chosen.
    - you can also populate the second dropdown using javascript (something like dependent dropdowns) when billable option is chosen.
    if ( this.rawValue == 'billable' )
         seconddropdown =  xfa.resolveNodes("xfa.record.ITAB.DATA[ *]");
         for ( var k = 0; k < seconddropdown.length ; k++)
          <your path>.addItem(seconddropdown.item(j).fieldname.value,seconddropdown.item(j).fieldname.value );   (to populate second dropdown)
    Regards, Liz

  • Update primary key with a tabular form based on a select list for each row

    Hello!
    I've two tables: Table1 with only one column (primary key) is a foreign key for table2.column1 (primary key). There is also a second primary key column in table2.
    Now I want to change the primary key values in table2.column1 with a tabular form (MRU) based on a select list (LOV based on table1.column1) for each row.
    The user should be able to choose for every row a new value from the select list to change the old primary key value at this position.
    How can I do this with ApEx?
    I've the tabular form and so on, but at the moment I get the following error:
    "Error in mru internal routine: ORA-20001: Fehler in MRU: row= 1, ORA-20001: ORA-20001: Die aktuelle Version der Daten in der Datenbank wurde geändert, seit der Benutzer einen Update-Prozess eingeleitet hat. ..."
    Thank you for your support!
    Kay

    Hello!
    I've two tables: Table1 with only one column (primary key) is a foreign key for table2.column1 (primary key). There is also a second primary key column in table2.
    Now I want to change the primary key values in table2.column1 with a tabular form (MRU) based on a select list (LOV based on table1.column1) for each row.
    The user should be able to choose for every row a new value from the select list to change the old primary key value at this position.
    How can I do this with ApEx?
    I've the tabular form and so on, but at the moment I get the following error:
    "Error in mru internal routine: ORA-20001: Fehler in MRU: row= 1, ORA-20001: ORA-20001: Die aktuelle Version der Daten in der Datenbank wurde geändert, seit der Benutzer einen Update-Prozess eingeleitet hat. ..."
    Thank you for your support!
    Kay

  • Rendering a table with more than one record per "row"

    Ok, it's like this. I have a collection that I want to render as an ADF Table with a single column. Except I want to render multiple entries in the collection per row of the table
    i.e. a normal ADF table would be like:
    [Column Header]
    [Row1.TextField]
    [Row2.TextField]
    [Row3.TextField]
    [Row4.TextField]
    [Row5.TextField]
    I would like to render it something like:
    [Column Header]
    [Row1.TextField] [Row2.TextField] [Row3.TextField]
    [Row4.TextField] [Row5.TextField]
    That is, I want to add each record's text field horizontally first before adding a new row vertically.
    Any way to do this with the ADF Table? Or is there another component I should use?

    Hi,
    you can try the "af:iterator" component
    example
    <af:panelGroupLayout id="pgl4" layout="horizontal">
                    <af:iterator id="i1" value="#{bindings.MyTree.collectionModel}"
                                 var="row" varStatus="vs">
                      <af:panelGroupLayout id="pgl5"
                                           rendered="#{(vs.index mod 3) eq 1}"
                                           inlineStyle="width:100px;"
                                           layout="horizontal">
                        <af:outputText value="#{row.CityCode}" id="ot2"/>
                      </af:panelGroupLayout>
                      <af:panelGroupLayout id="pgl6"
                                           rendered="#{(vs.index mod 3) eq 2}"
                                           inlineStyle="width:100px;"
                                           layout="horizontal">
                        <af:outputText value="#{row.CityCode}" id="outputText3"/>
                      </af:panelGroupLayout>
                      <af:panelGroupLayout id="pgl7"
                                           rendered="#{(vs.index mod 3) eq 0}"
                                           inlineStyle="width:100px;"
                                           layout="horizontal">
                        <af:outputText value="#{row.CityCode}" id="outputText4"/>
                      </af:panelGroupLayout>
                      <af:outputText value=" &lt;tr>" id="ot3" escape="false"
                                     rendered="#{(vs.index mod 3) eq 2}"/>
                    </af:iterator>
    </af:panelGroupLayout>Regards
    Nicolas

  • Table with detailStamp-retain disclosed state of row

    Hi,
    We are on JDev 11.1.1.4. We have a table with detailStamp facet in out application.
    When a new row is added, it is disclosed programmatically. However, once "Save" is clicked, this row collapses. I noticed that the key of the new row changes after save.
    Can you please suggest me on how we can retain the disclosed state of the row.
    Thanks,
    Sruthi

    Hi,
    instead using
    ${bindings.findAllCustomerWithProjectsByEmployeeId.currentRow.dataProvider.id}
    try and use the created iterator
    ${bindings.<iterator for method>.currentRow.id}
    Frank

  • An error when edit a table with ObjectViewer

    when I try to set a value to NULL with ObjectViewer,its data_type is number,the developer said:
    UPDATE "TT"."ADDRESS" SET USER_NO= WHERE ROWID = 'AAAOMXAAFAACH3GAAq' AND ORA_ROWSCN = '4563636967634'
    One error saving changes to table "TT"."ADDRESS":
    Row 118: ORA-00932: inconsistent datatypes: expected NUMBER got DATE,
    if the data_type is varchar2,it works:
    UPDATE "TT"."ADDRESS" SET NAME= WHERE ROWID = 'AAAOMXAAFAACH3GAe' AND ORA_ROWSCN = '4563636967631'
    Commit Successful
    I have no idea what's going on...

    Sorry, this got broken while fixing Re: Bug in 1.5.1 Deleting number value in data grid
    I'll let you know on how soon the fix could be delivered.
    -Raghu
    Edited by: RaghvendraSaboo on Mar 31, 2009 12:43 PM

  • Find table with wbs element list

    Hi experts,
    i have the wbs element id number (i found it from a function)
    but i dont know how can i find the wbs element description table.
    any help will be appreciated.
    Michal.

    i found it,
    thanks.
    Michal.

Maybe you are looking for

  • DecisionService NullPointerException

    Using JDev 10.1.3.4.0 & SOA suite 10.1.3.1.0 I have some BPEL which is calling a very simple decision service which just assigns some variables. When I run the BPEL Process I end up getting the following exception, which I have had a few times before

  • Oo abap Display ALV with all selected lines

    I will have to display an ALV report but all the records have to be selected while displaying. I have to do this using OO ABAP only. Thanks Kiran

  • Raise_application_error is not displaying error message in my form

    Hi, I have created one procedure in order to display the error message in front end forms.But which is not display the error message in my form when call the procedure. Please refer the code. BEGIN IF C_ERR%ISOPEN THEN CLOSE C_ERR; END IF; OPEN C_ERR

  • TS1424 I get an error -39 when trying to download a movie.

    Hi everyone, I am trying to download a movie but I get an error code regarding the connectivity (which is fine). At times the download is happening but as soon as I want to watch the movie, it stops. Anyone has any ideas on what to do? Thanks a lot,

  • Wireless audio connection to external sound card

    Hi to all! I'm using a usb audio interface (Fast track pro) to my Dell Vostro computer. I use this interface to get better sound quality producing music and to use studio speakers, connect eventually some synth, record samples...nothing too much seri