Regarding checkbox in smartfrom

Hi Folks,
How to create a check box beside to the text elemet in the smartform? Please respond, its very urgent.
Thanks in advance.

Hi,
     Create a text element in your window. Click on the the text editor next to that. In the toolbad click on insert -> characters -> SAP Symbols -> SYM_LARGE_SQUARE
Thanks
Nayan

Similar Messages

  • Regarding checkboxes

    how to deactivate checkboxes residing on different tabs at selection screen like if we select tab1 than only checkboxes for first tab should be deactivated and vice versa

    use the property active tab
    fg
    if active-tab = fuvctioncode of tab1
    loop at screen
    if screen name = chkbox
    screen - input =0
    endif.
    endloop.
    endif
    i hope u get an idea
    <u><i><b>u can also use sy -ucomm value of tab as a condition instead of active tab</b></i></u>
    regards
    navjot
    reward points

  • Regarding checkboxes in modulepool

    gdmrng experts,
                          cud u plz tell me how to handle checkboxes in the module pool screen ,plz send me the logic,,,,,,if i enable the checkbox then what will i write,,,, as i new to module pool....thnx in advance.

    Hi,
    Do something like this in your PBO section.
    loop at itab with tc...
    module modify_tc.
    endloop.
    in the main program.
    module modify_tc.
    loop at itab where mark = 'X'.
    endloop.
    if sy-subrc = 0.
    loop at screen.
    screen-input = 0.
    modify screen.
    endloop.
    endif.
    endmodule.
    Thanks
    Ashu

  • Quetion regarding checkboxes and inputting information

    I am runing a form that pulls the checkboxes from a query.  They have the same name, but different values.
    On the action page, for each checkbox checked, a new record must be created in the db.
    Im' sure this has to do with counting and setting a loop number, but for some reason I am drawing a blank.
    The query is basic....
    <cfquery name="whatever" datasource=#dbname#>
         insert into ach_world_done
              (id,scoutid,den,world)
         Values
              ('#url.id#','#url.scoutid#','#url.den#','#form.world#')
    </cfquery>
    As it is written now, it conmas the checkboxes on the previous page, so if there are two boxes checked, it does info1,info2 and puts this into the db.  I need to break this up.
    any help would be greatly appreciated.
    Sharon
    www.smdscouts.com

    On the form page, give each checkbox a unique name:
    <cfset index = 1>
    <cfif doh.recordcount is 0>
                <input name="belt#index#" type="checkbox" value="#belt.belttotemrecord#">
                <cfelse>
                <font class="normal">X - #dateformat(doh.datereceived,'mm/dd/yy')#</font>
    </cfif></td>
    <cfset index = index + 1>
    On the action page, count the number of checkboxes. Remember Coldfusion doesn't submit unchecked checkboxes.
    <cfset numberOfCheckboxes = 0>
    <cfloop collection="#form#" item="field">
        <cfif left(field,4) is 'belt'>
            <cfset numberOfCheckboxes = numberOfCheckboxes + 1>
        </cfif>
    </cfloop>

  • Question regarding Checkboxes

    Is it possible to have rows of selections with checkboxes but if a certain row's checkbox is checked to move that row to the top of the list?

    when i create the checkbox, is there a way i can say if check.. make its value "on"?
    <input type=\"checkbox\" name=\""+items.get(j).itemName+"\">thats how i create the checkboxes (for each item listed in cart).. i thought i might have to add the value parameter but i dont know what exactly its value should be.. are you saying that if i add value="on", that it will only take that value if and when its actually selected?

  • Checkbox in alv report

    hi all,
    i am facing one problem regarding checkbox in alv.
    i have to buttons on alv report as 'select all' (to select all) and 'send mail'(as i have to send mail to selected record)
    wat i have done till now is:
    1. when i run the report and cleck on checkboxes the action is reflected in internal table..n i can capture the data.
    2.when i click on select all button all the records get selected and i can capture the data again.
    now the problem :
    when i clcik on "select all" and all the record get selected ..but when i deselect any of those record..the changes in internal table lost i.e. the checkbox field because empty for all the record.....
    PLZ GIVE SOLUTION FOR FUNCTION "REUSE_ALV_GRID_DISPLAY" ONLY...
    now the code:
    ************LAYOUT**************
    DATA: gd_layout TYPE SLIS_LAYOUT_ALV.
      gd_layout-colwidth_optimize = 'X'.
    gd_layout-zebra      = 'X'.
      gd_layout-box_fieldname  = 'CHECKBOX'.
      gd_layout-box_tabname  = 'IT_CONF'.
    ****alv display*************
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_grid_title             = 'Detailed List'
            it_fieldcat              = fieldcat
            i_callback_program       = sy-repid
            i_callback_user_command  = 'USER_CMD'
            i_callback_pf_status_set = 'EMAILS'
            IS_LAYOUT                = gd_layout
          TABLES
            t_outtab                 = it_conf
          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.
      endif.
    endform.                    "alv_display
    *&      Form  sush1
          text
         -->RT_EXTAB   text
    FORM emails USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'EMAILS'.
    ENDFORM.                    "emails
    *&      Form  user_cmd
          text
         -->P_UCOMM    text
         -->LS_SELFIELDtext
    FORM user_cmd USING p_ucomm LIKE sy-ucomm ls_selfield type slis_selfield.
    IF REF_GRID IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            E_GRID = REF_GRID.
      ENDIF.
    IF NOT REF_GRID IS INITIAL.
        CALL METHOD REF_GRID->CHECK_CHANGED_DATA.
      ENDIF.
      IF p_ucomm = 'EMAIL'.
        loop at it_conf  where checkbox = 'X'.
    **[[[[[[[U MAY NOT SEE THIS THIS IS FOR MAIL PUPOSE]]]]]]]]]]]]*********
          select single  sachn  telnr  into (tc_name , tc_num ) from t526
          where SACHX = it_conf-zztc
          and werks = it_conf-werks .
      ******find the emil of employee.
           clear : p_0105,p_0105[].
            CALL FUNCTION 'HR_READ_INFOTYPE'
              EXPORTING
                pernr           = it_conf-pernr
                infty           = '0105'
                BEGDA           = pn-begda
                ENDDA           = pn-endda
              TABLES
                infty_tab       = p_0105
              EXCEPTIONS
                infty_not_found = 1
                OTHERS          = 2.
           if sy-subrc = 0.
            read table p_0105 with key subty = 10.
            move p_0105-USRID_LONG to email.
        endif.
    find immediate superior by Z FM.
          clear pernr_s.
          CALL FUNCTION 'ZHR_GET_IMMMED_SUPERIOR'
            EXPORTING
              pernr     = it_conf-pernr
              begda     = '18000101'
              endda     = '99991231'
            IMPORTING
              v_pernr   = pernr_s
            EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
          if sy-subrc = 0.
    find the email of the immed. superiors personal number..
            clear : p_0105,p_0105[].
            CALL FUNCTION 'HR_READ_INFOTYPE'
              EXPORTING
                pernr           = pernr_s
                infty           = '0105'
                BEGDA           = pn-begda
                ENDDA           = pn-endda
              TABLES
                infty_tab       = p_0105
              EXCEPTIONS
                infty_not_found = 1
                OTHERS          = 2.
            read table p_0105 with key subty = 10.
            move p_0105-USRID_LONG to email_s.
              endif.
            if email <> ' '.
            perform send_mail using it_conf-ename email email_s tc_name tc_num.
            endif.
            if email_s <> ' '.
            perform send_mail using it_conf-ename email email_s tc_name tc_num.
            endif.
    ****MAIL PART IS OVER*******************************************
        endloop.
    endif.
    *****FOR  "SELECT ALL " BUTTON**************
       IF p_ucomm = 'SELECT'.
       flag = 1.
        loop at it_conf.
          move 'X' to it_conf-checkbox.
          MODIFY IT_CONF.
        endloop.
        ls_selfield-refresh = 'X'.
        endif.

    " Please  see the code  of  myin  in the    'SELECT' & 'DESELECT'.
    case save_ok.
        when 'EXIT'.
          perform exit_program.
        when 'SELECT'.
          perform select_all_entries changing gt_outtab[].
        when 'DESELECT'.
          perform deselect_all_entries changing gt_outtab[].
        when 'RESET'.
          perform reset_selected_entries changing gt_outtab[].
        when 'SWITCH'.
          perform switch_activation changing gt_outtab[].
      endcase.
    form select_all_entries changing pt_outtab type standard table.
      data: ls_outtab type gs_outtab.
      data: l_valid type c,
            l_locked type c.
    *§A4ad. Before you (a)set, reset or (d)evaluate checkboxes,
    *       you must check the input cells.
    * If all entries are ok, ALV transferes new values to the output
    * table which you then can modify.
      call method g_grid->check_changed_data
                  importing
                     e_valid = l_valid.
      if l_valid eq 'X'.
        loop at pt_outtab into ls_outtab.
          perform check_lock using    ls_outtab
                             changing l_locked.
          if l_locked is initial
             and not ls_outtab-checkbox eq '-'.
            ls_outtab-checkbox = 'X'.
          endif.
          modify pt_outtab from ls_outtab.
        endloop.
        call method g_grid->refresh_table_display.
      endif.
    endform.   
    form check_lock using    ps_outtab type gs_outtab
                    changing p_locked.
      data ls_celltab type lvc_s_styl.
      loop at ps_outtab-celltab into ls_celltab.
        if ls_celltab-fieldname = 'CHECKBOX'.
          if ls_celltab-style eq cl_gui_alv_grid=>mc_style_disabled.
            p_locked = 'X'.
          else.
            p_locked = space.
          endif.
        endif.
      endloop.
    endform.       
    form deselect_all_entries changing pt_outtab type standard table.
      data: ls_outtab type gs_outtab.
      data: l_valid type c,
            l_locked type c.
    *§A4ad. Before you (a)set, reset or (d)evaluate checkboxes,
    *       you must check the input cells.
    * If all entries are ok, ALV transferes new values to the output
    * table which you then can modify.
      call method g_grid->check_changed_data
                  importing
                     e_valid = l_valid.
      if l_valid eq 'X'.
        loop at pt_outtab into ls_outtab.
          perform check_lock using    ls_outtab
                           changing l_locked.
          if l_locked is initial
             and not ls_outtab-checkbox eq '-'.
            ls_outtab-checkbox = ' '.
          endif.
          modify pt_outtab from ls_outtab.
        endloop.
        call method g_grid->refresh_table_display.
      endif.
    reward  points if it is usefull ......
    Girish

  • How to use a SelectAll box / checkbox to select multiple checkboxes!!

    I have a question regarding checkboxes.
    My jsp page has the following layout generated dynamically based on a drop down selection box.
    ID State Initiated Released Locked
    US Initiated X
    Arg Released X X
    Ger Released X X
    Ita Locked X X X
    The Initated, Released & Locked columns are checkboxes. The checkboxes are enabled or disabled based on the State. This means that if the state is Initaited, the user will click the desired checkbox, while the others in the same row will be disabled, and so forth.
    Now all I want is the option of having a SelectAll button / checkbox (something like in yahoo,hotmail) for each column (Initiated,Released,Locked), which when clicked will select all the desired checkboxes under them.(which will select only those in the respective state).
    This is basically to make life easier for the user in case there are some 100 rows. Instead of selecting each individually, he can just click a single button for each column. He can then unselect whichever one he wants.
    I know this can be done using javascript. Remember that this list is not static, but dynamic. So I cannot send a fixed no. into my javascript function to iterate. Im using <nested:iterate> & <nested:checkbox> for iterating & displaying the checkboxes.
    If someone has a solution on it please do send me the code snippet.
    Thanks.

    Javascript is the only solution for something like this.
    I presume you are using struts indexed properties?
    Remember that this list is not static, but dynamic. So I cannot send a
    fixed no. into my javascript function to iterateTrue, but once your JSP is generated you know exactly how many controls you have generated using the varStatus of a iterate tag, or just looking at the size() of the list being iterated on. You can use that to generate the javascript function/call.
    Also you can use javascript without knowing exactly how many are there. You can actually discover the fields on the page.
    Hope this helps,
    evnafets

  • Kindly help me with this checkbox issue

    Hi all,
    Firstly I would like t o thank this very helpful forum.I have one more question regarding checkboxes.
    /*courses.jsp*/ In my courses.jsp which connects to an MS Access database I have something like this...
    <INPUT TYPE=CHECKBOX NAME="COURSES" VALUE="rs.getString("course")"><%out.print(rs.getString("course"));%></td>/*courses.jsp*/
    This is coming from the database.
    In my servlet code i have this in the doPost method.
    /*CheckBoxServlet*/ PS : This servlet is not connected to the database..
    String checkbox[] = request.getParameterValues("COURSES");
              int counter = checkbox.length;
              System.out.println("Number of checkboxes checked " + counter);
              if (checkbox !=null){
                   for (int i = 0; i < checkbox.length; i++) {
                   System.out.println("Checkbox values "+ checkbox);
         } else {
                   System.out.println("none selected");
    /*CheckBoxServlet*/
    /* OUTPUT */
    I have checked 5 check boxes
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    Checkbox values rs.getString(
    /*OUTPUT*/
    My question is why is it not printing out the value in rs.getString()????.
    It would be great if this forum helps me in the right direction.Let me know how i can go about doing this.
    I hope i have explained my question correctly.If you have any further questions kindly ask.
    Thanking every one in adavance
    AS

    your mixing html and java code
    <INPUT TYPE=CHECKBOX NAME="COURSES"
    VALUE="rs.getString("course")"><%out.print(rs.getStrin
    g("course"));%></td>based on this it should be
    <INPUT TYPE=CHECKBOX NAME="COURSES"
    VALUE="<%out.print(rs.getString("course"));%>)"><%out.
    print(rs.getString("course"));%></td>
    Hi again,
    Thanks for the reply.
    If I give this
    <INPUT TYPE=CHECKBOX NAME="COURSES" VALUE="<%out.print(rs.getString("course"));%>"><%out.print(rs.getString("course"));%>This is the error message i get
    javax.servlet.ServletException: No data found
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.courses_jsp._jspService(courses_jsp.java:243)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         servlet.AdminValidationServlet.doGet(AdminValidationServlet.java:78)
         servlet.AdminValidationServlet.doPost(AdminValidationServlet.java:93)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: No data found
         sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7139)
         sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3908)
         sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5702)
         sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:356)
         sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:413)
         org.apache.jsp.courses_jsp._jspService(courses_jsp.java:106)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         servlet.AdminValidationServlet.doGet(AdminValidationServlet.java:78)
         servlet.AdminValidationServlet.doPost(AdminValidationServlet.java:93)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)What could be the reason for this.It would be great if you can help me out.
    TIA
    AS

  • Setting and getting values to the viewcontroller from component controller

    Hi,
    I'm having a model node in the controller  and the value node int he view which are binded to the UI elements.
    How to set the values in the model nodes to the value nodes in the view through setter method and get the values from the view using getter???
    Could you help me in, how to call a viewController's value node in componenet controller, and set and get the values to it.
    Thanks & Regards,
    Suresh

    Thanks Murtuza..
    i have one more question regarding checkbox by group.
    I have binded the texxt property of the checkbox by group to a context contribute and its type property is selected from a simple type.
    In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
    how to get the label names, using simple types. i,m able to get it using code.
    how to get it by simpletype??? 
    thanks, suresh

  • Regarding usage of checkbox in smartforms

    Hi,
    I would like to know how a checkbox can be displayed in a smart form and what is the condition or flowlogic thats required inorder to show the checkbox as "selected"(means a tick mark).I have tried the <697>.but it din help me.
    please suggest me with full description.
    Thanks in advance,
    shwetha

    Hi Shwetha,
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Another way is to use [ and ] in text symbols.i.e.[] will look like checkbox.
    Reward points if this Helps.
    Manish

  • PDF conversion in smartfrom

    Hi experts,
    From my report i have to genarate 3 smartfroms by clicking checkboxes in report.so 3 smartfroms are coming fine.when i press back for each smartfrom it should genarate pDF for that smartfrom.
    in mycode i ma using 3 Convert_off FM's ...
    if check1 = 'x'.
    some code..
    CALL FUNCTION GS_FMNAME
    EXPORTING
    ARCHIVE_INDEX       = toa_dara
    ARCHIVE_PARAMETERS  = arc_params
    CONTROL_PARAMETERS  = ls_control_param
    GV_BSTNK = GV_BSTNK
    GV_BSTDK = GV_BSTDK
    GV_VBELN = GV_VBELN
    GV_NAME1 = GV_NAME1
    IMPORTING
    document_output_info = lt_ssfcrespd
    job_output_info      = lt_job_output_info
    job_output_options   = lt_ssfcresop
    lt_otf = lt_job_output_info-otfdata
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
      IMPORTING
      bin_filesize          = lv_bin_filesize
      TABLES
       otf                   = lt_job_output_info-otfdata"lt_otf
       lines                 = lt_pdf_tab
      EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
    if check2 = 'x'.
    some code..
    CALL FUNCTION GS_FMNAME
    EXPORTING
    ARCHIVE_INDEX       = toa_dara
    ARCHIVE_PARAMETERS  = arc_params
    CONTROL_PARAMETERS  = ls_control_param
    GV_BSTNK = GV_BSTNK
    GV_BSTDK = GV_BSTDK
    GV_VBELN = GV_VBELN
    GV_NAME1 = GV_NAME1
    IMPORTING
    document_output_info = lt_ssfcrespd
    job_output_info      = lt_job_output_info
    job_output_options   = lt_ssfcresop
    lt_otf = lt_job_output_info-otfdata
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
      IMPORTING
      bin_filesize          = lv_bin_filesize
      TABLES
       otf                   = lt_otf
       lines                 = lt_pdf_tab
      EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      OTHERS                = 5.
    if check3 = 'x'.
    CALL FUNCTION GS_FMNAME
    EXPORTING
    ARCHIVE_INDEX       = toa_dara
    ARCHIVE_PARAMETERS  = arc_params
    CONTROL_PARAMETERS  = ls_control_param
    GV_BSTNK = GV_BSTNK
    GV_BSTDK = GV_BSTDK
    GV_VBELN = GV_VBELN
    GV_NAME1 = GV_NAME1
    IMPORTING
    document_output_info = lt_ssfcrespd
    job_output_info      = lt_job_output_info
    job_output_options   = lt_ssfcresop
    lt_otf = lt_job_output_info-otfdata
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
      IMPORTING
      bin_filesize          = lv_bin_filesize
      TABLES
       otf                   = lt_otf
       lines                 = lt_pdf_tab
      EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      OTHERS                = 5.
       Problem is for firstsmart form if i pass lt_job_output_info-otfdata directly to convert off fm pdf is generating...but for others ieven i pass lt_otf is working..HOW COME it is..
    Can anybody plz check this...

    Yes  Madhu .
    I want all Invoices in single PDF file after VF31.
    Im  running BDC for VF31
    Calling the spool request from tsp01 table for the delivery invoice number  then using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = wa_tsp01-rqident
          no_dialog                = 'X'
          pdf_destination          = 'X'
          no_background            = sy-batch
        importing
          bin_file                 = pdf_xstring
        tables
          pdf                      = it_tline
        exceptions
          err_no_otf_spooljob      = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_dstdevice        = 5
          user_cancelled           = 6
          err_spoolerror           = 7
          err_temseerror           = 8
          err_btcjob_open_failed   = 9
          err_btcjob_submit_failed = 10
          err_btcjob_close_failed  = 11
          others                   = 12.
    After this Im attaching in in the mail.
    Regards
    Severina

  • Use of Checkbox in Report for calculation and determine checked records

    Dear All,
    Application Express 4.0.1.00.03
    I have a Report based on Invoice table which displays unpaid Invoices.
    Also I have added one check box (Not a column in Invoice field) to each row of the report query, the user will be check to pay the Invoice, on checking of the Invoices I need to
    1. Calculate the total of Invoice Amount for selected Invoices.
    2. After selection of Invoices User will click on a Button which will open the Payment Form (New Page or Same Page Region),
    but some way I need to know the Invoice No. of each Invoice row selected so that I can use all the selected Invoice No's for creating the Payment.
    3. Any way to add a button on each row of the Invoice that will be used for the Payment of that Invoice only.
    One way can be to create a column to save the check box value which I am aware of, but am looking for other alternate if possible.
    Hoping for some good solution.
    Thanks & Regards
    Arif Khadas

    vee wrote:
    You would need to make the amount column(the one which is used for total) editable so that its value can be accessed easily from JS. You can made it read-only if required ( apex_item.text(2,INV_RENT_VALUE + INV_OTHER_VALUE ) ?? ) .
    How can I make it read only, there is no such attribute which can be set for report column as it exists for Items.
    Also Now I have the following report query:
    SELECT  INV_LSE_NUM                      "Contract No.",
            INV_FROM_DATE                    "Collection Date",
            INV_FROM_DATE                    "From Date",
            INV_TO_DATE                      "To Date",
            INV_RENT_VALUE + INV_OTHER_VALUE "Invoice Amount",
            INV_AMOUNT_PAID                  "Amount Paid",
            INV_RENT_VALUE + INV_OTHER_VALUE
                           - INV_AMOUNT_PAID "Balance",
            INV_NUM                          "Invoice No.",
            'Pay'                            "Pay",
            APEX_ITEM.CHECKBOX (1, INV_NUM)  "CB_PAY",
            APEX_ITEM.TEXT (2, INV_RENT_VALUE + INV_OTHER_VALUE - INV_AMOUNT_PAID)
                                             "BAL"
    FROM    RE_INVOICE
    WHERE   INV_COM_NUM    =  :P0_COM_NUM
    AND     INV_RENT_VALUE + INV_OTHER_VALUE > INV_AMOUNT_PAID
    AND     INV_LSE_NUM    =(SELECT TO_NUMBER (C001)
                             FROM   APEX_COLLECTIONS
                             WHERE  COLLECTION_NAME = 'LEASE'
                             AND    SEQ_ID          = TO_NUMBER (:P24_SR_NO))The Next thing is the HTML Header for the Page:
    <script language = "JavaScript" type="text/javascript">
    total = 0;
    $('input[name=f01]:checked').each( function(){
      parent_row = $(this).parents('tr:first');
      amt = ( parent_row.find('input[name=f02]').val() == ' ') ? 0 : parseFloat(parent_row.find('input[name=f02]').val() );
      total += amt;
    $s('TEST',total);  -- Test is an Item on the Page.
    </script>Also I checked from the Page source "CB_PAY" and "BAL" have names f01 and f02 respectively.
    Even now when I check or un-check the Value in TEST item is not displayed as required.
    Anything more is required, what am I missing.
    Thanks & Regards
    Arif Khadas

  • Problem with checkbox

    hi expert,
    i create report with check box at begin of write data in tab. after execute, i get report like this
    1  (checkbox)  xxxxx x xxx xxxxxxxxxxxxxxxx
    2  (checkbox)  xxxxx x xxx xxxxxxxxxxxxxxxx
    3  (checkbox)  xxxxx x xxx xxxxxxxxxxxxxxxx
    4  (checkbox)  xxxxx x xxx xxxxxxxxxxxxxxxx
    when user select check box of desire line and press F8 button system will display only selected line.so i set check box default as 'X'.
    Data:
      chk_box          type c value 'X',
      chk_box_val,
    write:/1 1tab-xxxxx,
             30 chk_box as checkbox
    like this all checkbox in report is checked
    so i will update field in 1tab to flag that this line is select. if user execute report and don't unmark, all line should display in second execute.
    but it don't, nothing display. where is incorrect in my code?  for easy to look, this is a relative part of code in my report. 
    at line-selection.
        perform selectline.
    at pf8.
        perform printnewheader.
        perform printselectline.
    form selectline.
      data xnum like rmtab-runno.
      read current line field value chk_box into chk_box_val.
      if chk_box_val is initial.
        chk_box_val = 'X'.
      else.
        chk_box_val = space.
      endif.
      modify current line field value chk_box from chk_box_val.
      if chk_box_val = 'X'.
        xnum = 1tab-runno.
        loop at 1tab where runno = xnum.
          1tab-chk = 'X'.
          modify 1tab.
          clear 1tab.
        endloop.
      else.
        xnum = 1tab-runno.
        loop at 1tab where runno = xnum.
          clear 1tab-chk.
          modify 1tab.
          clear 1tab.
        endloop.
      endif.
    endform.             " selectline
    form print-doc-select.
      loop at 1tab where chk = 'X'.
       write:/ ................
    endform.
    once i arrange code like this, but it's nothing
    *at line-selection.
    *    perform selectline.
    at pf8.
        perform selectline.
        perform printnewheader.
        perform printselectline.
    (later is as same as above quote)
    thank you in advance. point for good advise.
    Regards,
    Kittisak.

    HI,
    First you have to describe the number of lines in list.TO do this
    declare like this
    And I modified your code. and dont mention the default value for check box.U can select dynamically by using the below code.It gives a good user interface. Based on the below code u can modify your code .Please check it out once...
    data:
      w_lines type i,    " number of lines                                   
      w_linno type i.    " line number
    at line-selection.
        perform selectline.
    at pf8.
        perform printnewheader.
        perform printselectline.
    form selectline.
      data xnum like rmtab-runno.
       describe list number of lines w_lines.
      do w_lines times.
      read current line w_lineno value chk_box into chk_box_val.
      if chk_box_val is initial.
        chk_box_val = 'X'.
      else.
        chk_box_val = space.
      endif.
      modify current line w_linno value chk_box from chk_box_val.
      if chk_box_val = 'X'.
        xnum = 1tab-runno.
        loop at 1tab where runno = xnum.
          1tab-chk = 'X'.
          modify 1tab.
          clear 1tab.
        endloop.
      else.
        xnum = 1tab-runno.
        loop at 1tab where runno = xnum.
          clear 1tab-chk.
          modify 1tab.
          clear 1tab.
        endloop.
      endif.
    clear chk_box .
    add 1 to w_linno.
    enddo.
    endform.             " selectline
    form print-doc-select.
      loop at 1tab where chk = 'X'.
       write:/ ................
    endform.
    regards
    Kiran
    Edited by: Kiran Saka on Feb 6, 2009 5:50 AM

  • 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.

  • Usage of Checkboxes in RTF templates

    Hi Tim,
    I see that we can use checkboxes with XMLP 5.5 onwards, but i don't see any documentation/example on this in the user guide. Can you please explain me how can i make a checkbox which has the following values in the Checkbox-form-field text options:
    Not Checked
    Checked
    to be programatically "Checked" or "Unchecked". This will help us in effectively using this feature in our templates.
    Thx,
    Nitin

    Hi Nitin
    Check pg 55 (2-33) of the 5.5 Users Guide ... check boxes are there.
    Regards, Tim

Maybe you are looking for