Adf table issue on 1st selection,from 2nd selection all works. Please help !!!

I am using Jdev 11.1.1.4.0 .
I have a table which consists of 2 check box and a button plus other data. Now the problem is when we select the table/check box for the 1st time the table events behave unusally.
When I click the check box for the 1st time it gets unchecked.
But from 2nd selection everything works as expected. I am not pasting all columns of the table , if you ppl need them i'll paste it too.
Please feel free to ask any details you need, I am giving as much as possible from my side.
Note:- I have implemented paginaton so I had to use rangeSet ,cant use CollectionModel to do that.
<af:table value="#{bindings.GESearchVacancyTableVO1.rangeSet}"
                                                          var="row"
                                                          rows="#{bindings.GESearchVacancyTableVO1.rangeSize}"
                                                          emptyText="#{bindings.GESearchVacancyTableVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                          fetchSize="#{bindings.GESearchVacancyTableVO1.rangeSize}"
                                                          first="#{bindings.GESearchVacancyTableVO1.rangeStart}"
                                                          rowBandingInterval="0"
                                                          selectionListener="#{PaginationBean.rowSelected}"
                                                          rowSelection="multiple"
                                                          columnSelection="multiple"
                                                          id="t1"
                                                          contentDelivery="immediate"
                                                          autoHeightRows="#{bindings.GESearchVacancyTableVO1.rangeSize}"
                                                           styleClass="reqTables"
                                                           inlineStyle="width:700px; height:598px;"
                                                          binding="#{pageFlowScope.UpdateRequestSearch.vacancyTable}">
                                                        <af:column sortProperty="update"
                                                                   sortable="false"
                                                                   headerText="UPDATE"
                                                                   id="c0" align="center">
                                                                <af:commandButton text="UPDATE"
                                                                                  id="cb1"
                                                                                  action="#{pageFlowScope.UpdateRequestSearch.onClickTravel}"
                                                                                  actionListener="#{pageFlowScope.UpdateRequestSearch.onSelect}"
                                                                                  styleClass="buttonA">
                                                                        <af:setActionListener from="#{row.VacancyNumber}"
                                                                                              to="#{sessionScope.searchVacancyNo}"/>
                                                                </af:commandButton>
                                                        </af:column >
                                                        <af:column sortProperty="HOLD"
                                                                   sortable="false"
                                                                   headerText="HOLD"
                                                                   id="c100" align="center">
                                                                   <f:facet name="header">
                                                                   <af:panelGroupLayout id="pgHold" layout="vertical">
                                                                   <af:commandButton text="HOLD"
                                                                                  id="cb61"
                                                                                  styleClass="buttonA">
                                                                        <af:showPopupBehavior popupId="p1" triggerType="click"/>
                                                                    </af:commandButton>
                                                             </af:panelGroupLayout>
                                                                   </f:facet>
                                                                                          <af:selectBooleanCheckbox text=""
                                                                                          label=""
                                                                                          id="sbc1"
                                                                                          immediate="true"
                                                                                          autoSubmit="true"
                                                                                          rendered="#{row.Status eq 'Approved' and row.Chkbox eq '0'}"
                                                                                          value="#{row.HOLD}"
                                                                                          valueChangeListener="#{pageFlowScope.UpdateRequestSearch.onHold}" >
                                                                                          <af:clientAttribute  name="attr" value="#{row.VacancyNumber}" />
                                                                </af:selectBooleanCheckbox>
                                                        </af:column>
