How to select both af:table at a time.

Hi, I am using jdeveloper Studio Edition Version 11.1.1.3.0
I ahve a functionality like, on my jspx page i have two af:table. & one af:commandButton.after selecting both table button, will get enable.
I mean after selecting the first row from the table first & selecting the second row from the table second then & then button should get enable.
How i can do this?
<af:panelGroupLayout id="pgl1" layout="horizontal">
<af:table value="#{managedBean1.perInfoAll}" var="row"
rowBandingInterval="0" id="t1" rowSelection="single">
<af:column id="c1" headerText="Name">
<af:outputText value="#{row.name}" id="ot1"/>
</af:column>
<af:column id="c2" headerText="Phone">
<af:outputText value="#{row.phone}" id="ot2"/>
</af:column>
<af:column id="c3"/>
</af:table>
<af:table value="#{managedBean1.perInfoAll2}" var="row1"
rowBandingInterval="0" id="table1" rowSelection="single">
<af:column id="column1" headerText="Name">
<af:outputText value="#{row1.name}" id="outputText1"/>
</af:column>
<af:column id="column2" headerText="Phone">
<af:outputText value="#{row1.phone}" id="outputText2"/>
</af:column>
<af:column id="c4"/>
</af:table>
</af:panelGroupLayout>

Hi,
use a managed bean that exposes true/false based on the table selection. You create a JSF component binding for both tables to the managed bean. Then from the disabled property of the button, you reference the method, which in turn checks the tables for the selecteRowKeys. If the selected row keys is empty on one of the tables then obviously the condition under which the buttons are enabled are not met and you return true. You also need to change the table selection listener because these need to PPR the button as otherwise you wont be able to change the button from diadbled to enabled
Frank

