How to check the "check box" based on an event on form

Hi,
I have couple of text items and a check-box on a form. Is there a way I can check the box automatically when the text item values are edited/enterd by user ?
I'm using the JS shown below but it doesn't work.
I have this JS in page header.
+<script type="text/javascript">+
+function checkTheBox() {+
document.getElementById('MY_KBOXNAME').checked='checked';
+}+
+</script>+
And I have this in my form element options.
onChange=checkTheBox();
What am I doing wrong?
Thanks in advance,
Asha

Hi,
For checkbox with name P1_CHECKBOX , first checkbox is refferred using P1_CHECKBOX_0 , second one using P1_CHECKBOX_1 and so on..
Change document.getElementById('MY_KBOXNAME').checked='checked' . instead of MY_KBOXNAME , use MY_KBOXNAME_0, MY_KBOXNAME_1 ETC depending which checkbox you want to check.
Regards,
SK

Similar Messages

  • How to populate the context nodes based on an event

    Hi All,
    I am having a basic problem. I have created a new Webdynpro Abap application. Here, in the main view, i have define a text view as well as a table. I have created context nodes A and B in component controller. The attributes under A are A1 and the attributes of B are B1,B2, and B3. I have also created an action button C in the same view. These have been mapped to the context nodes in the main view. A1 is mapped to the text view and B1, B2 and B3 are mapped to the table.
    My requirement is as follows. When user Clicks on execute, i want to use the value A1 from the text view in a function module and return the values to B1, B2 and B3. B1, B2 and B3 are multiple values mind you.
    I have successfully executed the function module within the WDONACTIONC method. How to i accomplish this Basic Task. Please Help
    Best Regards
    Mazin

    Hi Mazin,
    Step 3 is as follows...
    Say you have a context node, you have to bind this node with table UI element, now this node must contain some context attribute which you have to bind with your columns of table. now say name of context node is cn_table. now what you have to do is get data from FM in the internal table..........
    now move data by using move corresponding or by looping depending on requirement to an internal table which has fields with the same name as that of name of your attributes... this is imp to display the data...... now you can bind this internal table with context node using code below.......
    data lo_nd_cn_table type ref to if_wd_context_node.
      data lo_el_cn_table type ref to if_wd_context_element.
      data ls_cn_table type wd_this->element_cn_table.
      data it_table type wd_this->elements_cn_table.
      data wa_table type wd_this->element_cn_table.
      data it type standard table of t005t.
      data wa type t005t.
    **   navigate from <CONTEXT> to <CN_TABLE> via lead selection
    select * from t005t into TABLE it.
      loop at it into wa.
        wa_table-ca_one = wa-land1.
        wa_table-ca_two = wa-landx.
        wa_table-ca_three = wa-natio.
        wa_table-ca_enable = abap_true.
       append wa_table to it_table.
        endloop.
    lo_nd_cn_table = wd_context->get_child_node( name =
    wd_this->wdctx_cn_table ).
    *   get element via lead selection
        lo_el_cn_table = lo_nd_cn_table->get_element(  ).
    lo_nd_cn_table->bind_table( it_table ).
    ca-one, ca_two, ca_three and ca_enable are name of my context attribute......
    regards
    Pranav
    Edited by: Pranav Nagpal on Dec 22, 2008 10:08 AM

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

  • I checked the wrong box on for a website I use frequently and now recieve the message "Access to xpcom is denied. Set "signed.applets.codebase_principal_support=true" in about:config"; how can I change this?

    I am tech challenged. I know this is probably a setting that just needs to be changed but I have idea on how or where to go to change it. It appears to be a security setting - I checked the wrong box on a firefox popup regarding access. The site is grammarly.com and when I attempt to paste my copy to be grammar checked it won't allow me to do so, and I get the above quoted message. Please help!

    You can check the file prefs.js in the profile folder to see if you find any lines referring to that website and remove those capability.principal.codebase lines.
    *http://kb.mozillazine.org/prefs.js_file
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Help > Troubleshooting Information > Profile Directory: Open Containing Folder

  • How to name the Check Box as "Want Free Gift" using PARAMETERS statements

    Hi all,
    I am new to check boxes. I have a existing report where I have to add a check box to the selection screen.
    So i said
    PARAMETERS: p_cncldc AS CHECKBOX.
    everythibng is fine and I get the check box on the selection screen. when i execute the report i get the name of check box as p_cncldc. but i want the name of the check box as "Want Free Gift".
    How to name the check box as "Want Free Gift".
    if i am saying
    PARAMTERS: Want Free Gift AS CHECKBOX. it says a syntax error saying it canot be more that 8 chars.
    Some one please help. I am new to Check boxes
    Regards,
    Jessica Sam
    Edited by: jessica sam on Mar 31, 2009 10:37 PM

    Text on the Right hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    parameters: w_check as checkbox.
    selection-screen: comment  4(30) TEST .
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    Text on the Left hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    selection-screen: comment  2(30) TEST .
    parameters: w_check as checkbox.
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    OR:
    GOTO(Menubar)>Text Elements>Selection Texts
    Regards,
    Gurpreet

  • How to activate the Check box in Purchase Order after Goods Receipt

    Hi All,
    How to activate the check box after Goods receipt of Purchase order in Item view (Goods Receipt is completed).
    Where t make the settings in SPRO.
    Regards,
    Shailendra Hadkar

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

  • How to select a row in datagrid by checking the check box in that row

    how to select a row in datagrid by checking the check box in that row.
    Im using <html:checkbox> tag, and also a VO which is in request scope. i wanna display the values in the VO in a row and corresponding to this i want a checkbox..
    Thanx in advance
    Message was edited by: me
    Hemanth@SA
    Message was edited by:
    Hemanth@SA

    Hello,
    I got the solution:
    final int pRow = row;
    final int pCol = column;
    final JTable myTable = mytable;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    myTable.requestFocusInWindow();
    myTable.changeSelection(pRow, pCol, true, true);

  • It's not possible to check the photography box to see it on my PC. How can I see photos on PC?

    It's not possible to check the photography box to see it on my PC. How can I see photos on PC?

    Ah, you had Photoshop 7.0 working, and now it's not.  I see that as a separate issue to updating it.  I'm not sure why it would ask you to update it.
    Do you know whether you have 7.0 or 7.0.1 at this point?  You might be able to do a Properties function on Photoshp.exe and see that info.
    You could make an attempt to reset Photoshop's preferences to defaults.  Press and hold Control - Shift - Alt simultaneously immediately upon cold-starting Photoshop. If you get the keys down quickly enough - and you have to be really quick - it will prompt you to confirm deletion of your current preferences, which will lead to the establishment of a fresh default set.  If it does not prompt you, you haven't been quick enough to get the keys down.
    Only other thing that comes to mind is to use Windows System Restore to restore back to a restore point where Photoshop was working, or restore from a backup (you do make backups I hope).
    If that fails, and you need to do a fresh install but no longer have the original disk and serial number I'm afraid you may be out of luck.  There's no place I know of from which to download a fresh full copy of Photoshop 7.0.
    -Noel

  • How to with the check box in Suppliers - Contact Directory

    EBS R 12.
    I am in need of finding a solution for the following:
    Payables Manager -> Suppliers -> Inquiry -> Select a supplier -> Go to "Contact Directory" -> Select a contact
    Under User Account section there is a check box.
    When I check the check box, the following action should happen:
    1. The "Username" field must contain the value of the "Email".
    2. Under "Responsibilities" "Sourcing Supplier" must be checked.
    I don't know where to put my hands to solve this problem.
    All helps will be appreciated. Thanks.

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

  • 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

  • Yahoo mail remebers my password but not the user name. I've checked the remember box.

    I've checked the remember box but Firefox is remembering the password but is not remembering the user name when I sign in to my email account. I'm not having sign in trouble with IE nor am I having trouble signing in on my laptop with either Firefox or IE, so the problem would seem to be with this computer.

    * Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.

  • With 'Mail v8' and 'Yosemite' accounts settings are not saved and I keep having to check the "SSL" box

    With 'Mail v8' and 'Yosemite' 'mail' "account settings" are not saved and I keep having to check the "SSL" box. This has only occurred since upgrade to Yosemite?
    Any help would be appreciated as this is so frustrating!!

    Update to 3.6.16 has fixed this problem.

  • How  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL)

    Hi Experts,
    Can you please tell me to how  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL) when saving of the shipment document.

    shipment cost calculation only on the Leg level and not on header level. Currently a lot of confusion happened after creating the shipment cost document and found that the status is u201CBu201D.
    now we intend to define detailed specifications to how to create this new user exit to update the shipment cost relevancy at shipment header.
    The main functionality of the user exit  to be created is to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL).can u pls tell how to do this.

  • Why do I always to check the Preview box when applying an illustrator effect?

    It's annoying. I reckon, one does want to preview the effect more often than not. It could also be a box that remember it's setting.

    Oh god yes I wish that box would at least remember its setting. They're all over Illustrator and they're always off when you open the dialogue. It made sense when they were originally written, back when the average machine had a speed measured in Mhz, but not any more.
    Live effects, blends, global color swatches, it all needs to remember if I checked the 'preview' box last time I used it. I'm sick of turning that on all the time.

  • HT4906 why can't I check the iphoto box on my iCloud settings?

    why can't I check the iphoto box on my iCloud settings?

    Because something is wrong
    can't help since you tell us nothing at all
    instructions are here - http://www.apple.com/icloud/setup/
    LN