</af:table>
//On check box click .
    public void onHold(ValueChangeEvent valueChangeEvent) {
        // Add event code here...
        DCIteratorBinding itr=ADFUtil.findIterator("GESearchVacancyTableVO1Iterator");
        RowSetIterator rsi=itr.getRowSetIterator();
            UIComponent holdBox=valueChangeEvent.getComponent();
            String vacnum=holdBox.getAttributes().get("attr").toString();
            Key key=new Key(new Object[] {vacnum});
           Row currRow=itr.getCurrentRow();
             if (currRow!=null){
                 System.err.println("Row found:::DDDD"+currRow.getAttribute("VacancyNumber"));
            try{
        if(valueChangeEvent.getNewValue().equals(Boolean.TRUE)){
            System.err.println("Selected TRUE for vacNum"+currRow.getAttribute(0));
            currRow.setAttribute("HOLD", true);
            currRow.setAttribute("CANCEL", false);
            if( getKeyListCancel().contains(key))
                   getKeyListCancel().remove(key);
            getKeyList().add(key);
        }else if(valueChangeEvent.getNewValue().equals(Boolean.FALSE)){
            System.err.println("Selected FALSE");
            currRow.setAttribute("HOLD", false);
            getKeyList().remove(key);
          ADFUtil.doPartialRefresh(vacancyTable);
          System.err.println("Now the size list "+getKeyList().size());     
        }catch(oracle.jbo.AttrSetValException e){
            currRow.setAttribute("HOLD", false);
          itr.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
          AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
          adfContext.addPartialTarget(vacancyTable);
          // ADFUtil.throwErrorMsg(null, e.getMessage());
// SelectionListner which basically sets the selected row as current row
    public void rowSelected(SelectionEvent se){
      JUCtrlRangeBinding staffView = getStaffView();
      staffView.getIteratorBinding().setCurrentRowIndexInRange((Integer)se.getAddedSet().toArray()[0]);
    private JUCtrlRangeBinding getStaffView(){
                String view="GESearchVacancyTableVO1";      
      BindingContext bindingCtx = BindingContext.getCurrent();
      BindingContainer bindings = bindingCtx.getCurrentBindingsEntry();
      JUCtrlRangeBinding objView=(JUCtrlRangeBinding)bindings.getControlBinding(view);
      return objView;

Same issue in 11.1.1.7 . I am using out of the box pagination for this purpose though. Any pointers plz? Somehow the very first action of check box is being reset by the framework. Even though the state of the check box on UI shows up as selected, the column value is reset to its original value(false).

Similar Messages

  • Can not select from my own MV. Please help.

    Hello Gurus,
    I have created a MV with following clauses
    CREATE or REPLACE MATERIALIZED VIEW "OWNER_NAME1"."MV_Name1"
    BUILD IMMEDIATE
    USING INDEX
    REFRESH COMPLETE
    AS
    SELECT column1, column2 .... from table1,table2
    where .....
    I have logged in to DB with the 'owner_name1' schema itself which is the owner of the MV.
    But, when I try to select from the above MV. It gives error "Ora-00942 table or view does not exist"
    I can see the same under 'user_objects' view as an object of owner_name1 schema.
    Could you please help me in understanding where I have gone wrong?
    DB - Oracle 9i on unix platform.
    Thanks in advance!
    Abhijit.

    Oh! I missed to mention the exact steps followed by me which created error for me,
    viz.
    1) I have 2 Database and their users as follows
    bq. i) DB1 in local server - 'localUser'
    bq. ii) DB2 in remote server - 'RemoteUser1' and 'RemoteUser2'
    2) 'RemoteUser2' user in DB2 has 'select' privilage on table 'RemoteTable1' of 'RemoteUser1' ( both are remote DB's users ! )
    i.e. select * from RemoteUser1.RemoteTable1; --works okay when logged into RemoteUser2. no synonyms are created hence using schema_name.table_name convention.
    3) Logged in to 'localUser' in DB1.
    4) Created a DB link 'local_to_remote2' in 'localUser' schema ( in DB1) to 'RemoteUser2' schema (in DB2)
    i.e.
    create database link local_to_remote2 connect to RemoteUser2 identified by password using 'connection_string';
    DBLink was created successfully.
    5) I could select from the tables of 'RemoteUser2' using DB Link. (by logging in to 'localUser')
    i.e. select * from RemoteUser1.RemoteTable1@local_to_remote2 ; --- gives me expected output. no issues!
    6) Now, I created below MV in 'localUser' ( no need to tell in 'DB1' )
    the exact syntax I used is as follows,
    CREATE or REPLACE MATERIALIZED VIEW "localUser"."MV_Name1"
    BUILD IMMEDIATE
    USING INDEX
    REFRESH COMPLETE
    AS
    SELECT column1, column2
    From RemoteUser1.RemoteTable1@local_to_remote2
    where condition1
    and condition2;
    The MV was created successfully, and I could see it as an 'Valid' object of 'localUser' schema.
    i.e. select * from user_objects where object_name ='MV_NAME1' and status ='VALID' --- tells that above create MV is an object of owner 'localUser'
    But, when I try to select from the said MV. it gives me error "Ora-00942 table or view does not exist"
    i.e. select * from MV_Name1; ---- neither this
    select * from localUser.MV_Name1; ---- nor this works :(
    Even when I try to drop the same MV it gives me same error. :(
    Could you please suggest me anything so that I will be able to select from MY OWN MV ?
    Please help Gurus.

  • SELECT FROM tab WHERE co varname -PLEASE HELP

    Hi
    I am trying to use a select query where col1 > 3. Instead of 3 i HAVE to use a variable name . Im getting data type mismatch in criteria expression error when i use this code:
    String query ="SELECT * FROM MEMBERS WHERE M_ID > '" + myvar + "' ";
    Please note that i tried using myvar as a String, int and even as a long - all in vain - resulted in same error.
    What am i doing wrong in that piece of code please?
    THANKS LODES
    sabcarina

    ok thanks . like YOU said this worked:
    String query= "SELECT * FROM MEMBERS WHERE M_ID >" + myvar;
    So please i need to LEARN the need for single quotes in the SQL queries:
    What is it used for and why ? i mean i know it is for Strings but why do we need to enclose these varnames in single quotes?
    THANKS A MILLION
    sabcarina

  • POST gets two answers, only got headers from 2nd... Please help!

    Hello!
    In this attempt to make a software that connects to a webserver (youtube), authenticates and manages a user's address book, I'm using the HttpURLConnection for sending POST data and getting back an answer. Understanding the basics is ok, it works from a Java point of view, but... PLaying with http gets a bit tricky :-)
    I've been trying to understand for hours now, and here's the problem: The only HttpURLConnection in use receives a first answer, (with the good data) then a few ms after, it receives a second answer (without that good data).
    The headers are read the following way:
    Map> headers = http.getHeaderFields();
    for (String key : headers.keySet()) {
        for (String value : headers.get(key)) {
            System.out.println(key + ": " + value);
    }(see, I've made nothing new)
    The system.out.println only outputs the Set-Cookie headers of the second response. A network packet sniffer shows these two responses:
    Frame 9 and Frame 18:
    {color:#000000}6 {HTTP:1, TCP:0, IPv4:0} 192.168.1.3 208.117.236.70 HTTP HTTP:Request, POST /login{color}
    7 {HTTP:1, TCP:0, IPv4:0} 192.168.1.3 208.117.236.70 HTTP HTTP:HTTP Payload, URL: /login
    {color:#3366ff}9 {HTTP:1, TCP:0, IPv4:0} 208.117.236.70 192.168.1.3 HTTP HTTP:Response, HTTP/1.1, Status Code = 303, URL: /login{color}
    11 {HTTP:1, TCP:0, IPv4:0} 208.117.236.70 192.168.1.3 HTTP HTTP:HTTP Payload, URL: /login
    16 {HTTP:3, TCP:2, IPv4:0} 192.168.1.3 208.117.236.70 HTTP HTTP:Request, GET /index
    {color:#3366ff}18 {HTTP:3, TCP:2, IPv4:0} 208.117.236.70 192.168.1.3 HTTP HTTP:Response, HTTP/1.1, Status Code = 200, URL: /index {color}
    Frame n&deg;
    6 being the post request (headers),
    7 the payload of the request (i.e. username, password action_login, etc.),
    9 is the the answer containing the needed Set-Cookies ("LOGIN_INFO"),
    11 the payload of that answer (contains nothing relevant),
    16 hmm not sure about its purpose,
    18 is the "second" response to the post request.
    Frame 18 does contain a few Set-Cookie headers, but these are useless (i.e. GEO tag, etc. which are different between every request). However, I can't find a way to "prevent" my instance of HttpURLConnection to recover further responses... I tried to put
    setRequestProperty("Connection", "close");instead of "keep-alive", but no, doesn't help :(
    Then I thought it was a header's fault in frame 9: "Location" which would impose a redirect and did expect the following code to prevent "getting" or whatever send another response:
    setFollowRedirects(false); Ok. It's a bit early to call it a happy end... I really need help for this!
    Thanks a lot for your time!
    Edited by: Neurone-shortage on Feb 7, 2009 4:16 AM

    Have a look at the status code of your POST request. It's 303 (See other), which is a redirect. Either your request data is missing some data, or you are sending your request to a wrong URL.
    I think, the redirect points to /index, that's why HttpUrlConnection transparently request /index for you, which results in the second response.
    Cheers
    Henrik

  • How can i update rows  in a table based on a match from a select query

    Hello
    How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
    Thanks Glenn
    table1
    attribute1 varchar2 (10)
    attribute2 varchar2 (10)
    processed varchar2 (10)
    table2
    attribute1 varchar2 (10)
    table3
    attribute2 varchar2 (10)
    An example:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)

    Hi,
    Etbin wrote:
    Hi, Frank
    taking nulls into account, what if some attributes are null ;) then the query should look like
    NOT TESTED !
    update table1 t1
    set processed = 'Y'
    where exists(select null
    from table2
    where lnnvl(attribute1 != t1.attribute1)
    and exists(select null
    from table3
    where lnnvl(attribute2 != t1.attribute2)
    and processed != 'Y'Regards
    EtbinYes, you could do that. OP specifically requested something else:
    wgdoig wrote:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
    But there is no argument about what needs to be done when processed is NULL.
    OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary.

  • My Apple TV 1st gen will now no longer play any of our iTunes music, although it shows a speaker symbol when you select play on the track. Please help?

    My Apple TV 1st gen will now no longer play any of our iTunes music, although it shows a speaker symbol when you select play on the track. Please help?

    Are you streaming or syncing you music? Sounds like you're streaming music directly from iTunes.
    There can be many different issues. First, try power-cycling you wireless router (leave router disconnected for about 1 or 2 minutes) to refresh the wireless communication betweek both devices.
    Make sure all software updates have been installed, for Apple TV and iTunes.

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.

    Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.

    i have on my ipad2 and re-download it - but I can't afford to loose the presentation that I currently have ....??
    Are you using Keynote on an iPad?
    If so you posted in the wrong forum, this is the Keynote Mac discussion and it is a different application. I dont know how the iPad works at all, so I cant help you, post in the Keynote iOS discussion.
    If you are using a Mac, the colours palette is accesed by clicking on the colour well (arrowed) and then selecting a colour chip or changing the color in the colour wheel.

  • HT4628 My macbook pro doesn't connect to the Wi-Fi at home while my iPad connects to the same Wi-Fi. When I try connecting my macbook to my iPhone's personal hotspot, the internet works but the issue is connecting my macbook to the Wi-Fi. Please help!!

    My macbook doesn't connect to the Wi-Fi at home while my iPad connects to the same Wi-Fi. When I try connecting my macbook to my iPhone's personal hotspot, the internet works but the issue is connecting my macbook to the Wi-Fi. Please help!!
    I don't understand how to fix this and I don't seem to understand where the problem is coming from.

    Let's try the simple approach first. Restart your router. Any change?

  • I have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    Greetings,
    What happens when you drag it?
    Make sure the drive you are moving the files to has enough available space to receive the file:
    Click on the movie file and go to File >  Get Info and note the "size"
    Check the drive to which you are moving the file to make sure it has enough available space: https://idisk.me.com/madisonfile-Public/web/finder-drive-available-space-and-for mat.html
    Also note the format of the drive you are copying too.  If it is not Mac OS Extended or FAT (not recommended unless you are taking it to a windows computer) then that may be the issue.
    Hope that helps.

  • I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD

    I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD

    To delete files from your external HDD, attach it to your MBP and drag the unwanted files to trash and then empty trash.
    Then you select the files that you want to transfer by 'drag and drop' to the external HDD and trash the files on your MBP.
    Ciao.

  • I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    There is nothing that anyone here on a user forum can do to help you.  If it is a local issue in Syria, then you need to take it up with your phone company or authorities there who have prevented you from using VPN.
    Nobody here can help you.

  • Since uninstalling / reinstalling iTunes I am not able to sync iPhotos with my Apple TV with the following warning message stating that this is due to a 'problem on your computer. The disk could not be read from or written to'. Please help!

    Since uninstalling / reinstalling iTunes I am not able to sync iPhotos with my Apple TV with the following warning message stating that this is due to a 'problem on your computer. The disk could not be read from or written to'. Please help!

    Welcome to Apple Discussions!
    Is all the software on your computer up to date?
    iTunes
    iPod Updater
    Also, try The Five R's
    btabz

  • Iv just introduced midi into my studio im running logic9 and have brought Midiman Aniversary 4in 4 out to my set up midi is running well but i cannot seem to mute or solo midi regions an isolate them from the audio can someone please help me Murray.

    Iv just introduced midi into my studio im running logic9 and have brought Midiman Aniversary 4in 4 out to my set up midi is running well but i cannot seem to mute or solo midi regions an isolate them from the audio can someone please help me Murray.

    Hi Charlotte,
    You don't say what your version of Windows you have. Assuming XP, go to Start | Run, type DXDIAG and click OK. Click the Sound tab and run the tests to eliminate a hardware problem first of all. If you don't hear anything, check your cables first of all. Also make sure "Mute" isn't checkmarked in your sound setup. You'll find that in Windows Control Panel.
    Which browser do you use? If you have Firefox 4, sign up to the HTML5 trial @ http://www.youtube.com/html5
    HTML5 is the latest video standard and doesn't require Flash player. Google is in the process of converting all its files to work with the new format. It may solve you problem. If you don't have Firefox 4, you can get it from here: http://www.mozilla.com/en-US/firefox/fx/
    IE8 doesn't support HTML5.
    To clean out your temp files, go to Start | Run, type: CLEANMGR and click OK. Click OK again to start the utility. Tick all the boxes except "Compress old files" because the latter takes too long, and then click OK. You can run this utility any time you wish by the way.
    The above steps will hopefully fix your problem. If not, post here again please.

  • Hi  When i create the downpayment process in the invoice i get amount as value but my requirement is in percentage even after i select the percentage basis milestone billing please help what can be done

    Hi  When i create the downpayment process in the invoice i get amount as value but my requirement is in percentage even after i select the percentage basis milestone billing please help what can be done

    downpayment percentage , so if i want 50 percent of order value to be paid  and when i go to faz type the invoice is created for 0 value that 50 percent of the amount is not getting calculated , where as when i enter in order same as 50 percent in amount it gets calculated in invoice, any help ?

Maybe you are looking for

  • How to find out the cost of SAP user for a particular user id

    Dear All, I got one issue like how to find out the cost of SAP user, i mean for a particular user id. Could you please advice me regarding this. Raghu

  • How do you merge the data of two MIDI regions?

    How do you merge the data of two MIDI regions into one MIDI region without using copy and paste functions in the piano roll editor?

  • The Big ?

    I thought i would start a thread for customers thinking of getting a iphone so the big question is so how gd is the iphone can u share ure thoughts on the iphone good and bad

  • Quicktime Player 10 verses Quicktime Pro 7

    I have Quicktime Player 10 which I have used for viewing online TV shows and TV movies on my iMac. Problem is the video screen in QT Player only has two sizes, very small (4" x 2-1/4") and medium (about 4-1/2" x 8"). I was wondering if Quicktime Pro

  • Custom Parameter Provider in new WD template not working (NW04S SP11)

    Hi, We're attempting to use the Custom Parameter provider in our portal for many Web Dynpro iviews. In the end we will have from 100-300 SAP clients in the backendsystem and we need this functionality to dynamically route users to the correct backend