Grid with a Check Box?

Hi;   
I have a problem with a grid to which need to add him a checkbox, but I am not able as placing that the checkbox this pressed according to what brings a chart that contains 1 and 0.   
If please somebody can help me, he/she would thank it to him.

Hi, Susett!
In addition to information, given above, i'll give you some code in C#. Here you can see a checkbox in "Col8" and binded user datasource on this column.
SAPbouiCOM.Matrix tblItems;
SAPbouiCOM.UserDataSource oUsDataSrcFormPrice;
oUsDataSrcFormPrice = frmYourForm.DataSources.UserDataSources.Add("FormPrice", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1);
oColumn = (SAPbouiCOM.Column)tblItems.Columns.Item("Col8");
oColumn.ValOn  = "Y";
oColumn.ValOff = "N";
oColumn.DataBind.SetBound(true, "", "FormPrice");
oUsDataSrcFormPrice.Value = "Y";
To check if checkbox is checked, use this code:
cbToForm = (SAPbouiCOM.CheckBox)tblItems.Columns.Item("Col8").Cells.Item(i).Specific;
bool isChecked = cbToForm.Checked;
if (isChecked)
// your code
HTH

Similar Messages

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • Problem with a check box in SBO 2004

    Hi
    I have created a form in screen painter which is linked to a user defined object. All the text fields are being saved ok to the table.
    I have just added some check box's but there not working correctly. I can tick the box but not deselect it. It doesn't seem to be saving it either. It is bound to a single character field in the table.
    Does anyone have any ideas pls ?
    Regards Andy

    Hi Adele
    I just cracked it, if I add the fields in code it worked. I then went on to save the form in xml and compare it to my screenpainter code. Valoff and Valon are not set because they are not options in screenpainter.
    Agrees with what you said, what do you think ?
    Regards Andy

  • How can I use if with a check box to perform a formula?

    I would like to have a column with a cheek box which, if ticked, performs a formula in the next column. Would anyone know how to do this?

    Is this what you mean?
    B1=IF(A1=TRUE, C1+D1, "")
    this is shorthand for select cell B1, then type (or copy and paste from here) he formula:
    =IF(A1=TRUE, C1+D1, "")
    Check box not checked:
    Check box checked:
    when the checkbox is checked cell B1 will contain the sum of cells C1 and D1 otherwise cell B1 is empty

  • Linking/Grouping Text Fields with a Check Box Field

    Disclaimer: I know nothing about coding/scripting in Acrobat (or in any language, for that matter).
    I have 4 sets of text fields, call them A, B, C, and D. All of the fields in set A will have a value entered. There are 10 fields in set A while sets B, C, and D may have as many as 104. Sets B, C, and D will always have a one-to-one-to-one correspondence with each other (B1 is associated with C1 and D1 only and so on). My dilemma/desire is two fold:
    First:
    I want to be able to group 3 to 4 of the fields in set C if I tick a check box/radio button/whatever field type works. When the fields are grouped, I want their values to be the same within the grouping. These fields should also be ungrouped when the marker field is unchecked/deactivated. No field will ever be in any more than one group.
    Second:
    I want values for set B to equal a value of set A if there is a value entered in that B's corresponding C field.
    Please don't hesitate to point out where I can make any of this clearer.
    Thank you in advance,
    Joseph
    P.S.
    If one or both of these is not doable in Acrobat, would you please kindly point me to a program that can do this?

    Steve,
    Sorry, I referenced InDesign and this file was created in Illustrator. (I have been working with numerous files created in both InDesign and Illustrator, with numerous challenges). I do not have the native document nor Illustrator software, only Acrobat. When I previously loaded the InDesign-created pdf file(s) into Acrobat, I was unable to use the Text TouchUp Tool because I do not have the fonts on my system that were used to create the documents in InDesign, thus I am denied access to the text. With this file, created in Ilustrator; I assume because the text resides within the image created that encompasses the entire page, the Text TounchUp Tool and Object Tool have no response when I click on the page after activating the tools with a click, although the Tool Bar allows me to click on the icons to activate the functions.
    I have read elsewhere that InDesign and Illustrator files are exported as images, thus requiring either Photoshop or Illustrator to fully edit outside of the originating software. However, I was hoping that I could create interactive forms by overlaying fields with Live Cycle Designer - I did not anticipate the default setting of the check box labels being unchangeable. Sounds like I am at a dead-end with this issue??
    Linda

  • ADF Tree with Boolean Check Box: How to find selected items

    Hi Experts,
    ADF: 11.1.1.5.0
    WLS: 10.3.6
    I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
    I am facing the below issues while trying to implement this use case:
    1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
    2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
    To summarize,
    1. Please let me know how to expand all master nodes in af:Tree by default.
    2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
    Thanks in advance,
    Rathnam

    Hi,
                Can you please elaborate the solution? I have a similar problem in
    https://forums.oracle.com/thread/2579664

  • How to limit OK with a check box

    I am new to JavaScript.  I have search the web.  I have been working on this box for 3 days.  I have slapped various code from example to get it this far but I cant seem to accomplish my needed last step. 
    I need the Check box to also limit the OK button.  AKA "Confirm"  Whether I need a second alert or some other step I am unsure but basically if they don't check the box the only option I want available to them is the cancel button.  Please Help.  Also if you see anything that suggest a novice mistake please point it out.
    var meth0d = {
            initialize: function(dialog) {    // Set a default value for radio button field
                dialog.load({"rd01": true });
                this.hasPick = false;    // Disable radio button field
                dialog.enable({   
                    "rd01" : this.hasPick,
                    "rd02" : this.hasPick,
                    "rd03" : this.hasPick });
            commit:function (dialog) { // called when OK pressed
                    var results = dialog.store();
                        if (results["rd01"]) meth0d = "Rolled";
                    else if (results["rd02"]) meth0d = "Points";
                    else if (results["rd03"]) meth0d = "Manual";
            ckbx: function (dialog) {  // Process the checkbox, Verify method
                this.hasPick = !this.hasPick;
                dialog.enable({
                    "rd01" : this.hasPick,
                    "rd02" : this.hasPick,
                    "rd03" : this.hasPick });
            description:
                name: "Ability Stat Method",
                elements:
                        type: "view",
                        align_children: "align_left",
                        elements:
                                type: "static_text",
                                name: "This form has three methods of determining Ability Stat Rolls. \n\n Roll = A computer generated random roll in accordance with the PHB. \n Points = A non-random method that provides balance between players.\n Manual = Allows you to type in any number between 3 to 18  \n\n Note: The Roll Method tracks how many times the form has been opened or\n reset each day and how many reroll attempts the player has made.", 
                                bold: true,
                                font: "dialog",
                                char_width: 30,
                                height: 140
                                type: "check_box",
                                item_id: "ckbx",
                                name: "I understand."
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "Methods: "
                                        type: "radio",
                                        item_id: "rd01",
                                        group_id: "rado",
                                        name: "Rolled"
                                        type: "radio",
                                        item_id: "rd02",
                                        group_id: "rado",
                                        name: "Points",
                                        type: "radio",
                                        item_id: "rd03",
                                        group_id: "rado",
                                        name: "Manual",
                        type: "gap",    //Add a small vertical gap between
                        height: 10      //..radio fields and buttons
                        type: "static_text",
                        name: "Note: Once you click confirm you will have to reset the form to access this menu again.", 
                        bold: false,
                        font: "dialog",
                        char_width: 30,
                        height: 20
                        type: "ok_cancel",
                        ok_name: "Confirm",
                        cancel_name: "Cancel",
    var retn = app.execDialog(meth0d);

    You need to use the validate function of the Dialog object. It returns a boolean (true/false) that specifies whether the dialog needs to be closed or not (the user can still cancel out of the dialog, of course). So in your case it will be something like this:
    validate: function (dialog) {
        var results = dialog.store();
        if (!results["ckbx"]) {
            app.alert("You must tick the \"I Understand\" box.");
            return false;
        return true;

  • Pop_up window with a check box

    Hi Gurus,
    iam having requirement to display a popup window with two message texts and with a message followed by a check box. i have tried with all the function modules starting with popup_* but iam not able to find the exact one. please suggest me a solution where i can display two textmessages and a message followed by check box.
    the below is the order in which i need to display data in my popup window.
                                        Message text1.
                                        Message text2.
                       checkbox   Message text3.
    <REMOVED BY MODERATOR>
    Thanks ,
    Kishor.
    Edited by: Alvaro Tejada Galindo on Feb 11, 2008 6:05 PM

    Hi Sriram,
    thanks for u r reply. but i dont want radio buttons in my popup window. i want a checkbox followed by message text. i.e., in the for mat
       message text1          -
    >  text1
       message text2         -
    > text2
    checkbox message text3 -
    >text3
    yes    no     cancel      -
    > Push buttons.
    all the above requirements has to be there in a popup window. please give me correct reply....
    Thanks,
    Kishor.

  • Problem with table check box

    Hi
    I have created table. My requirement is to add check box to select the record, i have used insert cell editor to bring check box in table. Created attribute check type char1 to bind. The output displayed with check box but if i am trying to select one record but it got selected all check box. Please suggest me where i did wrong.
    Thanks in advance
    Indiranjithn

    Hi
    I have created table which has 5 rows (for example) and 6 columns. The 7th column  i need to add check box for that i have created one group column and changed it as check box. Here no problem but i have to bind that checked with attribute for that i created one attribute type char1 and binded, which is working fine. The problem is, if i select one check box it gets selected all check boxes in that column.
    Please give me a way that adding check box in table without adding variable in my main table.
    Thanks in advance.
    Indiranjithn
    Edited by: indiranjithn on Sep 10, 2011 9:36 AM

  • Duplicating address data option for second applicant with a check box

    I've been searching and trying things out for hours now, without success.
    I'm not sure if this is PDF Forms question or whether I should be posting to the Java forum, but here it is:
    I have an PDF application form with several fields for mailing address data (street address, city, state). The application also has an area on another page of the form for a second applicant. The second applicant has an area for their mailing address too.
    I'd like to create a check box for the second applicant that says "Same as first applicant", so that if it's checked the address data in all three fields automatically populates the same information that was completed for the first applicant in those fields.
    I assume this might be something that required some custom JavaScript but I know very little about how to write code. I've tinkered with a few thinks I found online but nothing seems to work. Any information that could help me out would be much appreciated.

    A bit more complicated, but not by much. So basically you can use this script as the MouseUp action of the check-box (notice I used generic field names here, you can replace them with the actual ones in your file):
    if (event.target.value=="Off") { // the box is NOT ticked
        this.getField("Target1").value = "";
        this.getField("Target2").value = "";
        this.getField("Target3").value = "";
        this.getField("Target4").value = "";
        this.getField("Target1").readonly = false;
        this.getField("Target2").readonly = false;
        this.getField("Target3").readonly = false;
        this.getField("Target4").readonly = false;
    } else { // the box IS ticked
        this.getField("Target1").value = this.getField("Source1").valueAsString;
        this.getField("Target2").value = this.getField("Source2").valueAsString;
        this.getField("Target3").value = this.getField("Source3").valueAsString;
        this.getField("Target4").value = this.getField("Source4").valueAsString;
        this.getField("Target1").readonly = true;
        this.getField("Target2").readonly = true;
        this.getField("Target3").readonly = true;
        this.getField("Target4").readonly = true;

  • Help with the check box.

    Hi,
    I have a question with the Checkbox. I am using Apex 4.0.
    I have 5 checkboxes and using the Lovs I have given values to each check box.
    When I select the checkboxes and submit, the values are inserted into a single column.
    Example
    Consider CB as check box
    CB1 1
    CB2 2
    CB3 3
    CB4 4
    CB5 5
    When I Select CB1, CB4, CB5 In database it stores as 1:4:5 But, I need it to be stored as 10045 format. Like if I select CB2,3 5 then it should be stored as 02305
    The return value of the checkbox should be displayed along with the other unselected values as 0s as told in the above format.
    Can anyone help me with this.
    Thanks,
    Rik

    If you want to show the value on screen(can't set it to the same checkbox item)
    checkbox_item_name = 'P133_CHECK';  //checkbox item name
    checkbox_value_item_name = 'P133_CHECKBOX_VALUE'; // Item which has the checkbox value concatenated 0 for not checked and checkbox value when checked
    $('#'+checkbox_item_name).find('input[type=checkbox]').click( function(){
      var val = '';
      $('#'+checkbox_item_name).find('input[type=checkbox]').each( function(){
        if ( $(this).is(':checked') ){ val+= $(this).val(); }
        else { val+=0; }
      $s(checkbox_value_item_name,val);
    If you want to just use the value in PLSQL, it is much more simpler
    Create a Dynamic Action that is triggered "*before page submit*"
    Execute JS code
    checkbox_item_name = 'P100_CHECK';  //checkbox item name, change it appropriately
    var val = '';
    $('#'+checkbox_item_name).find('input[type=checkbox]').each( function(){
      if ( $(this).is(':checked') ){ val+= $(this).val(); }
      else { val+=0; }
    $s(checkbox_item_name,val);Now when the checkbox submits, the checkbox item would have the concatenated value as required.

  • Apex with dynamic check box....

    hi to all:
    i have report emp.it contain data like eno,ename,sal,record .
    example:eno ename sal record
    100 a 100
    200 b 3000 going on...
    using this column i am making report by using apex and report contain one submit button also.
    1)in this report i am creating dynamic check box depend on eno..see my coding
    declare
    str varchar2(3000);
    begin
    str:='select htmldb_item.CHECKBOX(10,eno,DECODE(record,1,''CHECKED'')) "SELECT" ,eno,ename,sal ,record from emp where 1=1';
    return str;
    end;
    2)in process created after  submit
    iam created pl/code like ..this code for
    declare
    i number;
    str varchar2(2000);
    emp_id number;
    begin
    FOR i in 1..HTMLDB_APPLICATION.G_F10.count
    LOOP
    IF HTMLDB_APPLICATION.G_F10(i) is not null then
    SELECT htmldb_application.G_F10(i) INTO emp_id from dual;
    --insert into my_log values(emp_id);commit;
    update emp set record=1 where eno=emp_id ;
    commit;
    else if HTMLDB_APPLICATION.G_F10(i) is null then
    update emp set record=0 where eno=emp_id ;
    commit;
    else
    null;
    end if;
    end loop;
    end;
    my requirenent:
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    in process coding--
    eno alway is not null only..
    so i want to do check box with update the record column..like this
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    pls give solution.
    output i want like this example:
    chebox eno ename sal record
    checked(X) 100 a 300 1
    checked(x) 200 b 300 1
    next time i am trying to make uncheck first row like
    chebox eno ename sal record
    unchecked 100 a 300 0
    checked(x) 200 b 300 1

    Hi VKR,
    Please try this,
    <cfform name="frmTest"  format="Flash" action="test.cfm" method="post"  >
    <cfscript>
        qryCountry = queryNew("Country,CountryID");   
          queryAddRow(qryCountry);  
          querySetCell(qryCountry, "Country", "India");  
          querySetCell(qryCountry, "CountryID", "1");  
          queryAddRow(qryCountry);  
          querySetCell(qryCountry, "Country", "England");
           querySetCell(qryCountry, "CountryID", "2");    
          queryAddRow(qryCountry);  
          querySetCell(qryCountry, "Country", "Kenya");
           querySetCell(qryCountry, "CountryID", "3");      
    </cfscript>   
        <cfformgroup type="repeater"  query="qryCountry">                       
            <cfinput type="checkbox" value="{qryCountry.currentItem.CountryID}" name="chk" Label="{qryCountry.currentItem.Country}">                               
        </cfformgroup>
        <cfinput type="submit" name="submit" width="100" value="Submit"  >
    </cfform>
    Hope this will help

  • Data grid view adding check box not able to check state

     i have make window search a city name result show on data grid view and i have added the check box when i am checking the check box and other search  of keyword that same row i am un checking the chek box when search it remain check how to making
    it check for al type of keyword

     i have make window search a city name result show on data grid view and i have added the check box when i am checking the check box and other search  of keyword that same row i am un checking the chek box when search it remain check how
    to making it check for al type of keyword
    Hello,
    It's not clear what the issue is, you could be more specific by sharing some screenshots and code.
    In addition, it will be more clear if you could separate the description into multiple sentences.
    Which control did you want to get help about? The checkbox or datagridview?
    If it is checkbox, did you want to keep checked or keep it uncheck?
    If it is datagridview, whether you are talking about checkbox column?
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Domain with lowercase check box on

    Hi...Friends..
    Here Iam having two quetions...
    My first quotion is........
    Any standard domain name with
    > More than 200 characters
    and
    > lowercase check box with on mode.
    My second quetion is
    iam having text field in database with entry of 255 character length and all  are upper case letters.
    Now can i get a variable for that field in program as all in lower case.
    Thanks,
    Naveen.I

    hi,
    the domain is present yar
    I am using ECC 6 version
    domain : /AIN/BWEX_URL
    short desc :BW Query URL
    data type CHAR
    length 255
    for the second question its not possible as I already mentioned.
    there is a way if you are using parameters or select options use the extension lowercase and enter manually the values without using search help.
    then use that value in the program
    hope I am clear
    regards
    prasanth

  • 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

Maybe you are looking for

  • How to remove error from propagation and verify replication is ok?

    Have a one-way schema level streams setup and the target DB is 3-node RAC (named PDAMLPR1). I run a large insert at source DB (35million rows). After committing on source, I made a failure test on the target DB by shutting down the entire database. T

  • Windows 7 Enterprise 32 bit and Windows Server 2012 64 bit successful dual boot.

    Client Windows 7 Enterprise 32 bit SP1, Windows Server 2012 64 bit successfully install for dual boot. Even deleted Windows 7 Enterprise from msconfig, moved Windows Server 2012 partition, for dual boot installed Windows 8.1 64 bit (now posting from)

  • Printing to a shared printer on a PC

    I am new to Mac. I have a PC with a Linksys wireless router hooked up to it. My printer is a HP 6210 all in one that is set as a shared printer on my PC wireless network. I can find my network and shared printer on the powerbook but when I try to set

  • Idvd 8 can't burn crashhh

    Can,t burn disk image or burn direct to DVD. He crash after learn theme he don't go to movie??? he crash after just 1 minutes??? before from 1 year never problem?? Solution please! Michel

  • Inserting data from excel into oracle db

    I have data in excel files. Can I insert it in Oracle DB?? any example will be highly appreciated thanks and kind regards