Checkbox  in a table loop - without using Tableview or Iterator.

My client doesnt want to use tableview or iterator. We are using basic html to create the page. I know I can accomplish much easily using tableviews...but I am not allowed to use it.
My requirement is simple. In my layout I loop at my internal table and display the contents. The last field is displayed as a checkbox.
Ex:
Name  status flag
Tom  10         [ ]
Ted    20        [X]
Rob    10       [X]
My loop in the Layout is as below:
<%
  loop at t_rqdt into l_rqdt.
  if l_rqdt-flag = 'X'.
     l_chk = 'checked'.
  endif.
%>
<tr bgcolor="#EFEFEF">
<td></td>
<td <%= l_rqdt-name %> </td>
<td <%= l_rqdt-status %></td>
<td class=tdstatus width=40% >
<input type=checkbox name="flag" value="flag" <%= l_chk %> > </td>
  </tr>
<%
  endloop.
%>
When I select couple of rows and mark the flag field checkbox, and SUBMIT at the end, and when I see my internal table t_rqdt field r_rqdt-flag.. I dont see them having value X for the rows I marked the check boxes.
Can anyone please help me how can I trap the checkboxes marked inside a table loop in my on input processing?
Thanks
PK

Much Thanks Raja! It worked!!
I declared as below for the form fields and was able to get values.
    DATA:  t_form_fields TYPE tihttpnvp.
    DATA:  l_form_fields TYPE LINE OF tihttpnvp.
    CALL METHOD request->get_form_fields
      CHANGING
        fields = t_form_fields.
One more before my client asks me to do..
if I place a button CheckALL and Uncheck All on the layout, how can we check/uncheck all the checkboxes on the client side. Any simple Javascript method available? I know I can pass the itab to on input processing and get the flags set, but if it can be achieved on the client side using a script that would help.
Please let me know.
Thanks.

