Adding a check box in scripts

Hello experts,
         i got a requirement like to add a check box to the form. is it possible in scripts. if yes can u tell me how can we add a check box in the form(scripts).
thanks is advance

thanks yaar.
       but in first option iam not understanding textelement(f9) what is that mean.
after going to text element we have to press f9 right. then we have to write [] like this in text editor. is it right?
actually my output is like this
slno           qty           mtlno      desc
in the below of slno i have to add check boxes and after that i have to implement some logic if it is checked like that i want.
thanks & regards
raj

Similar Messages

  • How to acheive check box in SCRIPTS

    Hi All,
    I am working on SCRIPTS, I want a check box with checked in the layout after execting. I am not changing any driver program
    How to acheive this.
    Thanks in advance

    Hi,
    You can achive check boxes in scripts using this below link
    http://abapeasy.blogspot.com/2008/03/3-easy-way-to-add-checkbox-in-your.html
    with out modifying the print program u can check the check box using the PERFORM ---ENDPERFORM CONTROL COMMAND
    see this link how to use preform contorl command in script
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm
    Regards
    Jagadeesh

  • Adding a check box to my page clears the value in a hidden field on page 0

    Hello, I hope that someone can assist me. I have a page that has multiple submit buttons on it. When I click a submit button the page refreshes to render the new content. I have a hidden field, and its region is set to one on page 0. Without any check boxes on my page, I can set a value in the hidden field, and it remains there even if I click on any submit buttons. If I put a check box on the page and then press a submit button, the value is cleared in the hidden element which is not desired. I did notice that in this case with the check box, if I refresh the browser the hidden field value is not cleared. Perhaps the page is being rendered differently after the submit because of the checkbox. Does anyone have any ideas of what is happening?

    That doesn't sound right. Adding a checkbox shouldn't have that effect. Please try to reproduce this on htmldb.oracle.com so we can take a look or post a screenshot of your relevant page components.

  • Check box in scripts

    Hi i am Dinakar,
      How can we add a check box in a SAP Script Layout.
      Plz explain the procedure.
    Thanks & Regards
    Dinakar

    Hi,
    Refer the link.Here Checkbox is done in Smartforms.. hope it will be same for Script as well.
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish

  • Printing check box in script side by side

    Hi All,
    I have a requirement like i have to print the check box in SAP script side by side like this
    1) check box   2) checkbox2
    3) check box3.
    And i have checked the sap symbols and character formats i am getting only the marked check boxes.
    how to get the unmarked one and how to place the check boxes side by side in SAP Script.
    Thanks in advance,
    Joe

    Check the following thread.
    link: [Checkbox in sap scripts;
    [check boxes in SAP SCRIPT  layout;

  • Adding a check box in MM01 transcation screen i am not abe see the checkbox

    HI experts,
    I added some checkbox's in mm01 transcation and configured the screen program and number in OMT3B the problem is i am not able see the checkbox's but i can see the labels for the check box in the screen when i am executing the mm02 transcation.
    urgent requirement.

    Hi Santosh,
    When you are importing from data dictionary , please try the following
    (1)in screen painter once you click the import from dictionary
    (a) select the field you want as checkbox
    (b) you can see if you scroll sideways an option like
         Radiobutton/checkbox etc for the same field
    (c) Choose the checkbox option
    (d) use the "Tick" on the table control
    (e) Drag and drop to your screen
    (2) Activate your screen
    (3) Run the transaction again
    Please let me know if it solves the problem
    Regards
    Byju

  • Check the check-box using script

    Hi
    I have a requirement where from script i need to check the  check box.
    Based on if a condition is true , when i execute the script , the check box field needs to be auto-checked .
    Appreciate the help

    Hi,
    Access the field and set it to true. If it is a standard field it should have its getter and setter, you should use that. In case of an extension field do this :
    doc.getExtensionField("FIELD_NAME").set(true);
    Thanks
    Devesh

  • Need Help With Check Box count Script

    Need to count the number of checked boxes. I'm using the script below and its not working. What I'm I doing wrong? It's driving me crazy.
    // document level function to sum named fields
    function Sum(aFieldNames) {
    var sum = 0; // sum of values
    // loop through fields
    for (var i = 0; i < aFieldNames.length; i++) {
    if(!isNaN(this.getField(aFieldNames[i]).value) )
    sum += Number(this.getField(aFieldNames[i]).value);
    return sum;
    } // end of Sum function
    // array of field names sum
    var aCheckBox = new Array('Check Box5', 'Check Box8', 'Check Box11', 'Check Box16', 'Check Box19','Check Box22', 'Check Box25','Check Box28', 'Check Box31', 'Check Box34','Check Box37', 'Check Box40','Check Box43', 'Check Box46', 'Check Box49','Check Box52', 'Check Box55','Check Box58', 'Check Box61', 'Check Box64','Check Box68');
    // sum named fields
    event.value = Sum(aCheckBox);

    Then why are you checking if they're a number by using the isNaN function, and then trying to add that number to the sum variable? It looks like you just copied the code from somewhere else, even though it doesn't apply to your situation.
    Replace those two lines of the code with this:
    if (this.getField(aFieldNames[i]).value!="Off") sum++;

  • How to automate the adding of check-box along with each numbered item in Framemaker file ?

    I tried using the wingdings font as check-box. But I don't want to use it manually every time. I want to have it as a style part of my procedure style (numbering style).   I need the check-box along with each numbered item. Whenever I apply my numbering style in FM, I should get something like:
    " <checkbox> 1. <text> "

    Use "N:\u2751\ <n+>.\ " for the autonumber format.
    "N" Use counter N
    "\u2751" One of many checkboxes available in Unicode
    "<n+>" increment the counter
    "." ordinary period
    "\ " non-breaking space
    This assumes that you are on FM8 or later, and your Unicode font has that glyph code point populated (Arial Unicode MS does if your font doesn't).
    Don't use WingDings (or Zaph Dingbats) anymore. Using codepage overlays has any number of issues, and these two sets of legacy codepage dingbats don't even match each other.

  • How to keep a check box in script

    hi
    how to keep a check box in script

    Hi,
    go to sapscript editor
    Change the editor to 'PC Editor' and take the menu.
    Include -> Characters -> SAP Symbols
    whether this will not be visible in the print preview.
    other wise..
    Just keep it like <697> in your text element.
    Telephone <697> : &W_TAB-TEL&
    Corresponding symbol will be printed in the paper.
    Note: It will not be displayed in the print priveiw.
    Regards,
    Shiva k

  • Adding a check box control for each row of data in a DataModel

    Hi all,
    I need to add a checkbox control for each row of data on a DataModel object.
    I have a "commandButton" at the bottom of DataModel, and whenever someone checks some of the rows on that list of rows,
    I need to get the selected dataModel(fragment of the list) in my backing bean.
    How do I achieve this functionality in JSF?
    Thanks,
    Meghasyam.

    Hi all,
    I need to add a checkbox control for each row of data
    on a DataModel object.
    I have a "commandButton" at the bottom of DataModel,
    and whenever someone checks some of the rows on that
    list of rows,
    I need to get the selected dataModel(fragment of the
    list) in my backing bean.
    How do I achieve this functionality in JSF?
    Thanks,
    Meghasyam.You'll want to have a wrapper class as suggested above, which has a "selected" boolean in it. Then use the "binding" attribute of the h:selectBooleanCheckbox component to bind the checkbox to that property... Make the property public and specify the properties exact name in the binding... bindings do not append "get" to the EL.
    Here is an example of what your table might look like... This code would display the list of names with a checkbox to the left of each name... When the check box is selected, the "selected" property of that wrapper class is set to true or false as needed. Then when the form is submitted, and you are inside your actionListener or action method call, you can look through your collection of wrapper classes asking each one if it was selected or not... Then do whatever you want with them... In this example, replace "myBackingBean" with the name of your backing bean, and "names" with the name of the method in your backing bean which returns the collection of wrapper classes... create a flag "public boolean selected" or similar in your wrapper class..
    <h:dataTable id="namestable"
    value="#{myBackingBean.names}"
    var="aName">
    <h:column>
    <h:selectBooleanCheckbox binding="#{aName.selected}"/>
    <h:outputText value="#{aName.nameText}"/>
    </h:column>
    </h:dataTable>
    Let me know if that isn't clear enough and I'll see if I can find a better way to explain it...
    -Garrett

  • Adding a check box to OTL Time Card Page in Time Card Matrix

    Hi,
    My requirement is: A check box should be placed on each timecard row on the left hand side
    I used hxczzhxclayt0082.ldt to make some changes to the Time Card matrix
    Can I add a check box using the same .ldt file
    Please Help
    Its Urgent

    Hi Meher,
    Thank You for your reply
    I did some research in Metalink
    I found a White Paper for OTL Time Card Configuration in Metalink
    White Paper says: Attribute components in the timecard layout can be modified via the configuration LDTs
    I tried to add a text box using LDT configuration, It works
    But I need a syntax of How to create a check box
    Please Help
    Thank You
    Santosh

  • Check box in script

    I have a requirement in SAP Script to print a Check bok.
    I tried using SAP symbols in the script, but it does not print. It inserts <679> for checkbox & <697> for marked checkbox. Any special command to be passed?

    Hi,
    go to sapscript editor
    Change the editor to 'PC Editor' and take the menu.
    Include -> Characters -> SAP Symbols
    whether this will not be visible in the print preview.
    other wise..
    Just keep it like <697> in your text element.
    Telephone <697> : &W_TAB-TEL&
    Corresponding symbol will be printed in the paper.
    Note: It will not be displayed in the print priveiw.

  • Check Box - Java Script problem

    Here is the code I am using:
    if(TableA.A.rawValue !=1)
        this.presence = "hidden";
    else if(TableA.A.rawValue == 1)
        this.presence = "visible";
    When the user checks the box the comments textbox is visible (else, it isn't visible).
    The problem is that when the textbox is visible, the user is unable to enter any text. What am I missing?
    Thanks.

    There was a readOnly access on the subform  that holds the TextField.
    I remember there being an issue over a year ago where under a specific set of circumstances that could happen to you. Note that there is no UI in designer to remove that so I had to do it in the XML source. Here is the updated sample.
    Paul

  • How to add check box to the forms in scripts

    Hello experts,
             i got one requirement. to add a check box to the form. how can we add a check box in form. is it possible to adda check box in scripts?
    thanks in advance.

    Hi Pammi,
    In a window go for text elements & then go for change editor & use the following:
    Insert->Characters->SAP symbols->SYM_CHECKBOX
    It will not show checkbox in print preview. Take a printout.
    Ashven

Maybe you are looking for