SelectOneChoice : in af:query AND in the table itself

I have an editable table with a search panel above it. In the view object I have set an LOV on one of the attributes, and defined it as a Choice List.
When I render the page, the query panel has a dropdown, with the lov, and this works fine for the query. But the results table also has a dropdown for the same attribute, which is fine, if not for the fact that the return value of these dropdowns are the indexes of the items, and not the IDs corresponding with the descriptions.
There is a workaround for this, and it looks like this:
                   <af:selectOneChoice value="#{row.bindings.PageId.inputValue}"
                                      label="#{bindings.PagePagesViewRO.label}"
                                      required="#{bindings.PagePagesViewRO.hints.mandatory}"
                                      shortDesc="#{bindings.PagePagesViewRO.hints.tooltip}"
                                      valueChangeListener="#{EnableCommitRollBack.onValueChange}"
                                      autoSubmit="true">
                    <af:forEach items="#{bindings.PagePagesViewRO.rangeSet}"
                                var="items">
                      <af:selectItem value="#{items.Id}"
                                     label="#{items.Description}"/>
                    </af:forEach>
                  </af:selectOneChoice>This would work, if only the foreach wasn't ignored!!!! I can set the Default List Type of the attribute to something other than Choice List to make this code work again, but I also want to Choice List in the query panel!
I can see errors like these in the log:
WARNING: Could not find selected item matching value "2" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=j_id_id34]How can I combine these?

I have tried to do what you say but doesn't that mean that all row values in the column are the same, since they all point to the same variable?
That's the result I am getting right now anyway.
So in my pagedef I have added
    <attributeValues IterBinding="PageTextViewRWIterator" id="PageId">
      <AttrNames>
        <Item Value="PageId"/>
      </AttrNames>
    </attributeValues>
    <table IterBinding="PagePagesViewROIterator" id="PagePagesViewRO">
      <AttrNames>
        <Item Value="Id"/>
        <Item Value="Description"/>
      </AttrNames>
    </table>and my column looks like this:
<af:column headerText="#{bindings.PageTextViewRW.hints.PageId.label}">
                  <af:selectOneChoice value="#{bindings.PageId.inputValue}"
                                      label="#{row.bindings.PageId.label}"
                                      required="#{bindings.PageTextViewRW.hints.PageId.mandatory}"
                                      shortDesc="#{bindings.PageTextViewRW.hints.PageId.tooltip}">
                    <af:forEach items="#{bindings.PagePagesViewRO.rangeSet}"
                                var="items">
                      <af:selectItem value="#{items.Id}"
                                     label="#{items.Description}"/>
                    </af:forEach>
                  </af:selectOneChoice>
                </af:column>which is almost what I want :-)
Can you tweak this for me?