Similar Messages

  • I want to display the Employee details in table format without using iGrid

    Hi all,
    Can anybody help me that I want to display the Employee details return by transaction in table  format without using iGrid.

    Hi, view the link below.
    http://help.sap.com/saphelp_xmii115/helpdata/en/Advanced_Topics/Customizing_Output/Customizing_Output.htm
    Hope this help.
    Danilo Santos

  • How to display table data without  using ALV  and table element.

    Hi,
            Its possible to display table data without using ALV  and table element.
           Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv
           (every time i am fetching single row data ),
           But problem is alv occupying more space in the output , i want to display data part only i dont want field names,
           settings and header data etc..things.
          Give solution to  display data part..
    Regards,
    Rakhi.

    Hi,
    Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.
    In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --
      DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
        LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
    * Standard Filter Function setting to FALSE
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).
    * Standard Filter Function setting to FALSE Ends
    Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.
    Hope this answers your query.
    Thanks.
    Kumar Saurav.

  • Delete internal table rows without using loop statement

    i have an internal table which consists of 100 records.
    i need to keep only first 5 records.
    without using the loop statement i need to delete the rest of the records. how can we achieve this result.
    i.e.  delete itab1 where  "recordno"  > 5.
    regards.
    ZG

    Hi,
    Delete itab [FROM idx1] [TO idx2] {Where (log_exp)]
    To delete several lines at once, you have to specify at least one of the additions FROM, TO, or WHERE. You can only use the additions FROM and TO with standard tables and sorted tables.
    Delete itab [FROM idx1]
    If you specify FROM, all the table rows from the table index idx1 onwards are included.
    Delete itab [TO idx2]
    If you specify TO, all the table rows from the table index idx2 onwards are included.
    PARAMETERS: p_carrid TYPE sflight-carrid,
                p_connid TYPE sflight-connid.
    DATA: BEGIN OF seats,
            fldate    TYPE sflight-fldate,
            seatsocc  TYPE sflight-seatsocc,
            seatsmax  TYPE sflight-seatsmax,
            seatsfree TYPE sflight-seatsocc,
          END OF seats.
    DATA seats_tab LIKE STANDARD TABLE OF seats.
    SELECT fldate seatsocc seatsmax
           FROM sflight
           INTO TABLE seats_tab
           WHERE carrid = p_carrid AND
                 connid = p_connid.
    LOOP AT seats_tab INTO seats.
      seats-seatsfree = seats-seatsmax - seats-seatsocc.
      MODIFY seats_tab INDEX sy-tabix FROM seats.
    ENDLOOP.
    ENDLOOP.
    SORT seats_tab BY seatsfree DESCENDING.
    DELETE seats_tab FROM 5.
    Thanks & Regards,
    ShreeMohan
    Edited by: ShreeMohan Pugalia on Jul 21, 2009 4:28 PM

  • URGENT:HOW TO COMBINE CLUSTER AND TRANSPARENT TABLE..WITHOUT USING FOR ALL

    how can we join bkpf and bseg without using FOR ALL ENTRIES.HOW DO I COMBINE THE 2 TABLES SO THAT I GET BETTER PERFORMANCE.
    START-OF-SELECTION.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
    belnr = i_bkpf-belnr AND "A/CING DOC NO
    gjahr = i_bkpf-gjahr AND "FISCAL YEAR
    hkont = p_hkont. "General Ledger Account"
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bseg
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    ENDIF.
    IF NOT i_bseg1[] IS INITIAL.
    LOOP AT i_bseg1.
    IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
    v_sumgl = v_sumgl + i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
    v_sumgl = v_sumgl - i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont NE p_hkont .
    IF i_bseg1-shkzg = 'H'.
    i_bseg1-dmbtr = - i_bseg1-dmbtr.
    ENDIF.
    i_alv-hkont = i_bseg1-hkont.
    i_alv-dmbtr = i_bseg1-dmbtr.
    APPEND i_alv.
    v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
    ENDIF.
    ENDLOOP.
    regards
    Essam.([email protected])

    Hi Friend,
      I see your code.. there is no other way than using for all entries for your situation.. how ever i saw ur code and a small recommandation in the change of code.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    if not p_hkont is initial.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    i_bseg[] = i_bseg[]1.
    delete i_bseg where hkont ne p_hkont.
    else.
      Your existing logic...
    endif.
    In this way you can avoide writing two selects on bseg..
    Thanks
    Mahesh

  • Add rows to a Table object without using database .

    Hi everyone ,
    I'm using visual web javaServer faces framework in Netbeans IDE 6.5.I want to use a Table and bind data to it row by row ,without using database.I dont know how i must do it. i searched and find nothing exept dataprovider that as i undrestood, it use just database to bind data to a table.
    i have a string in a loop that i want to devide it to several substrings and these substrings will be each field of each row and at the end of the loop,the number of rows are equal to reapiting the loop.
    I'll appreciate any help in this matter
    Best Regard,
    Fatemeh

    My Dataout variable contains a long string of personal information. Information such as Name, Family name, Father’s name, Date of birth, National code, Nationality.
    I want to make a personal information table with above mentioned information, whereas Name, Family name, Father’s name, Date of birth, National code, Nationality will be my column values. The number of its row depends on the times that the loop is repeated.
    I can make a JTable by defining an array[6] as above, but this table doesn’t appear in Visual Web javaServer faces framework. I want to be able to do what JTable does in the Table component in visual designer. Can anybody help me?
    Thanks in advance

  • How to do Indepth table analysis without using any tool

    Is there anyway of indepth analysis of tables of a database without using any tool, i.e. by means of sql's, pl/sql's only.
    My database has around 800 main tables which have several other related relational tables(objects relating 2 tables on basis of OTO, OTM, MTO, MTM object relationship) and several dependent views(made from among the 800 base table only).
    Currently database is indexed, has joins and views, all in working scenario but yet do not gauranty consistent behaviour.
    My sole purpose is to analyse all main tables (around 800 of them) in my database by running scripts and prompt errors, warnings, exceptions wherever table needs indexing or change of joins(eg - from cross to inner,etc. ) or check inorder to avoid table full scan for related relational tables and dependent views.
    My databse is Oracle10g.
    Please do revert for any doubts.

    My sole purpose is to analyse all main tables (around 800 of them) in my database by running scripts and prompt errors, warnings, exceptions wherever table needs indexing or change of joins(eg - from cross to inner,etc. ) or check inorder to avoid table full scan for related relational tables and dependent views.There are no tools which can tell whether your table needs indexing or whether you need to change joins methods, by just looking at your database. At most, you can get an idea about the missing indexes in case of a parent-child relation. Everything else, falls under application tuning - which involves sql tracing, profiling etc.
    If you cannot trace individual sessions, then you are better off monitoring the database with statspack/AWR (if licensed). Generate reports at frequent intervals, look at the resource consuming SQLs and have a discussion with dev team to fix them, whenever possible.
    EM can also be used for SQL analysis.

  • ABAP WD, Multiple Row selection in table control without using Crtl key

    Hi all,
    I am displaying the records using the table control, i have to select the multiple records in the list <b>without using Crtl key</b>.
    How do i solve this?
    Thanks

    Hi,
    you should set the table parameter selectionMode to multi or multinolead
    than you can select multiple records,
    these you can retrieve: lt_selected_elements = node->get_selected_elements( ).
    also see this <a href="https://forums.sdn.sap.com/click.jspa?searchID=4209200&messageID=3544158">thread</a> for info
    grtz,
    Koen

  • Hyperlink in UI table column without using leadselect

    Hi All,
    I am using hyperlink for a column in my UI table element. When i click the hyperlink, I am opening a pop-up screen.
    The problem is, the pop-up is opening only after i leadselect a row and then i click the hyperlink.
    But i want the hyperlink click to open the pop-up without clicking leadselect.
    How to achieve this?
    Please help me as soon as possible.
    Thanks a lot.

    Hi,
    First disable the leadselection for the table.
    Implement the action for Hyperlink check the box transfer UI events. When you do this, you will get the
    index that is clicked in the WDEVENT parameters. Using this index, you can open the popup.
    Check the wdr_test_table for the same under TABLE CELL EDITORS.
    Regards,
    Lekha.

  • Any way to save data in loop without using shift register or feedback loop

    Hello all
    I was thinking, is it possible to save data in a loop to next iteration without the use of a shift register or a feedback loop?
    I need the possibility to reload data within a loop from a lvm file, but I want to use the same data until i load some new ones.
    The reason why I don't want to use the shift register or feedback node is due to speed, even though I am not sure if the shift register
    actually moves all the data from one register to another, or if it is stationary until a change in the data occur.
    The data I want to reuse is medium-large (6 force measurements, 2 pressure, 1 flow channels)of about 10sec data in each file with samplingsrate of 2kHz..
    In my analysis program I have many CPU demanding calculations and 3D graphs, so I just want to minimize the CPU load as much as I can for each part of the
    software..
    I have attached a small VI to explain what I am talking about.
    I now I shouldn't use the express VI, and I am going to change that as well - this is just a proof of concept! 
    Hope you guys can help me understand this shift register better...
    Thanks!
    - Tommy 
    Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
    Solved!
    Go to Solution.
    Attachments:
    visual.vi ‏34 KB

    tombech wrote:
    [...]The reason why I don't want to use the shift register or feedback node is due to speed[...]
     Tommy,
    shift register are the fastest you can ever get...........
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to upload an rtf file into a table? (without using UNIX box)

    Hi All,
    Our requirement is to upload a rtf file into table in database.
    Later that rtf is used to generate a report.
    Is it possible to upload the file directly into a table by using SQL developer?
    our requirement is to upload the files without placing them in a particular path in unix box.
    Thanks in advance
    Regards
    Sudeep

    If you are in EBS
    When you upload Template in Application
    I guess It'll get stored in apps.XDO_LOBS table, in FILE_DATA Column
    select * from apps.XDO_LOBS
    where lob_code=<'con. program short name'>
    and file_name= <'your.rtf'>
    Thanx
    Rahul

  • How to stop a period counter in a while loop without using abort execution%3F

    I am using a NI x series 6343 andcounting pulses, but when i try to stop the counter with a boolean operator nothing happens, ihave to go and use abort execution, 
    Help

     the stop sign does not do anything, it just stops after the timeout.
    Which is exactly what you're asking it to do.
    The STOP button is not a magic ABORT function.  It's a simple TRUE/FALSE variable.
    The way you have it set up is:
    repeat
       Get some data (Timeout = 10 sec)
       Process the data
    until STOPped
    It's going to check that STOP value (is it pressed or not) ONCE, sometime during the loop.  Maybe before your GET DATA, maybe during, maybe after - you don't know.
     Whenever the GET DATA thing returns (after 10 sec, or after getting some data), then it willl use that value and decide to loop again, or to stop.
    If you want to abort the GET DATA operation, you have to find another way.
    One way is to use a shorter timeout.  Do you have to track it down to 1 pulse every 10 sec?  If not shorten your timeout and go from there.
    Another way is to find a way to abort the operation.
    Again, I'm not familiar with the EXPRESS stuff you're using, so I don't know the details.  In all my 26 years of LabVIEW programming, I've never once used EXPRESS stuff.
    Using the regular NIDAQ stuff, you would
    INIT a task
    START a task (Task ID)
    repeat
       READ a task (TaskID, timeout = 0.1 sec, or something)
       if TIMED OUT
           do nothing
       else if ERROR
           announce error
       else
           Process data
       end if
    until STOPPed or ERROR
    CLEAR task(Task ID)
    It's more complicated, but you have more control. 

  • How do i include named event handlers in the event loop without using the optional preregister/postregister clause.

    The register statement in preregister/Postregister clause is especially useful for including named event handlers in the event loop.

    I think you need to read the doc. before asking the questions:
    http://docs.iplanet.com/docs/manuals/uds/50/toolref.pdf
    page 151-161
    ka

  • Use table component without data provider

    Since it is very difficult to solve the browser "BACK" button problem caused by my data provider, I decide not to use data provider to populate the table.
    Does anyone know some sample code about playing around with the table component without using data provider?
    Thanks in advance,

    Unfortunately, Table Component from basic category does not work with out Data Provider. But Data Table component from standard section works with out data provider. But it does not have the frills and whistles of basic table component.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Is it possible to center a checkbox in a table filter?

    Hi I am using Studio Edition Version 11.1.1.2.0.
    Is it possible to center a checkbox in a table filter without getting a bug? I have tried using a panelgroup with horizontal layout and Halign center. It looks good at first but when I use the filter the checkbox gets a dublicate which is left aligned above the original checkbox. Is there any way to center a checkbox inside a filter?

    Ok I will explain it as well as I can. I have a table with some columns that have an af:selectBooleanCheckBox in their body. These columns I have set the Align property to center because I think the layout looks better that way. This works fine.
    Now I also want to be able to filter these columns. Then I put an af:selectBooleanCheckBox in the filter facet and set the value of that checkbox to #{vs.filterCriteria.attributeName} which also seems to work but the checkbox in the filter facet is left aligned.
    So while I set the Align of the column to center the filter is not center aligned.
    I tried to get the checkbox in the filter center aligned by putting an af:panelGroupLayout where I set Layout: horizontal and Halign: center into the filter facet of the column and then put the checkbox into that af:panelGroupLayout.
    At first when the page is run the checkbox in the filter is in the center and everything seems fine but when you use the filter another checkbox that is left aligned and above the original one appears in the filter so that now I suddenly have 2 checkboxes in the filter.
    Below I have pasted the code of the table and one of these columns so you can see what I mean in case you still don´t understand me. I thought it would be enough to only paste the code of the table and one column but if the rest of the code is neccasary let me know and I will paste that here too.
    <af:table value="#{bindings.FvgQsPeriodTypeQuestionTyVO1.collectionModel}"
    var="row"
    rows="#{bindings.FvgQsPeriodTypeQuestionTyVO1.rangeSize}"
    emptyText="#{bindings.FvgQsPeriodTypeQuestionTyVO1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.FvgQsPeriodTypeQuestionTyVO1.rangeSize}"
    filterModel="#{bindings.FvgQsPeriodTypeQuestionTyVO1Query.queryDescriptor}"
    queryListener="#{bindings.FvgQsPeriodTypeQuestionTyVO1Query.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.FvgQsPeriodTypeQuestionTyVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FvgQsPeriodTypeQuestionTyVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="table2"
    partialTriggers=":::pc1:table1"
    columnStretching="column:QTCol">
    <af:column sortProperty="P01AsBoolean" filterable="true" sortable="true"
    headerText="#{bindings.FvgQsPeriodTypeQuestionTyVO1.hints.P01AsBoolean.label}"
    width="50" align="center" id="c6">
    <af:selectBooleanCheckbox
    label="#{bindings.FvgQsPeriodTypeQuestionTyVO1.hints.P01AsBoolean.label}"
    value="#{row.bindings.P01AsBoolean.inputValue}"
    id="sbc1"/>
    <f:facet name="filter">
    <af:panelGroupLayout id="pgl1" halign="center"
    layout="horizontal">
    <af:selectBooleanCheckbox value="#{vs.filterCriteria.P01AsBoolean}"
    id="sbc2"/>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="footer"/>
    </af:column>
    </af:table>

