CheckBox how implement

I have a Matrix and a column CheckBox, the checkBox and UserDataSources are added according to results of the Matrix... but in setBound() instruction, the "General Failure" error occurs:
            Form oForm = oConnection.App.Forms.Item("F60006");
            Matrix mtx = oForm.Items.Item("mtxResult").Specific;
            Column col = mtx.Columns.Item("Col_CheckB");
            //a datasource foreach checkbox
            for (int i = 1; i <= col.Cells.Count; i++)
                string dts = "dts" + i;
                oForm.DataSources.UserDataSources.Add(dts, BoDataType.dt_SHORT_TEXT, 1);
                CheckBox chk = col.Cells.Item(i).Specific;
                chk.ValOff = "N";
                chk.ValOn = "Y";
                chk.DataBind.SetBound(true, "", dts);//General Failure error...
I have tried to add a DataSource because the checkBox dont work correctly, i need to select lines in the matrix with CheckBox. the code to make this:
               //select all lines (works without datasources on code commenting to add datasource in the checkbox)
               for (int i = 1; i <= col.Cells.Count; i++ )
                    CheckBox chk = col.Cells.Item(i).Specific;
                    chk.Checked = true;
this code selects only one checkBox instead of all, in this case the last checkBox are checked. I believe that dont work without datasources (are correct!? checkBoxes need datasources to run properly???)

Hi,
your sugestion has been good!
We have to add a datasource in a column to work properly the checkBox column:
adding a datasource...
    Form oForm = (Form)oConnection.App.Forms.GetForm("F60006", 0);
    Column col = ((Matrix)oForm.Items.Item("mtxResult").Specific).Columns.Item("Col_CheckB");
    string dts = "dtsChk";
    oForm.DataSources.UserDataSources.Add(dts, BoDataType.dt_SHORT_TEXT, 1);
    col.DataBind.SetBound(true, "", "dtsChk");
selecting all rows of the matrix(whith datasource)...
    for (int i = 1; i <= col.Cells.Count; i++ )
        CheckBox chk = col.Cells.Item(i).Specific;
        chk.Checked = true;
Thankyou to all!!!