Similar Messages

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • How to select a new table in logical database after creating the Infoset

    I have created a abap query report ,i have used logical data base ADA in the infoset in SQ02.In the logical database i had selected only two tables then ANALV and ANLB.Now my client wants one more field to be added and thats is from table ANEK.Now i need to select this table in logical database ADA.
    Please assist on how to select another table available in the Logicaldata base now which i didnt select when i created the query

    Markus,
    I have now selected the additional field Posting date in Document ANEK -BUDAT .Earlier the report had the fields from ANLCV - Current acquisition value ,ordinary dep posted selected for  the output.
    When i run the query after adding this new field ANEK-BUDAT the below warning  is generated  by system :
    The query specifications cannot be used to generate a list,
    i.e. the query will probably not return the list you desire.
    If you still want to execute the query, please use the
    "Generate" function
    -> 'Generate'
    Fields from parallel tables within a line*
    Line: 01
    Field: Posting Date in the Document
    (ANEK-BUDAT, table ANEK)
    Field: Ordinary depreciation posted
    (ANLCV-NAFA GEB, table ANLCV)
    Fields from parallel tables within a line*
    Line: 01
    Field: Posting Date in the Document
    (ANEK-BUDAT, table ANEK)
    Field: Current asset acquisition value
    (ANLCV-LFD KANSW, table ANLCV)
    2 warnings for query QUERY ***
    Please advice .How get this new field added.

  • How to select values frm table giving the condition value at runtime in SQL

    Hi All,
    How to select values from a table by giving the condition value at runtime in SQL
    My SQL statement is select * from employee where empno=<empno>, this empno I want to provide at run time. Also I don't have any bind variables defined. Can anyone please tell how can I achieve this. Also do I have to write a SQL or pl/sql statement.

    Hi Roshni Shankar,
    You can use substitution variable in case of SQL.
    SQL> select * from employees where emplployee_id = &emp_id;
    Enter value for emp_id: 100
    old   1: select * from employees where emplployee_id = &emp_id
    new   1: select * from employees where emplployee_id = 100If you want to put condition on varchar values then eighter provide values in single quotes or use single quote for substitution variable.
    SQL> select * from employees where last_name = &emp_name;
    Enter value for emp_name: 'King'
    old   1: select * from employees where last_name = &emp_name
    new   1: select * from employees where last_name = 'King'
    no rows selected
    SQL> select * from employees where last_name = '&e_name';
    Enter value for e_name: King
    old   1: select * from employees where last_name = '&e_name'
    new   1: select * from employees where last_name = 'King'In case of pl/sql you can pass values to procedure and you can use those values at run time.
    create or replace procedure test (p_emp_id number)
    as
       v_last_name      varchar2(100);
    begin
       select last_name
       into    v_last_name
       from  employees
       where employee_id = p_emp_id;
       dbms_output.put_line(p_emp_id ||'    ->    '||v_last_name);
    end;
    show errors
    SQL>exec test(100);
    SQL>exec test(101);Edited by: Gaurav Bhide on Oct 29, 2012 4:07 AM

  • How to select only one record at a time in ALV

    Hi all,
    I have to use ALV report.  Each record on the report output should have a button (or radio button) which will allow the record to be selected.  My requirement is to select only one record at a time.
    please guide me how to proceed further.
    regards
    manish

    hi
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCheckBoxProgram
    Regards
    Pavan

  • How to select two things at the same time ?

    Hey guys, i'm French and I need your help !
    I'm working everyday on iWork and especially Pages.
    How to select two parts of a text at the same time ?
    Before we only need to select one, to press the "cmd" button and then to select another part. It doesn't work anymore!
    Thanks for you help
    and sorry for the mistakes !

    Hey guys, i'm French and I need your help !
    I'm working everyday on iWork and especially Pages.
    How to select two parts of a text at the same time ?
    Before we only need to select one, to press the "cmd" button and then to select another part. It doesn't work anymore!
    Thanks for you help
    and sorry for the mistakes !

  • How to decrease the dynamic table data loading time

    hi
    i have problem with dynamic table.
    when i execute the the table with passing a query , getting lot of time for loading the table data.( it takes 30sec for every 100 rows.)
    pls help me how to overcome this problem.
    thanks advance.

    Yes, This is oracle application...
    We can move into other tablespace as well. But concern is how to improve the alter table move command performance.
    Is there any specific parameter apart from the nologging and parallel server..
    If it is taking 8 hours , can some have experience that nologging will save how much time. or is there any risk in doing in production.
    Regards

  • Problem : SELECT from LTAP table takes much time (Sort in Database layer)

    Guys,
    Im having problem with this select statement. It takes much time just to get single record.
    The problem is with accessing the LTAP table and the ORDER BY DESCENDING statement.
    The objective of this select statement is to get the non blocked storage bin which is used by latest transfer order number.
    If the latest transfer order no storage bin is blocked, then it will loop and get the 2nd latest transfer order no's storage bin and
    checks whether it blocked or not. It will keep looping.
    The secondary index has been created but the it still taking much time (3 minutes for 10K records in LTAP)
    Secondary Indexes:
    a) LTAP_M ->MANDTLGNUM PQUIT MATNR
    b)LTAP_L  ->LGNUM PQUIT VLTYP VLPLA
    Below is the coding.
    ******************Start of DEVK9A14JW**************************
        SELECT ltaptanum ltapnlpla ltap~wdatu INTO (ltap-tanum, ltap-nlpla, ltap-wdatu)
              UP TO 1 ROWS
              FROM ltap INNER JOIN lagp                         "DEVK9A15OA
              ON lagplgnum =  ltaplgnum
              AND lagplgtyp =  ltapnltyp
              AND lagplgpla =  ltapnlpla
                WHERE lagp~skzue = ' '
                AND ltap~pquit = 'X'
                AND ltap~matnr = ls_9001_scrn-matnr
                AND ltap~lgort = ls_9001_scrn-to_lgort
                AND ltap~lgnum = ls_9001_scrn-lgnum
                AND ltap~nltyp = ls_9001_scrn-nltyp
          ORDER BY tanum DESCENDING.
         ENDSELECT.
        IF sy-subrc EQ 0.
          ls_9001_scrn-nlpla = ltap-nlpla.
          EXIT.
        ENDIF.
    ******************End of DEVK9A14JW**************************

    > Im having problem with this select statement. It takes much time just to get single record.
    This is not true. Together with the ORDER BY the UP TO 1 ROWS does not read 1 record but prepare all records, orders them and return one record, i.e. the largest in sort order.
    You must check what you need, either you need the largest record, then this can be your only possible solution.
    If you need only one recoird then the ORDER BY does not make sense.
    If you need the single largest record, then sometimes the aggregate function MAX can be an alternative.
    I did not look at the index support, this can always be a problem.
    Siegfried

  • How to select from multiple tables which reside on different data stores ?

    Suppose I have two data stores in one TimesTen instance:
    1) Datastore A:
    table1
    2) Datastore B:
    table2
    I want to make a query like this:
    select ... from table1, table2 where table1.colA = table2.colB
    Can I ? If not, is there a workaround ?
    BTW, because of business, we have to use two or more different datastores, so we can not put table1/table2 in the same datastore.
    Thanks very much.

    You can query multiple TimesTen databases, but your original question was about joining tables from two databases, which is not supported.
    Using Cache Connect to Oracle to query an Oracle database is not distributed. It's still one single Oracle database you are querying. You cannot join a table in the TimesTen database with a table in the Oracle database, this is not allowed.
    If you are willing to share your business requiremens, we can take a look and see what solution might work for you. Would you like to discuss this offline?
    Susan

  • How to select data from table having date in timestamp

    hi All,
    I have table and having one field date in type (Timestamp(6))
    Date Timestamp(6)
    I want to select the data from this table for yesterday or current date or someother day
    Please let me know the query for the same.
    Regards
    Kumar

    Do you really have a column named "DATE"? That is a reserved word in Oracle-- you cannot (easily) use it as a column name
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engin
    e options
    SQL> create table abc (
      2    date timestamp(6)
      3  );
      date timestamp(6)
    ERROR at line 2:
    ORA-00904: : invalid identifierIt wouldn't be helpful to have a column named DATE either.
    If you have a table ABC and a column TABLE_TIMESTAMP_FIELD, you would simply do as Bruce has suggested
    SELECT *
      FROM abc
    WHERE table_timestamp_field > systimestamp - 1will give you all rows from ABC where TABLE_TIMESTAMP_FIELD is from the last 24 hours. If you want all rows where TABLE_TIMESTAMP_FIELD was some time yesterday
    SELECT *
      FROM abc
    WHERE table_timestamp_field >= trunc(systimestamp - 1)
        AND table_timestamp_field < trunc(systimestamp)Justin

  • How to select One Check Box at a time

    Dear All
    I have 10 records in details blok and also I have 10 check boxes .
    I want user can only check one check box at a time .
    For example If first record I have checked and i am trying to check the last record then the first record UNCHECKED and the last record will checked .
    Like how redio buttons work ..
    How can i do that ..?
    I have done like this :-
    1st I have declare a global variable in PRE_FORM :GLOBAL.CNT := 'N';
    Then
    WHEN-CHECKBOX-CHANGED trigger
    IF CHECKBOX_CHECKED(EMP.CHK') THEN
        IF :GLOBAL.CNT != N THEN
            :EMP.CHK := Null
       HERE what to write ???
            RAISE FORM_TRIGGER_FAILURE;
        ELSE
            :GLOBAL.CNT := Y;
        END IF;
    ELSE
        :GLOBAL.CNT := N;
    END IF;Edited by: LuKKa on Aug 29, 2012 1:12 PM
    Edited by: LuKKa on Aug 29, 2012 1:13 PM

    LuKKa,
    An easier method would be to use a Calculated Field to summarize the value of your CHECKBOX Item. For example, add a non-table item (call it SUM_CHECKED) to your detail block and do not assign it to canvas - so it will not be displayed. Then set the following properties of the SIM_CHECKED item:
    Database Item = No
    Calculation Mode = Summary
    Summary Function = Sum
    Summarized Block = <YOUR DETAIL BLOCK>
    Summarized Item = <YOUR CHECKBOX ITEM>
    Next, you will need to change your Detail Block property Query All Records to YES (this is required for the Calulated Item).
    Now, make sure your checkbox is data type NUMBER and has the following minimum properties set:
    Data Type = Number
    Maximum Length = 1
    Initial Value = 0
    Value when Checked = 1
    Value when Unchecked = 0
    Check Box Mapping of Other Values = Not Allowed or Unchecked
    Now, in your Checkbox Item's When-Checkbox-Changed trigger add code similar to this:
    IF ( CHECKBOX_CHECKED('YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM') ) THEN
       IF ( :YOUR_DETAIL_BLOCK.SUM_CHECKED > 1 ) THEN
       --Reset the checkbox
       :YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM := NULL;
       MESSAGE('You can only check one item.');
       Message(' ');
       RAISE Form_Trigger_Failure;
       END IF;
    END IF;I have confirmed this method works and it is more efficient than looping through your records to see if other checkboxes are checked.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How can I build a table with the time values of a timer from a while loop

    Hi:
    I have a question concerning building a table:
    Every 100ms I read a value from a sensor (while loop with a timer). I would like to build a table with the actual time and the concerning value. For example:
    0msec         1V
    100msec     2V
    200msec     3V
    300msec     4V
    etc.
    If I use the Express VI for building a table, I always get the date and time, but I don't need the date and the time is in the following format: HH:MMS, which is nonsensical for me as I can't differentiate within msec. Can I change the format anywhere?
    Can I also save the table to a file or even to an Excelsheet? How can I do that?
    Thanks for your help!

    Hi Craig:
    thank you very much. To solve the mystery : ) :
    I want to drive a stepper motor with a specific frequency. To get the current degree value of the motor I would like to measure the current time (from the beginning of the move on). (With a formula I get the degree value out of the time)
    Concurrently I would like to get data from a torque sensor and from a pressure sensor. That's why I asked you about the time and the table. The measurement should start with the movement of the motor. How can I do that? Right now I have different block diagrams (different while loops) (see attachment) and I would like to put them in one.
    I haven't done the block diagram for the pressure sensor yet, so there is only the one for the torque sensor and the one for the motor.
    I also would like to set a mark in the table when the voltage value of an analog input gets under a specific threshold value. Is that possible?
    I'm sorry, I'm a novice in LabVIEW. But maybe you can help me.
    Thank you very much!
    Steffi
    Attachments:
    motor.vi ‏238 KB
    sensor.vi ‏59 KB

  • How to select a sub image in run time

    Hi ,
    how can i select sub image from an image on panel in run time ?
    OR
    how to draw a rectangle(with dashed lines) on the panel and from its dimension i'll get the sub image ?
    THANKS

    BufferedImage.getSubImage(....);

  • No 'order by' selection for cluster tables generates run-time

    Hi together,
    Basically I want to use a "select...order by" statement with table mhnd.
    Since mhnd is a cluster table you can not use "...order by".
    So, I use a select ... into table. I then sort this table and finally read it (index = 1)
    Unfortunatly this approach generates huge run-time.
    What can be done to minimize run-time?
    Thanks for any help

    Hi Gerd,
    Which cluster table you are using and what`s data you wanted? Maybe there are some FM to extract data from it.
    regards,
    Archer

  • Same Mac, connecting to two different networks, one by Ethernet, one by Wi-Fi. How to see both networks at the same time?

    On this Mac, I have access to the company network (and Internet) via the Ethernet port (gateway 192.168.1.1).
    At the same time, I have a second (backup) Internet link via Wi-Fi, to a different ISP (gateway 192.168.3.1)
    At the least, I would like to view the company network from the Finder AND access Internet via the Wi-Fi link.
    I have minimal knowledge of network stuff, but if I could redirect the browser requests to the Wi-Fi link, maybe it would work?
    Thanks for your help!

    Oh well... just found the reply...
    Changing order of the connections, putting the Wi-Fi first as it gets the HTTP first.
    Don't know why, but it would not work yesterday!

Maybe you are looking for

  • Sql trace

    Hi All, I am new to this ABAP field.. I know how to do SQL trace ....But what I am not getting is " <b>HOW CAN WE TELL FROM THE OUTPUT OF SQL TRACE, THAT THIS IS THE CAUSE OF SLOW PERFORMANCE OF A REPORT</b>" Based on what are we determining the perf

  • Syncing music/videos/apps that are already on my ipod touch

    Whenever I sync my ipod with iTunes on my mac, any songs, videos, or apps that are different in any way whatsoever or automatically resynced to my ipod.  This is fine for apps, as the only way this would happen is if there is in app update.  However,

  • Free (and worthwhile) plug-ins for CS3

    I know that "worthwhile" is subjective. But of course "Free" is not subjective. I'd like to get some good links for Free PS CS3 plug-ins. Thanks for any info offered. Ron Hirsch

  • Sound Transform not working

    Hey guys, I'm getting this silly little problem. I'm making a sound play and I'm trying to change it's volume. I've done this many times before and got it to work, but in this script for some reason it's not working. The script looks like this : pack

  • Special GL indicator and document type

    Hello , I 'm not well acquainted to the FI applications but I know special GL indicator and document type are two important thing on Financials . I want to learn for what purpose these two fields used .  Also I would like to learn interactions betwee