REUSE_ALV_LIST_DISPLAY append list checkboxes

Hi,
I am using REUSE_ALV_LIST_DISPLAY to display two lists after one another:
     PERFORM append_event   USING    slis_ev_end_of_list
                                     'LIST_2'
                            CHANGING lt_alv_event.
   CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
     EXPORTING
       i_callback_program             = gv_repid
       i_callback_pf_status_set       = co_cb_pf_status
       i_callback_user_command        = co_cb_user_command
       is_layout                      = ls_layout
       it_fieldcat                    = lt_fieldcat
       i_default                      = gv_variant_default
       i_save                         = 'A'
       is_variant                     = gs_variant_list1
       it_events                      = lt_alv_event
     TABLES
       t_outtab                       = gt_outtab_1
      EXCEPTIONS
        program_error                  = 1
        OTHERS                         = 2
FORM list_2.                                        "#EC CALLED
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
     EXPORTING
       i_callback_program             = gv_repid
        i_callback_pf_status_set       = co_cb_pf_status
        i_callback_user_command        = co_cb_user_command
       is_layout                      = ls_layout
       it_fieldcat                    = lt_fieldcat
       i_default                      = gv_variant_default
       i_save                         = 'A'
       is_variant                     = gs_variant_list2
     TABLES
       t_outtab                       = gt_outtab_2
      EXCEPTIONS
        program_error                  = 1
        OTHERS                         = 2
ENDFORM.                    " list_2
The lists have the same structure. I have to add selection to BOTH lists. I tried ls_layout-box_fieldname = 'SEL' in both lists, then use SEL and SEL2 different box_fieldname, then tried to use the field catalog and set as CHECKBOX=X EDIT=X INPUT=X, but the checkbox values are reflected only for the first list internal table, not the second. As if the first list USER_COMMAND runs only and it does not se the second list internal table values.
Is it possible at all?
Thanks!

Can you not use Block ALV  - REUSE_ALV_BLOCK_LIST_APPEND?
Rgds,
Juwin