Similar Messages

  • How implement Auto Purchase Order in Transportation Cost Settlement

    Hi,Experts,
    When Settling the Transportation Cost,I must create PO manually.Can anybody tell me How implement Auto Purchase Order in Transportation Cost Settlement?
    Thanks for a lot.
    Donald Lo

    Dear Donald,
    Please go through this SAP link it will help you about Shipment cost settlement process in the transportation.
    http://help.sap.com/saphelp_47x200/helpdata/en/93/74413b546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • ADF BC, how implements business rules?

    Hi.
    I am new in oracles technology. Please help me understand how implements business rules.
    For example: I have two tables operation(id,code) and operation_item(id, operation_id, code). I create entities objects for it: OperationEntity, OperationItemEntity and association: OperationItemToOperation. Then create entity-based view object OperationById which have bind parameter id for find operation by id. I also create entity-based view object OperationItem and view link OperationItemToOperationLink.
    My ApplicationModule contains OperationById and OperationItem via OperationItemToOperationLink
    I want implements "clone" method at OperationById view for current row. This method create copy selected row from operation table and copy all rows from operation_item table where operation_item.operation_id = operation.id.
    I add method createCurrentRowClone to OperationById:
    public void createCurrentRowClone() {
    OperationByIdRowImpl currentRow =
    (OperationByIdRowImpl ) getCurrentRow();
    OperationByIdRowImpl newRow = (OperationByIdRowImpl ) createRow();
    insertRow(newRow);
    newRow.setAttributes(currentRow);
    //TODO create copy for all rows from OperationItem
    //??? how get OperationItem instance
    and I add method clone to OperationItem:
    public void createClone {
    // for all row from OperationItem create clone
    but I don't understand how get OperationItem instance in OperationById scope. I have method getOperationItems() in OperationByIdRowImpl class which return RowIterator, and it give me instances of OperationItemRowImpl class, but not OperationItem with rows where operation_item.operation_id = operation.id
    Thanks in advance

    For realizations "clone" method which make copy for current row from OPERATION table and all rows from OPERATION_ITEM table where
    operation_item.operation_id = operation.id I moved realisation business logic from View Object to Entity.
    For it enough:
    1) entities objects: OperationEntity, OperationItemEntity;
    2) association for this entities: OperationItemToOperation;
    3) entity-based view object: OperationById which have bind parameter "id" for find operation by ID;
    4) application module: ApplicationModule;
    I add method createCurrentRowClone to OperationByIdImpl class. It just call createClone method for current row:
    public void createCurrentRowClone() {   
    OperationByIdRowImpl currentRow = (OperationById) getCurrentRow();
    currentRow.createClone();
    method createClone in OperationByIdRowImpl class call createClone method from entity layer:
    public void createClone() {
    getOperationEntity().createClone();
    method createClone in OperationEntityImpl class make new row and call createClone for all row from OperationItemEntity:
    public void createClone() {
    OperationEntityImpl newRow = (OperationEntityImpl) getDefinitionObject().createInstance2(
    getDBTransaction(),null);
    newAtm.setCode(getCode());
    //create copy for all rows atm_operation
    RowIterator itemIterator = getOperationItemEntities();
    while ( itemIterator .hasNext() ) {
    OperationItemEntity itemRow = (OperationItemEntity ) itemIterator.next();
    itemRow.createClone(newRow);
    and finally method createClone(OperationEntityImpl operation) in OperationItemEntityImpl class make new row in OPERATION_ITEM table
    public void createClone(OperationEntityImpl operation) {
    OperationItemEntityImpl newItem = (OperationItemEntityImpl) getDefinitionObject().createInstance2(
    getDBTransaction(), operation);
    newItem.setCode(getCode());
    If you have another solution, please post it here.

  • When inserting a checkbox, how can I prevent the note box from appearing?

    To all,
    After -reluctantly- "upgrading" from Acrobat Pro 7 to Pro X I find this new version absolutely maddening.
    Pro 7's features were easy to find in the tool bar. Now in Pro X everything is "dumbed down" with everything "nested" into each other...
    But I whine and digress from my problem:
    QUESTION:
    When inserting a checkbox, how can I prevent the note box from appearing?
    With every insertion of a checkbox onto a form, a "notebox" appears.
    Thank you,
    Matt

    As you can see, when I add a checkmark to a page/form, a "note" is automatically added also. In my old Acrobat v. 7, this did not happen.
    Any ideas on how I can set Acrobat Pro X to NOT include this note?
    Thank you,
    Matt

  • How implement  a pki system on mobile?

    how implement a pki system on mobile?who have experiences on secure payment using mobile?
    my msn:[email protected]

    Hi,
    There is a solution for security �Security and Trust Services API (SATSA), JSR177�,
    The Security and Trust Services API (SATSA) 1.0 defined in JSR 177 is a set of optional APIs that provide access to security elements as well as cryptographic capabilities for mobile applications [SATSA10].
    The following four APIs are defined in the SATSA specification:
    � SATSA-APDU and SATSA-JCRMI are both APIs that allow the application to communi-cate with a smart card (for example, the SIM card). The difference is that APDU is a low-level protocol, while JCRMI is more object-oriented. Therefore, SATSA-JCRMI is the preferred API while SATSA-APDU might be used to provide legacy support [JCRMI].
    � SATSA-PKI is used for generation of digital signature and basic user credential manage-ment.
    � SATSA-CRYPTO is a subset of the J2SE� Cryptography Extension (JCE) API and pro-vides basic support for encryption, decryption, computing digests, verifying signatures, and accessing public keys [JCE14].
    There is a sample app. in wireless toolkit 2.3beta called MohairMIDlet.
    It is a good start have a look on this app.
    http://forum.java.sun.com/thread.jspa?threadID=704384&tstart=15
    I also wrote a question about that at Nokia discussion board (http://discussion.forum.nokia.com/forum/showthread.php?t=73463).
    Best Regards,
    Ove
    Email: [email protected]

  • How implement (Forms Builder ) Calculation Item in JDeveloper ADF?

    How implement (Forms Builder ) Calculation Item in JDeveloper ADF?
    (Forms Builder ) Property
    Calculation -> Calculation Mode=Summary
    Calculation -> Formula -> Summary Function=Sum
    Calculation -> Formula -> Summarized Block=Block Name
    Calculation -> Formula -> Summarized Item=Quantity Item

    You can have transient attributes in your VO that do calculations.
    http://download.oracle.com/docs/html/B25947_01/bcentities010.htm#BABHGCAH
    For summaries here are a few other options:
    http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070725180020
    http://andrejusb.blogspot.com/2008/01/complex-calculated-values-in-oracle-adf.html

  • JComboBox with checkboxes - how to ?

    How can I implement a JComboBox with JChecBoxes as elements ?

    my first guess:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import javax.swing.JCheckBox;
    import javax.swing.JList;
    import javax.swing.ListCellRenderer;
    public class CheckListCellRenderer extends JCheckBox implements
            ListCellRenderer {
        public CheckListCellRenderer() {
            setLayout(new BorderLayout());
        public Component getListCellRendererComponent(JList list, Object value,
                int index, boolean isSelected, boolean cellHasFocus) {
            return (Component) value;
    }The problem is the checkboxes are not editable....

  • CheckBox - how to set custom icons

    I need to figure out how to set a custom icon for a selected checkbox via the UIManager
    This works for un-selected checkboxes:
    UIManager.put("CheckBox.icon", new ImageIcon("../images/unselectedCheckBoxIcon.png")));
    how to change the icon when it is selected?
    I don't know the UIManager property for a selected checkbox icon and using the setSelectedIcon on the checkbox object it self does not seem to work:
    checkbox.setSelectedIcon(new ImageIcon("../images/selectedCheckBoxIcon.png"));
    Thanks for any ideas how to solve this!!

    Hi mKorbel, many thanks for your suggestion!
    For anyone interestsed,
    here is a small example of how I made it working.
    Unfortunately I cannot attatch the icon images that I use, but the selected icon can be downloaded from here, resize it to 32*32, remove the cross in the middle to save it as the unselected icon.
    * Modified sample code taken from here
    * http://www.java2s.com/Tutorial/Java/0240__Swing/CustomizingJCheckBoxCheckMarkIcon.htm
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.GridLayout;
    import java.net.URL;
    import javax.swing.AbstractButton;
    import javax.swing.ButtonModel;
    import javax.swing.Icon;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    public class IconCheckBoxSample {
      public static void main(String[] args) {
            JFrame frame = new JFrame("Iconizing CheckBox");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            Icon checked = new CheckBoxIcon();
            Icon unchecked = new CheckBoxIcon();
            JCheckBox aCheckBox1 = new JCheckBox("Pizza", unchecked);
            aCheckBox1.setSelectedIcon(checked);
            JCheckBox aCheckBox2 = new JCheckBox("Calzone");
            aCheckBox2.setIcon(unchecked);
            aCheckBox2.setSelectedIcon(checked);
            Icon checkBoxIcon = new CheckBoxIcon();
            JCheckBox aCheckBox3 = new JCheckBox("Anchovies", checkBoxIcon);
            JCheckBox aCheckBox4 = new JCheckBox("Stuffed Crust", checked);
            frame.setLayout(new GridLayout(0,1));
            frame.add(aCheckBox1);
            frame.add(aCheckBox2);
            frame.add(aCheckBox3);
            frame.add(aCheckBox4);
            frame.setSize(300, 200);
            frame.setVisible(true);
    class CheckBoxIcon implements Icon {
      public void paintIcon(Component component, Graphics g, int x, int y) {
        AbstractButton abstractButton = (AbstractButton)component;
        ButtonModel buttonModel = abstractButton.getModel();
        if(buttonModel.isSelected()) 
            g.drawImage(createImage("../images/selectedCheckBoxIcon.png","info"), x, y, component);
        else
            g.drawImage(createImage("../images/unselectedCheckBoxIcon.png","info"), x, y, component);
      public int getIconWidth() {
        return 33;
      public int getIconHeight() {
        return 33;
      protected static Image createImage(String path, String description) {
            URL imageURL = CheckBoxIcon.class.getResource(path);
            Image icn = null;
            if (imageURL == null) {
                if(null==icn){
                    //System.out.println("path: "+path);
                    icn = new ImageIcon (CheckBoxIcon.class.getResource(path.replace("..",""))).getImage();
                    if(null!=icn)
                        return icn;
                    else{ 
                        System.err.println("Resource not found: " + path);
                        return null;
                 return null;
            } else {
                return (new ImageIcon(imageURL, description)).getImage();

  • Checkboxes: How do you use them to select geometries for display, MapViewer

    Dear all
    I am working in Oracle 10.2 and using PL/SQL. I am trying to create a procedure that generates a list of spatial layers, based on those currently contained in the database, which uses checkboxes, so that users can select which layers to display.
    Once the user has made his choices and the results are submitted, the chosen layers are displayed through MapViewer. Currently the procedure, which is still being developed, is as follows:
    PROCEDURE MAPLIST AS
    CURSOR curmaplist IS
      SELECT spatial_map_name
             spatial_map_id
             geom
       FROM spatial_map_table;
      varmaplist curmaplist%ROWTYPE;
       varchecked VARCHAR2(32767);
    BEGIN
    FOR varmaplist in curmaplist LOOP
      htp.print('<FORM>
                  <UL>
                   <LI>
                    <LABEL FOR="SM_ID||
                                curmaplist.spatial_map_id||">
                     <INPUT type="checkbox"
                            id="SM_ID||
                                curmaplist.spatial_map_id||"
                            name="SM_ID||
                                  curmaplist.spatial_map_id||"
                            value="MAP TITLE: ||
                                   curmaplist.spatial_map_name" />
                    </LABEL>
                   </LI>
                  </UL>
                 </FORM>'
      EXIT WHEN curmaplist%NOTFOUND;
       END LOOP;
    END;I am not sure how to incorporate the checked element and then make use of it. Regarding subsequent use, I wondered if an IF statement could be used.
    IF VARCHECKED = 'CHECKED' THEN...after this MapViewer XML is added, with the select statement making use of the cursor. For example:
    select curmaplist.geom
    from geg50160.spatial_map_tableFor the checked part itself, I have found the following Oracle code in Chapter 11 of Oracle Database Application Developer’s Guide - Fundamentals 10.2.
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('<p>Checkbox value: ' || checkboxes(i));
    END LOOP;
    END;
    /However I am not certain how I would incorporate that into my code. I take it i refers to the checkbox value. I've read that .ident_arr is an array which can hold multiple values but if so I am also not sure why checkboxes are counted.
    Kind regards
    Tim

    Hi GKaiseril,
    Thanks for your reply.  That's what I'm attempting to do, but I'm largely trying to "borrow" on-line JavaScript (see below) & modify for my PDF Form, w/ rudimentary knowledge gained while surfing the web.  The Form has 30 checkboxes that I want to limit users to a max. of 4.
    So any add'l scripting tips would be most appreciated.
    Thanks!
    var NewCount = 0
    getField("Check_Box1").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box2").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box3").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box4").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box5").value === "Yes"
      {NewCount = NewCount + 1}
    if (NewCount == 4)
    app.alert(“Pick Just Four Please”); return false;

  • How Implement the DB authentication

    Hi Experts,
    How to implement the data base authentication in the in OBIEE and i am using SH Schema. Can any one send me related documents..
    Regards,
    Edited by: 799666 on Jul 15, 2012 8:10 AM

    Hi,
    1)When we creating initialization Box if we want to set security for the data then only we have use session variables otherwise we should not use these session variables.Directly we can populate the initialization Box for Authentication.
    A. For Authentication purpose also you have to create one session variable.
    Ex: select'USERNAME',USERNAME FROM USER_PROD WHERE USERNAME=':USER' -- for login authentication purpose
    2)Setting the security for data is nothing but Authorization ( data level security)
    A. Yes.
    3)When we have to go for row-wise initialization(if possible with small scenario)
    A.you want to restict to product wise are city wise then go for row-wise inti.
    4) what is the use of execution precedence.
    A. Re: How OBIEE server select which init block should run first
    Hope this help's
    Thanks
    Satya

  • BTE - How Implement (OUTBOUND_CALL_00003050_E)

    Hi.
    I need implement the BTE (SAMPLE_INTERFACE_00003050) in event "00003050" .
    please, how do they do it
    Thank.
    Carlos Orden

    Hi..
    Just go through this very informative article in SDN using the below link.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    Hopefully your queries will be answered.
    Regadrs,
    Karthik

  • How implement security with jazn-data.xml file?

    Hi,
    I cannot implement the security user/role management in a web-app (Weblogic 10.3.6).
    web.xml (war file)
         <!-- Security JAAS -->
        <login-config>
            <auth-method>CLIENT-CERT</auth-method>
        </login-config>
        <security-constraint>
            <web-resource-collection>
                <web-resource-name>myApp</web-resource-name>
                <url-pattern>/pages/index.jsp</url-pattern>
            </web-resource-collection>
            <auth-constraint>
                <role-name>admin</role-name>           
            </auth-constraint>
        </security-constraint>
    jazn-data.xml (ear file)
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jazn-data PUBLIC "JAZN-XML Data" "http://xmlns.oracle.com/ias/dtds/jazn-data.dtd">
    <jazn-data>
    <!-- JAZN Realm Data -->
    <jazn-realm>
        <realm>
            <name>myrealm</name>
            <users>               
                <user>
                    <name>admin</name>
                    <display-name>admin</display-name>
                    <credentials>!pwd</credentials>
                </user>           
            </users>
            <roles>     
                <role>
                    <name>admin</name>
                    <members>                   
                        <member>
                            <type>user</type>
                            <name>admin</name>
                        </member>
                    </members>
                </role>          
            </roles>
        </realm>
    </jazn-realm>
    <!-- Permission Class Data -->
    <jazn-permission-classes>
    </jazn-permission-classes>
    <!-- Principal Class Data -->
    <jazn-principal-classes>
    </jazn-principal-classes>
    <!-- Login Module Data -->
    <jazn-loginconfig>
    </jazn-loginconfig>
    </jazn-data>
    I need to set user/role in Weblogic console? :-S
    Thanks for reply,
    Matteo.

    hi "romanna"
    Part of the answer to "Can somebody point me out how I need to define security ..." can probably be found in the "Oracle ADF Developer's Guide" that has "18 Adding Security to an Application".
    success
    Jan

  • Can u please tell me how implementation takes place in sap

    can u please give detailed description about implementation of sap fi/co
    i mean how it will takes place.
    discurssions with the client
    how do u prepare business blue print

    Hi,
    Refer to this weblink regarding SAP Implementation
    http://en.wikipedia.org/wiki/SAP_Implementation
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • How implement Enhancement Spots??

    Hi Group,
    I have done some thing in BADI, but, one more thing is there like "Enhancement Spots" in the same Screen.
    Could you please let me know the relevance of it over the BADIs and how to implement the same , if possible through some Links/Blogs on the same.
    Thanks in advance.
    Regards,
    Vishnu.

    Hi Vishnu,
    First of all, if you are using ECC 6.0, then you will fine new Enhancement Framework wiht Enhancement Spots.
    From ECC 6.0 onwards, if you want to implement BADI, you need to find the respective Enhancement Spot for that BADI in the code and go to SE19 and, give the ESpot and BADI name and then implement the same.
    Hope this helps, if you need enough info, pls mail me to my id:
    [email protected], I ll send you docs related to the implementation of the same.
    Reward Points if helpful
    Regards,
    Harish Kalla

  • Multiple deletes using checkbox - how to?

    I'm trying to figure out how to setup a master display list page with a check box that will allow the user to select multiple records for deletion.  Currently I have a Delete and Edit URL on each of the repeating region rows which takes the user to an Edit or Delete confirmation page for updating or deleting.  This all works fine but I'm having trouble grasping how to make this happend with checkbox on the Delete only, understanding that you cannot or would not want to update multiple records at once .
    Thanks,
    Steve

    Have your form pass the db ID's of the selected items to your form script. The script would then loop through the items and build the values used in the where clause. Then call the delete statement:
    Delete from MyTable where ItemID in ($mylist)

Maybe you are looking for