Change af:selectOneChoice to af:inputText on insert

Hi,
I'm using Jdeveloper Studio Edition Version 11.1.2.3.0
Basically I have a view attribute (based on entity) that has a LOV (used in af:query in the page and af:table). The attribute is updatable only while new.
Now when I add a new row in my table, the field of that attribute comes in af:selectOneChoice and list the values that are already in the table.
However, I don't want that. I need to be able to insert new values into that column.
So when I tried switching it to af:inputText, it showed me the indices of the values inside the LOV instead of the actual value for all the rows (1 instead of "BG3" for example).
My question is can I have an inputText for that attribute without removing the LOV? Or is there another solution to that?
Also I don't want it to affect the normal behavior of the attribute in the af:query (keeping it a choice list).
Many Thanks.
Mo

Hi,
I managed to solve this by adding the same attribute from entity again to the View Object. I don't know if it's a bad practice, but I tested it and it works great.
So the first attribute is the one with LOV, its updatable property is set to never and the queryable property is checked so that it's shown in the af:query.
The second attribute is one I use to fill the info, its updatable property is set to while new(I guess Always works to, but I only need it for new rows) and queryable is unchecked. I don't give this one a LOV.
When I add the table, I use the second attribute and show it as an Input Text.
Now everytime I commit, the value is registered in the database,the table, and to the LOV of the first attribute.
Best Regards.
Mo