Maybe you are looking for

  • Setting TNS_ADMIN parameter in OBIEE 11G

    Hi Gurus, I have done simple install on Linux 64 bit Machine, i need to setup TNSNAMES.ORA file. I have copied my tnsnamesora file to: 1. <MIDDLEWARE_HOME>\Oracle_BI1\network\admin 2. <MIDDLEWARE_HOME>\oracle_common\network\admin and now in user.sh f

  • Problem closing a modal dialog in SharePoint 2013

    I have an application page which is opened in a modal dialog in SharePoint. In this dialog I open a document with: createNewDocumentWithProgID  and afterwards when I want to close the dialog there is a problem using the call:  SP.SOD.execute('sp.ui.d

  • How to create PO through BAPI from custom screen

    Hi SAP Technical Guru, i am new to module pool programming. i designed custom screen which is like TA me21n means it has one tabstrip and tablecontrol. for header details(fields) at tab strip, and item detials(fields) at table control i used. now i h

  • Having trouble checking mail

    Since the 10.6.2 SNow Leopard my Mail program on my Mac has been really having problems. The spinning thingy just continuing on forever. Suddenly checking mail on my iPhone is exhibiting the same behavior. It checks forever and never seems to stop. I

  • Can't get rid of remote control icon

    Zen 3.2 SP3 Even though we have our policies set to NOT show the remote management icon in the system tray, it still shows up. Is there a way to force the policy to work properly? BTW, we had the same trouble with 3.2 SP1 (we skipped SP2). HB