Numbers:  Check Boxes returning 0 (zero) value

In Numbers I would like to add a check box column next to a column of numbers.  If the box is checked I would like it to convert the specifc number in the agacent column to a value of 0 (zero).  If the box is left unchecked the value will stay as written.  Is there a function that can be written to accomodate this?

Hi neofyte,
Wayne's demonstration has a feature that my demonstration lacks. Wayne has correctly avoided Column A, because in some Templates Column A is a Header Column. Header Columns are best used as identifiers (for example, Name or Customer Number).
If your Table has Column A as a Header Column (often a coloured fill), the solution would look somethig like this:
Formula in Cell D2 is
=IF(C,0,B2)
Regards,
Ian.

Similar Messages

  • Return with zero value

    Dear All
    Plz see below comments of Sujay.. can any one tell me is there any other sollution for that? plz note, while i am trying to use 501 MVT with ZSPR there is no FI doccument generated but if i use ROH material, then fi doc generated with value.. why and how it is happening?
    plz advice
    Subject: Re: maintaining spares returned
    Message: As per your mentioned specification what i see is  material type ZSPR is a valuated material, so in that case if you doing reverse movement 202 wrt 201 then it should cancel the effect of 10.00 RS, which the system is doing correctly.
    Now coming to your question if you want to return the material to your respective store without any valuation, then why don't you do 501 movement.
    BR

    thanks for clarification.
    however it will not change the answer in general.
    return from user departments are usually done with 202 movement, 501 is usually used for receipts from external vendors without having a PO.
    In any case the movements will be valuated with the price in the material master, if the material type is quantity and value managed.  
    There is only one option to return at zero value: make the field fo external valuation in the movement optional, and try then to enter a zero manually while executing the movement. This will post the movement with no value and reduce the MAP of the material accordingly.
    But this is pretty dangerous as you will not really have a control about the use of this field, any user can enter any value and will effect the material prices.

  • Numbers check boxes

    Check Boxes are great in the numbers spreadsheet. However I cannot find anything in HELP that educates on how to add them to any sheet. Or is this capability, and others, using some arcane terminology that does not accommodate the majority of users who are not software professionals even though they are familiar with several different softwares of identical usages?
    Will this capability, along with numerous other new enhancements, ever be included in the offline help capability? i.e. I am often in a position where I am unable to connect to the internet to access the online help.
    Sparkgapper

    Sorry - misread your OP.  You can certainly take the points back.
    You could contact Apple and make a comment or two - or even more - about need to improve the Help function in Numbers.
    http://www.apple.com/contact/feedback.html

  • Bytes at serial port returns allways zero value

    hello, in my code don't works Bytes At Port as I'm expexting. Program receieves data normally, but Bytes At Port return allways zero.
    2nd problem: It is possible to use VISA Read in both of parallel loops ? Purpose of my first loop is sending commads and I want to evaluate synchronous answers imediatly in this loop. Second loop receieves and evaluates asynchronous data flowing from the measurement device when measurement is acitivated.
    Thanks.

    You're sort of answering your first question with your second question. In the first loop the Bytes at Port is meaningless, unless you are intending to use it to perform a read in there. However, since you're reading in the second loop (incorrectly, by the way - more on that later), then there's nothing in the buffer, so you'll get zero.
    You can read in as many places as you want. Whether or not it makes sense to do is a different story. It depends on how the data is coming over the serial port. If the instrument you're talking to is sending data continuously, but "sneaks" in a response to a command between two messages, then you obviously don't want to be reading the response to the command in your second loop. The serial port is just one pipe. It's up to you to determine where the data belongs. Furthermore, you can't be guaranteed of getting all of the bytes at once, which means you might read, say, part of the "asynchronous" message, then get the rest in the next iteration as well as the responsed to a command you sent. As far as the Bytes At Port is concerned, it just sees a bunch of bytes. It doesn't know that, for example, the first 2 are the remainder of the asynchronous message, and the rest are the response to the command. Does the instrument not have something in the communication protocol to  allow you to distinguish?
    As promised, the way you're doing the read: You are setting up the configure VI to disable the termination character, yet you are wiring a termination character. Which is it? Do you want the read to stop at the termination character, or not? If you don't use a termination character, then you need to use Bytes At Port so you know how many bytes to read. You have that property node in the second loop, but you are not using it. Instead you are wiring a constant of 1000 to the VISA Read. This will only work if you have termination enabled. But you don't. See the problem?

  • Passing check box values to WHERE clause

    Hi,
    I have created a Data block - 'CONTACTS' (Database data block)
    and has database item - 'Code', 'Descr'
    The number of records displayed is set to 5.
    Value When checked - 'Y'
    Value When Unchecked - 'N'
    Check box mapping of other values - 'unchecked'
    I am writing the code inside 'WHEN BUTTON PRESSED'. My main objective is to return the count of records based
    based on several conditions and one among them is CODE which is can be single or multiple based on the check box checked.
    The requirement is when i check one or multiple checkboxes, i should pass the 'Code' item values to the WHERE clause.
    Right now whenver i am trying to do so, only the current record value is copied to the WHERE clause.
    I have tried using basic loop but things havnt worked.
    Logic tried with basic LOOP
    BEGIN
    GO_BLOCK('CONTACT');
    IF :contact.cb = 'Y' THEN
    LOOP
    IF p_where is null then
    p_where := :contact.code;
    else
    p_where := p_where ||','||:contact.code;
    end if;
    exit when :system.last_record = 'TRUE';
    next_record;
    END LOOP;
    end if;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    END;
    And Even if i write the LOOP before the first IF, it return me the current record value and move to the last record.
    please guide me where am i wrong.
    Regards.
    Anoop.

    Try something like this:
    FIRST_RECORD;
    LOOP
      IF :contact.cb = 'Y' THEN
        IF p_where is null then
           p_where := :contact.code;
         else
           p_where := p_where ||','||:contact.code;
         end if;
       END IF;
      exit when :system.last_record = 'TRUE';
      next_record;
    END LOOP;
    -- END LOOP;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    END;

  • How to get selected row values in a table using check box

    Hi ADF Experts,
    JDEV Version 11.1.1.7.0
    My requirement is getting the selected row valuesof a af:table using a checkbox(multi select).
    Thanks,
    Animesh

    Hi,
    add a transient attribute to the POJO entity and update this through a check box. The ensure you have autosubmit=true set on the check box. In a value change listener set or remove the row's checbox attribute value
    Frank

  • Strange check box behaviour on Linux

    Hi,
    I have a forms module (10g) that has a database block with a non-database checkbox. This checkbox has the following properties:
    -Value when checked: 1
    -Value when unchecked: 0
    -Check box mapping to other values: Unchecked
    -Initial value: 0
    On 10g iDS (Win2k), when the query is executed on that block, the checkbox is unchecked for all records, which is my expected behaviour.
    Running the same module on 10g ias server (Linux) against the same database shows all checkboxes checked!!
    I can bypass this by coding a post-query-trigger and setting the value to 0, but I would like to know if someone knows anything about that.
    Thanks in advance
    Gerald

    Thanks but didn't quite work.
    This is a Seam application so I have a ClientOfficeList class which looks like this.
    private static final String EJBQL = "select clientOffice from ClientOffice clientOffice";
    public ClientOfficeList() {
              clientOffice.setClientGroup(new ClientGroup());
              setEjbql(EJBQL);
              setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
              setMaxResults(25);
         } then the ClientOffice entity bean looks like this.
    I wasn't able to introduce a boolean property in the entity bean since it doesnt have a corresponding database column mapping
         public void setClientOffice(String clientOffice)
              this.clientOffice = clientOffice;
         @Column(name = "CLIENT_OFFICE_STATUS", nullable = false, length = 1)
         @NotNull
         public char getClientOfficeStatus()
              return this.clientOfficeStatus;
         }The xhtml looks like this
    <h:column>
                <f:facet name="header">
                    <ui:include src="layout/sort.xhtml">
                        <ui:param name="entityList" value="#{clientOfficeList}"/>
                        <ui:param name="propertyLabel" value="Office status"/>
                        <ui:param name="propertyPath" value="clientOffice.clientOfficeStatus"/>
                    </ui:include>
                </f:facet>
                <h:selectBooleanCheckbox value="#{_clientOffice.clientOfficeStatus}" />
            </h:column>

  • How to select One Check Box at a time

    Dear All
    I have 10 records in details blok and also I have 10 check boxes .
    I want user can only check one check box at a time .
    For example If first record I have checked and i am trying to check the last record then the first record UNCHECKED and the last record will checked .
    Like how redio buttons work ..
    How can i do that ..?
    I have done like this :-
    1st I have declare a global variable in PRE_FORM :GLOBAL.CNT := 'N';
    Then
    WHEN-CHECKBOX-CHANGED trigger
    IF CHECKBOX_CHECKED(EMP.CHK') THEN
        IF :GLOBAL.CNT != N THEN
            :EMP.CHK := Null
       HERE what to write ???
            RAISE FORM_TRIGGER_FAILURE;
        ELSE
            :GLOBAL.CNT := Y;
        END IF;
    ELSE
        :GLOBAL.CNT := N;
    END IF;Edited by: LuKKa on Aug 29, 2012 1:12 PM
    Edited by: LuKKa on Aug 29, 2012 1:13 PM

    LuKKa,
    An easier method would be to use a Calculated Field to summarize the value of your CHECKBOX Item. For example, add a non-table item (call it SUM_CHECKED) to your detail block and do not assign it to canvas - so it will not be displayed. Then set the following properties of the SIM_CHECKED item:
    Database Item = No
    Calculation Mode = Summary
    Summary Function = Sum
    Summarized Block = <YOUR DETAIL BLOCK>
    Summarized Item = <YOUR CHECKBOX ITEM>
    Next, you will need to change your Detail Block property Query All Records to YES (this is required for the Calulated Item).
    Now, make sure your checkbox is data type NUMBER and has the following minimum properties set:
    Data Type = Number
    Maximum Length = 1
    Initial Value = 0
    Value when Checked = 1
    Value when Unchecked = 0
    Check Box Mapping of Other Values = Not Allowed or Unchecked
    Now, in your Checkbox Item's When-Checkbox-Changed trigger add code similar to this:
    IF ( CHECKBOX_CHECKED('YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM') ) THEN
       IF ( :YOUR_DETAIL_BLOCK.SUM_CHECKED > 1 ) THEN
       --Reset the checkbox
       :YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM := NULL;
       MESSAGE('You can only check one item.');
       Message(' ');
       RAISE Form_Trigger_Failure;
       END IF;
    END IF;I have confirmed this method works and it is more efficient than looping through your records to see if other checkboxes are checked.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to disable check box (row selector) in a tabular APEX report

    I have a tabular report with check boxes that gets populated by a SQL query.  For certain rows, I want to disable (or not render) the check box, depending on the value of one of the columns for that particular row (if the value of a column defined as Date is less than sysdate, I don't want to display the check box for that row).  I tried using the Conditional Display in the Column Attribute section of the check box, but I am unable to access this Date column which is being selected from a view in the source SQL.  I used variable such as :name-of_column, V(':name-of_column'), but always get a NULL value for this Date column in the SQL that I am trying to code in the Conditional Display section.  For this reason, my condition does not work correctly.
    What am I doing wrong?  Is my approach above correct?

    Hi Ajay,
    I don't think you can handle this with a conditional display, as that works on column level rather than row level.
    The way I see it, there are two things you can do:
    1) an sql approach, where youo render the checkbox as part of your query using apex_item.checkbox, check the oracle docs for detailed info on the usage APEX_ITEM
    You'll end up with a query like
    select case when YOUR_DATE_COLUMN < sysdate
                      then null
                      else  apex_item.checkbox2( p_idx => 1
                                                               , p_value => YOUR_DATE_COLUMN
    ,      <rest of your query here>
    from YOUR_TABLE
    2) an JavaScript approach in which you create a dynamic action that check your tabular form date column and, when necessary hides and disables the checkbox for that row.
    First option is more robust, but will require a bit more work. Second option is faster to develop, but might have different effect across various browsers and browser versions.
    Regads,
    Vincent
    http://vincentdeelen.blogspot.com

  • Check box hint

    Hi all,
    I'm using Oracle Forms Builder 10GR2. I have a check box item. I want when it's checked to be non-updatable. So, i put logic in WHEN-CHECKBOX-CHANGED trigger :
    Value when checked : Y
    Value when unched : N
      if
              :<block>.<item> = 'Y'
                   then
                        SET_ITEM_PROPERTY('<block>.<item>', update_allowed,property_false);
               end if;Ok, by this method i'm not able to uncheck the check box once it's checked, but when i go somewhere/or requery the block/ the check box is not checked / although it is non-updatable./
    I saw in the property palette of this item that the Check Box mapping of other values is set to Not Allowed.
    Any ideas how this can be fixed/to be checked when it is :) /
    Thanks in advance,
    Bahchevanov.

    Hi Bahchevanov,
    To quote from the SET_ITEM_PROPERTY Help in Form Builder
    >
    Modifies all <b>instances</b> of an item in a block by changing a specified item property.
    When you specify a change through the SET_ITEM_PROPERTY Built-in, Oracle Forms validates the change before it adjusts the property. If the change is validated, Oracle Forms makes the change and leaves it in effect until another SET_ITEM_PROPERTY changes the same property or the current form is exited.
    >
    What this means that the changes made are after the Form page has been rendered and last till the page is not rendered again or another SET_ITEM_PROPERTY changes it.
    That explains part your observation.
    The other factor is the Intial Value you have set for the Checkbox . You have used Y and N for checked and Unchecked, respectively. Now if Intial Value is Null then it is neither Y nor N. So , you need to perhaps set Initial Value : N
    Regards,

  • How can I make a field unfillable when a check box or radio box is selected?

    I'm looking to create a rule that makes selected fields un-fillable when one check box is selected, and fillable when another is selected. Is this possible in Adobe Acrobat?

    In that case they are mutually exclusive, or at least should be...
    You can use something like this as the custom MouseUp script for the check-boxes:
    if (event.target.value=="Yes") {
         this.getField("Field1").readonly = true;
         this.getField("Field2").readonly = true;
         this.getField("Field3").readonly = true;
         this.resetForm(["Field1", "Field2", "Field3"]); // this line will clear those fields as well
    } else if (event.target.value=="No") {
         this.getField("Field1").readonly = false;
         this.getField("Field2").readonly = false;
         this.getField("Field3").readonly = false;

  • How to change a check box default from checked to unchecked?

    Hi All,
    I have a form, want to change a check box default from checked to unchecked.
    from the layout, doulb click into property of this check box, did not see default setting for the box, where to change a check box default from checked to unchecked?
    Thanks.

    hello friend,
    ->go to the property palette of ur check box
    ->under the functional set the property "check box mapping of other values"=unchecked
    so...when u run the form then checkbox will unchecked.
    but..at design time u can't see the effect of unchecked..
    Regards
    Chandan

  • Dynamic Check Box Error

    Hi All,
            I have created Dynamic UI Checkbox which is creating dynamic checkboxes based on the database Table fields.
    Here is my code in Start View
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package com.titan.retailauditreport;
    // IMPORTANT NOTE:
    // ALL IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
    // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
    // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateStartView).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
    // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
    // OF IMPORT STATEMENTS.
    //@@begin imports
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDCheckBox;
    import com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTransparentContainer;
    import com.sap.tc.webdynpro.progmodel.api.IWDNode;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeInfo;
    import com.sap.tc.webdynpro.progmodel.api.IWDUIElement;
    import com.titan.retailauditreport.wdp.IPrivateStartView;
    //@@end
    //@@begin documentation
    //@@end
    public class StartView
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(StartView.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    for this controller class.  </p>
    Use <code>wdThis</code> to gain typed access to the context,
    to trigger navigation via outbound plugs, to get and enable/disable
    actions, fire declared events, and access used controllers and/or
    component usages.
    @see com.titan.retailauditreport.wdp.IPrivateStartView for more details
      private final IPrivateStartView wdThis;
    Root node of this controller's context. </p>
    Provides typed access not only to the elements of the root node
    but also to all nodes in the context (methods node<i>XYZ</i>())
    and their currently selected element (methods current<i>XYZ</i>Element()).
    It also facilitates the creation of new elements for all nodes
    (methods create<i>XYZ</i>Element()). </p>
    @see com.titan.retailauditreport.wdp.IPrivateStartView.IContextNode for more details.
      private final IPrivateStartView.IContextNode wdContext;
    A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
    Represents the generic API of the generic Web Dynpro counterpart
    for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
    A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
    Represents the generic API of the Web Dynpro component this controller
    belongs to. Can be used to access the message manager, the window manager,
    to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public StartView(IPrivateStartView wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
    //          IWDNodeInfo node=wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,null,null);
    //         IPrivateStartView.INodeAElement ele=wdContext.createNodeAElement();
    //         wdContext.nodeNodeA().addElement(ele);
    //         IWDNodeInfo multiplenode=wdContext.nodeNodeA().getNodeInfo();
    //         IWDNodeInfo multipleinfo=multiplenode.addChild("MultiNode",null,true,true,false,false,false,true,null,null,null);
    //          multiplenode.addAttribute("roles", "ddic:com.sap.dictionary.string");
    //          multipleinfo.addAttribute("roles", "ddic:com.sap.dictionary.string");
    //          IWDNodeElement elem;
         //IWDNodeInfo node=wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,null,null);
         //node.addAttribute("BrandID");
        ResultSet rs=null;
        ResultSetMetaData rsmd=null;
        Connection con=null;
        PreparedStatement pst=null;
        String status="SELECT BrandMaster.BrandID,BrandMaster.BrandName FROM BrandMaster WHERE BrandMaster.BrandID=?";
        try{
             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
             wdComponentAPI.getMessageManager().reportSuccess("Driver Loaded");
             con=DriverManager.getConnection("jdbc:odbc:Pankaj");
             wdComponentAPI.getMessageManager().reportSuccess("Connected");
             pst=con.prepareStatement(status);
             pst.setInt(1,1);
             rs=pst.executeQuery();
             wdComponentAPI.getMessageManager().reportSuccess("Query Fired");
             rsmd=rs.getMetaData();
             int ttlcolumns=rsmd.getColumnCount();
             wdComponentAPI.getMessageManager().reportSuccess("Populating Data1");
              IWDNodeInfo node=wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,null,null);
              //node.addAttribute("BrandID","BrandID:com.titan.retailauditreport");
              node.addAttribute("BrandID",);
             while(rs.next())
                  wdComponentAPI.getMessageManager().reportSuccess("Populating Data");
    //               IWDNode node1=wdContext.nodeNodeA().getChildNode("MultiNode",IWDNode.NO_SELECTION);
    //               IWDNodeElement elem=wdContext.nodeNodeA().createElement();
    //               node1.addElement(elem);
                   IWDNode node1=wdContext.getChildNode("DynamicNode",0);
                   IWDNodeElement ne1=node1.createElement();          
                   for(int i=1;i<=ttlcolumns;i++)
                        if(i==1)
                             //elem.getBrandID(rs.getString(i));
                             String s1=rs.getString(i);
                             ne1.getAttributeValue("BrandID"+s1);
                        else if(i==2)
                             //elem.getBrandName(rs.getString(i));
                             //String BN=setBrandName((rs.getString(i)));
                             String s2=rs.getString(i);
                             ne1.getAttributeValue("BrandName"+s2);
                   rs.close();
                   pst.close();
                   con.close();
                   wdComponentAPI.getMessageManager().reportSuccess("Resources Closed");
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportException("Error  "+e,true);
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:wdDoModifyView
    Hook method called to modify a view just before rendering.
    This method conceptually belongs to the view itself, not to the
    controller (cf. MVC pattern).
    It is made static to discourage a way of programming that
    routinely stores references to UI elements in instance fields
    for access by the view controller's event handlers, and so on.
    The Web Dynpro programming model recommends that UI elements can
    only be accessed by code executed within the call to this hook method.
    @param wdThis Generated private interface of the view's controller, as
           provided by Web Dynpro. Provides access to the view controller's
           outgoing controller usages, etc.
    @param wdContext Generated interface of the view's context, as provided
           by Web Dynpro. Provides access to the view's data.
    @param view The view's generic API, as provided by Web Dynpro.
           Provides access to UI elements.
    @param firstTime Indicates whether the hook is called for the first time
           during the lifetime of the view.
      //@@end
      public static void wdDoModifyView(IPrivateStartView wdThis, IPrivateStartView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        if(firstTime)
              IWDTransparentContainer theGroup= (IWDTransparentContainer)view.getElement("RootUIElementContainer");
              theGroup.createLayout(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDMatrixLayout.class);
              theGroup.destroyAllChildren();
              IWDUIElement uiElement = null;
             IWDCheckBox icb=(IWDCheckBox)view.createElement(IWDCheckBox.class,"CheckB");
              //IWDAttributeInfo info = wdContext.getNodeInfo().getChild("NodeA").getChild("MultiNode").getAttribute("roles");
              icb.bindChecked("DynamicNode.BrandID");
              uiElement=icb;
              theGroup.addChild(uiElement);
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      //@@end
    But iam not able to add attribute in the statement
    int ttlcolumns=rsmd.getColumnCount();
             wdComponentAPI.getMessageManager().reportSuccess("Populating Data1");
              IWDNodeInfo node=wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,null,null);
              //node.addAttribute("BrandID","BrandID:com.titan.retailauditreport");
              node.addAttribute("BrandID",);
    its throwing an error
    Error:com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type Boolean not found
    Is that my database connectivity code ?
    Can anybody plz help me out?
    i
    Thanks and Regards
    Santosh Saraf

    Hi,
        It didnt work.So i changed my coding,Iam able to get checkbox.
    Here is my code
      public static void wdDoModifyView(IPrivateStartView wdThis, IPrivateStartView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        IWDMessageManager msgMngr=wdThis.wdGetAPI().getComponent().getMessageManager();
         if(firstTime)
              //IWDTransparentContainer theGroup= (IWDTransparentContainer)view.getElement("RootUIElementContainer");
              IWDTransparentContainer theGroup= (IWDTransparentContainer)view.getElement("TransparentContainer");
              theGroup.createLayout(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDMatrixLayout.class);
              theGroup.destroyAllChildren();
              //IWDUIElement uiElement = null;
              //IWDUIElement uiElement1 = null;
              IWDUIElement uiElementnew = null;
              //IWDCheckBox icb2=(IWDCheckBox)view.createElement(IWDCheckBox.class,"CheckA");
              //IWDCheckBox icb1=(IWDCheckBox)view.createElement(IWDCheckBox.class,"CheckB");
              //icb1.setText("Checkbox1");
              //icb2.setText("Checkbox2");
              Connection con=null;
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:Pankaj");
    Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    ResultSet rs=st.executeQuery("select * from BrandMaster");
    int count=0;
    while(rs.next())
         count++;
    msgMngr.reportSuccess(""+count);
    rs.beforeFirst();
    IWDNodeInfo node=wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,null,null);
    node.addAttribute("BrandID","ddic:com.sap.dictionary.boolean");
    while(rs.next())
         IWDNode node1=wdContext.getChildNode("DynamicNode",0);
         IWDNodeElement ne1=node1.createElement();
         ne1.setAttributeValue("BrandID",new Boolean(true));
         //ne1.getAttributeValue("BrandID"+rs.getString(2));
         IWDCheckBox icbnew=(IWDCheckBox)view.createElement(IWDCheckBox.class,"Checknew");
         icbnew.setText(rs.getString(2));
         icbnew.bindChecked("DynamicNode.BrandID");
         uiElementnew=icbnew;
         theGroup.addChild(uiElementnew);
    msgMngr.reportSuccess(""+count);
    catch(Exception e)
              //IWDAttributeInfo info = wdContext.getNodeInfo().getChild("NodeA").getChild("MultiNode").getAttribute("roles");
    //          icb1.bindChecked("DynamicNode.BrandID");
    //          icb2.bindChecked("DynamicNode.BrandID");
    //          uiElement=icb1;
    //          uiElement1=icb2;
    //          theGroup.addChild(uiElement);
    //          theGroup.addChild(uiElement1);
              try
              {if(con!=null)
    con.close();
              catch(Exception e)
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      //@@end
    But now the problem is i need to have five dynamic checkboxes based on my tablebut iam getting only one check box with the first value of a column in a table(First Row).
    I want to display all the five rows,even if iam giving the rs.next in while loop.
    Here ia my table structure
    Master Table
    BrandID      BrandName
    1             abc
    2             def
    3             ghi
    4             jkl
    5             mno
    Iam getting the only one checkbox with abc as text,i want all the five rows checkbox.
    Plz help me out in this regard
    Thanks and Regards
    Santosh Saraf

  • Crystal Reports - check boxes on forms

    Does anyone know if it is possible to embed check boxes ( ticked or crossed based on True / False values) in Crystal Reports?
    I have a large number of forms to develop which use Yes / No values in UDF's and I want to display tick or cross in check boxes based on these values!
    Thanks

    Somewhat 1 year ago I issued a iTar on that,
    is a known bug that is apparently not worsewhile to fix.
    cu

  • Check Box Button

    Hi All,
    I'm working on Check Box, WHEN-BUTTON-PRESSES in pl/sql there is code for that.
    I'm trying but i'm able to slove it,
    If any one is having the code please send me
    try to help me soon
    Regards
    Siva

    Check Box is similar other text item
    You define a check box, you specify what value you want the check box to represent as checked and what value you want it to represent as unchecked.
    If :CHECKBOXITEM = 'TRUE' then ..... else ..... end if;
    From on line guide
    For instance, consider a check box that indicates whether or not a customer has been approved for credit. When you define the check box, you could specify the Value when Checked to be 'CREDIT_OK' and the Value when Unchecked to be 'NO_CREDIT'.

Maybe you are looking for

  • I Solved Can't Mount Error/Flashing Orange Light/Not recognized by iTunes!

    ++IMPORTANT! PLEASE READ THIS ENTIRE POST!++ I solved all of my Ipod shuffle issues and just uploaded 5 albums worth of songs with no problems! Now I am listening to Black Eyed Peas and it might me my imagination, but I think the sound is vastly impr

  • Time-stamp problem with tar

    everytime i untar something i get: [yak8998 files]$ tar xfj Azureus_2.0.8.4_linux.GTK.tar.bz2 tar: azureus/azureus: time stamp 2004-03-14 08:39:50 is 48653898 s in the future tar: azureus/Azureus2.jar: time stamp 2004-03-16 13:00:23 is 48842329 s in

  • Can Indesign CS4 open CS2 files?

    Simple question, can Indesign CS4 opeen old CS2 files? Someone told me it can't. If that's true it's a disaster.

  • La Times Eedition will not open on ipad

    Hello, I may be in the wrong area or perhaps the LA Times eedition needs flash. I go to the eedition login and can only read the section headings. If I try to open them they go to a new page and it stays blanch. Not sure what else to try and have sea

  • ADF ViewCriteria - Nested Query issue.

    Hi, JDev 11.1.1..2.0. I have the following tables. TableMaster ---- TableDetail1 ---- TableDetail2 -----------TableDetail2.1 ------------TableDetails2,2 I have created the required viewLinks and On TableMaster I have created a ViewCriteria where I ha