Disabling a checkbox which is in a table, from managed bean

disabling a checkbox which is in a table, from managed bean -
i am able to iterate table and get/set value of checkbox but i want to disable it, how can i do that?
FacesContext facesContext = FacesContext.getCurrentInstance();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{bindings}", Object.class);
DCBindingContainer bindings = (DCBindingContainer) valueExp.getValue(elContext);
DCIteratorBinding iter = bindings.findIteratorBinding("dogsIterator");
RowSetIterator rit = iter.getRowSetIterator();
rit.reset();
while(rit.hasNext()) {
Row currentRow = rit.next();
Attribute attr = (Attribute)row.getAttribute("checked");
what code should come here to disable checkbox?
rit.closeRowSetIterator();
thanks.

Wes Fang wrote:
You might find it easier to simply use EL and evaluate that value on the disable property:
<af:column ...>
<af:selectBooleanCheckbox ... disabled="#{row.bindings.checked.inputValue==YOUR_DISABLE_VALUE?true:false}"/>
</af:column>
i used this approach.
kept a bean in session and used it's property in disabled attribute - now setting this property in my bean...

Similar Messages

  • Header value in data table can be fetched from managed bean.

    hi
    My requirement is to display a report in which column headers are also retrieved from data base, it cannot be hardcoded.
    instead of My Column it should come from managed bean
    <f:facet name="header">
    <h:outputText value="My Column"/>
    </f:facet>
    I am not able to fetch the header value from the managed bean.
    I tried
    <f:facet name="header">
    <h:outputText value="#{character.name}"/>
    </f:facet>
    but failed.
    Is there any way i can fetch these values at run time.

    Is that bean the main bean or the row object? It should be the main bean. There is only one column per table, its value is not to be derived from the row object.

  • Need to Add and Remove Columns of ADF Read Only table from Backing bean

    I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
    I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
    But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
    even If I apply the expression language rendering condition on the outputText inside those columns.. ..
    So I am thinking to add and remove VO Attribute columns to the table from backing bean.
    Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
    Please chip in People..
    Thanks in Advance .
    TK

    Table Code..
    <af:table value="#{bindings.InventoryGridTrans.collectionModel}"
                                    var="row"
                                    rows="#{bindings.InventoryGridTrans.rangeSize}"
                                    emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
                                    rowBandingInterval="0" id="t4"
                                    partialTriggers="::sbcSales ::sbcUsage ::cb1">
                            <af:column sortProperty="Period" sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
                                       id="c38">
                              <af:outputText value="#{row.Period}" id="ot33"/>
                            </af:column>
                            <af:column sortProperty="Past12SalesCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
                                       id="c29"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                              <af:outputText value="#{row.Past12SalesCount}"
                                             id="ot40"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
                              </af:outputText>
                            </af:column>
                            <af:column sortProperty="Past12UsageCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
                                       id="c40"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                       visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                              <af:outputText value="#{row.Past12UsageCount}"
                                             id="ot47"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
                              </af:outputText>
                            </af:column>
                            </af:column>
                    </af:table>

  • Can you find which user changed a table from redolog?

    Is it possible to find which database user that changed a tuple in a table from the redologs?
    Or is the only option to have activated some kind of auditing prior to the change?

    Here is what you can find using flashback transaction query.
    SYS@10G>desc flashback_transaction_query
    Name                                      Null?    Type
    XID                                                RAW(8)
    START_SCN                                          NUMBER
    START_TIMESTAMP                                    DATE
    COMMIT_SCN                                         NUMBER
    COMMIT_TIMESTAMP                                   DATE
    LOGON_USER                                         VARCHAR2(30)
    UNDO_CHANGE#                                       NUMBER
    OPERATION                                          VARCHAR2(32)
    TABLE_NAME                                         VARCHAR2(256)
    TABLE_OWNER                                        VARCHAR2(32)
    ROW_ID                                             VARCHAR2(19)
    UNDO_SQL                                           VARCHAR2(4000)You can see the LOGON_USER which helps if you are using different database accounts for your users. If you are using a single database user for your application you cannot see which specific application user made the change. You need auditing for that.

  • How to access all rows one by one of a ADF table through managed bean

    Hi Experts,
    Hi i am new in ADF.
    Could someone help me for solving the below case?
    Scenario - I have table called Test_T1 which have 4 columns C1,C2,C3,C4. Have created EO,VO and AM for test_t1.
    At the time of ADF page creation i selected the option 'Automatically Exposed UI components in New managed bean' (mynewmanagedbean.java).
    From Data control drag and drop Test_T1 table in the page as a ADF table.
    Set the properties for C1,C2,C3 is read only and C4 is an input text.
    Have add after the table and attathed button action on the managed bean mynewmanagedbean.java.
    At the time of running the page Test_T1 populated with some no. of rows (like 9).
    How can i access all the above rows through pressing the button without selection of any of them.
    Actually i want to print all the table rows in log file at the time of pressing the button.
    Thanks in advance.

    Hi Timo,
    Thanks a lot for your reply.
    I am using the JDeveloper 11.1.2.1.0.
    As previously said I am totally new in this framework. So if you explain the solution given by you then it will be help full for me.
    Don't know r you agree or not for this ?
    When i put your resolution in the command button bean JDeveloper said TestDataRow type not found.
    What will be the type and TestDataRow and what is missing in below code or how i will declare that in below code?
    Also Could please mentioned the missing thing ?
    package createrow.view.pagecreation.bean;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    import oracle.adf.model.BindingContext;
    import java.util.Iterator;
    import java.util.List;
    import oracle.adf.model.bean.DCDataRow;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSet;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.ViewObject;
    public class OrdCreationWithManagedBean {
    public String cb1_action() {
    // Add event code here...
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcIteratorBindings =
    bindings.findIteratorBinding("TestOrderItemAllocationVO1Iterator");
    // Get all the rows of a iterator
    Row[] rows = dcIteratorBindings.getAllRowsInRange();
    TestDataRow dataRow = null;
    for (Row row : rows) {
    dataRow = (TestDataRow)((DCDataRow)row).getDataProvider();
    // work with the row...
    return null;
    My page bindings like below
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81"
    id="OrdCreationWithManagedBeanPageDef" Package="createrow.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="TestOrderItemAllocationVO1" RangeSize="25" DataControl="MainAppModuleDataControl"
    id="TestOrderItemAllocationVO1Iterator"/>
    <iterator Binds="TestOrderItemsEOView1" RangeSize="25" DataControl="MainAppModuleDataControl"
    id="TestOrderItemsEOView1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="TestOrderItemAllocationVO1Iterator" id="TestOrderItemAllocationVO1">
    <nodeDefinition DefName="createrow.view.TestOrderItemAllocationVO" Name="TestOrderItemAllocationVO10">
    <AttrNames>
    <Item Value="AllocationId"/>
    <Item Value="AlocationSequence"/>
    <Item Value="ProductName"/>
    <Item Value="AllocationPercentage"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <tree IterBinding="TestOrderItemsEOView1Iterator" id="TestOrderItemsEOView1">
    <nodeDefinition DefName="createrow.view.TestOrderItemsEOView" Name="TestOrderItemsEOView10">
    <AttrNames>
    <Item Value="OrderId"/>
    <Item Value="AllocationId"/>
    <Item Value="ProductName"/>
    <Item Value="OrderItemsQty"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Thanks In Advance

  • How to Create adf table from java bean

    Hi,
    How to Create adf table from java class (Not from ADF BC).
    Thanks
    Satya

    @vlsn -- you have to follow what shay said.
    Do the following in Model layer ::
    create a table property java class with your columns setters and getters like :
    *public class gridProps {*
    private int sno;
    private String orderNum;
    *public void setSno(int sno) {*
    this.sno = sno;
    *public int getSno() {*
    return sno;
    *public void setOrderNum(String orderNum) {*
    this.orderNum = orderNum;
    *public String getOrderNum() {*
    return orderNum;
    Create another table java class which will populate the values to your column values and return the collection :
    *public class gridPopulate {*
    private  List<gridProps> gridValues ;
    *public List<gridProps> setToGrid(ArrayList<ArrayList> valuesToSet) {*
    *if (valuesToSet == null) {*
    return gridValues;
    gridValues = new ArrayList<gridProps>();
    if(btnValue.equals("completeBtn"))
    return gridValues;
    for(ArrayList<String> tempArr:valuesToSet)
    gridProps gp = new gridProps();
    gp.setSno(Integer.valueOf(tempArr.get(0)));
    gp.setOrderNum(tempArr.get(1));
    return gridValues;
    Right click gridPopulate class and create this as data control.This class will be seen in Data control list.Under this data control,Drag the grid property collection(created earlier) to your page.Then execute your binding(gridPopulate) according to your logic.
    Thanks.(My jdev version 11.1.1.5.0)

  • How to create a pivot table from backing bean

    Hi,
    I need to create a pivot table from backing without having to create a Data Control.
    I searched a lot but all comes to a Data Control, and uses backing bean to manipulate data or to display popup info.
    Kindly advice if it can be done.
    Links and documentation is appreciated.
    sample is highly recommended.
    Thank you in advance
    Emile BITAR

    Hi,
    have a look at: http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/dvt/tagdoc/af_pivotTable.html
    It should provide all the infromation you need
    Frank

  • How to Create ADF table from backing Bean

    Currently I am working on Jdeveloper11g.
    I have a requirement to create Table dyanamically .For that i will get info about table from config file.
    <?xml version="1.0" encoding="UTF-8"?>
    <Pages>
              <page1>
              <Type sortable = "false">TYPE</Type>     
                   <Decription sortable ="true">Description</Decription>
                   <Date sortable = "true" >Date</Date>
                   <Amount sortable ="false">Amount</Amount>
              </page1>
              <page2>
                   <Type sortable = "false">Account Number</Type>     
                   <Decription sortable ="true">Account Name</Decription>
                   <Date sortable = "true" >Creation Date</Date>
                   <Amount sortable ="false">Current Balance</Amount>
              </page2>
    </pages>
    Can you guide me what classes i have to use in backing bean.any sort of code or usefull Links will be highly appriciated.
    Thanks
    Jaydeep

    Hi Jaydeep,
    you can create ADF table using this code,
    RichTable table = new RichTable();
    table.setEmptyText("no rows yet");
    table.setVar("row");
    // add columns
    RichColumn column = new RichColumn();
    column.setHeaderText("Name");
    column.setId("id_column1");
    column.setAlign("right");
    column.setWidth("100");
    // Set output.
    RichOutputText output = new RichOutputText();
    output.setValue("value", "John M.");
    // Add output into column.
    column.getChildren().add(output);
    // Add column into table.
    table.getChildren().add(column);
    Good Luck.

  • Creting tables from Entity Beans

    Hi, I have a question, but I'm not sure where to post it, so I'll try here. I'm using JDeveloper 10.1.3.3, and the embedded OC4J server. I have a database with some tables, tried the Entities from Tables (EJB 3.0) and worked great.
    Now I defined some classes, with all the annotations needed to persist them. But whenever I try to persist (or merge), nothing happens.
    Are the tables supposed to be created when the application is deployed to the OC4J server? IS the app redeployed every time I recompile and restart the server?
    Cheers,
    Hernán

    The tables are not created by default. You can configure your persistence.xml to define how you want tables to be created. The persistence.xml properties are defined in the TopLink class, EntityManagerFactoryProvider (oracle.toplink.<essentials>.ejb.cmp3).
    Set the property, "toplink.ddl-generation" to "drop-and-create-tables" if you want them recreated every time your redeploy. Note this will delete all previous data in the tables, so make sure you do not leave this setting on when you go into production.

  • Is there a way to create ADF Table using a bean

    Hi,
    I am using JDev 11g 11.1.1.2.0.
    I am reading an excel sheet and want to generate an ADF table using the same. I already have hold on excel data.
    But when I go through the RichTable API, I find that there is no method to add Columns and Rows. Most or all the methods work on the table UI Looks attribute.
    Any suggestion? Am I missing a method OR 2 here?
    Pls note: The excel (CSV file) using which I am populating my table, will vary for different user. i.e.
    say user 1 will upload a CSV file with 7cols and 100 rows while
    user 2 will upload the CSV file that has 2 cols and 100 rows.
    Hope this makes it clear of my requirements and why I want to populate the table from a bean.
    Thanks in advance.
    Edited by: user8925296 on Feb 24, 2010 7:09 PM

    Thanks a lot Joseba, I am now atleast getting column headings. I have questions on the soln given but first here is the code that I use
    PS NOTE: on my .jpsx file I have dragged dropped an ADF table, removed its default columns and have bounded it with my bean attrib '_dynaTbl' that is used below.
    // ---- Few imports that I use
    import oracle.adf.model.adapter.dataformat.csv.CSVParser;
    import oracle.adf.view.rich.component.rich.data.RichColumn;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import oracle.adf.view.rich.component.rich.data.RichTableUtils;
    import oracle.adf.view.rich.component.rich.output.RichOutputText;
         public String getFileData() {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExpressionFactory elFactory = fc.getApplication().getExpressionFactory();
    ELContext elCtx = fc.getELContext();
    CSVParser pfile = new CSVParser(getFile().getInputStream());
    ArrayList colData = new ArrayList();
    ArrayList colHdr = new ArrayList();
    pfile.nextLine();
    String colArr[] = pfile.getLineValues();
    int colLth = colArr.length;
    int rows =0;
    /* _dynaTbl.setVar("row");    */
    for(int hdr=0 ; hdr < colLth; hdr++){
    RichColumn colNm = new RichColumn();
    colNm.setHeaderText(colArr[hdr]);
    colNm.setRowHeader(true);
    colNm.setRendered(true);
    colHdr.add(hdr, colNm);
    colNm.setVisible(true);
    while (pfile.nextLine()){
    String arr[] = pfile.getLineValues();
    int u=0;
    while(u < colLth) {
    // CoreColumn colNm = (CoreColumn)app.createComponent(CoreColumn.COMPONENT_TYPE);
    //colNm.setId(colArr[   u   ] ) ;
                             //CoreOutputText rdata = (CoreOutputText)app.createComponent(CoreOutputText.COMPONENT_TYPE);
                             RichOutputText rdata = new RichOutputText();
                             rdata.setValue(arr[   u     ]) ;
                             rdata.setVisible(true);
                             rdata.setRendered(true);
                             rdata.setId((String)colArr[    u   ] + u) ;
    // System.out.print("\t\t" + rdata.getValue());
    /* ValueExpression value = elFactory.createValueExpression(elCtx, "#{row.attrName}", Object.class);
    rdata.setValueExpression("value", value);
                             ((RichColumn)colHdr.get(u)).getChildren().add(rdata);
                             //colNm.getChildren().add(rdata);
                        // _dynaTbl.setHeader(rcol);
                        // _dynaTbl.setVisible(true);
                        // _dynaTbl.setValue(arr[   u   ]) ;
                   // _dynaTbl.getChildren().add(colNm);
    u++; rows++;
    //break;
    _dynaTbl.setRows(rows);
                   for(int hdr=0 ; hdr < colLth; hdr++){
    _dynaTbl.getChildren().add((RichColumn)colHdr.get(hdr));
    _dynaTbl.setFetchSize(10);
    _dynaTbl.setVerticalGridVisible(true);
    System.out.print("\n\t child count" + _dynaTbl.getChildCount());
    _dynaTbl.setAllDetailsEnabled(true);
    _dynaTbl.setShowAll(true);
    _dynaTbl.setRowBandingInterval(1);
    _dynaTbl.setRendered(true);
    for(int i =0; i< _dynaTbl.getChildCount() ; i++) {
    System.out.print("\n\t count within child:" i " is :" +
    ((RichColumn)(_dynaTbl.getChildren()).get(i)).getChildCount());
    System.out.println(" isAllDetailsEnabled:"+ _dynaTbl.isAllDetailsEnabled());
    System.out.println(" isRowAvailable:"+ _dynaTbl.isRowAvailable());
    System.out.println(" isRowAvailable i:"+ _dynaTbl.isRowAvailable(i));
    System.out.println(" isShowAll i:"+ _dynaTbl.isShowAll());
    }catch (Exception exp){
    exp.printStackTrace();
    return "Done";
    Here is the problem. I am able to view only column headings but data is not visible.
    1. I get below out put for as many columns that I use
    a.
    count within child:4 is :24 isAllDetailsEnabled:true
    isRowAvailable:false
    isRowAvailable i:false
    isShowAll i:true
    b. Why is table data missing. What more do I need to do?
    Kindly guide.
    Thanks a lot in advance.

  • Can we find the number of rows in table from the dump file

    Hi All,
    Can we find the number of rows in table from the dump file with out importing the table in to the database?
    Please let me know ,if any option is there.
    Thanks,
    Kumar.

    <s>Try to import with option SHOW=Y, that should skip the number of rows which are into a table from a dump file.</s><br>
    <br>
    Nicolas.<br>
    Oops, sorry, that doesn't show the number of lines...<br>
    Message was edited by: <br>
    N. Gasparotto

  • Invoking binding operation from backing bean -- no data displayed in ADF table ?

    Hello experts, I have data control derived from  Web Service proxy client.  In this data control,  I have  multi record list derived from web service call.In my ADF page,  I have bunch of input components with many drop down lists and radio buttons, check boxes etc.
    Finally  I want to transfer user input to   data control.   In my  ADF page,  I  have mapped  the  result set of data conrol to  ADF table.
    When I click submit button,  the   input data from ADF page is passed to data control  operation.   In the bean method,  I am making use of   operationBinding.execute()  and operationBinding.getParamsMap().put().     I see it is fetching data by checking getResult().
    I am invoking partial trigger also on the table.  However, table is not getting populated with the data.
    please help me.     Jdeveloper verion is 11.1.1.6.     I have set "Refresh" attribute to "never"  for  iterator in the bindings tab.    But no luck.  I see that control coming to data control and calling web service and getting the data  and then it comes back to my bean method submit() and I see that getResult() is showing records fetched.   But  why  the table on ADF page is not showing the data ?
    thanks a lot in advance.

    I still not able to get  my table updated with  data.  If  I set   "Refresh"  to  "ifNeeded",  soon after coming out of  submit  method of bean, it again tries to execute the web service call in the  data control  and brings empty result since the search parameters are empty.  I do not know why it goes again to data control method.    So, when I hit submit button,  the bean method calls  operationBidnding.execute() and before this I set the parameters also.    After execute(),  addPartialTarget() gets executed and it comes out of submit.   At this time, it is supposed to go to ADF page.  But I see  that  it tries to execute  method in data control with empty parameters.   This is ridiculous.    It neither works with "never", nor with "ifNeeded". 
    I see many forums on this issue but no solution found...all those forums are not answered.  This looks like it is a bug in ADF table not able to refresh from  managed bean !!!!     
    thanks

  • How to Disable a Checkbox on a report condionally.

    I have a report and I created a checkbox on this report.
    I have a button which is associated to the checkbox.
    When I check a record an click the button I delete that record.
    This all works great.
    I want to disable the checkbox based on a condition.
    Lets say I cannot delete DEPT rows 20 at all. In this case I want to disable the checkbox and do not allow use to delete these records.
    Can anyone help me on this.
    I really appreciate your help on this.

    In your SQL query, you may be able to use a CASE WHEN statement to accomplish this.
    SELECT .. CASE WHEN dept_id = 20 THEN <dont display checkbox or show disabled> ELSE <show checkbox> END
    Ravi

  • Disable Single CheckBox

    Hello,
    I have an application where I want to disable a checkBoxe for a single row according to a specific condition. How can I do that ?
    Thank in advance !

    Look working example her:
    https://apex.oracle.com/pls/apex/f?p=60685:2
    For example if you want to disable a checkbox option, lets say you have a checkbox options
    Test1 - 1
    Test2 - 2
    Test3 - 3
    Test4 - 4
    Lets say you want to disable option 3 (Test3 - 3)
    Check for the Checkbox name from the firebug console (something like p_v01 here in this page).
    Make sure you are passing the value of the checkbox option to be disabled which is chKOption
    If you want to get value from a page item on page load use chkOption = '&P2_CHK_OPTION_VALUE.'
    <script type ="text/javascript">
    function disableCheckBox(pOption){
         var nameArray = $("input[name=p_v01]").map(function(){
                                  return this.getAttribute('value');
                             }).get();
         for (i=0;i<nameArray.length;i++){
              if(pOption == nameArray){               
                   $("#P2_CHECK1_"+i).attr("disabled", true);
    $(document).ready(function(){
         var chkOption = 3;
         disableCheckBox(chkOption);
    </script>
    Thanks,
    Naidu789
    If you think, I have answered your question, please mark it as answered.

  • Disable the checkbox after some operation

    Hi all,
    i am doing a ALV. I have a check box in the first column. i am selecting a row and  doing some checking.
    my requirement is to disable that row (which is checked ) after the checking opearion.
    how do i do that ?
    Thanks
    Niramala

    Hi,
    If you are using FM for ALV, you can still try above method with some additional steps:
    - use FM GET_GLOBALS_FROM_SLVC_FULLSCR to switch between classic ALV (by means of REUSE_ALV_GRID_DISPLAY) to OO ALV.
    "first register some event which is always called for FM REUSE_ALV... i.e. TOP-OF-PAGE
      data:  lt_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = lt_alv_events.
      READ TABLE lt_alv_events WITH KEY name = slis_ev_top_of_page
                           INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_top_of_page TO ls_event-form.
        APPEND ls_event TO ft_alv_events.
      ENDIF.
    "now show your ALV output with this registered event
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
         it_events  = it_alv_events
    "then when TOP-OF-PAGE event is raised you can switch from classic ALV to OO ALV.
    form top_of_page.  "this one is called once TOP-OF-PAGE is raised
      DATA: lo_grid TYPE REF TO cl_gui_alv_grid.
    " get reference for classic ALV
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = lo_grid.
    "here you put your coding as given above
    " now you can refresh the table display
      CALL METHOD lo_grid->refresh_table_display
        EXPORTING
          i_soft_refresh = 'X'.
    endform.
    That should work
    Regards
    Marcin

Maybe you are looking for

  • Find Feature in Media Source Organiz

    Is there any way to avoid the annoying Find feature which starts working as you type instead of waiting for you to enter the entire query?Message Edited by movingwater on -2-2005 02:42 PM

  • HT201471 i message not working ?

    i tried to activate the i message service on my ipad mini but i get message to inform me the user name or password incorrect ? but i am sure is correct!

  • HT201269 i set my ipod touch as new instead of backup. how do i rectify it to get my itunes on the new device

    i have purchased an ipodtouch 5th generation. but i set it up as new instead of backup profile from my old ipod. how do i now get my itunes onto the new device?

  • Online SAP testing environment

    Hello friends, I am looking for an online SAP testing environment site where i can do my FI configuration practice or alternatively a site where i can get free IDES software download so I can prepare myself for the industry. If you have an idea about

  • Dell 24" Latency Issues & Features?

    I have a Quad on the way, and I'm looking at LCD displays for it. I've been reading the postings about Dell's 24" LCD, which looks like a winner in most respects, but was wondering about the "latency issue" I've read about here and there regarding LC