Single checkbox not selected

I know this is not a javscript forum.. (WISH THERE WAS ONE On SUN.COM)..and i am sorry to post it here.. but the problem is JSP and javascript
I have multiple checboxes.. Something like Yahoo mail.. When the inbox is opened the number of checkboxes correspond to the number of mails on that page..along with an extra one at the very top(called it Header_checkbox).. If header_checkbox is selected.. all the mails are selected and one can either delete or move the mails..
My form is kinda similar.. I have multiple rows.. and depending on the number of rows, the checkboxes are displayed.. the Javascript function works fine if there are more than one checkboxes...It doesnt work if theres a single one.. well not a big deal since the user can click on the single checkbox and it shld be fine.. but i am curious to know why it isnt working for a single one. When i try to display the checkbox.length it gives me "undefined" (this is incase theres only one chekcbox)... for multiple chekcboxes it gives the rite number.
Heres the code if anyone has suggestions
Thank you
function toggle(frm)
   var checkbox_length = frm.checks.length;
    alert(checkbox_length);
   for( var i = 0; i < checkbox_length; i++ )
      frm.checks.checked = frm.tog.checked;
[HTML CODE]
<FORM name="editFormatForm" method="post" action="edit_delete_filetype_format.jsp">
<tr class="titleitem">
<td><input type="checkbox" name="tog" onclick="javascript:toggle(this.form);"></td>
<td>Fieldname��</td>
<td>Format��</td>
<td>Unique?</td>
<td>Optional?</td>
<td>Description</td>
<td></td><td></td>
</tr>
<%
if (fileTypeList.size() > 0)
for (int k = 0; k < fileTypeList.size(); k++)
formatObject = (FiletypeFormatObject) fileTypeList.get(k);
id = formatObject.getId();
columnName = formatObject.getColumnName();
columnFormat = formatObject.getColumnFormat();
uniqueness = formatObject.getColumnUnique();
description = formatObject.getDescription();
optional_int = formatObject.getColumnOptional();
count++;
%>
<tr class="<%=htmlObj.getClassString(count)%>">
<td><input type="checkbox" name="checks" value="<%=id%>"></td>
<td><input type="text" name="columnName" value="<%=columnName%>"></td>
<td><input type="text" name="columnFormat" size='30' value="<%=columnFormat%>"></td>
<td><input type="checkbox" name="unique" <% if(uniqueness == 1) { %> checked <%}%>></td>
<td><input type="checkbox" name="optional" <% if (optional_int == 1) { %> checked <%} %>></td>
<td><input type="text" name="description" value="<%=description%>"></td>
</tr>
<% } } count++; %>
<tr class="<%=htmlObj.getClassString(count)%>"><td></td><td><input type="submit" value="Submit Changes"></td>
<td colspan="12"><input type="submit" value="delete"></td></tr>
<% count++; %>
<tr class="<%=htmlObj.getClassString(count)%>"><td></td><td colspan="12">�</td></tr>
<% count++; %>
<tr class="<%=htmlObj.getClassString(count)%>"><td></td><td><input value="Enter New Field..."></td>
<td><input value=""></td><td><input type="checkbox"></td><td><input type="checkbox"></td>
<td><input type="submit" value="Add Field"></td><td></td></tr>
</FORM>
[END OF HTML CODE]