Maybe you are looking for

  • Hover not working in Safari 5.0.3, ok in IE8, FF 3.6.13?

    Hover seems to work fine in IE8 and FF 3.6.13, however, not in Safari 5.0.3. http://customcanvasalaska.com Validates in W3C CSS and W3C Markup Validation Service. Any help and/or suggestions will be greatly appreciated. canvasALASKA

  • I cannot get rid of the history in my address bar.

    Whenever I click the down arrow on the address bar a list of sites appears. I can not delete them. If I try hovering my mouse over them and pressing delete on the keyboard they come back the next time I hit the down arrow. They also won't go away whe

  • BPM 11g Process Hierarchy?

    Hi, In the BPA Suite I can define a process hierachy by assigning a BPMN process diagram to a function like a subprocess. (How) can I do this in the BPM Suite 11g?

  • Urgent Billing related Issue

    Dear SD Gurus !!! I have an issue in billing... The requirement is to Bill Monthly on One Invoice per Shipping Location showing detail order information (material, quantity, unit price, etc). So for the particular Sold To - we need monthly invoices w

  • Navigation and Page Submit

    I am creating a Training application for my company. I have a dropdown that corresponds to the sample customer table. I have a data table the corresponds to the sample Order table. I have the dropdown do a submit on change to change the values in the