How to uncheck a checkbox from a dialog box and remove from view

Hi All,
I have button where on click opens a dialog box which has 5 check boxes with text for each check box [generating dynamically using row repeater].
If one or all of the check box is checked, the check box with its text should get displayed in the view on closing the dialog box. I am able to display this, that is the checked ones.
But, after closing the dialog box if the user wants to unselect a check box that is not required for the next time, the check box that is unchecked should get removed from the view.  How is this possible ?
Thanks,
Ravikiran

Hi Robin,
Pleas find the below code,
var oDialogScope = new sap.ui.commons.Dialog({
  width : "20%"
  oDialogScope.setTitle("Add Scope of Work");
  var oScopeButton = new sap.ui.commons.Button({
  text : "OK",
  var oRowRep = new sap.ui.commons.RowRepeater();
  var oChkBox = new sap.ui.commons.CheckBox({
  text : "{EventDropDown>label}",
  checked : "{EventDropDown>checked}",
  change : function(oEvent) {
  var l1 = new sap.ui.commons.CheckBox({
  editable : false
  l1.setChecked(this.getChecked());
  l1.setText(this.getText());
  oScopeButton.attachPress(function() {
  var cellM = new sap.ui.commons.layout.MatrixLayoutCell();
  cellM.addContent(l1);
  var oScopeRow = sap.ui.getCore().byId("SR1");
  oScopeRow.addCell(cellM);
  oDialogScope.close();
  return;
  oRowRep.bindRows("EventDropDown>/checked", oChkBox);
  oDialogScope.addContent(oRowRep);
  oDialogScope.addContent(oScopeButton);
  oDialogScope.addStyleClass("DialogCss");
  oDialogScope.open();
Regards,
Ravikiran

Similar Messages

  • How do I get rid of the dialog box and audio that is in the bottom left of the screen that keeps telling me what I'm doing or need to do?

    How do I get rid of the dialog box and audio that is in the bottom left corner of the screen running script and audio of  what I'm doing or need to do?

    Go into System Preferences, select Universal Access, turn off Voiceover.

  • How to uncheck a checkbox using Screen Variants?

    Hi Masters!
    Anybody knows how to uncheck a checkbox that is already checked by default?
    I'm trying to do this using screen variants. I uncheck the checkbox and save the value (I also tried filling other values there like 'a', space, etc. and it didn't work), but at runtime it always shows the checkbox checked.
    At the same transaction there is a unchecked checkbox by default witch I can check it with a screen variant, but somehow I can't do the other way around...
    Any suggestions?
    Many thanks in advance,
    José Omar

    I checked the code and found something interesting. The
    variable I'm trying to uncheck is GV_WITH_CONTACT_PERSON.
    It's declaration:
    DATA: GV_WITH_CONTACT_PERSON TYPE XFELD VALUE 'X'.
    At the initialization of the program (at the first screen module):
    PROCESS BEFORE OUTPUT.
    MODULE INITIAL_STATE.
    And inside the MODULE INITIAL_STATE there is also:
    MOVE 'X' TO GV_WITH_CONTACT_PERSON.
    So there are places in the code that the checkbox is checked.
    Now we get another problem. I don't now when the values set at a screen variant are inserted in the screen. Is it possible that the code itself is overwriting the value set with a screen variant? Or is this not possible at this point in the code?
    Many Thanks,
    José Omar

  • How can i call the certificate selection dialog box from source code?

    How can i call the certificate selection dialog box from source code?
    NB: Of course if i have more than one certificate in the Microsoft Keystore 'My'.
    Thank You in advance

    I found an example of the "TestStand UI Expression Control.ctl" and it works just the way I need it. (check the link)
    Proper use of "TestStand UI ExpressionEdit Control" in LabVIEW http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=10609 
    The "Expression Browser Dialog Box Button" F(x) stays disable while editing the VI, however it become available when the VI is called from TestStand.
    Thank you,
    Hecuba
    Mfg. Test Engineer
    Certified LabVIEW Associate Developer

  • How to open a browse a folder dialog box

    Hi,
    Please tell me,
    how to open a 'browse a folder' dialog box in java SE. I dont need showopenDialog or showSaveDialog methods.
    User have to be prompted to select a folder(not a file), and clicks on 'OK'. That path have to come in a text field.
    In my program user has to give a folder path....

    bhuvanavijayam wrote:
    Thank you very much..........
    i got the answer............ we have to set
    jfilechsr.setFileSelectionMode(1);
    1 -> DIRECTORY_ONLY
    No!
    Never use "Magic Numbers" They may change in a future verison and your code will break. Also anyone who reads your code (that includes you, months/years from now) won't know what the code is supposed to do.
    jfilechsr.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);Not DIRECTORY_ONLY
    db

  • How do I call browser Save As dialog box before downloading pdf files?

    How do I call browser Save As dialog box before downloading pdf files?
    Here's my favorite scenario:
    1. User clicks button
    2. Save As dialog displays
    3. User chooses location
    4. A set of PDF files download to that location OR a single zip file downloads
    Background:
    I want to ensure the user sees that files are being downloaded. I'm delivering content to users who may not be Web savvy.
    Concern:
    1. User has no clue how to find downloaded files or that files have even downloaded.
    2. I'd like to deliver the set as zip files. Not sure if self-opening zip files still exist.
    FYI:
    I'm using jQuery UI buttons. Not sure if that factors into response.

    Just for clarity, I'm not forcing a download. The user will click a button.
    Click a button or click a link, either way you're technically executing a script to force a download.
    I'm assuming that's the php file resident on the server.
    Yes but that's only part of it.  Once the contact form executes, another script is called up which opens the browser's download dialogue.
    Is there a php script for simply calling the Open/Save dialog box?
    Yes. 
    <?php
    /* This short script forces a file download.
       For simplicity, it's intended to be used for a single file.
       You can use multiple copies of this file (with unique names)
       with different variable values to use it with multiple files.
       Use of this script has a side-effect of hiding the location of the
       file on your server.
    // full server path to file to be downloaded (including filename)
    $Path2File = "path/to-file-on-server.zip";
    // the filename
    $theFileName = "name-of-file.zip";
    //the work gets done here
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header ("Content-Type: application/octet-stream");
    header ("Content-Length: " . filesize($Path2File));
    header ("Content-Disposition: attachment; filename=$theFileName");
    readfile($Path2File);
    ?>
    Name this file zip2download.php.
    Add a link to your HTML page:
    <a href="zip2download.php">Download Zip</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How to create application toolbar in modal dialog box in selection-screen

    Hi Experts,
    how to create application toolbar in modal dialog box in selection-screen?
    Regards,
    Swapnika

    Hi,
    Check the following link regarding Model dialog box and appication toolbar
    http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b84454211d189710000e8322d00/frameset.htm
    It helps in solving your problem.
    Thanks.
    Ramya.

  • How do I get rid of a dialog box that keeps coming back even though I press Cancel?

    How do I get rid of a dialog box that keeps coming back even though I press Cancel?

    I was looking up Olympic stats on  Norwegian website, and must have inadvertently clicked a link. The dialog box says: "There is no application set to open the URL nasjoner:2"
    It goes on to tell me to search the App Store , choose an application, or cancel.

  • How do I get rid of a dialog box stating.

    How do I get rid of a dialog box stating - Were sorry but the browser you are using doesn't support the community toolbar?

    Did you install Community Toolbar and deleted it and the pop up continues, or do you want to use it but on a different browser? Which browser are you using? This article might not be what you want http://reviews.cnet.com/8301-13727_7-20027867-263.html If you want to get the right version you need to go to the Conduit site http://www.conduit.com/ and get the right one, I think.

  • How to set width for this modal dialog box?

    Hi All,
    How to set width to this modal dialog box:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;}); return false;" type="button" value="Vote"/>
    Thanks in advance!

    set as bellow:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;,width:700,height:350}); return false;" type="button" value="Vote"/>
    yaşamak bir eylemdir

  • How can i invoke a file chooser dialog box with out using input type=file

    how can i invoke a file chooser dialog box with out using <input type=file> can any one help me mail me to [email protected]

    You could use an applet...
    Or maybe Javascript has some way to do it.

  • How to edit a file into webutil dialog box?

    Hello, I have a webutil dialog box to open a file on a server in Win2003.
    I want edit and save the changes in a file into dialog box, but i don't have this function like windows operation system.
    Can i customize the webutil dialog box and add this function ?
    Regards,
    GP
    Message was edited by:
    ualual99

    As I said, the Webutil open/save dialog functions will only allow you to work with the client machine.
    You can use the file_transfert_AS_to_client() Webutil function to get the file on the client machine then edit it, then use the file_transfert.client_to_AS() function to upload the new file on the Application Server.
    In my article about the Oracle Forms 10g release 2 : Demos, Tips and Techniques,
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    you could find an "open file dialog" like form sample able to display the Server's directories.(paragraph: 2.4.3)
    Have a try !
    Francois

  • New to Dialog Boxes and I'm stuck

    Seems there is no way to format a field in a Dialog Box. How can a field be checked to determine if the correct type of data was entered in it, when the user moves to the next field, before data is committed?
    I am stuck on how to limit the number of characters entered into the postal code and phone fields. I want to limit the number of numeric characters that can be entered in each phonenumber field ie  3 numbers, 3numbers and 4 numbers (999 999 9999)  And postal code field ie 3 characters and 3 characters (A9A 9A9)
    Also, once the user enters the required number of characters in the phone and postal code fields, the code should tab to the next field. And yes, I read about tab_first and next_tab, but don't understand how it works. The way I see it working is that once a phone or postal code field is filled with the required number of characters, control automatically tabs to the next field.
    I am using Adobe Acrobat Professional 8
    This code was written by trail and error using examples from various sources ie Acrobat JavaScript Scripting reference - version 7.0.5, Acrobat JavaScript Scripting Guide - version 7.0, and I have very little experience in creating a dialog box and its code - forgive the mess.
    //============================================================================
    var goon=true;
    var result;
    var address;
    var city;
    var province;
    var sign;
    var postalcodea;
    var postalcodeb;
    var homephone;
    var homephoneareacode;
    var homephoneprefix;
    var homephonenumber;
    var businessphone;
    var businessphoneareacode;
    var businessphoneprefix;
    var businessphonenumber;
    address = this.getField("Text1-2-Address").value;
    city = this.getField("Text1-2-City").value;
    var provincelist = new Array();
    provincelist[1] = " ";
    provincelist[2] = "Alberta";
    provincelist[3] = "British Columbia";
    provincelist[4] = "Manitoba";
    provincelist[5] = "New Brunswick";
    provincelist[6] = "Newfoundland & Labrador";
    provincelist[7] = "Northwest Territories";
    provincelist[8] = "Nova Scotia";
    provincelist[9] = "Nunavut";
    provincelist[10] = "Ontario";
    provincelist[11] = "Prince Edward Island";
    provincelist[12] = "Québec";
    provincelist[13] = "Saskatchewan";
    provincelist[14] = "Yukon";
    var sign = new Array();
    for (var i=0; i<15; i++)
                sign[i] = "-";
                if(provincelist[i] == this.getField("Client's Full Province Name").value)
                            sign[i] = "+";
    postalcodea = "";
    postalcodeb = "";
    if(this.getField("Text1-2-Postal-Code").value != "")
                postalcodea = this.getField("Text1-2-Postal-Code").value;
                postalcodea = util.printx("A9A", postalcodea);
                postalcodeb = this.getField("Text1-2-Postal-Code").value;
                postalcodeb = postalcodeb[4]  + postalcodeb[5] + postalcodeb[6];
    homephoneareacode = "";
    homephoneprefix = "";
    homephonenumber = "";
    if(this.getField("Text1-2-Home-Phone-Number").value != "")
                homephone = util.printx("9999999999", this.getField("Text1-2-Home-Phone-Number").value);
                homephoneareacode = homephone[0] + homephone[1] + homephone[2];
                homephoneprefix = homephone[3] + homephone[4] + homephone[5];
                homephonenumber = homephone[6] + homephone[7] + homephone[8] + homephone[9];
    businessphoneareacode = "";
    businessphoneprefix = "";
    businessphonenumber = "";
    if(this.getField("Text1-2-Business-Phone-Number").value != "")
                businessphone = util.printx("9999999999", this.getField("Text1-2-Business-Phone-Number").value);
                businessphoneareacode = businessphone[0] + businessphone[1] + businessphone[2];
                businessphoneprefix = businessphone[3] + businessphone[4] + businessphone[5];
                businessphonenumber = businessphone[6] + businessphone[7] + businessphone[8] + businessphone[9];
    var dialog2 =
                initialize: function(dialog)
                             dialog.load(
                                                     stat:     "Client Address and Phone Information is required in forms you are about to link to. To save time, enter Address and Phone Information before linking to these documents.",
                                                    str1: address,
                                                    str2: city,
                                                    stra: postalcodea,
                                                    strb: postalcodeb,
                                                    str5: homephoneareacode,
                                                    str6: homephoneprefix,
                                                    str7: homephonenumber,
                                                    str8: businessphoneareacode,
                                                    str9: businessphoneprefix,
                                                    sts1: businessphonenumber,
                                                    str3:
                                                                "  ": (sign[1] + "1"),
                                                                "Alberta": (sign[2] + "2"),
                                                                "British Columbia": (sign[3] + "3"),
                                                                "Manitoba": (sign[4] + "4"),
                                                                "New Brunswick": (sign[5] + "5"),
                                                                "Newfoundland & Labrador": (sign[6] + "6"),
                                                                "Northwest Territories": (sign[7] + "7"),
                                                                "Nova Scotia": (sign[8] + "8"),
                                                                "Nunavut": (sign[9] + "9"),
                                                                "Ontario": (sign[10] + "10"),
                                                                "Prince Edward Island": (sign[11] + "11"),
                                                                "Québec": (sign[12] + "12"),
                                                                "Saskatchewan": (sign[13] + "13"),
                                                                "Yukon": (sign[14] + "14"),
                cancel: function(dialog)
                            return;
                destroy: function(dialog)
                            return;
                commit:function (dialog)
                            results = dialog.store();
                            var elements = dialog.store() ["str3"]
                            province = "";
                            for(var i in elements)
                                        if(elements[i]  > 0)
                                                    province = i;
                            return;
                            description:
                            name: "Address and Phone Information",
                            //align_children: "align_left",
                            //type: "static_text",
                            //char_height: 9,
                            //width: 350,
                            //height: 75,
                            elements:
                                                    type: "cluster",
                                                    name: "",
                                                    align_children: "align_left",
                                                    elements:
                                                                            align_children: "align_top",
                                                                            alignment: "align_fill",
                                                                            type: "view",
                                                                            width: 254,
                                                                            elements:
                                                                                                     alignment: "align_fill",
                                                                                                     bold: true,
                                                                                                     font: "default",
                                                                                                     char_height: 9,
                                                                                                     italic: true,
                                                                                                     item_id: "stat",
                                                                                                     multiline: false,
                                                                                                     type: "static_text",
                                                                                                     width: 150,
                                                                                                     height: 50,
                                                                            type: "view",
                                                                            align_children: "align_distribute",
                                                                            elements:
                                                                                                     type: "static_text",
                                                                                                     name: "Address: "
                                                                                                     item_id: "str1",                         
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 60,
                                                                                                     height: 20,
                                                                            type: "view",
                                                                            align_children: "align_distribute",
                                                                            elements:
                                                                                                     type: "static_text",
                                                                                                     name: "       City: "
                                                                                                     item_id: "str2",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 16,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "Province: "
                                                                                                     item_id: "str3",
                                                                                                     type: "popup",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 16,
                                                                                                     type: "static_text",
                                                                                                     name: "Postal Code: "
                                                                                                     item_id: "stra",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "-"
                                                                                                     item_id: "strb",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                            type: "view",
                                                                            align_children: "align_distribute",
                                                                            elements:
                                                                                                     type: "static_text",
                                                                                                     name: "Home Phone Number: ("
                                                                                                     item_id: "str5",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     next_tab: 3,
                                                                                                     type: "static_text",
                                                                                                     name: ")"
                                                                                                     item_id: "str6",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "-"
                                                                                                     item_id: "str7",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 4,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "Business Phone Number: ("
                                                                                                     item_id: "str8",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: ")"
                                                                                                     item_id: "str9",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 3,
                                                                                                     height: 20,
                                                                                                     type: "static_text",
                                                                                                     name: "-"
                                                                                                     item_id: "sts1",
                                                                                                     type: "edit_text",
                                                                                                     alignment: "align_left",
                                                                                                     char_width: 4,
                                                                                                     height: 20,
                                                    alignment: "align_center",
                                                    type: "ok_cancel",
                                                    ok_name: "Continue",
                                                    cancel_name: "Cancel"
    var dialog3 =
                initialize: function (dialog)
                cancel: function(dialog)
                            goon=false;
                            return;
                destroy: function(dialog)
                            return;
    while (goon)
                result = app.execDialog(dialog2);
                if (result=="cancel")
                            goon=false;                  
                if (result=="ok")
                            this.getField("Text1-2-Address").value = results["str1"];
                            this.getField("Text1-2-City").value = results["str2"];
                            this.getField("Client's Full Province Name").value = province;
                            this.getField("Text1-2-Postal-Code").value = results["stra"] + " " + results["strb"];
                            this.getField("Text1-2-Home-Phone-Number").value = results["str5"] + results["str6"] + results["str7"];
                            this.getField("Text1-2-Business-Phone-Number").value = results["str8"] + results["str9"] + results["sts1"];
                            goon=false;

    If you know a link that has what he wants, wouldn't it be prudent just to provide that?
    I got overwhelmed trying to understand all of the different related elements of the Flash family when I was starting, so I know what that's like. Roughly (and Ned might want to correct or clarify some of this), Actionscript 3 is the programming language Flash/Flex/AIR content is based upon. Flash is a blanket term encompassing the developing environment (Flash Pro), code libraries, and runtime (Flash Player). AIR is a runtime environment built upon Flash Player, but with added functionality and cross-platform support. Flex is an extension of Flash, offering MXML components in addition to the libraries available in Flash Pro. Adobe intends for you to use Flex with Flash Builder, a separate IDE built upon Eclipse.
    I haven't used MXML yet, but my impression is that (at least in Flash Builder) it is functionally similar to WYSIWYG editing in Microsoft's Visual Studio.
    If you are developing games, you can edit entirely in Flash Pro, entirely in Flash Builder, or combine both of them. Flash Pro lets you put code on the timeline, which can make some coding much easier, but also makes it very, very easy to write messy and disorganized code. Flash Builder doesn't provide access to the timeline and is intended for class-based development. Personally, I like to combine the two, writing some timeline code in Pro and doing my class files in Builder, but I'm not the greatest developer.
    As a heads-up, the code editor in Flash Pro is absolutely terrible, and is full of bugs that have existed for many generations, because Adobe wants you to buy Flash Builder for the additional $600, but if you are a student or "unemployed", you can get FB for free from Adobe.

  • Why can I sometimes paste text into a revision history dialog box and other times cannot?

    Why can I sometimes paste copied text (from another VI's revision history, for instance or from anywhere else) into a revision history dialog box and other times cannot? All versions of LabVIEW! It's something like the control key becomes diabled. I've noticed the same thing when saving many VI's at once, some will let you paste into revision history and others will not. Aren't all VI's created equally when it comes to revision history? All versions of LabVIEW since 3 have plagued me with this problem.

    Hello,
    If you'd like to add text to the revision history of a VI, you can
    paste into the Comment box and add all of your text at once.  The
    history itself can be read from this window, but cannot be directly
    edited.  The History field is read-only in the dialog box. 
    If you feel this should not be the case, your best course of action is
    to express your desire for added functionality to our developers on the Product Feedback page of our website.
    Message Edited by MattP on 12-19-2006 12:04 PM
    Cheers,
    Matt Pollock
    National Instruments

  • Print Dialog box and User Code on Reader 10

    Hello,
    I recently updated to Adobe Reader 10 and when I go to print there is apparently a new adobe print dialog box. Which is ok except that it doesn't seem to get my user code info. When I print using the printer... button it prints fine. But if I push ok from the new adobe print dialog it causes an authentication error in the log on the printer. Is there anyway to put in my user code to adobe reader so I don't have to do this extra step? Can I turn off the new Adobe print dialog box and have it just go directly to the OS print dialog box like it used to?
    Thanks,
    dave

    Can you tell us if you are using Windows of Mac OS? The Mac OS version of Reader has a Printer button on the bottom of the Print dialog box that brings up the standard printer dialog box.

Maybe you are looking for

  • Cant play my newest converted video on my ipod

    i cant play my newest coverted video on my ipod. it seem like it freeze and then return back to the main. anyone please advise.

  • Macbook and Sony KDL-32EX401 LCD TV

    I bought a Sony KDL-32EX401 LCD TV and wanted to connect it throgh HDMI cable with my macbook, but it won´t work. After that I tried it with a Panasonic Plasma TV and it worked without problems. Can anyone tell me what to do that I can get my mac scr

  • 8i Query not returning expected records

    Using Oracle 8i (8.1.7), a basic spatial query is not returning all the expected results. Table1 contains a variety of polygons; table2 is simply a set of rectangles. I want to return all objects from table1 that intersect a particular rectangle. The

  • Solution manager can be used as repository DB with out-of-box integration?

    Solution manager can be used as repository DB with out-of-box integration? Hi , In Our Global SAP Environment, We are looking to use solution manager as a CMDB ( Config management DB) , which is kind of repository DB where it needs to keep track of i

  • Scale Base Pricing

    In pricing we have scales setup by Material Family (material price group) so if you enter three different materials from the same family it accumulates the prices on all three line items and each line item has the same price according to the family s