Similar Messages

  • Give me the sql query which calculte the table size in oracle 10g ecc 6.0

    Hi expert,
    Please  give me the sql query which calculte the table size in oracle 10g ecc 6.0.
    Regards

    Orkun Gedik wrote:
    select segment_name, sum(bytes)/(1024*1024) from dba_segments where segment_name = '<TABLE_NAME>' group by segment_name;
    Hi,
    This delivers possibly wrong data in MCOD installations.
    Depending on Oracle Version and Patchlevel dba_segments does not always have the correct data,
    at any time esp. for indexes right after being rebuild parallel (Even in DB02 because it is using USER_SEGMENTS).
    Takes a day to get the data back in line (never found out, who did the correction at night, could be RSCOLL00 ?).
    Use above statement with "OWNER = " in WHERE for MCOD or connect as schema owner and use USER_SEGMENTS.
    Use with
    segment_name LIKE '<TABLE_NAME>%'
    if you like to see the related indexes as well.
    For partitioned objects, a join from dba_tables / dba_indexes to dba_tab_partitions/dba_ind_partitions to dba_segments
    might be needed, esp. for hash partitioned tables, depending on how they have been created ( partition names SYS_xxxx).
    Volker

  • Creating tables on SQL studio and viewing the table in the SAP system

    i have just created a table using the SQL studio and wants to use it view it in the SAP system using the SAP logon. till now i have not found a way to create it therefore any help is much appreciated.

    Hmm... you want to see tables via SAPLogon ??
    Ok, let's assume you really want to access tables via ABAP instead.
    For that you've two options:
    1. Create the table in the ABAP dictonary (SE11) exactly like you created it in the database and activate the table.
    After that you can access the table via SE16 or any ABAP as you like.
    2. You don't create the table in the ABAP dictonary and use native SQL to access the data.
    Neither of these options is meant to be the way to do it.
    The correct way would be to design the whole table in the ABAP dictionary and create the table on the database from that.
    regards,
    Lars

  • Approach for holding the same message and updating the table field Status

    Hi,
    I have a scenario a (first) proxy asynchronous to JDBC synchronous and then(second) proxy asynchronous.
    my first proxy calls sends records (which has a status entry " in process" ) to JDBC it updates or inserts.
    JDBC sends a response (may be a count of records updated or inserted)
    now i need to handle some how to get the records which have been inserted or updated, so that i can map and change the table entry  status field" in process" to " active".
    Can i handle this without stored procedures.If so how
    Can it be done through BPM  where i retain inital mapping or any other solution. please  help.

    Hi Robin,
    Ok (but that would be the apt method)
    Some other approaches :
    1. Make a async scenario (Proxy to DB), which will update or insert records. Write a trigger in DB which will fetch updated/inserted records and send it to XI. Then you update them in R/3 (via proxy). So you will have two async interfaces (one is Proxy to DB and other one DB to Proxy)
    2. go for BPM. Receive (from proxy), transform sync send, transform send (to proxy) . I will not prefer this as it will be a performance hinderance.
    Regards
    Suraj

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • How row migration get eliminated by export and import the table.

    Hi ,
    Please let me know,how row migration get eliminated by export and import the table.
    Another method,deleting migrated rows and inserting those rows from copied table,
    i think the concept behind this method is,inserting these rows into new block.
    pls correct me if i am wrong.
    Thanks,
    Kumar.

    Hi!
    You can also use ALTER TABLE MOVE command, or if you are on 9i you can use DBMS_REDEFINITION package.
    If you have a maintainance window the easiest way would be to use alter table move.
    Regards,
    PP

  • How i can access and edit the table of database(.mdb) file through Labview

    Dear sir,
    I want to access and edit the table of database(.mdb) file through Labview and it should save.
    please tell me how i can do it.
    i am waiting for reply.
    regards
    Rajendra

    there are options aplenty for this.  First off, do you have the database connectivity toolset?  If so, You can do it from there.  Following the examples in labview. Or you can do a search for ADO or access database, and find plenty of VIs that can do this. 
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How do you print an email attachment and not the email itself. please.

    how do you print an email attachment and not the email itself.  please.
    This question was solved.
    View Solution.

    Hi there, if there is text in the body of the email it will print automatically when sent to an ePrint email address. The only way to just have the attachment print is for there to be no text in the email body.
    Hope that helps answer your question.
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • I had an app previously, but now it shows I do not. How can I retrieve this, since I've already paid for it? I have 2 photos- one showing it in my cloud- and two the app itself. Please help

    I had an app previously, but now it shows I do not. How can I retrieve this, since I've already paid for it? I have 2 photos- one showing it in my cloud- and two the app itself. Please help

    redownload it,, either by syncing with iTunes or directly from your phone using the app store.

  • Query and update a table/view

    What is the best & fastest way to do this?
    1) Put up a query input region for users to enter parameters.
    2) Run a query on a table/view using those parameters.
    3) Allow the output in (2) to be modified by user (multiple rows at a time) and then Submit the updates back to update th table/view
    I can do (1) and (2) easily. How can I do (3)?
    Thanks

    Make a report on the table. Go to the definition of
    the report column and change the "Display As" type to
    text field or select list or whcih ever is
    applicable. Write a process on submit to insert these
    values back to the table. You will have control over
    which columns the user can modify.Thats a good idea and I was able to start on it. But how can my after submit process tell which rows to modify? i.e. what will my after submit process look like?
    for rec in (....)
    loop
    update my_table set
    end loop;
    Help? Thanks

  • ADF selectOneChoice in a jspx, outside of the table

    Hi,
    I want to use a selectOneChoice outside a table in a jspx, but my code is not working.
    I have a table in a database with 3 columns (id, name and lastname). I want a list of my id attribute, but outside of the table that is automatically generated.
    Here is my code:
    <af:selectOneChoice label="#{bindings.Example.collectionModel.bindings.id.label}" id="soc1"
    value="#{bindings.Example.collectionModel.bindings.id.inputValue}">
    <f:selectItems value="#{bindings.Example.collectionModel.bindings.id.items}" id="si3"/>
    </af:selectOneChoice>
    This is the error:
    javax.el.PropertyNotFoundException: The class 'oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel' does not have the property 'bindings'.
    My code is correct?
    Thanks!

    the problem is with
    ....label="#{bindings.Example.collectionModel.bindings.id.label}" id="soc1"can u try to use it directly like
    #{bindings.Example.collectionModel.id.label}instead of
    #{bindings.Example.collectionModel.bindings.id.label}
    <af:selectOneChoice label="#{bindings.Example.collectionModel.id.label}" id="soc1"
    value="#{bindings.Example.collectionModel.bindings.id.inputValue}">
    <f:selectItems value="#{bindings.Example.collectionModel.id.items}" id="si3"/>
    </af:selectOneChoice>

  • Query to display the tables with referential integrity

    Hello,
    I need to display the Tables which are having referential integrity..
    Like need to dispaly the parent and child tables
    Please give me some idea on this..
    Thanks,

    Here's a nice query you can use:
    with temp_constraints as (
    select table_name
    ,      constraint_name pkey_constraint
    ,      null fkey_constraint
    ,      null r_constraint_name
    from   user_constraints
    where  constraint_type = 'P'
    union all
    select a.table_name
    ,      a.constraint_name pkey_constraint
    ,      b.constraint_name fkey_constraint
    ,      b.r_constraint_name
    from   user_constraints a, user_constraints b
    where  a.table_name = b.table_name
    and a.constraint_type = 'P'
    and b.constraint_type = 'R'
    select rpad( '*', (level-1)*2, '*' ) || table_name relation
    from   temp_constraints
    start with fkey_constraint is null
    connect by pkey_constraint <> r_constraint_name
    and prior  pkey_constraint = r_constraint_name;From http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:661009003696#tom69115451356231

  • The query that charges the table CE_AVAILABLE_TRANSACTIONS_TMP

    hello,
    I need the query that loads(charges) the temporary table: CE_AVAILABLE_TRANSACTIONS_TMP.
    thanks.

    I need the query that loads(charges) the temporary table: CE_AVAILABLE_TRANSACTIONS_TMP.If you have the steps to do the same from the application you could simply enable trace and generate the tkprof file -- FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    Thanks,
    Hussein

  • How to update and retrieve the table control entries and field entries.

    Hello everyone,
    i have a requirement,
    i have    company code , plant, fiscal year, posting period  fields in the selection screen and then below that i have a  table control which contains 4 fields  invoice no., check number, check date and amount.
    i have to enter the values and when i press  SAVE button , these values have to update in a custom table which i had created.
    please send me the coding how to do this object.
    will be rewarded.
    thanks in advance.

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • SQL query and Delete the data based on condition

    Hi All,
    I have one requirement like I need to fetch the data from the table, In that table one filed (XXXXX) domain type is STAMP.
    delete the data if the sy-datum ( length 8) is greater than field XXXXX  which has length 14.
    Please suggest me how to delete or fetch the data with the same length.
    I have used below code..but did not work..
    "Concatenate sy-datum '%'  into gv_var1.
    select *
       from DD03l
       into itab
    where XXXX like gv_var1."
    and tried this one as well
    1. DELETE itab WHERE XXXXX GT sy-datum.
    2. DELETE itab WHERE XXXXX GT gv_var1.

    Hi,
    When dates are in different formats you have to always convert them into one common format and then do the checks. Its better to convert the date in the variable into timestamp(using CONVERT DATE statement-look for abapdocu for its usage) and then compare it with the date on database.
    data: gv_var1  TYPE timestamp.
    convert date sy-datum into time stamp gv_var1.
    select *
    from DD03l
    into itab
    where XXXX like gv_var1.
    should work now.
    Hope this helps.
    Shwetha

Maybe you are looking for

  • Latest on Battery

    Tonight is the first night I do NOT have to charge my battery after using the iPhone for the day... right now the battery is reporting it is about 1/2 way charged. Previously: Friday night, charged on dock for about 12 hours. Phone lasted about 12 ho

  • Calling functions of the inner class in .java code file

    Hello, I created a .java code file in Visual J#.Net and converted it into the application by adding the "public static void main(String args[])" function. I have created the two classes one extends from Applet, and the other extends from Frame. The c

  • CIF: Vendor transfer

    Hi All: I have been trying to send Vendors over to APO thru CIF, I could see a bunch but couple of them just dont get across. I tried sending them alone in a seperate Integration model I get the same message that (vendor) <b>location does not exist</

  • Row level commit using DB adapter

    We have a soa 11g requirement, where a File is polled using File adapter and this is inserted into DB using DB adapter. All the commits should happen at the record level, where in if one of the record fails due to improper data, the others should com

  • Change form target dynamically

    Hi all, I have a Struts form, declared as: <html:form method="POST" action="myaction" target="_top"> This form uses the ActionForm validate. When the validate method returns no errors I need the Struts action to display the result page in the "_top"