The browser creates a DOM (Document Object Model) of the document and the elements in the document. In this DOM it references the elements on the page by name. If there is more than one element with the same name it creates an array of these elements and puts the array in the DOM but if there is only one element it places this element in the array.
If there is only one checkbox with the name "checks" this will be the object referred to as "rm.checks" and this element doesn't have an length property.
function toggle(frm)
var checkbox_length = frm.checks.length;
if (checkbox_length != undefined) {
    for( var i = 0; i < checkbox_length; i++ )
       frm.checks.checked = frm.tog.checked;
} else {
frm.checks.checked = frm.tog.checked;

Similar Messages

  • Selectall checkbox not selecting rows in  all pages

    Hi guys,
    Please help
    what is the best way to select all the pages when i click on select all checkbox in the first page. Currently my code is selecting only 1st page of rows.
    Please help me.
    I have region with sql query(pl/sql function body returning sql query) with the following code. Repot is conditional.
    DECLARE
        l_query          VARCHAR2(32676);
    BEGIN
        l_query := q'!  SELECT DISTINCT 
                                apex_item.checkbox( 1
                                                  ,wo.wip_entity_id
                                                  ,'onchange="javascript:CheckedAll(); setChkboxVal(this);"'
                                                  ,:P0_CHK_LIST
                                                ) AS selecter
                                    -- ,wo.work_order_status AS Status
                                               ,NVL((select DISTINCT STATUS from xxdl.xxdl_eam_its_pta_rollover WHERE wip_entity_id = wo.wip_entity_id),'') AS Status
                                     ,wo.wip_entity_name AS "Work Order Number"
                                     ,msn.asset_group_description AS "Asset Group"
                                     ,wo.asset_number AS "Asset Number"
                                     ,cust_prof.name As "Profile Class"
                                     ,wo.wip_entity_id As "wip_entity_id"
                                                       ,wo.asset_group_id
                                     ,budget_department.project_id
                                     ,budget_department.project_number
                                     ,budget_department.task_id
                                     ,budget_department.task_number
                                     ,budget_department.award_id
                                     ,budget_department.award_number
                            FROM xxdl.xxdl_eam_wo_txn_accounts txn_acct
                                                    ,apps.eam_work_orders_v wo
                                  ,apps.mtl_eam_asset_numbers_v msn
                                  ,apps.hz_cust_profile_classes cust_prof
                                  ,(SELECT tasks.task_id
                                            ,tasks.project_id
                                            ,valid_pta.award_id
                                            ,valid_pta.award_number
                                            ,(SELECT DISTINCT project_number
                                              FROM xxdl.xxdl_valid_pta_combinations
                                              WHERE project_id = tasks.project_id
                                              ) project_number
                                            ,tasks.task_number
                                            ,tasks.task_name
                                            ,tasks.description
                                            ,tasks.service_type_code
                                            ,orgs.organization_id
                                            ,orgs.name department_code
                                            ,orgs.attribute1 department_name
                                            ,orgs.attribute4 budget_unit
                                    FROM pa.pa_tasks tasks
                                         ,xxdl.xxdl_valid_pta_combinations valid_pta
                                         ,hr.hr_all_organization_units orgs
                                    WHERE orgs.organization_id = tasks.carrying_out_organization_id
                                       AND valid_pta.task_id    = tasks.task_id
                                   ) budget_department
                             WHERE txn_acct.organization_id    = wo.organization_id
                               AND msn.current_organization_id = wo.organization_id
                               AND wo.organization_id          = :app_organization_id
                               AND txn_acct.cost_bucket        ='MATERIAL'
                               AND txn_acct.work_order_id      = wo.wip_entity_id
                                              AND msn.serial_number           = wo.asset_number
                              -- AND wo.work_order_status        = 'Draft'
                               AND budget_department.project_id = txn_acct.project_id
                               AND budget_department.task_id    = txn_acct.task_id
                               AND budget_department.award_id   = txn_acct.award_id
                               AND cust_prof.attribute1 (+)        = budget_department.budget_unit
                               AND cust_prof.status             = 'A'
                                             AND NVL(cust_prof.attribute2,budget_department.department_code) = budget_department.department_code
                                              AND wo.wip_entity_id  not in (select wip_entity_id from xxdl.xxdl_eam_its_pta_rollover where status != 'DRAFT')!'; 
    IF :P2_PROJECT IS NOT NULL THEN
      l_query := l_query ||q'[ AND trim(budget_department.project_ID) = :P2_PROJECT ]';
      END IF;
    IF :P2_TASK IS NOT NULL THEN
      l_query := l_query ||q'[ AND trim(budget_department.task_ID) = :P2_TASK ]';
      END IF;
    IF :P2_award IS NOT NULL THEN
      l_query := l_query ||q'[ AND trim(budget_department.award_id) = :P2_AWARD ]';
      END IF;
    RETURN l_query;
    EXCEPTION
    WHEN OTHERS THEN
      RAISE_APPLICATION_ERROR(-20001,'The system faced an unhandled exception. Please contact System Administrators for resolution with the following error code :ITS-201 ('''||SQLERRM||''').'   );   
    END;
    Conditional query of region
    pl/sql body returning boolean
    IF :P2_PROJECT IS NOT NULL and :P2_task IS NOT NULL and :p2_award IS NOT NULL  and :p2_PTA IS NOT NULL THEN
      RETURN TRUE;
    ELSE
      RETURN FALSE;
    END IF;

    Selecting all rows will never work if you have more than one page. Instead of that, you could set some kind of a flag item to a value if the select all checkbox is checked (set it to null if unchecked). If this flag is selected, your process expecting that should go over the whole resultset and process it.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Date chooser day and date not selectable

    Hello,
    Anyone knows how to make the day and date not selectable in
    the datefield or date chooser component???
    It is possible to make any one day not available, but what i
    need is only a single day not selectable..
    For example, i can make every tuesdays of a month not
    selectable But, i need to make for example the Tuesday 3rd only Not
    selectable
    Any help will be greatly appreciated.
    Cordially.
    Gerard.

    Welcome to Apple Discussions
    I believe the problem is that you have US formats for dates. Select the cells/columns that you want your date format to apply to then click the cell format inspector (the 42 in a box icon) & choose Custom… from the cell format drop-down. You will be presented with a box that allows you to make your own format. Click & hold on any of the little "lozenges" in the input bar & move them around. You may need to add a space to get the proper result.

  • "SELECT SINGLE"  is not working.

    Hi all,
    here i have one report. And in this i want just one row when my input material number match with my table material number this time if movement type is 131 then program will be terminated otherwise it's working but this coding is not working properly so can you please help me out.
    My code is below .
    data : matnr1 LIKE mseg-matnr,
           bwart1 LIKE mseg-bwart.
    loop at mseg.
        SELECT SINGLE matnr bwart from mseg into (matnr1,bwart1) where matnr = matnr.
    endloop.
      if bwart1 = '131'.
                MESSAGE 'DATA NOT FOUND FOR THIS SELECTION1' type 'I'.
                SUBMIT ZPP_DAYWISE_MY_OWN VIA SELECTION-SCREEN AND RETURN .
                LEAVE PROGRAM.
       endif.
       CLEAR matnr1.
       CLEAR bwart1.

    there should be all key fields in where condition of SELECT SINGLE
    here in select which matnr you are passing? selection screen of mseg-matnr?
    loop at mseg.
    SELECTmatnr bwart from mseg upto 1 rows  into (matnr1,bwart1) where matnr = matnr. endselect.
    endloop.
    if bwart1 = '131'.
    MESSAGE 'DATA NOT FOUND FOR THIS SELECTION1' type 'I'.
    SUBMIT ZPP_DAYWISE_MY_OWN VIA SELECTION-SCREEN AND RETURN .
    LEAVE PROGRAM.
    CLEAR matnr1.
    CLEAR bwart1.
    endif.
    Edited by: Sachin Bidkar on Feb 23, 2010 7:12 AM

  • Checkbox - not working for multiple selected values

    Hi,
    I've got a checkbox (with multiple static values) and a dynamic report which displays filtered data based on the checkbox selection... my report refreshes correctly for a single checkbox selection, but when I select multiple values it gives me an error message...
    Here is the sample query that I am using:
    select * from table_a
    where
    CATEGORY = :P22_CATEGORY
    Please advice...

    Hi,
    I think the type of check box you're referring to returns a colon delimited list of values. If that's the case, you'll need a query something like:
    select * from table_a
    where ':'||:P22_CATEGORY||':' like '%:'||CATEGORY||':%'There is a very description here: http://apex.oracle.com/pls/otn/f?p=ATSIN_DEMO:COLON_DELIMITED
    Hope this helps,
    Gregory

  • How do I tell wether or not each checkbox is selected  in a mx:AdvancedDataGridColumn

    HI there
    I have a column that contains a checkbox
                    <mx:AdvancedDataGridColumn width="30" headerText="" showDataTips="true" editable="false" dataField="Delete">
                                    <mx:itemRenderer>
                                        <mx:Component>
                                            <mx:HBox width="100%" verticalAlign="middle" paddingBottom="0" paddingTop="0" horizontalAlign="center" height="100%">
                                                <mx:CheckBox>
                                                    <mx:click>
                                                        <![CDATA[
                                                        ]]>
                                                    </mx:click>
                                                </mx:CheckBox>
                                            </mx:HBox>
                                        </mx:Component>
                                    </mx:itemRenderer>
                                </mx:AdvancedDataGridColumn>
    How do I tell wether or not each checkbox is selected?
    many many thanks

    yeah lol
    ok
    I've got this here but it won't let me tick the checkboxes?
    Any ideas mate?
    package
    import flash.display.DisplayObject;
    import flash.events.KeyboardEvent;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import mx.controls.CheckBox;
    import mx.controls.advancedDataGridClasses.AdvancedDataGridListData;
    import mx.controls.listClasses.ListBase;
    *  The Renderer.
    public class CheckBoxRenderer extends CheckBox
        public function CheckBoxRenderer()
            focusEnabled = false;
        override public function set data(value:Object):void
            super.data = value;
            invalidateProperties();
        override protected function commitProperties():void
            super.commitProperties();
            if (owner is ListBase)
                selected = ListBase(owner).isItemSelected(data);
        /* eat keyboard events, the underlying list will handle them */
        override protected function keyDownHandler(event:KeyboardEvent):void
        /* eat keyboard events, the underlying list will handle them */
        override protected function keyUpHandler(event:KeyboardEvent):void
        /* eat mouse events, the underlying list will handle them */
        override protected function clickHandler(event:MouseEvent):void
        /* center the checkbox if we're in a datagrid */
        override protected function updateDisplayList(w:Number, h:Number):void
            super.updateDisplayList(w, h);
            if (listData is AdvancedDataGridListData)
                var n:int = numChildren;
                for (var i:int = 0; i < n; i++)
                    var c:DisplayObject = getChildAt(i);
                    if (!(c is TextField))
                        c.x = (w - c.width) / 2;
                        c.y = 0;

  • I can not select items in the checkboxes to "Total".

    When I select the Add function, the entry file names come up in a new box.  The select  "ALL" button works, but you can not select individual entries.
    Thank you.

    The ssetive area is not quite the selection box. You can try enarlarging the view and click around the edge of the chec box.

  • Uncheck a Checkbox when Select List Clicked

    version 4.0.2.00.06
    Hello,
    Jari helped me with a javascript function to select all options in a multi-select list when a checkbox is checked by the user.
    A bug was reported that after clicking the checkbox to select all the options in the list, if the user then clicks on a single value in the select list the checkbox is still checked.
    Would someone help me with how to uncheck the checkbox when a single value is selected in the select list after the checkbox is checked to select all of the options in the select list?
    If you need more information please let me know.
    Thanks,
    Joe

    Hi,
    Same sample as in this post
    Re: The requested URL /apex/wwv_flow.accept was not found on this server
    I did add page JavaScript
    function checkSelected(pThis,pChk,pVal){
    var self=$($x(pThis));
    var o=self.find("option");
    var s=self.find("option:selected");
    if(s.length==o.length){
      $s(pChk,pVal);
    }else{
      $s(pChk,"");
    }And to P65_EMP multiu select HTML Form Element Attributes
    onchange="checkSelected(this,'P67_SELECT_ALL','ALL')"Regards,
    Jari

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • User of Checkbox/ Radio Selections.doc

    User of Checkbox/ Radio Selections.doc
    Thank you, this is very informative and helpful. In the doc you mentioned about a cfm file, however I was not able to see the file. Will you be able to explain a bit about it?

    Hi,
    here
    you´ll find an explanation, working example and the related
    javascript code

  • Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    I think it has something to do with the way the value of the check box is exported, but I'm not sure.  With nothing being exported to Data5, Data6 displays the sum of Data1-4 rounded down to the nearest whole number and updates automatically as Data1-4 are updated.
    Right now, assuming Data1-4 are 0, where data 5 is the output of the second example and any box is checked,  "1" is displayed in data5 but nothing is added to data 6. Selecting any other check box or deselecting that check box will cause data6 to add 1 even if data5 displays "0".  By way of example:
    Selecting Check box 16 results in Data5 displays 1 and Data6 displays zero.
    Then, if any or all of Checkbox17-20 are selected, Data5 displays 1 and Data6 displays 1.
    Then, if any or all of Checkbox17-20 are deselected, Data5 Displays 1 and Data6 displays1.
    Then, if Checkbox16 is deselected, Data5 displays 0 and Data6 displays 1.

  • What can i do for removing SINGLE in this select query??

    What can i do for removing SINGLE in this select query given below and also NOT USE 'ENDSELECT'??
    I have defined g_t_zv7_cachemapping as following ::
    DATA : BEGIN OF g_t_zv7_cachemapping OCCURS 0,
             kostl LIKE zv7_cachemapping-kostl,
             END OF g_t_zv7_cachemapping.
    SELECT SINGLE kostl FROM zv7_cachemapping INTO g_t_zv7_cachemapping
               WHERE  auart = g_t_vbak-auart.
            IF sy-subrc = 0 .
            ENDIF.

    Shashank,
    DATA : BEGIN OF g_t_zv7_cachemapping OCCURS 0,
    AUART LIKE zv7_cachemapping-AUART,
    kostl LIKE zv7_cachemapping-kostl,
    END OF g_t_zv7_cachemapping.
    If not g_t_vbak[] is initial.
    SELECT auart kostl
      FROM zv7_cachemapping INTO table g_t_zv7
    for all entries in g_t_vbak
    WHERE auart = g_t_vbak-auart.
    Endif.
    sort : g_t_zv7 by auart , 
              g_t_vbak by auart.
    loop at g_t_vbak.
      READ TABLE g_t_zv7 WITH KEY AUART = g_t_vbak-AUART
                                        BINARY SEARCH.
       IF sy-subrc eq 0.
       ENDIF.
    endloop.
    Pls. reward if useful

  • Toggling between single and multiple selection in a table

    I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
    I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
    <f:facet name="selection">
    <af:tableSelectMany autoSubmit="true"
    rendered="#{treeBean.multipleRows}"/>
    </f:facet>
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"
    rendered="#{treeBean.singleRows}"/>
    </f:facet>
    When I use inside the switcher, it doesn't like the parent.
    Any ideas would be greatly appreciated.
    Thanks,
    Vijay.

    I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <af:document title="tableSelectMany Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <af:messages/>
    <af:selectOneChoice value="#{sessionScope.tableSelection}"
    autoSubmit="true"
    id="selType"
    label="Selection Type">
    <af:selectItem label="Single" value="#{null}"/>
    <af:selectItem label="Multiple" value="#{true}"/>
    </af:selectOneChoice>
    <af:table summary="Periodic table"
    binding="#{tableActions.table}"
    partialTriggers="selType"
    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
    value="#{periodicTable.tableData}" var="row" rows="10">
    <af:column>
    <f:facet name="header">
    <af:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Symbol"/>
    </f:facet>
    <af:outputText value="#{row.symbol}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Action Column"/>
    </f:facet>
    <af:commandButton immediate="true" text="Action"
    action="#{row.action}"/>
    </af:column>
    </af:table>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Add a radio button to each row on output (not selection-screen)

    its a normal interacitve report...
    we need to add a radio button to each row on output (not selection-screen) and when user selects the radio button of a particular row and clicks on the user defined menu 'Execute' the report has to fetch the records from a table corresponding to the selected row on the second list.
    all this has to be done in normal interactive list.
    please let me know your suggetions as soon as possible.
    thanks,
    usha.

    Hi ,  try this
    TABLES: spfli.
    TYPE-POOLS:slis.
    PARAMETERS: p_col TYPE i ,
                p_row TYPE i,
                p_color(4) TYPE c .
    DATA: t_fieldcat TYPE slis_t_fieldcat_alv,
          fs_fieldcat LIKE LINE OF t_fieldcat,
          fs_layout TYPE slis_layout_alv ,
          w_color(4) ,
          w_row TYPE i,
          w_fieldname(20),
          w_prog TYPE sy-repid.
    TYPES : BEGIN OF ty_spfli ,
              color(4),
              checkbox ,
              cell TYPE slis_t_specialcol_alv,
              carrid TYPE spfli-carrid,
              connid TYPE spfli-connid,
              cityfrom TYPE spfli-cityfrom,
              cityto TYPE spfli-cityto,
              distance TYPE spfli-distance,
           END OF ty_spfli.
    DATA : wa_spfli TYPE ty_spfli ,
           t_spfli TYPE TABLE OF ty_spfli.
    DATA: fs_cell LIKE LINE OF wa_spfli-cell.
    SELECT carrid connid cityfrom cityto distance
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
    w_color = p_color.
    fs_fieldcat-fieldname = 'CARRID'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 1.
    fs_fieldcat-key = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat .
    fs_fieldcat-fieldname = 'CONNID'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 2.
    fs_fieldcat-key = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat .
    fs_fieldcat-fieldname = 'DISTANCE'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 3.
    fs_fieldcat-key = ' '.
    fs_fieldcat-edit = 'X'.
    APPEND fs_fieldcat TO t_fieldcat.
    CLEAR fs_fieldcat.
    fs_fieldcat-fieldname = 'CITYFROM'.
    fs_fieldcat-ref_tabname = 'SPFLI'.
    fs_fieldcat-col_pos = 4.
    fs_fieldcat-key = ' '.
    APPEND fs_fieldcat TO t_fieldcat.
    LOOP AT t_fieldcat INTO fs_fieldcat.
      IF fs_fieldcat-col_pos EQ p_col.
        fs_fieldcat-emphasize = p_color.
        w_fieldname = fs_fieldcat-fieldname.
        IF p_row IS INITIAL AND p_col GT 0.
          MODIFY t_fieldcat FROM fs_fieldcat TRANSPORTING emphasize.
        ENDIF.
      ENDIF.
    ENDLOOP.
    fs_layout-info_fieldname = 'COLOR'.
    fs_layout-box_fieldname = 'CHECKBOX'.
    fs_layout-coltab_fieldname = 'CELL'.
    fs_layout-f2code = '&ETA'.
    w_prog = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = w_prog
        is_layout          = fs_layout
        it_fieldcat        = t_fieldcat
      TABLES
        t_outtab           = t_spfli
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Aby

  • Populate error message if not selected any of the check box in select scren

    hi,
               I am working on a bdc program to upload selected fields, I have populated my 10 fields on selection screen. Given one check box for test run. If I have selected test run check box and not selected any of the field check boxes, it has to populate one error message message 'select atleast one field checkbox' and should stay on selection screen itself.  I used 'S' and used message leave list-processing, but i need error message 'E' and populate message select on check box and do not go for process.
    thanks & regards,
       Sekhar.

    Hi,
    as you don't want to process further and also want to stay on the same screen,then use this at
    AT SELECTION-SCREEN.
    if p_test_run = 'X' AND.......   " conditions for which msg is to be raised
        MESSAGE Ixxx(xyz).    " *use msg type 'I' Information message*
        LEAVE LIST-PROCESSING.
        LEAVE SCREEN.
    endif
    regards,
    neha
    Edited by: Neha Shukla on Mar 6, 2009 11:22 AM

Maybe you are looking for

  • Customer Recievables report

    Hi, How will i get the data regarding <b>customer wise recievable report</b> (any table for it). Ex: If the sale is of 100000 and i have recived an interim payment of 40000, now i would like to know the table that gives me the value 0f 60000 which is

  • How can i find numberedList in a text frame?

    Hi, I need to find the numberedList in a text frame. so that i have written a script. Syntax is given below. app.findTextPreferences = NothingEnum.nothing app.findTextPreferences.bulletsAndNumberingListType = app.findTextPreferences.bulletsAndNumberi

  • File upload problem in EPG

    When I try to upload a large file, at some time only the partial file is getting inserted into the wwv_flow_files table. The URL in the application changes to hostname:port/wwv_flow.accept. I looked at various threads and there was no solution provid

  • NetworkManager applet doesn't prompt for VPN secret for non-root user

    I'm using NetworkManager in GNOME DE. When logged in as non-root user, I'm unable to connect to a vpnc profile. * As non-root, I am able to add/remove/alter/connect to WiFi network profiles with no trouble. * As non-root, I am also able to add/remove

  • DRC warnings in LV FPGA-Modul

    Hi, I am using LV 7.1.1 with FPGA-Modul 1.1. Last week, I started to get DRC warnings in the compiler-log: Running DRC. mytop_n_133762400_resVI_n_139936640_uut/B5 is not connected. mytop_n_133762400_resVI_n_139936640_uut/B5 is not connected. mytop_n_