Similar Messages

  • How can i edit a clip or share it. I cant change the sencond the clips lasts or insert an image or a text! whats going on???

    how can i edit a clip or share it. I cant change the sencond the clips lasts or insert an image or a text! whats going on???

    you have watched and understood the tutorials?
    http://help.apple.com/imovie/

  • Is it possible to change the visibility of a inputText in run-time?

    Supposed my jsp has a radio-group with two radio buttons called "visible" and "invisible" and an iputText component. What I want is: at the beginning the inputText is visible and enable. If I click the "invisible" this inputText will changed to invisible and disable. And if I click the "visible" this inputText can be seen and enable again.
    Can I do this with JSF or just with java script?

    To enlarge on what rlubke has been saying.
    <h:outputLabel rendered="#{! loginBean.loggingOut}"  style=" color:rgb(198,0,0);" value="#{i18nBean['USER.VMP010.ITEM6']}" styleClass="PageTitle"/>See how the rendered attribute is deriving it's value from a bound boolean expression. The expression "loginBean.loggingOut" evaluates to a method-call "loginBean.isLoggingOut()" which should return true or false. The "!" operator can be used in much the same way as you use it in Java.

  • Can't Change an Image's object placment after inserted

    I am using Pages '08 and each time I insert an image into my document, it either automatically inserts as inline or as floating, however, I am never allowed to change this designation. On the formatting bar, the Object placement options are both grayed out. They are also grayed out in the Inspector as well. Why is this happening and how can I can this?

    It would be nice if it were an easy solution. The next thing to try is a basic troubleshooting step for almost any application - delete its preference file. Go to HD > Users > (your account) > Library > Preferences & delete the com.apple.iwork.pages.plist & restart Pages.
    If this doesn't work, it could be that just this particular document or that image is corrupt. Depending on the complexity of your document, you could copy & paste or recreate it in a new document. If it's complex, saving it as an iWork '06 format document then reopening the file in iWork '08 may strip out the corruption.

  • Des6/headstart212: saving changes not asked when enter query during insert

    Hi,
    We are still on the old version for designer 6, but we have a strange problem.
    We have several forms, when updating or inserting, and then closing the window, there is the question: do you want to commit the changes?
    That's the normal behaviour.
    But now, we just found out, that there are also forms, when working in them, and then closing the window or pressing F7, that the question isn't raised, enter-qry mode is started and the end user then has lost his changes.
    We tried to track down qmslib50 and qmsevh50 for a form with problem and one without, but except for an key-enterqry which sometimes is generated (with standard code) and sometimes not we haven't been able yet to tackle it.
    Is this perhaps a "known" problem of headstart 2.1.2 upgraded for des6., or has anyone an idea where we have to look for it?
    The query property is on both forms set to yes.
    Thanks...
    Jessica

    Product Name: n005tx pavilion 15Operating System: Microsoft Windows 10 (64-bit)
    is there any method to solve this without turning on legacy boot
    "select boot image did not authenticate"
    this happened after trying to install ubuntu in legacy boot and then installed Windows 8 in legacy boot..now i want to go for UEFI for better performance
    Model -HP Pavilion 15 (n005tx)
    factory os windows 8
    no way to recover original os

  • I need to change the name of Schema in the Insert command by using variable

    Hi
    I need to write a code to populate 450 schemas having same table names and also specify the columns needed to be inserted. for that i am trying to make the Schema Name a variable and put the whole statement in a loop to change the name of the Schema. its not working can any one guide me in this..Thae sample of my insert statement is
    INSERT INTO A01.tablename
    In this the "A" is constant and 01 is being changed to 02...450..
    Thanks

    Not sure to completely understand your need, but assuming that column names and values to be inserted are the same for all schemas, here a short example :
    SQL> desc a001.test
    Name                                      Null?    Type
    A                                                  NUMBER
    B                                                  VARCHAR2(10)
    SQL> desc a002.test
    Name                                      Null?    Type
    A                                                  NUMBER
    B                                                  VARCHAR2(10)
    SQL> desc a003.test
    Name                                      Null?    Type
    A                                                  NUMBER
    B                                                  VARCHAR2(10)
    SQL> declare
      2     i       number;
      3     str     varchar2(100);
      4  begin
      5     for i in 1..3 loop
      6             str := 'insert into a'||lpad(i,3,'0')||'.test(a,b) values(1,'||chr(39)||'ABC'||chr(39)||')';
      7             execute immediate (str);
      8     end loop;
      9     commit;
    10* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select * from a001.test;
             A B
             1 ABC
    SQL> select * from a002.test;
             A B
             1 ABC
    SQL> select * from a003.test;
             A B
             1 ABC
    SQL>                                                                          

  • Trigger not changing a null value to -1 on insert, but works on update?

    Here is the trigger I am working on.
    If i update a row it will update the org_type_id to -1. However, nightly a job runs to append new data to the table. I can't change the fact that every day a few "deleted org"'s have a org_type_id as null.
    So, this trigger was supposed to solve it, but it ONLY works if a row is updated, it doesn't work on inserted new rows.
    Thoughts?
    CREATE OR REPLACE TRIGGER MDMR.MDM_ORG_TYPE_ID
    BEFORE INSERT OR UPDATE
    ON MDMR.MDM_ORG
    FOR EACH ROW
    declare
    begin
    if (UPDATING) then
    if ((:old.org_name = 'Deleted Org') and (nvl(:old.org_type_id,0) = 0)) then
    :new.org_type_id := -1;
    end if;
    end if;
    if (INSERTING) then
    DBMS_OUTPUT.put_line ('INSERTING1');
    if ((:new.org_name = 'Deleted Org') and (nvl(:new.org_type_id,0) = 0)) then
    DBMS_OUTPUT.put_line ('INSERTING2');
    :new.org_type_id := -1;
    end if;
    end if;
    end;
    /

    Hi,
    It looks fine to me (or, rather, it would look fine if it were formatted), but I can't test it without your table.
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data. In the case of DML problems (like this), the results are the contents of the changed table after each DML operation.
    Are you sure that 'Deleted Org' is spelled exactly the same in the trigger and in your INSERT statements? That includes capital letters and trailing spaces, including those automatically supplied for CHAR columns.
    Does it work when you test it, but fail during the nightly job?

  • My facebook password is saved, but I changed it and the old password automaticly inserts, I need to change it.

    I changed my password for facebook. The old password was saved and automatically filled in each time I log into facebook. The old password still fills in and I need to know how to change it to the new one.

    Tools -> Options -> Security -> Saved Passwords.
    On the list of sites select http://www.facebook.com (you should see your FB user name in the right column). Select "Remove". Login to FB with your new password and click "Remember password" when asked.

  • How to change code completion package proc name be inserted in origin case?

    Hi,
    it seems like the code completion for package function/procedure name is inserted in UPPER case. Is it possible to configure it to insert the name according to the exact case like what I typed in the package?
    Please advise.
    Thank you.

    Not at the moment.
    They are supposedly working on improved code insight and this option may be included.
    If you want it, you can add it to sqldeveloper exchange (or vote for an existing request)

  • SCD TYPE 2 in ODI 11g-error in INSERT CHANGING AND NEW DIMENSIONS

    Hi Guys,
    Im using IKM:Oracle Slowly Changing Dimension to achieve SCD TYPE 2.
    It is working fine for Overwrite on change.
    But whenever there a new insert upon change(Add Row on Change) in source, throwing below error:
    ODI-1228: Task INT_EMP_SCD_TYPE (Integration) fails on the target ORACLE connection ORA_DEV_EDW.
    Caused By: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV_EDW.EMP_KEY) violated.
    I have unique key in target table column SAPID.
    How to overcome this issue.
    quick help would be highly appreciated.
    Thanks,
    Sreedhar S,
    <telephone number removed by moderator. this is a publicly viewable forum, not Oracle technical support>

    Hi Sreedhar,
    As said in the error message, you have an unique or primary key on one column and you try to insert a value already existing. This is a design issue.
    You have to ensure that you don't try to re-insert existing value for the column(s) with the key.
    Regards,
    Jerome

  • Change block property to insert mode

    Can i change the status of block property to insert mode while run time.
    Please help me.
    Vikas

    Yes, see the Set_Block_Property() built-in in the online help.
    Francois

  • Authorzation only to Insert / not to change in P_PERNR

    Hi,
    I have to give the Authoirzation for Employees (ESS/ECC6) to Insert new
    Temporary Address (IT0006 /subtype 2).
    I am using the object P_PERNR. When i give "W" authorization
    it allows both Insert & Change.
    How to give only for Insert and block Edit of the Address.
    Regards,
    Boobalan

    Hi,
    There is no way doing that but however you can go for Double Verification Principle (using S,E,D) values to do that.
    This might help in this regard,
    The double verification principle requires that at least two persons are involved in changing HR infotype data. This principle can be used for all infotypes except 0000 (Events), 0001 (Organizational Assignment), 0002 (Personal Data), 0003 (Payroll Status) and 0031 (Reference Personnel Number).
    The double verification principle is implemented by setting a lock indicator. If an infotype record is locked, this record is (physically) available on the database but is not taken into account in HR evaluations. (For example, if a "recurring payment/deduction" record is locked, it is not selected in HR payroll and is therefore not handled like an existing record). The lock indicator limits the validity period of records. Only records without a lock indicator are "valid" records. When the double verification principle is applied, one user stores locked data and another deactivates the lock indicator (unlocks the record). There are two ways in which two users can write a "valid" record to the database.
    Asymmetric variant
    User A is authorized to edit locked records (he/she is assigned authorization level 'E' (edit) and 'R' (read locked or unlocked) records. User A is authorized to:
    create or copy locked records. Records created (or copied) by user A are locked. Locked or unlocked records can both be used as models.
    change locked records,
    delete locked records,
    read locked or unlocked records.
    User B is authorized to:
    set (lock) or remove (unlock) the lock indicator (authorization level D),
    read infotype records (authorization level R).
    B checks the data created or changed by A and declares this data valid by unlocking it. Once the data has been unlocked, user A can no longer change it. To do so, user B must first lock the data so that user A can change it. User B must then check and unlock it, etc.
    Please note the following: User A can copy existing (and unlocked) records. This copy is initially locked. If user B unlocks this copy, the unlocked model would be deleted either completely or partially if the time constraint is 1 or 2.
    Example: You want to apply the double verification principle when entering a recurring payment (wage type nnnn [time constraint 2] in infotype 0014). User A (authorization level E) creates a record with subtype nnnn and enters a certain amount. The system sets a lock indicator for the record. This record is not taken into account in evaluations (payroll) while it is locked. Only when it is unlocked by user B does the entry of user A become active. An incorrect amount can be changed in two different ways:
    1. B locks the record, A changes it, B checks and unlocks it, or
    2. A copies the existing record and corrects the amount (in the copy); B checks the copy and unlocks it. Since the time constraint is '2', the existing unlocked record (with the incorrect amount) is deleted. The copy with the corrected amount then becomes valid.
    Symmetric variant
    User A and B have identical authorizations. Both have a read authorization and an authorization which allows them to edit locked records and unlock these (authorization level S). User A and B are both authorized to:
    create (or copy) records. These records are locked (both locked or unlocked records can be used as a model),
    change records (records which have been changed are locked even if they were previously unlocked),
    lock records,
    unlock records if the last person to change the record is not identical with the current user.
    Here, user A and B check each other's work. When A creates or changes a record, it is locked. B checks the record and unlocks it (A can also perform B's work and vice versa). It takes two users (with identical authorizations) to create or change a valid (unlocked) record. Users with authorization level S cannot delete records.
    Example: You want to apply the double verification principle (symmetric variant) when entering a recurring payment/deduction. User A enters the data. The record is locked. User B unlocks it. If data needs to be changed after the record has been unlocked, both A or B can do this. The data is changed and the record locked. The other user can now unlock this record. Alternatively, A or B could create a 'locked' copy. In this case, the model remains an unlocked record. If the copy is unlocked, the copy overwrites the model (time constraint 2).
    The following applies to the symmetric variant of the double verification principle.
    The person who last changed an infotype record must not have changed it explicitly: Even if the validity period of a particular record changes when user A creates or deletes a different record (due to time constraint 1 or 2), A is nonetheless entered as the person who changed the record. For example, both A and B have an 'S' authorization. A changes an existing infotype record (time constraint 2) with a validity period from 01/01/96 - 12/31/99. Then B creates the same type of record for 07/01/96 - 12/31/99. The result is two locked records with validity periods from 01/01/96 - 06/30/96 (1) and 07/01/96 - 12/31/99 (2); in both cases, B is entered as the last person who changed the record. However, B did not explicitly change the first record; he/she merely delimited it by creating the second record. As a result, A can unlock the first record.
    Hope this helps
    Manohar

  • Clear the SelectOneChoice and InputText

    Hi,
    I am using Jdev10g.
    In my search page there are 3 selectOneChoice fields and InputText fields.
    Before search button clicking if i select any value from selectOneChoice lovs its clearing by rollback button.
    But if once click on search button(ExeWithParms) its not clearing by rollback button.
    Is there any way or any seperate button to clear.
    Thanks
    NR

    Hi,
    No its not working.
    I need to write any code to this button?. I simply drag and drop on my page. but it working before going to search button same as rollback.
    Thanks
    NR

  • Cannot set selectOneChoice value during reload (value auto become null)

    Dear all,
    I have a problem that getting null value in the SelectOneChoice field in a table binded to
    a view object. If I change that SelectOneChoice to inputText, it works perfectly. The details
    of the situation is described as follows:
    I've binded a view objects with 8 attributes to a af:table, then I manually change
    2 of the inputText fields inside 'Column' fields of the table to inputlistofvalue and
    selectOneChoice. The code is as follow:
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.AcNo.name}"
    sortable="false"
    headerText="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
    id="c1" width="180"
    inlineStyle="font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:medium;">
         <af:inputListOfValues value="#{row.bindings.AcNo.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
              required="#{bindings.OpenBalanceVO1.hints.AcNo.mandatory}"
              columns="#{bindings.OpenBalanceVO1.hints.AcNo.displayWidth}"
              maximumLength="#{bindings.OpenBalanceVO1.hints.AcNo.precision}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.AcNo.tooltip}"
              id="it1"
              model="#{bindings.AcNo2.listOfValuesModel}"
              autoSubmit="false"
              returnPopupListener="#{backingBeanScope.backing_ImportOpenBalance.returnListener}">
              <f:validator binding="#{row.bindings.AcNo.validator}"/>
         </af:inputListOfValues>
    </af:column>
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.CurrencyCode.name}"
         sortable="false"
         headerText="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
         id="c2">
         <af:selectOneChoice value="#{row.bindings.CurrencyCode.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.CurrencyCode.tooltip}"
              id="it2" autoSubmit="false"
              partialTriggers="cb1 cb2">
              <f:selectItems value="#{loginInfo.activeCurrencies}" id="currenciesList"/>
         </af:selectOneChoice>
    </af:column>
    And I have binded the returnPopupListener to returnListerner event handler to automatically
    set the Currency field (2nd field) after the user chose the Account field (1st field) from
    the input list of value:
    public void returnListener(ReturnPopupEvent returnPopupEvent) {
         RichInputListOfValues lovField = (RichInputListOfValues)returnPopupEvent.getSource();
         ListOfValuesModel lovModel = lovField.getModel();
         CollectionModel collectionModel = lovModel.getTableModel().getCollectionModel();
         JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
         RowKeySet rks = (RowKeySet)returnPopupEvent.getReturnValue();
         List tableRowKey = (List)rks.iterator().next();
         DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
         Key key = (Key)tableRowKey.get(0);
         Row row = dciter.findRowByKeyString(key.toStringFormat(true));
         DCBindingContainer bc = getBindingContainer();
         DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
         OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
         FacesContext fctx = FacesContext.getCurrentInstance();
         ExpressionFactory elFactory = fctx.getApplication().getExpressionFactory();
         ValueExpression ve = elFactory.createValueExpression(fctx.getELContext(), "#{loginInfo}", LoginInfo.class);
         LoginInfo loginInfo = (LoginInfo)ve.getValue(fctx.getELContext());
         System.out.println("Return place: search date:" + loginInfo.getSearchDate());
         Row newRow = viewObject.createRow();
         String selectedAcNo = row.getAttribute("AcNo").toString();
         String selectedCurrency = row.getAttribute("CurrencyCode").toString();
         newRow.setAttribute("AcNo", selectedAcNo);
         newRow.setAttribute("CurrencyCode",selectedCurrency);
         newRow.setAttribute("OpenBal", 300);
         newRow.setAttribute("AvailBal", 200);
         newRow.setAttribute("CreateDate", new Date());
         newRow.setAttribute("EffectiveDate", loginInfo.getSearchDate());
         newRow.setAttribute("LockStatus", "N");
         viewObject.insertRowAtRangeIndex(rowIndex, newRow);
    The problem occurs when I use a 'createInsert' button to create a new row in the table,
    and then choose a value from the inputListOfValues. The new row refresh and get the value
    I chose in the first column in the new row. But the second column (currency field) is left
    as empty (null value). If I change the second column frmo selectOneChoice to inputText,
    the correct Currency value (e.g. "HKD" or "USD") can be shown. So I wonder if there is any
    additional tricks in order to set the selectOneChoice value during refresh.
    Additionally I have tried to check the state of the view object attributes during the refresh
    lifecycle and found that the following reload method (else place) is being reached 3 times after I click
    the 'ok' button in the popup up in the inputListOfValue.
    public void beforePhase(PagePhaseEvent event) {
         //System.out.println("i am here inside backing bean : before phrase 1 phrase ID:" + event.getPhaseId());
         if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
              if (!isPostback()) {
              } else {
                   System.out.println("Post Back on Page Load!");
                   DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
                   OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
                   RowSetIterator iterator = viewObject.createRowSetIterator(null);
                   iterator.reset();
                   while (iterator.hasNext()) {
                        //Row row = viewObject.getCurrentRow();
                        Row row = iterator.next();
                        System.out.print("Account:" + row.getAttribute("AcNo"));
                        System.out.print(",AvailBal:" + row.getAttribute("AvailBal"));
                        System.out.print(",OpenBal:" + row.getAttribute("OpenBal"));
                        System.out.print(",CurrencyCode:" + row.getAttribute("CurrencyCode"));
                        System.out.print(",EffectiveDate:" + row.getAttribute("EffectiveDate"));
                        System.out.print(",UserCreate:" + row.getAttribute("UserCreate"));
                        System.out.println("");
                        if (row.getAttribute("UserCreate").toString().equals("<current user>")) {
                             System.out.println("Match <current user> in preload");
                             //row.setAttribute("CurrencyCode", "USD");
                   System.out.println("end of reload");
    During the 1st time, the CurrencyCode field was set currently, but then in the 2nd and 3rd
    times, it's value suddenly changed to 'null'. If I use inputText, all the 3 times currencyCode
    field is showing correctly without the null issue.
    Anyone can kindly give me some hints? Thanks a lot!!!

    Dear all,
    I have a problem that getting null value in the SelectOneChoice field in a table binded to
    a view object. If I change that SelectOneChoice to inputText, it works perfectly. The details
    of the situation is described as follows:
    I've binded a view objects with 8 attributes to a af:table, then I manually change
    2 of the inputText fields inside 'Column' fields of the table to inputlistofvalue and
    selectOneChoice. The code is as follow:
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.AcNo.name}"
    sortable="false"
    headerText="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
    id="c1" width="180"
    inlineStyle="font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:medium;">
         <af:inputListOfValues value="#{row.bindings.AcNo.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.AcNo.label}"
              required="#{bindings.OpenBalanceVO1.hints.AcNo.mandatory}"
              columns="#{bindings.OpenBalanceVO1.hints.AcNo.displayWidth}"
              maximumLength="#{bindings.OpenBalanceVO1.hints.AcNo.precision}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.AcNo.tooltip}"
              id="it1"
              model="#{bindings.AcNo2.listOfValuesModel}"
              autoSubmit="false"
              returnPopupListener="#{backingBeanScope.backing_ImportOpenBalance.returnListener}">
              <f:validator binding="#{row.bindings.AcNo.validator}"/>
         </af:inputListOfValues>
    </af:column>
    <af:column sortProperty="#{bindings.OpenBalanceVO1.hints.CurrencyCode.name}"
         sortable="false"
         headerText="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
         id="c2">
         <af:selectOneChoice value="#{row.bindings.CurrencyCode.inputValue}"
              label="#{bindings.OpenBalanceVO1.hints.CurrencyCode.label}"
              shortDesc="#{bindings.OpenBalanceVO1.hints.CurrencyCode.tooltip}"
              id="it2" autoSubmit="false"
              partialTriggers="cb1 cb2">
              <f:selectItems value="#{loginInfo.activeCurrencies}" id="currenciesList"/>
         </af:selectOneChoice>
    </af:column>
    And I have binded the returnPopupListener to returnListerner event handler to automatically
    set the Currency field (2nd field) after the user chose the Account field (1st field) from
    the input list of value:
    public void returnListener(ReturnPopupEvent returnPopupEvent) {
         RichInputListOfValues lovField = (RichInputListOfValues)returnPopupEvent.getSource();
         ListOfValuesModel lovModel = lovField.getModel();
         CollectionModel collectionModel = lovModel.getTableModel().getCollectionModel();
         JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
         RowKeySet rks = (RowKeySet)returnPopupEvent.getReturnValue();
         List tableRowKey = (List)rks.iterator().next();
         DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
         Key key = (Key)tableRowKey.get(0);
         Row row = dciter.findRowByKeyString(key.toStringFormat(true));
         DCBindingContainer bc = getBindingContainer();
         DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
         OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
         FacesContext fctx = FacesContext.getCurrentInstance();
         ExpressionFactory elFactory = fctx.getApplication().getExpressionFactory();
         ValueExpression ve = elFactory.createValueExpression(fctx.getELContext(), "#{loginInfo}", LoginInfo.class);
         LoginInfo loginInfo = (LoginInfo)ve.getValue(fctx.getELContext());
         System.out.println("Return place: search date:" + loginInfo.getSearchDate());
         Row newRow = viewObject.createRow();
         String selectedAcNo = row.getAttribute("AcNo").toString();
         String selectedCurrency = row.getAttribute("CurrencyCode").toString();
         newRow.setAttribute("AcNo", selectedAcNo);
         newRow.setAttribute("CurrencyCode",selectedCurrency);
         newRow.setAttribute("OpenBal", 300);
         newRow.setAttribute("AvailBal", 200);
         newRow.setAttribute("CreateDate", new Date());
         newRow.setAttribute("EffectiveDate", loginInfo.getSearchDate());
         newRow.setAttribute("LockStatus", "N");
         viewObject.insertRowAtRangeIndex(rowIndex, newRow);
    The problem occurs when I use a 'createInsert' button to create a new row in the table,
    and then choose a value from the inputListOfValues. The new row refresh and get the value
    I chose in the first column in the new row. But the second column (currency field) is left
    as empty (null value). If I change the second column frmo selectOneChoice to inputText,
    the correct Currency value (e.g. "HKD" or "USD") can be shown. So I wonder if there is any
    additional tricks in order to set the selectOneChoice value during refresh.
    Additionally I have tried to check the state of the view object attributes during the refresh
    lifecycle and found that the following reload method (else place) is being reached 3 times after I click
    the 'ok' button in the popup up in the inputListOfValue.
    public void beforePhase(PagePhaseEvent event) {
         //System.out.println("i am here inside backing bean : before phrase 1 phrase ID:" + event.getPhaseId());
         if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
              if (!isPostback()) {
              } else {
                   System.out.println("Post Back on Page Load!");
                   DCIteratorBinding it2 = bc.findIteratorBinding("OpenBalanceVO1Iterator");
                   OpenBalanceVOImpl viewObject = (OpenBalanceVOImpl)it2.getViewObject();
                   RowSetIterator iterator = viewObject.createRowSetIterator(null);
                   iterator.reset();
                   while (iterator.hasNext()) {
                        //Row row = viewObject.getCurrentRow();
                        Row row = iterator.next();
                        System.out.print("Account:" + row.getAttribute("AcNo"));
                        System.out.print(",AvailBal:" + row.getAttribute("AvailBal"));
                        System.out.print(",OpenBal:" + row.getAttribute("OpenBal"));
                        System.out.print(",CurrencyCode:" + row.getAttribute("CurrencyCode"));
                        System.out.print(",EffectiveDate:" + row.getAttribute("EffectiveDate"));
                        System.out.print(",UserCreate:" + row.getAttribute("UserCreate"));
                        System.out.println("");
                        if (row.getAttribute("UserCreate").toString().equals("<current user>")) {
                             System.out.println("Match <current user> in preload");
                             //row.setAttribute("CurrencyCode", "USD");
                   System.out.println("end of reload");
    During the 1st time, the CurrencyCode field was set currently, but then in the 2nd and 3rd
    times, it's value suddenly changed to 'null'. If I use inputText, all the 3 times currencyCode
    field is showing correctly without the null issue.
    Anyone can kindly give me some hints? Thanks a lot!!!

  • Inserting file path/filename

    Hi, all out there,
    I've just strated using Pages '08, and exploring it. But Pages Help and User Guide do not tell me how to insert the file path or filename in the footer, so that it's automatically updated whenever changed. It's not in the Insert menu, and cannot find it in Insert > Function.

    Hi Peggy,
    Though that feature is useful isn't found in 10.4.10. The Devon Technologies WordService ReadMe file has the following:
    Insert:
    Contents Of Path
    Inserts files and folders of the selected path (tilde is expanded)
    and of all its subdirectories (e.g. select the path '~/' and this function
    will insert all contents of your home directory)
    Short Date Cmd-'{'
    Inserts the current date (no text selection necessary)
    Long Date Cmd-'}'
    Inserts the current date (no text selection necessary)
    Short Date & Time Cmd-'_'
    Insert the current date & time (no text selection necessary) Long Date & Time Cmd-'%'
    Insert the current date & time (no text selection necessary) Time
    Insert the current time (no text selection necessary)
    Maybe that's what you're seeing in your services menu perhaps.
    Sincerely,
    RicD

Maybe you are looking for

  • How to recognize invalid UTF8-codepoints ?

    Not all possible byte-sequence are valid UT8-characters. ( See http://en.wikipedia.org/wiki/Utf-8 ) For instance the byte-sequnence 195 and 34 (decimal) is invalid. Oracle seems to have no problem with it. It stores the sequence in the database and i

  • Erro javax.xml.soap.SOAPException: Message send failed: t4-2-dev-fmw01vm

    hi am having this error when i click the submite button,am in jdeveloper 11.1.1.6.0 Messages for this page are listed below. Error      javax.xml.soap.SOAPException: Message send failed: t4-2-dev-fmw01vm Error      Message send failed: t4-2-dev-fmw01

  • How can I select the workbook belongs to particular AWm

    Hi, How can i find oracle discoverer plus workbook is belongs to which awm/measure folder thru SQL. I have 2 workbooks namely workbook1,workbook2 .These workbooks created based on 2 different Aw in 2 different users. When you give the workbook name i

  • TOMCAT CAN�T FIND BEAN CLASSE

    Hello, i am from Argentina. i need URGENT help with tomcat, because i am developing my final thesis. I have all my sources in C:\jakarta-tomcat-5.0.16\webapps\tesis C:\jakarta-tomcat-5.0.16\webapps\tesis\ (archivos jsp) C:\jakarta-tomcat-5.0.16\webap

  • Itunes opening up automatically

    itunes opening up automatically after updating to 10.5 and installing ios5 on my iphone, for which i have turned on wi fi sync. am using Windows 7