Similar Messages

  • Alv Append list

    Hi ,
    I created a Alv append list report which has more than 4 to 5 tables to display.
    I have used the function module REUSE_ALV_LIST_DISPLAY and set the parameter     cs_layo-list_append       = 'Y'  to display the list. When the first table doesn't have any data it just displaya an empty table with the information
    'The list contains No data'. I do not want to display the first table if it doesnt have any data. is it possible as it is an append list?
    Thanks & Regards,
    Christina.

    Hi kinnera,
    1. This simple program will give u an idea
    of block alv.
    (more than two internal tables)
    2. It will print two alv
    a) itab = table from t001
    b) ptab = table from t000
    3. Just copy paste in new program.
    REPORT zam_temp54 .
    type-pools : slis.
    data : alvfc type slis_t_fieldcat_alv.
    data : alvly type slis_layout_alv.
    data : alvev type slis_t_event .
    DATA : BEGIN OF itab OCCURS 0.
    include structure t001.
    DATA: END OF itab.
    DATA : BEGIN OF ptab OCCURS 0.
    INCLUDE STRUCTURE t000.
    DATA: END OF ptab..
    PARAMETERS : a TYPE c.
    start-of-selection.
    SELECT DATA
    SELECT * FROM t001 into table itab.
    select * from t000 into table ptab.
    INIT BLOCK ALV
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = sy-repid.
    ADD INTERNAL TABLE ITAB
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'ITAB'
    I_INCLNAME = SY-REPID
    CHANGING
    CT_FIELDCAT = ALVFC.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = alvly
    it_fieldcat = alvfc
    i_tabname = 'ITAB'
    it_events = alvev
    TABLES
    t_outtab = ITAB
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    ADD INTERNAL TABLE PTAB
    REFRESH ALVFC[].
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'PTAB'
    I_INCLNAME = SY-REPID
    CHANGING
    CT_FIELDCAT = ALVFC.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = alvly
    it_fieldcat = alvfc
    i_tabname = 'PTAB'
    it_events = alvev
    TABLES
    t_outtab = PTAB
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    DISPLAY
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    regards,
    amit m.

  • Append list values under Field selection per Mvt type (MIGO)

    Hi Experts,
    Can we append list of values for u2018Field Nameu2019 in case of Setting for goods movement (MIGO), under Field selection per Mvt type. We want to append values for 101 Mvt type.
    Current values are
    CUSTNAME Customer
    EXVKW Sales Value
    GRUND Reason for Movement
    LIFNR Vendor
    SGTXT Text
    WEANZ Number of GR Slips
    WEMPF Goods recipient
    Regards,
    Praful Mankar

    Hi pafulmankar
    If you find the solution, please share with me. I do have the same requirement
    Thanks

  • Select List - checkbox not working properly

    Hi,
    Can anyone help? I'm able to insert one record into the table with the code listed below, if I select only one checkbox. I get this error message, if I select more than one checkbox: ORA-01722: invalid number ORA-02063: Error ERR-1003 Error executing computation query . Note - Employee number is numeric in table. This is my select list/checkbox field being used in application. Thanks.... Elaine
    Procedure being used is:
    create or replace procedure "SAF_INSERT_MEETING_RECORDS"(
    EMPNUMBER_in IN SAF_MEETING_INFO_V.EMPNUMBER%TYPE,
    COURSEID_in IN SAF_MEETING_INFO_V.COURSEID%TYPE,
    TRAINDATE_in IN SAF_MEETING_INFO_V.TRAINDATE%TYPE,
    HOURSTRAINED_in IN SAF_MEETING_INFO_V.HOURSTRAINED%TYPE,
    NEXTTRAINDATE_in IN SAF_MEETING_INFO_V.NEXTTRAINDATE%TYPE,
    DATEADDED_in IN SAF_MEETING_INFO_V.DATEADDED%TYPE,
    ADDEDBY_in IN SAF_MEETING_INFO_V.ADDEDBY%TYPE,
    DATEMODIFIED_in IN SAF_MEETING_INFO_V.DATEMODIFIED%TYPE,
    MODIFIEDBY_in IN SAF_MEETING_INFO_V.MODIFIEDBY%TYPE,
    CURDEPT_in IN SAF_MEETING_INFO_V.CURDEPT%TYPE,
    CURDEPTDESC_in IN SAF_MEETING_INFO_V.CURDEPTDESC%TYPE,
    SEQNUM_in IN SAF_MEETING_INFO_V.SEQ_NUM%TYPE)
    is
    myHoursTrained NUMBER;
    mySeq NUMBER;
    vCHECKBOXES APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
    vCHECKBOXES := APEX_UTIL.STRING_TO_TABLE(EMPNUMBER_in);
    myHoursTrained := TO_NUMBER(HOURSTRAINED_in);
    FOR i IN 1..vCHECKBOXES.COUNT
    LOOP
    BEGIN
    SELECT SAF_MEETING_SEQ.nextval
    INTO mySeq
    FROM dual;
    END;
    INSERT INTO SAF_MEETING_INFO_V
    (EMPNUMBER,COURSEID,TRAINDATE,HOURSTRAINED,NEXTTRAINDATE,DATEADDED, ADDEDBY,DATEMODIFIED,MODIFIEDBY,CURDEPT,CURDEPTDESC,SEQ_NUM)
    VALUES
    (vCHECKBOXES(i) , COURSEID_in, TRAINDATE_in, myHoursTrained, NEXTTRAINDATE_in, SYSDATE,
    ADDEDBY_in, DATEADDED_in, MODIFIEDBY_in, CURDEPT_in, CURDEPTDESC_in, mySeq);
    END LOOP;
    END;

    varad,
    Thank you so much for your response. I had a few issues with numeric vs character data that I needed to address. I was able to resolve them all, based on the information you provided. I'm posting my new working code. Thanks again. Elaine
    Working code is:
    CREATE OR REPLACE procedure "SAF_INSERT_MEETING_RECORDS"(
    EMPNUMBER_in IN VARCHAR2,
    COURSEID_in IN SAF_MEETING_INFO_V.COURSEID%TYPE,
    TRAINDATE_in IN SAF_MEETING_INFO_V.TRAINDATE%TYPE,
    HOURSTRAINED_in SAF_MEETING_INFO_V.HOURSTRAINED%TYPE,
    NEXTTRAINDATE_in SAF_MEETING_INFO_V.NEXTTRAINDATE%TYPE,
    DATEADDED_in IN SAF_MEETING_INFO_V.DATEADDED%TYPE,
    ADDEDBY_in IN SAF_MEETING_INFO_V.ADDEDBY%TYPE,
    DATEMODIFIED_in IN SAF_MEETING_INFO_V.DATEMODIFIED%TYPE,
    MODIFIEDBY_in IN SAF_MEETING_INFO_V.MODIFIEDBY%TYPE,
    CURDEPT_in IN SAF_MEETING_INFO_V.CURDEPT%TYPE,
    CURDEPTDESC_in IN SAF_MEETING_INFO_V.CURDEPTDESC%TYPE,
    SEQNUM_in IN SAF_MEETING_INFO_V.SEQ_NUM%TYPE
    is
    mySeq NUMBER;
    vCHECKBOXES APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
    vCHECKBOXES := APEX_UTIL.STRING_TO_TABLE(EMPNUMBER_in);
    FOR i IN 1..vCHECKBOXES.COUNT
    LOOP
    BEGIN
    SELECT SAF_MEETING_SEQ.nextval
    INTO mySeq
    FROM dual;
    END;
    INSERT INTO SAF_MEETING_INFO_V
    (EMPNUMBER,COURSEID,TRAINDATE,HOURSTRAINED,
    NEXTTRAINDATE,DATEADDED,
    ADDEDBY,DATEMODIFIED,MODIFIEDBY,CURDEPT,CURDEPTDESC,SEQ_NUM)
    VALUES
    (to_number(vCHECKBOXES(i)), COURSEID_in, TRAINDATE_in, HOURSTRAINED_in,
    NEXTTRAINDATE_in, DATEADDED_in,
    ADDEDBY_in, DATEMODIFIED_in, MODIFIEDBY_in, CURDEPT_in, CURDEPTDESC_in, mySeq);
    END LOOP;
    END;
    /

  • Need help formatting List (checkbox list) web app items on a page.

    See this page: Joseph Cancilla
    As you can see from the above example the List (checkbox list) items are all running together. I can't figure out a way to separate the items.
    i.e. DANCE: Ballet,Ballroom should read DANCE: Ballet, Ballroom with a space after the comma.
    Seems like a simple problem but having a hard time finding a solution. Any help would be appreciated.
    Thanks!

    Hi Matt, You should read about web apps here:
    http://helpx.adobe.com/content/help/en/business-catalyst/partner/web-apps-module-create-cu stom.html
    And module reference here:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html
    If you insert through the admin and click customise you will see the option to use listbackup. You will also see that layout availible via FTP and in the admin or DW.
    Here you can see where in the module paramaters the option to choose listbackup occurs:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#id_65138

  • Webform - List (Checkbox) Not accepting variables

    I am having problems with a List (Checkbox) element on a webform where it will not save the text for the options that is entered. I enter the text i want and then save it and it shows with nothing. If it does save it properly and I go to edit or add any options it deletes everything.
    Please investigate and advise.
    Rob

    Hi Rob,
    If making a change to the form you'll need to first apply it within the admin via site manager -> web forms. 
    In this case add the text for the checkbox then save.  Go to the page with the form insert and replace with a fresh copy. 
    If still stuck please provide the form's url and the text information you want to add so we can assist further.
    Cheers!
    -Sidney

  • Manager can update membership list checkbox delegation

    Hi all,
    How can I delegate some users to check / uncheck the checkbox "Manager can update membership list" under the "Managed By" tab of group.
    I was found the way to grant them the delegation to change the "Managed By" user, but when they click OK after checking the checkbox "Manager can update membership list" they received the error message: "an error was encountered
    when trying to set the correct security settings for this manager to manage this object".
    Thanks all.
    Best regards,
    Oren Sharon

    Hi Oren,
    Based on my tests, we need to grant the user “Modify permissions” on the distribution group, then it can check/uncheck the “Manager can update membership list” checkbox.
    More information for you:
    Delegate rights to change "Managed By" tab
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/4a017dfc-d6e6-4255-9b81-43b1f4b40bc6/delegate-rights-to-change-managed-by-tab?forum=winserverDS
    Best Regards,
    Amy Wang

  • Accessing S:List Checkbox Item Renderer Outside the Renderer

    Hi All,
    I have an S:List, with a checkbox item renderer.  I was to be able to access the selected portion of the renderer to create a new function that at the press of a button this will delect all the current selected items in the list.
    Doco states that i should be able to do this just by setting the selectedIndex to -1.  But not sure if this is specific to 4.5??  But it is not working for me.
    Below is my current list.  Outside of this list flashbuilder does not know about chkList, or even selected.  How can i get access to this to deslect all?
    <s:List
    id="ltattributes">
    <s:itemRenderer>
    <fx:Component>
    <s:ItemRenderer>
    <fx:Script>
    <![CDATA[
    import mx.events.ItemClickEvent;
    protected function chkList_changeHandler(event:Event):void
    var e:ItemClickEvent = new ItemClickEvent(ItemClickEvent.ITEM_CLICK, true);
    data.selected = event.currentTarget.selected;
    e.item = data;
    e.index = itemIndex;
    dispatchEvent(e);
    ]]>
    </fx:Script>
    <s:CheckBox id="chkList" selected="false" label="{data.displayname}" change="chkList_changeHandler(event)"/>
    </s:ItemRenderer>
    </fx:Component>
    </s:itemRenderer>
    Thanks

    Try: dataGroup.getElementAt(). 
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • [XMLType] : Appending list of XML elements

    hi everybody,
    I have a lttle question : a would like to append a list of XML elements to another XML document :
    I have two XMLs :
    <rowset><A>..</A> <A>..</A></rowset> (1)
    and
    <rowset><B>..</B> <B>..</B></rowset> (2)
    and I would like to have
    <rowset><A>..</A> <A>..</A><B>..</B> <B>..</B></rowset>
    I have generated the two XML (1) and (2) by using DBMS_XMLGEN package, and I have them stored in an XMLType, but I dont know how to operate to get the wanted result.
    Can anybody tell me how to do this in a PL/SQL program?
    thanks,
    Marie.

    I don't use XSLT, i just query the XML-documents stored in an XMLType column with a simple SQL-statement.
    I have posted a simple example over here Re: Is it possible to influence the creation of empty elements?

  • List&CheckBoxes

    Hi, I have a JInternalFrame and I want to display a list of objects (eg. Member) and a checkbox next to them. Members are drawn dinamically from db. The format must be something like this:
    member.toString() <checkbox>
    member.toString() <checkbox>
    member.toString() <checkbox>
    member.toString() <checkbox>
    etc..
    JList does not allow me to include ckeckboxes. And if I assign member.toString() as Text for a JLabel, how can I assure that data will be aligned in different lines/rows? What kind of structure should I use to implement tthis?
    Thanks!

    Try for a BoxLayout with 2 colums.
    Each column contains a GridLayout with identical number of cells vertically and a single cell horizontally.

  • Dynamic List Checkboxes

    Hi, I recently created a dynamic form with several check boxes. I've selected the 1,0 type and I was wondering if there was a way to easily change the second value in the pair. In this case the 0. So if the box is unchecked it puts a 2 or 9, just as an example. I looked through the code and I couldn't find where the value is set. I found this line in the page
    $ins_survey08->addColumn("OV_V", "CHECK BOX_1_0_TYPE", "POST", "OV_V", "0"); and thought that changing the last 0 would do it but it had no effect.
    Any ideas?
    Thanks

    Hi I am not 100% but here goes,
    1 = 2
    0 = 9
    $ins_survey08->addColumn("OV_V", "CHECK BOX_1_0_TYPE", "POST", "OV_V", "0");
    $ins_survey08->addColumn("OV_V", "CHECK BOX_2_9_TYPE", "POST", "OV_V", "9");
    This should look at the insert digs and input the select values as requested.
    "0"); / "9"); assumptions is that this is the default val if they have not selected anything and submitted the survey anyway.
    e.g. Answering "great / 10/10" to everything when they want to answer "Yes / No / Liked / Disliked"
    Cheers,
    Joe

  • Trying to remove a checkBox from a list of checkBoxes

    Hello,
    I have a dictionary that has TKey equal to a Decimal and with TValue equal to a List<CheckBox>. I declare it like so:
    Dictionary<Decimal, List<CheckBox>> entireCheckBoxList = new Dictionary<Decimal, List<CheckBox>>();
    The reason for doing this is that I can pass it a NumericUpDown value (which only is in Decimal), then I can find any created CheckBox's that corespond to the NumericUpDown value. So let say I have my NumericUpDown equal to 1, when I click on the up
    arrow, I pop-up a new form window that lets me enter data lets say folder name and file name. Then, when I click my save button, I create check boxes for a folder name and under that check box is a the file name but it is slightly indented to the right and
    under it:
    So the reason why I have a Decimal TKey is that when i pop up a new form to create checkBoxes, I can create as many check boxes as I want and only want to assign them to one number. So if I create 4 check Boxes in one form pop-up form, then I want the numberUpDown
    value to only be increased by one when I save it and create them. 
    So my main question is, when I click down on the numericUpDown arrow, I want to remove the index associated with the numericUpdown from both the control and this dictionary. I am able to remove from the dictionary like so:
    entireCheckBoxList.Remove(numbericUpDownValue);
    However now I want to remove from the control with something like this:
    this.tabPage1.Controls.Remove(entireCheckBoxList[numbericUpDownValue]);
    But I am receiving the following errors:
    Error 1
    The best overloaded method match for 'System.Windows.Forms.Control.ControlCollection.Remove(System.Windows.Forms.Control)' has some invalid arguments
    Error 2
    Argument 1: cannot convert from 'System.Collections.Generic.List<System.Windows.Forms.CheckBox>' to 'System.Windows.Forms.Control'.
    All I want to do is remove the check boxes associated with the numericUpDown value from the control that correspond to the ones created and stored in my dictionary List<CheckBoxes>. I am just not sure how to do it.
    Kind Regards.

    Ok great thanks for this. 
    I have just realized that if I can just remove the last item in the entireCheckBoxList dictionary added, then there is no reason for the numbericUpDownValue look up. I just need to remove the last item in this dictionary.
    I have tried many things to get the last item in the dictionary but are all out of ideas.
    Any clue?
    I have done this:
    var test = entireCheckBoxList.Last();
    then since this gives me the last value, I have then looped through like so:
    foreach (CheckBox item in test.Value)
    Then to remove only the last items created, since they are done in pairs, i have done this:
    count++;
    if ((count == test.Value.Count - 1) || (count == test.Value.Count))
    this.tabPage1.Controls.Remove(item);
    else
    if (!yourlist.Contains(item))
    yourlist.Add(item);
    entireCheckBoxList.Add(count, yourlist);
    where count is an int declare above. So the final solution is this:
    var test = entireCheckBoxList.Last();
    int entireCheckBoxCount = entireCheckBoxList.Count;
    List<CheckBox> yourlist = new List<CheckBox>();
    int count = 0;
    entireCheckBoxList.Clear();
    foreach (CheckBox item in test.Value)
    count++;
    if ((count == test.Value.Count - 1) || (count == test.Value.Count))
    this.tabPage1.Controls.Remove(item);
    else
    if (!yourlist.Contains(item))
    yourlist.Add(item);
    entireCheckBoxList.Add(count, yourlist);
    What do you think?
    Kind Regards.

  • Contact form-checkbox PHP coding doesnt work

    I am a beginner to web page design so i would be grateful if you can explain to me what PHP coding i would need for 'Checkbox' and where to place it in the PHP coding below. I can submit the form to my email with all the headings and the filled in forms with checkbox Yes or No.
    Only problem i have is that part of the check box info appear right at the top of the email message rather than the 'Name', 'Tel', 'Email' etc..Another half of the checkbox appear where it suppose to be wih double heading as shown below. I would also like to remove the <br> from the email message. Can you also tell me how to change the colour for heading so its clear.
    I have marked the checkbox code in BLUE for both HTML and PHP coding below. Sorry for the long coding. Look forward to hearing from someone. Much appreciated.
    Message delivered to the email address as received:
    Rear ground extension: Yes
    Two-storey rear extension: Yes
    Two-storey side extension: No
    Loft: Yes
    New Build: Yes
    Other: Yes
    Name: Test<br>
    Email: [email protected]<br>
    Contact No: 87576as<br>
    Address1: addy1<br>
    Address2: addy2<br>
    Town: town<br>
    County: county<br>
    Postcode: post<br>
    Property Type: Cottage<br>
    Property Area: None<br>
    Message:<br>
    test msg
    My HTML coding for the form:
    <div class="contactForm">
          <form id="form1" name="form1" method="post" action="test2.php">
            <fieldset>
              <legend><strong>Personal Information</strong></legend>
              <table width="690" border="0">
                <tr>
                  <td width="340"><p>
                <label for="name" class="contactLable">Name:</label>
                <input name="name" type="text" id="name" tabindex="10" size="30" />
              </p></td>
                  <td width="340"><p>
                <label for="contact_number" class="contactLable">Contact No:</label>
                <input name="contact_number" type="text" id="contact_number" tabindex="20" size="30" />
              </p></td>
                </tr>
              </table>
              <table width="690" border="0">
                <tr>
                  <td><p>
                <span id="sprytextfield1">
                <label for="email" class="contactLable">Email:</label>
                <input name="email" type="text" id="email" tabindex="30" size="30" />
              <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span> </p></td>
                </tr>
              </table>
            </fieldset>
            <fieldset>
              <legend><strong>Project Information</strong></legend>
              <p><table width="690" border="0">
      <tr>
        <td width="340"><p>
                <label for="address1" class="contactLable">Address 1:</label>
                <input name="address1" type="text" id="address1" tabindex="40" size="30" />
              </p></td>
        <td width="340"> <p>
                <label for="address2" class="contactLable">Address 2:</label>
                <input name="address2" type="text" id="address2" tabindex="50" size="30" />
              </p></td>
      </tr>
      <tr>
        <td><p>
                <label for="town" class="contactLable">Town:</label>
                <input name="town" type="text" id="town" tabindex="60" size="30" />
              </p></td>
        <td><p>
                <label for="county" class="contactLable">County:</label>
                <input name="county" type="text" id="county" tabindex="70" size="30" />
              </p></td>
      </tr>
      <tr>
        <td><p>
                <label for="postcode" class="contactLable">Post Code:</label>
                <input name="postcode" type="text" id="postcode" tabindex="80" size="10" />
              </p></td>
        <td> </td>
      </tr>
      <tr>
        <td><p>
                <label for="propertyType" class="contactLable">Property Type:</label>
                <select name="propertyType" id="propertyType" tabindex="90">
                  <option>Please select</option>
                  <option>Detached</option>
                  <option>Semi-Detached</option>
                  <option>End of Terrace</option>
                  <option>Mid-Terrace</option>
                  <option>Flat</option>
                  <option>Bungalow</option>
                  <option>Cottage</option>
                  <option>Other</option>
                </select>
              </p></td>
        <td><p>
                <label for="propertyArea" class="contactLable">Property Area:</label>
                <select name="propertyArea" id="propertyArea" tabindex="100">
                  <option>Please select</option>
                  <option>None</option>
                  <option>Listed Building</option>
                  <option>Conservation Area</option>
                </select>
              </p></td>
      </tr>
    </table>
    </p>
           </fieldset><fieldset><legend><strong>Project Type</strong></legend>
              <table width="690">
                <tr>
                  <td width="338"><label>
                    <input name="rearExt" type="checkbox" class="contactCheckbox" id="CheckboxGroup1_0" tabindex="110" value="rearExt"/>
                  Rear ground extension</label></td>
                  <td width="340"><input name="sideExt" type="checkbox" class="contactCheckbox" id="CheckboxGroup1_1" tabindex="120" value="sideExt"/>
    Side ground extension</td>
                </tr>
                <tr>
                  <td><input name="twoStoreyRear" type="checkbox" class="contactCheckbox" id="twoStoreyRear" tabindex="130" value="twoStoreyRear"/>
    Two-storey rear extension</td>
                  <td><input name="twoStoreySide" type="checkbox" class="contactCheckbox" id="twoStoreySide" tabindex="140" value="twoStoreySide"/>
    Two-storey side extension</td>
                </tr>
                <tr>
                  <td><input name="loft" type="checkbox" class="contactCheckbox" id="loft" tabindex="150" value="loft"/>
    Loft conversion </td>
                  <td><input name="newBuild" type="checkbox" class="contactCheckbox" id="newBuild" tabindex="160" value="newBuild"/>
    New build </td>
                </tr>
                <tr>
                  <td><input name="flat" type="checkbox" class="contactCheckbox" id="flat" tabindex="170" value="flat"/>
    Flat conversion</td>
                  <td><input name="other" type="checkbox" class="contactCheckbox" id="other" tabindex="180" value="other"/>
    Other conversion</td>
                </tr>
              </table>
            </fieldset>
            <fieldset><legend><strong>Message</strong></legend>
              <p>
                <label for="message" class="contactLable">Your Message or Comments:</label>
                <textarea name="message" id="message" cols="45" rows="5" tabindex="190"></textarea>
              </p>
            </fieldset>
            <br />
            <input type="submit" name="Sumbit" id="Sumbit" value="Submit" tabindex="200" />
          </form>
        </div>
    PHP Coding to send to my email:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $contact_number=addslashes($_POST['contact_number']);
      $email=addslashes($_POST['email']);
      $address1=addslashes($_POST['address1']);
      $address2=addslashes($_POST['address2']);
      $town=addslashes($_POST['town']);
      $county=addslashes($_POST['county']);
      $postcode=addslashes($_POST['postcode']);
      $propertyType=addslashes($_POST['propertyType']);
      $propertyArea=addslashes($_POST['propertyArea']);
      $rearExt=($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
      $sideExt=($_POST['sideExt'])?"Side ground extension: Yes":"Side ground extension: No";
      $twoStoreyRear=($_POST['twoStoreyRear'])?"Two-storey rear extension: Yes":"Two-storey rear extension: No";
      $twoStoreySide=($_POST['twoStoreySide'])?"Two-storey side extension: Yes":"Two-storey side extension: No";
      $loft=($_POST['loft'])?"Loft: Yes":"Loft: No";
      $newBuild=($_POST['newBuild'])?"New Build: Yes":"New Build: No";
      $flat=($_POST['flat'])?"Flat: Yes":"Flat: No";
      $other=($_POST['other'])?"Other: Yes":"Other: No";
      $msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n$newBuild\n$wflat\n$ other";
      $message=addslashes($_POST['message']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From Website Test";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Email: ".$email."<br>\n"
                ."Contact No: ".$contact_number."<br>\n"
                ."Address1: ".$address1."<br>\n"
                ."Address2: ".$address2."<br>\n"
                ."Town: ".$town."<br>\n"
                ."County: ".$county."<br>\n"
                ."Postcode: ".$postcode."<br>\n"
                ."Property Type: ".$propertyType."<br>\n"
                ."Property Area: ".$propertyArea."<br>\n"
                ."Rear ground extension: ".$rearExt."<br>\n"
                ."Side ground extension: ".$sideExt."<br>\n"
                ."Two-storey rear extension: ".$twoStoreyRear."<br>\n"
                ."Two-storey side extension: ".$twoStoreySide."<br>\n"
                ."Loft conversion: ".$loft."<br>\n"
                ."New build: ".$newBuild."<br>\n"
                ."Flat: ".$flat."<br>\n"
                ."Other: ".$other."<br>\n"
                ."Message:<br>\n"
                .$message;
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $msg, $headers);
        echo "Thanks for submitting your comments";
    ?>
    </body>
    </html>

    Dear David
    Thank you so much for the clear explanation. I have been using Lynda.com Dreamweaver CS5 tutorial. I found the coding for checkbox through search and added to the coding from Lynda.com tutorial.
    I made few changes to the coding by removing:
    $msg = "$rearExt<br>\r\n$sideExt<br>\r\n$twoStoreyRear<br>\r\n
              $twoStoreySide<br>\r\n$loft<br>\r\n$newBuild<br>\r\n$flat<br>\r\n$other\r\n";
    as the email message shows the results from the checkbox twice.
    I also removed the <br> from:
    $body = "Name: $name<br>\r\n
              Email: $email<br>\r\n
              Contact No: $contact_number<br>\r\n
             Other: $other\r\n
              Message:\r\n
                $message";
    I have add the result and the PHP coding you have helped to fixed for anyone needing a working PHP code containing Text Fields, Drop Down List, Checkbox and Text Area. Many thanks for all your help. If you have a coding to change the heading text colour I very much appericate it.
    Message sent to email:
              From: Name test <[email protected]>
                 Content-type: text/html; charset=iso-8859-1
    Name: Name test
              Email: [email protected]
                      Contact No: 0123456789
                      Address1: addy1
                      Address2: addy2
                      Town: T
                      County: C
                      Postcode: P/C
                      Property Type: End of Terrace
                      Property Area: Listed Building
                      Rear ground extension: Rear ground extension: No
                     Side ground extension: Side ground extension: No
                     Two-storey rear extension: Two-storey rear extension: Yes
                     Two-storey side extension: Two-storey side extension: No
                     Loft conversion: Loft conversion: No
                     New build: New Build: No
                     Flat: Flat: Yes
                     Other: Other: No
             Message:
               Test message
    PHP coding for customer contact page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $name=$_POST['name'];
      $contact_number=$_POST['contact_number'];
      $email=$_POST['email'];
      $address1=$_POST['address1'];
      $address2=$_POST['address2'];
      $town=$_POST['town'];
      $county=$_POST['county'];
      $postcode=$_POST['postcode'];
      $propertyType=$_POST['propertyType'];
      $propertyArea=$_POST['propertyArea'];
      $rearExt= isset($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
      $sideExt= isset($_POST['sideExt'])?"Side ground extension: Yes":"Side ground extension: No";
      $twoStoreyRear= isset($_POST['twoStoreyRear'])?"Two-storey rear extension: Yes":"Two-storey rear extension: No";
      $twoStoreySide= isset($_POST['twoStoreySide'])?"Two-storey side extension: Yes":"Two-storey side extension: No";
      $loft= isset($_POST['loft'])?"Loft conversion: Yes":"Loft conversion: No";
      $newBuild= isset($_POST['newBuild'])?"New Build: Yes":"New Build: No";
      $flat= isset($_POST['flat'])?"Flat: Yes":"Flat: No";
      $other= isset($_POST['other'])?"Other: Yes":"Other: No";
      $message=$_POST['message'];
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From Website Test";
      $headers = "MIME-Version: 1.0\r\n
                 From: $name <".$email.">\r\n
                 Content-type: text/html; charset=iso-8859-1";
      $body = "Name: $name\r\n
              Email: $email\r\n
              Contact No: $contact_number\r\n
              Address1: $address1\r\n
              Address2: $address2\r\n
              Town: $town\r\n
              County: $county\r\n
              Postcode: $postcode\r\n
              Property Type: $propertyType\r\n
              Property Area: $propertyArea\r\n
              Rear ground extension: $rearExt\r\n
              Side ground extension: $sideExt\r\n
              Two-storey rear extension: $twoStoreyRear\r\n
              Two-storey side extension: $twoStoreySide\r\n
              Loft conversion: $loft\r\n
              New build: $newBuild\r\n
              Flat: $flat\r\n
              Other: $other\r\n
              Message:\r\n
                $message";
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your message";
    ?>
    </body>
    </html>

  • I want to insert some checkboxes in a JList

    ...is it possible?
    I tried, but it inserts a string!
    This is my code:
    JList list = new JList();
    panel.add(list);
    CheckBox check = new JCheckBox("Yes");
    DefaultListModel model = new DefaultListModel();
    model.addElement(check);
    list.setModel(model);
    // I am able to see only the String "javax.swing.JCheckBox[,0,0,0x0, invalid,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorder.....text=User Prefix]"
    Thank you!

    Hi Sorin,
    you can aquire your data in a loop and use shift registers to store your data (use an array). To get the maximum of the array there is a function in labview "Array Max & Min".
    Hope this helps.
    Mike

  • Alv list header problem

    Hai Friends,
    In my ALV List header..i am writing date , time and my program name.
    but all are coming on left side.
    can i get date on left side, program name on centered and time on write side.
    my code is like this.
    FORM list_headers.
          lists-typ = 'H'.
          lists-info = text-010.
          APPEND lists.
          CLEAR lists.
          lists-typ = 'S'.
          lists-key = text-011.
          CONCATENATE sy-datum+6(2) '/'
                      sy-datum+4(2) '/'
                      sy-datum+0(4) INTO lists-info.
          APPEND lists.
          CLEAR lists.
          lists-typ = 'S'.
          lists-key = text-012.
          CONCATENATE sy-uzeit+0(2) ':'
                      sy-uzeit+2(2) ':'
                      sy-uzeit+4(2) INTO lists-info.
          APPEND lists.
          CLEAR lists.
    ENDFORM.

    Hi again,
    1. first of all how are u writing / displaying
       the alv header ?
    2. using documentary write ?
       then also, u can use one variable of
      length 100 and use this concept.
    3. If u are using top_of_page
      event,
      in this event, WE CAN use WRITE.
      (i have used it, and it
      works fantastic)
                  (not in case of alv grid)
    4. My point is, what ever u are using,
       use on variable of length 100.
      WRITE value INTO variable.
      using offset
      and then proceed further.
    regards,
    amit m.

Maybe you are looking for

  • How do I fix M4P music files that stop suddenly on my new computer?

    So I purchased a windows laptop and transferred my music from my mac mini to the new system and a large number of my music files - that I purchased from the Itunes store- now stop suddenly.  The files all appear to be m4p files...how do I repair the

  • OWB Methodology for Tracking Rows processed by Mappings

    Hi Is there a recommended OWB methodology that I can implement in my project to keep track of records processed by OWB mappings? For example, my table, ABC, has the following rows : DATE, CLIENT, AMOUNT 1/1/2008, 123, 5000 2/1/2008, 345, 6000 3/1/200

  • Mac mini 10.4.10

    I just downloaded OS 10.4.10 and my system preferences will no work. I can not connect to the internet or open system preferences. Anybody have any suggestions? Mike

  • HT204389 i lost my iphone 4, how can i find it?

    i need to know if i can find my iphone 4 ?

  • Which Display To Use with mac mini?

    Is it possible to use an iMac Desktop computer as a display for a mac mini? Does anyone have the range of different monitors that can be used as a display for the mac mini? Both answers are crucial to buying a mac mini. iMac   Mac OS X (10.4.5)   600