Issue with Selection Listener when the table has only one row

Hi All ,
I have developed a table in which I am using Selection Listener to perform some task when any row is selected.
It is working fine when I have more than 1 row in the table, but when I have only one row in the table , the selection listener do not call the corresponding method in bean.
I understand that selection event will be raised only when the row is changed, but in the use case when only one row is there, what should be done to make the selection listener work ?
In the selection listener I have written code to make the selected row as current row , and perform the required task.
Please suggest a way out for this situation.
Thanks in advance.

Hi,
try removing this attr from table
selectedRowKeys="#{bindings.xxx_VO1.collectionModel.selectedRow}"

Similar Messages

  • Hi BC, I have an issue with BC. When the shopping cart is used it takes stock out of inventory and h

    Hi BC,
    I have an issue with BC. When the shopping cart is used it takes stock out of inventory and holds it, regardless of whether or not a customer proceeds to purchase. OK.
    To make matters worse, the stock is only cleared from the shopping cart when the customer closes the browser - not when they close the shopping window.
    Now lets say a customer doesn't close their browser for a month - it happens! .. when their stock is finally returned it may throw out our stock levels that have in the meanwhile been adjusted. So their stock will be added on top of an accurate stock take, putting stock in that isnt really available.
    This is causing us mayhem.
    We have not yet seen if stock is actually returned at all. In the test we did today where we filled a shopping cart then closed the browser without making a purchase, the stock was not returned immediately. So we dont even know when it will be returned - thats IF a customer actually closes their browser. Any solutions out there?
    Jo

    Hi there,
    The way stock is managed in this situation is desirable for many in that case otherwise shopping on a site and adding to cart would not be viable or use friendly.
    What you mention about not closing a browser though is a case that is not true. IF you go into the shop settings in the admin you can see the cart restore timer which is by default 24 hours but you can change this to as low as 1 hour if you wish.

  • How to make a form using a wizard when the table has no primary key ?

    Hi,
    I want to make a form to update, delete a table. The table has no primary key. The problem is that the Wizard ask for a primary key.
    How to avoid using a primary key ? i mean I don't want to create a primary key if is is possible.
    I would like to use the wizard; is it possible ?
    Thank you for your kind answers.
    Christian

    I believe the key is choosing 'Interactive' as opposed to 'Classic' in the implementation and then you can choose 'Existing Trigger' for the primary key source and it should work to use an existing column as your proimary key.

  • Issue with Select Query in the Delivery userexit USEREXIT_SAVE_DOCUMENT

    Hi All,
    I am facing a strang issue with delivery userexit
    1) I have a delivery user exit MV50AFZ1 - USEREXIT_SAVE_DOCUMENT.
    2) In this user exit. I have written a select query as shown below
    *Get the already delivered data
        SELECT vbeln
               vgbel
               vgpos
               erdat
               erzet
               lfimg
          FROM lips
          INTO TABLE t_lips
           FOR ALL ENTRIES IN t_xlips_reference
         WHERE vgbel EQ t_xlips_reference-vgbel
           AND vgpos EQ t_xlips_reference-vgpos.
        IF sy-subrc EQ 0.
        ENDIF.
    3) The use of the above select query is to find out if there is any delivery that has already been created for the reference slaes order for which the current delivery is being created.
    4) The issue here is that for the FIRST DELIVERY, this select query should fail becuase there is no delivery created earlier and LIPS table would not have data. But, I am seeing some data getting populated in the internal table. The data that I am seeing in the internal table is the data of XLIPS which is nothing but the one that is about to get saved in the database after finishing this userexit.
    5) STRANGE Point is that this is working fine in case if I create delivery using the transaction VL01N. But, if I create delivery using VL10A program I am facing this issue.
    << Removed >>
    Thanks,
    Babu Kilari
    Edited by: Rob Burbank on Jun 16, 2010 4:22 PM

    Then why don't you add
    AND vbeln NE likp-vbeln

  • Issue with selecting a line on table control

    Hello Experts,
    We have a table control and using w/ SelColumn for selecting the highlighted line on a table control. It's working fine sometimes but not working in other cases. It's really wierd.
    On this screen, under the Table Control, we have provided Bottons do some functionality.
    When the users select a row and click on this push button, it has to call another pop-up screen.
    We have the code like this:
    PROCESS BEFORE OUTPUT.
      MODULE INIT_0600.
      LOOP AT T_qacomp_prt INTO qacomp_prt WITH CONTROL TC_qacomp_prt.
        module fill_part_number.
        MODULE Gray_Parts.
        FIELD T_qacomp_prt-MARK.
        module highlight_lines.
        MODULE LINES_0600.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE CANCEL_600 AT EXIT-COMMAND.
      LOOP AT T_qacomp_prt.
        FIELD T_qacomp_prt-MARK.
        MODULE READ_TABLE_CONTROL_600.
      ENDLOOP.
      MODULE USER_COMMAND_0600.
    In User-Command the code is like this:
    MODULE USER_COMMAND_0600 INPUT.
      when 'ADD'.
       if t_qacomp_prt-mark = 'X'.
        get cursor line lin.
      call screen 0615 starting at 30 15.
    else.
       message i999(zxx) with 'Please select a line'.
    endif.
    For eg, When there are 5 lines on the table control, If I select the 2nd line and click on "ADD", it is calling the pop-up correctly.
    However, If I select the 4th line and click on "ADD" button, it is giving the message "Please select the line".
    PS: PBO, PAI code already exists, I only added the "USER-COMMAND" code.
    Can you please let me know what went wrong? I greatly appreciate your help.
    Thanks.

    Hi,
    Provide a Check box for that table control. Declare that Check box field as Type c in Main program. Go to screen PAI module write code for deleting that lines by clicking one button using sy-ucomm. Delete it where is_chk = 'X'..like try

  • Issue with rmi connection when server name has underscore("_")

    Hi
    I am getting the following error when server name has underscore("_"). And jserver is not coming up. can anyone please help me with this
    ERROR 02/11 17:19:42 jserver [main] 104021
    java.net.MalformedURLException: invalid authority: rmi://TP_BMCPOC:1099/server
    at java.rmi.Naming.intParseURL(Naming.java:313)
    at java.rmi.Naming.parseURL(Naming.java:220)
    at java.rmi.Naming.rebind(Naming.java:154)
    Looks liek Naming.rebind has some issue. is there any other alternative to register??
    Thanks
    anitha

    [http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names]

  • Pass value of column when report has only one row

    Hello everyone,
    Sorry for not being very accurate with the title of the thread.Here's my situation:
    I have an item that, when modified(key pressed) refreshes an interactive report. All the report column have link to a javascript function, so when the user clicks the row it passes a value to another item on the page.
    To be more specific it goes like this: the user enters a numer in the item, and as he presses a key the report is shrinked down based on the number that it's made.(asynchronous search like google)
    Here's my problem:
    I have made all this working(using dynamic actions and a little javascript), but, for the sake of making it user-friendly i want that when the report is shrunk to only one line, the value of a column in that line to be auto-passed to a page item.(or a javascript function)
    Thanks a lot!
    Kind Regards,
    Cearnau Dan
    PS: APEX 4

    I am currently work on something similar, sort of, unless it's not.
    Anyway, the first function called by the action, onChange in my case, returns a count of items. If there is an exact match, meaning a one is returned, the function branches one way. Otherwise, it branches another way.
    In the case of an exact match, I run some other JS/AJAX to populate other details on the line. If not an exact match, in my case, I show a <div id="searchCriteria"> for the user to refine their search or accept what they typed in the first box and get a list of all possible matches. Obviously yours would behave differently.
    Hope this helps,
    Gregory

  • Select from Oracle to MySQL returns only one row

    Environment:
    The Oracle Developer Days Virtual Box image, so that's 11gR2 EE on OEL
    MySQL 5.1.51-community
    mysql-connector-odbc-5.1.7-0.i386.rpm
    unixODBC 2.3.0
    I got the connection working, I can insert, update and delete records in the MySQL DB from Oracle (SQL Plus).
    But when I enter select * from "employees"@mysql I only get the first record returned.
    If I enter select * from "employees"@mysql order by "id" desc, I only get the last one...
    If I enter select count(*) from "employees"@mysql, I get the - correct - result of 3.
    So, how do I get the complete set of (all) records from a MySQL table in Oracle? Is there some kind of setting or is this intended behavior and do I have to create a PL/SQL loop and put the results into a collection or something like that?

    I've create a table like yours:
    create table gateway.employees(id int(10) auto_increment,
    first_name varchar(30),
    last_name varchar(100),
    personal_code varchar(20),
    birthday date,
    salary decimal(10,2),
    is_active int(1),
    PRIMARY KEY (id));
    insert into gateway.employees (first_name,last_name) values ('Name 1', 'Name 1');
    insert into gateway.employees (first_name,last_name) values ('Name 2', 'Name 2');
    insert into gateway.employees (first_name,last_name) values ('Name 3', 'Name 3');
    insert into gateway.employees (first_name,last_name) values ('Name 4', 'Name 4');
    insert into gateway.employees (first_name,last_name) values ('Name 5', 'Name 5');
    select * from gateway.employees;
    and tested it using DataDirect and MySQL ODBC.
    The DataDirect shows all 5 lines whereas MySQL 5.1.0.7 ODBC shows only 1 row.
    (isql isn't using extended fetching like DG4ODBC does).
    Edited by: kgronau on Nov 4, 2010 4:03 PM
    Here the result (fetching ID column):
    MySQl ODBC;
    SQL> select "id" from "employees"@MYSQL_EMGTW_1121_DB;
    id
    1
    DD ODBC V6:
    SQL> select "id" from "employees"@DD60_MYSQL_EMGTW_1121_DB;
    id
    1
    2
    3
    4
    5
    Edited by: kgronau on Nov 4, 2010 4:33 PM
    The 32bit version of MySQL ODBC (5.1.5 - no 5.1.7 release yet installed) works also:
    SQL> select "id" from "employees"@MYSQL_32;
    id
    1
    2
    3
    4
    5
    => so it is an ODBC issue

  • Security Filter fails when level has only one member

    Hi.
    This is Essbase version 9.3. I have a forecast app\db to allow users enter\modify the forecast of the different products. The Product Dimension has the following hierarchy.
    All Products
    Planner 1
    Supplier A
    Product_A1
    Product_A2Supplier B
    Product_B1
    Product is the lowest level, level 0, or Gen 4.
    I need to allow the "Planner 1" to write only to his products, where the member is "My Scenario" from Scenario Dimension, and where the UDA's for the month is Forecast. The same planner can't write to the "All Products", "Planner" and "Supplier" levels.
    I have created the following filter:
    None: "All Products"
    Read: @IDESCENDANTS("Planner 1")
    Write: @REMOVE(@LIST(@DESCENDANTS("Planner 1")),@LIST(@LEVMBRS ("Planner 1", 1))), "My Scenario",@UDA("Time","FORECAST")
    Basically, this is the portion most relevant of the filter: @REMOVE(@LIST(@DESCENDANTS("Planner 1")),@LIST(@LEVMBRS ("Planner 1", 1)))
    where
    @LIST(@DESCENDANTS("Planner 1") = List of descendants members from Planner 1, excluding Planner 1. = "FIRST LIST"
    @LIST(@LEVMBRS ("Planner 1", 1)) = List of level 1 members from Product Dimension. = "SECOND LIST"
    @REMOVE will remove values or members in the "SECOND LIST" from the "FIRST LIST".
    This filter works perfectly but it has a little\big exception...
    Based on the example, the filter works fine for Supllier A. Meaning that the user can modifiy the forecast for the products under Supplier A (Product_A1 and Product_A2), and the user can't modify the upper levels, "Supplier A", "Planner 1", "All Products". This is GOOD!
    Now. For Supplier B, Essbase will allow write back to the Product_B1, OK. But will also allow write back to Supplier B, the upper level.
    So. When the supplier has only one product, Essbase presents this exception that allows write to the upper level. This happens everywhere a supplier has only one product. When there are more than one product per supplier, the filter works as expected.
    Is there a missing piece in my filter? Is there a different, better approach to accomplish this?
    Thanks.

    It's probably an implied share problem. That is, because Supplier B has only one child it is treated as a shared member. You can use the "never share" storage property setting to avoid that problem.

  • Issue with autosubmit selectchoice in adf table

    I have a column in adf:table which has select choice with autosubmit property set. When the value in the select list changes the table has to refresh and so I have set partialTrigger on table to the select list.
    Now the issue is that when a query is performed and the table refreshes to render the query results, the value change listener of the select choice is invoked with mutiple times (based on number of rows ). The new value of the select choice is null. Why does this happen, how can I avoid it?

    hi ,
    can i see the code of the table ?

  • I added a new post to my iTunes U course and it is not showing up on one of my student's iPads.  She has only one Apple ID on the iPad. Any assistance is appreciated.

    A new post to my iTunes U course shows up in my course both on my Mac and my iPad Air, as well as on other students' iPads, but for one single student.  We have closed the app and forced shutdown.  Student recently added more icloud space, but that is all.  iPad is up-to-date in terms of iOS and iTunesU app.  The student has only one Apple ID associated with her iPad.
    We have reposted two more times.  The second time the post showed up for a few seconds, but then disappeared.  It does not show up under any other section (assignments, discussions, etc).  Any assistance is greatly appreciated.

    Have you contacted Apple support?
    I don't know if these will work, but you could have the student try the following:
    logout of his or her iTunes U (i.e., iTunes Store) account using Settings
    force-quit iTunes U
    relaunch iTunes U
    sign in to the newly launched app when prompted
    I hope that helps!

  • Since the Mountain Lion OS update today I've had issues with internet connection and e-mail, has anyone else?

    Since the Mountain Lion OS update today I've had issues with internet connection and e-mail, has anyone else?

    That's what I would have thought, but even after saving the setting, as soon as I shut down my computer or log out of Mail, it automatically defaults back to 25. It's a bit frustrating.
    Now I just need to figure out how to get rid of those horrible pop-up banners but still have my glass sound and number of emails in the red dot when I get an email...
    These little tweaks are the only thing I HATE about upgrading my OS.

  • Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    hi all
    i have a table that name is:
    TiketsHeader 
    but i used this code
    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    i see this error:
    Msg 116, Level 16, State 1, Line 2
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    how to solve it
    please help me
    Name of Allah, Most Gracious, Most Merciful and He created the human

    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    A Sub query like this can only return one column, not serveral like here with the star *. Replace the star by one column Name that you want to query.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Is apple going to fix the magic trackpad issue with Autocad zoom/pan soon? It only started happening when I updated to Yosemite

    is apple going to fix the magic trackpad issue with Autocad zoom/pan soon?
    It only started happening when I updated to Yosemite
    I am using macbook pro 15" Retina

    Although it not only bothers me but alot of other photo booth users aswell

  • Msg 116, Level 16, State 1, Line 6 Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    Hello,
    Can anyone help me?
    select year(po.rdata) as 'Ano', 
    sum(etotal) as 'Valorp' ,
    (select year(fo.data),Sum(etotal) 
    FROM fo (nolock) 
    where  not exists ( select 1 from pl (nolock) where pl.adoc = fo.adoc and pl.cm = fo.doccode ) 
    group by year(fo.data))as 'Valorap'   
    from po 
    group by year(po.rdata)
    order by year(po.rdata)
    Error 
    Msg 116, Level 16, State 1, Line 6
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    Consultora

    Hi Prashanth,
    select year(po.rdata) as 'Ano',
    sum(etotal) as 'Valorp' ,
    (select Sum(etotal)
    FROM fo (nolock)
    where not exists ( select 1 from pl (nolock) where pl.adoc = fo.adoc and pl.cm = fo.doccode )
    group by year(fo.data))as 'Valorap'
    from po(nolock)
    group by year(po.rdata)
    order by year(po.rdata)
    Gives me the error: 
    Msg 512, Level 16, State 1, Line 1
    Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
    Thanks
    Consultora

Maybe you are looking for

  • HT1338 i have tried to update the iPhoto in an iMac from 2010 which i have updated from Snow Leopard to to Mountain Lion but its impossible.What can i do?

    i have tried to update the iPhoto in an iMac from 2010 ( in which i have updated the OS from SnowLeopard to Mountain Lion 10.8.3) but it doesnt work,why? Is my iPhoto too old to update  do i have to buy and install  a new version of i Photo ? 

  • ODrive 10.2.0.0.5:  "The system cannot find the path specified"

    I am using Oracle Drive client 10.2.0.0.5. When I click "Work Online", I get the error, "There was a problem connecting to <connection name>. The system cannot find the path specified". The URL is entered as https://server.domain.com/content/dav. In

  • Statistical document to real

    Hi Guys, I need to convert statistical charges posted to a finalized contract account into u2018realu2019 or u2018liveu2019 in order that the debt can be invoiced and followed up. I am using dunning user exit 0350. Creating one FM for this. Table: T_

  • ALV default printing values

    Hi, i'm using FM REUSE_ALV_GRID_DISPLAY and i'd like to change the default format (print format) of a report. Therefore, when the user presses the print button and the print alv list appears, the print format by default that the user would see, would

  • Can't see image folders to import into LR

    Apologies in advance for any duplication, I originally posted this incorrectly. I can import photos directly from a card via the card reader on my MacBook Pro (OS Mavericks) but I prefer to organise my folder structure and import the images into a fo