Labelling cells in formulae

I have a sheet containing simple formulae like "total cost = annual cost * number of years * exchange rate". Some of these inputs are reused in more than one place, so I've added a separate table to define the constants.
Item,Estimate
Annual cost,$1000
Number of years,3
Exchange rate,2.1
Now I can define my formulae to reference these cells
=Table 2 :: $B$2*Table 2 :: $B$4*Table 2 :: $B$4
This works fine, but it does make the formulae very hard to read or check. Is there a way to label the cells in Numbers such that my formulae become readable? Excel has the concept of named cells which allows you to do this.
Many thanks

But Numbers does not handle defined cell names like Excel. Here's an example naming Tables:
I'll look for another example
Regards,

Similar Messages

  • JTable with Labeles cells

    Is it possible to create Table where each cell
    will have permanent label (its number) together with an editable text?

    Yes we can have it like that
    for that u need to create a panel with one label and textbox in it
    and renderer that column with this panel

  • How To Build Label Report In BI Publisher

    Hi All,
    Is it possible to build Lable report in BI Publisher.
    The requirement is to have three lable per line and each lable acts as a table.
    As per my understanding the BI Publisher report follows Top to Botton approach in For Each Loop and we need to follow left to right approach to build our report.
    Please let me know whether this is possible to build or not.
    Regards,
    Andy

    Hi,
    Is there a way to fix the data elements position within the Label Cell?
    Thanks
    Rajesh.

  • How to left aligned fields label of panel form

    hi am in jdeveloper 11.1.1.6.0, how can i left aligned fields label of panel form

    this is my form,where must i put this af|panelFormLayout::label-cell {text-align: left;}
    <af:panelFormLayout id="pfl6">
        <af:inputText value="#{bindings.Username.inputValue}"
                      label="     Username"
                      required="#{bindings.Username.hints.mandatory}"
                      columns="#{bindings.Username.hints.displayWidth}"
                      maximumLength="#{bindings.Username.hints.precision}"
                      shortDesc="#{bindings.Username.hints.tooltip}" id="it26">
          <f:validator binding="#{bindings.Username.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Firstname.inputValue}"
                      label="    Firstname"
                      required="#{bindings.Firstname.hints.mandatory}"
                      columns="#{bindings.Firstname.hints.displayWidth}"
                      maximumLength="#{bindings.Firstname.hints.precision}"
                      shortDesc="#{bindings.Firstname.hints.tooltip}" id="it21">
          <f:validator binding="#{bindings.Firstname.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Surname.inputValue}"
                      label="     Surname"
                      required="#{bindings.Surname.hints.mandatory}"
                      columns="#{bindings.Surname.hints.displayWidth}"
                      maximumLength="#{bindings.Surname.hints.precision}"
                      shortDesc="#{bindings.Surname.hints.tooltip}" id="it28">
          <f:validator binding="#{bindings.Surname.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Initials.inputValue}"
                      label="    Initials"
                      required="#{bindings.Initials.hints.mandatory}"
                      columns="#{bindings.Initials.hints.displayWidth}"
                      maximumLength="#{bindings.Initials.hints.precision}"
                      shortDesc="#{bindings.Initials.hints.tooltip}" id="it20">
          <f:validator binding="#{bindings.Initials.validator}"/>
        </af:inputText>
        <af:selectOneChoice value="#{bindings.Titlecode.inputValue}"
                            label="    Title"
                            required="#{bindings.Titlecode.hints.mandatory}"
                            shortDesc="#{bindings.Titlecode.hints.tooltip}"
                            id="soc6">
          <f:selectItems value="#{bindings.Titlecode.items}" id="si12"/>
        </af:selectOneChoice>
        <af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                           label="     Gender"
                           required="#{bindings.Gender1.hints.mandatory}"
                           shortDesc="#{bindings.Gender1.hints.tooltip}" id="sor6">
          <f:selectItems value="#{bindings.Gender1.items}" id="si17"/>
        </af:selectOneRadio>
        <af:inputText value="#{bindings.Identitynumber.inputValue}"
                      label="    Identitynumber"
                      required="#{bindings.Identitynumber.hints.mandatory}"
                      columns="#{bindings.Identitynumber.hints.displayWidth}"
                      maximumLength="#{bindings.Identitynumber.hints.precision}"
                      shortDesc="#{bindings.Identitynumber.hints.tooltip}"
                      id="it25">
          <f:validator binding="#{bindings.Identitynumber.validator}"/>
        </af:inputText>
        <af:inputDate value="#{bindings.Dateofbirth.inputValue}"
                      label="    Dateofbirth"
                      required="#{bindings.Dateofbirth.hints.mandatory}"
                      shortDesc="#{bindings.Dateofbirth.hints.tooltip}" id="id3">
          <f:validator binding="#{bindings.Dateofbirth.validator}"/>
          <af:convertDateTime pattern="#{bindings.Dateofbirth.format}"/>
        </af:inputDate>
        <af:selectOneRadio value="#{bindings.Statuscode.inputValue}"
                           label="#{bindings.Statuscode.label}"
                           required="#{bindings.Statuscode.hints.mandatory}"
                           shortDesc="#{bindings.Statuscode.hints.tooltip}"
                           id="sor5">
          <f:selectItems value="#{bindings.Statuscode.items}" id="si7"/>
        </af:selectOneRadio>
        <af:inputText value="#{bindings.Emailaddress.inputValue}"
                      label="#{bindings.Emailaddress.hints.label}"
                      required="#{bindings.Emailaddress.hints.mandatory}"
                      columns="#{bindings.Emailaddress.hints.displayWidth}"
                      maximumLength="#{bindings.Emailaddress.hints.precision}"
                      shortDesc="#{bindings.Emailaddress.hints.tooltip}" id="it22">
          <f:validator binding="#{bindings.Emailaddress.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Termsandconditions.inputValue}"
                      label="#{bindings.Termsandconditions.hints.label}"
                      required="#{bindings.Termsandconditions.hints.mandatory}"
                      columns="#{bindings.Termsandconditions.hints.displayWidth}"
                      maximumLength="#{bindings.Termsandconditions.hints.precision}"
                      shortDesc="#{bindings.Termsandconditions.hints.tooltip}"
                      id="it24">
          <f:validator binding="#{bindings.Termsandconditions.validator}"/>
        </af:inputText>
        <af:selectOneChoice value="#{bindings.Branch.inputValue}"
                            label="#{bindings.Branch.label}"
                            required="#{bindings.Branch.hints.mandatory}"
                            shortDesc="#{bindings.Branch.hints.tooltip}" id="soc5">
          <f:selectItems value="#{bindings.Branch.items}" id="si11"/>
        </af:selectOneChoice>
        <af:inputComboboxListOfValues id="office1Id"
                                      popupTitle="Search and Select: #{bindings.Office1.hints.label}"
                                      value="#{bindings.Office1.inputValue}"
                                      label="#{bindings.Office1.hints.label}"
                                      model="#{bindings.Office1.listOfValuesModel}"
                                      required="#{bindings.Office1.hints.mandatory}"
                                      columns="#{bindings.Office1.hints.displayWidth}"
                                      shortDesc="#{bindings.Office1.hints.tooltip}">
          <f:validator binding="#{bindings.Office1.validator}"/>
        </af:inputComboboxListOfValues>
        <af:inputText value="#{bindings.Ausername.inputValue}"
                      label="#{bindings.Ausername.hints.label}"
                      required="#{bindings.Ausername.hints.mandatory}"
                      columns="#{bindings.Ausername.hints.displayWidth}"
                      maximumLength="#{bindings.Ausername.hints.precision}"
                      shortDesc="#{bindings.Ausername.hints.tooltip}" id="it23">
          <f:validator binding="#{bindings.Ausername.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.PractitionerNumber.inputValue}"
                      label="#{bindings.PractitionerNumber.hints.label}"
                      required="#{bindings.PractitionerNumber.hints.mandatory}"
                      columns="#{bindings.PractitionerNumber.hints.displayWidth}"
                      maximumLength="#{bindings.PractitionerNumber.hints.precision}"
                      shortDesc="#{bindings.PractitionerNumber.hints.tooltip}"
                      id="it27">
          <f:validator binding="#{bindings.PractitionerNumber.validator}"/>
        </af:inputText>
      </af:panelFormLayout>

  • Upgrade from discoverer 10g to 11g

    Hi All,
    While upgrading the Discoverer from 10g to 11g customer is getting the below error:
    [2009-12-03T14:41:15.143-06:00] [Discoverer] [NOTIFICATION] [] [upgrade.Discoverer] [tid: 13] [ecid: 0000ILMHVhH1nZLiEPsHsS1B6263000004,0] Unknown preference: Administrator#ShowUserTypeChoice
    [2009-12-03T14:41:15.143-06:00] [Discoverer] [ERROR] [] [upgrade.Discoverer] [tid: 13] [ecid: 0000ILMHVhH1nZLiEPsHsS1B6263000004,0] UPGCMP-01001: unexpected upgrade exception[[
    java.lang.NullPointerException
    at oracle.ias.upgrade.config.discoverer.DiscoPreferenceConfigUpgradeItem.upgradeOldPrefs(DiscoPreferenceConfigUpgradeItem.java:182)
    at oracle.ias.upgrade.config.discoverer.DiscoPreferenceConfigUpgradeItem.doUpgrade(DiscoPreferenceConfigUpgradeItem.java:77)
    at oracle.ias.upgrade.config.discoverer.DiscoConfigUpgrade.upgradeItem(DiscoConfigUpgrade.java:302)
    at oracle.ias.upgrade.config.discoverer.DiscoConfigUpgrade.doUpgrade(DiscoConfigUpgrade.java:191)
    at oracle.ias.upgrade.UpgradeSupport.doUpgrade(UpgradeSupport.java:1633)
    at oracle.ias.upgrade.gui.UAUpgradeThread.run(UAUpgradeThread.java:493)
    [2009-12-03T14:41:15.144-06:00] [Framework] [ERROR] [UPGAST-00138] [upgrade.Framework] [tid: 13] [ecid: 0000ILMHVhH1nZLiEPsHsS1B6263000004,0] upgrade exception occurred
    [2009-12-03T14:41:15.144-06:00] [Framework] [ERROR] [] [upgrade.Framework] [tid: 13] [ecid: 0000ILMHVhH1nZLiEPsHsS1B6263000004,0] Cause: An unexpected upgrade exception has occurred. Action: See the secondary error message for additional details.
    [2009-12-03T14:41:15.144-06:00] [Framework] [ERROR] [] [upgrade.Framework] [tid: 13] [ecid: 0000ILMHVhH1nZLiEPsHsS1B6263000004,0] UPGCMP-01001: unexpected upgrade exception
    After commenting out the particular preference the upgrade fail with another preference, and finally the discooverer upgraded successfully.
    So now the customer wants to know what could be the reason for the upgrade failure.
    It it because of the preferences are not valid in Discoverer 11g?
    Following is the list of preferences the customer commented out:
    [Administrator]
    ###ShowUserTypeChoice
    ###DefaultUserTypeIsApps
    ###ExcelVersion
    ###[Crosstab] <-- Entire section
    ###Default Title
    ###Title
    ###Axis Label
    ###Cell XGridline
    ###Cell YGridline
    ###Axis Style
    ###[Table] <-- Entire section
    ###Default Title
    ###Title
    ###Cell XGridline
    ###Cell YGridline
    ###Row Headings
    ###Show Annotations
    ###GraphDataModel
    Any help in this regarding is highly appreciated.
    Thanks in advance.
    Regards,
    Padmanabh.

    Hi Padmanabh
    How are you doing the upgrade?
    Personally, because you have to use a new weblogic server anyway I would install a clean 11g and then re-apply any preferences. With that done I would export the entire EUL from 10g and import it into the clean 11g. You'll be up and running in no time at all.
    There is no need to upgrade the EUL as it is the same in both 10g R2 and 11g.
    Best wishes
    Michael

  • Report Queries Rendering Issue

    I'm having real trouble generating RTF reports from Report Queries using BI Publisher. When i copy the url into a button link the output is below
    {\rtf1\ansi\deff0 {\fonttbl {\f0 Arial;} {\f1 Times;} {\f2 Courier New;} {\f3 Helvetica;} } {\colortbl ; \red0\green0\blue0; \red221\green221\blue221; \red239\green239\blue239; } {\info {\title } {\doccomm Generated by Oracle BI Publisher 10.1.3.3.3} } \formshade\viewkind1\viewbksp1\uc1\dntblnsbdb \paperw15840\paperh12240\margt1800\margb1800\margl1320\margr1320\landscape {\header \pard\itap0\qc\sl0\lin120\rin120 \par } {\footer \pard\itap0\qr\sl0\lin120\rin120 {\f3\fs16\cf1 \chpgn}\par \pard\itap0\qc\sl0\lin120\rin480 \par } \trowd \trhdr \trleft12 \clcbpat2\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \pard\intbl\sl0\lin108\rin108 {\f3\fs16\cf1 CONTACT LABEL}\cell \trowd \trhdr \trleft12 \clcbpat2\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \row \trowd \trleft12 \clcbpat3\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \pard\intbl\sl0\lin108\rin108 {\f3\fs16\cf1 Adrian Jones}\line {\f3\fs16\cf1 BRITISH SKY BROADCASTING}\line {\f3\fs16\cf1 GRANT WAY}\line {\f3\fs16\cf1 ISLEWORTH}\line {\f3\fs16\cf1 LONDON MIDDLESEX}\line {\f3\fs16\cf1 SW1E 5JL}\cell \trowd \trleft12 \clcbpat3\clbrdrt\brdrs\brdrw10\brdrcf1\clbrdrb\brdrs\brdrw10\brdrcf1\clbrdrl\brdrs\brdrw10\brdrcf1\clbrdrr\brdrs\brdrw10\brdrcf1 \cellx13252 \row \pard\itap0\sl0\lin120\rin120 {\*\bkmkstart page_total_master0}{\*\bkmkend page_total_master0}{\*\bkmkstart page_total}{\*\bkmkend page_total}\par }
    I expect an attachment box with an RTF file to download. When i use the test functionality within shared components>report queries an RTF is generated. Why when i use the link is the RTF not been rendered. I'm using the latest version of apex with an 11g database. I have had trouble with the access control list before; could this be a problem?
    Any help will appreciated
    Thanks
    Kevin

    It looks like the issue is within the application and not the configuration as the sample application within the same workspace is okay. Does anyone know why i would encounter an error like this. Have i deleted something accidentally or altered a setting?
    Any help will be greatly appreciated.
    Thanks
    Kevin

  • New to java and having issues trying to modify sample code.

    i was trying to edit the following code to add about 10+ more labels and textfields and save the information to the contacts.dat in the code. it currently displays all the fields i entered, but it only saves the first 7 fields information?? not sure why. also i was trying to just line the fields up using a flowlayout but it just errors. anyone have any suggestions?
    <source code below this line>
    ====================START OF CODE ======================
    // cm.java
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    // =========================================================
    // Class: cm
    // This class drives the contact manager. It contains the
    // main method which gets called as soon as this application
    // begins to run.
    // =========================================================
    class cm extends Frame implements ActionListener
    // Container of contact objects (one object per business
    // contact).
    private Vector contacts = new Vector (100);
    // List of names component. (Must specify java.awt in
    // front of List to distinguish the List class in the
    // java.awt package from the List class in the java.util
    // package.)
    private java.awt.List names = new java.awt.List ();
    // delete and edit button components.
    private Button delete;
    private Button edit;
    // Default constructor.
    public cm ()
    // Assign Contact Manager to title bar of frame window.
    super ("Customer Manager Version 0.001 BY Pebkac");
    // Add a listener that responds to window closing
    // events. When this event occurs (by clicking on the
    // close box in the title bar), save contacts and exit.
    addWindowListener (new WindowAdapter ()
    public void windowClosing
    (WindowEvent e)
    saveContacts ();
    System.exit (0);
    // Place an empty label in the north part of the frame
    // window. This is done to correct an AWT positioning
    // problem. (One thing that you'll come to realize as
    // you work with the AWT is that there are lots of bugs.)
    Label l = new Label ();
    add ("North", l);
    // Place the names component in the center part of the
    // frame window.
    add ("Center", names);
    // Create a panel object to hold four buttons.
    Panel p = new Panel ();
    Button b;
    // Add an add button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (b = new Button ("add"));
    b.addActionListener (this);
    // Add a delete button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (delete = new Button ("delete"));
    delete.addActionListener (this);
    // The delete button should be disabled until there is at
    // least one contact to delete.
    delete.setEnabled (false);
    // Add an edit button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (edit = new Button ("edit"));
    edit.addActionListener (this);
    // The edit button should be disabled until there is at
    // least one contact to edit.
    edit.setEnabled (false);
    // Add a quit button to the Panel object and register
    // the current cm object as a listener for button events.
    p.add (b = new Button ("quit"));
    b.addActionListener (this);
    // Add the panel object to the frame window container.
    add ("South", p);
    // Set the background of the frame window container to
    // pink (to give a pleasing effect).
    setBackground (Color.pink);
    // Set the size of the frame window container to 400
    // pixels horizontally by 200 pixels vertically.
    setSize (400, 200);
    // Do not allow the user to resize the frame window.
    setResizable (false);
    // Load all contacts.
    loadContacts ();
    // Make sure that the frame window is visible.
    setVisible (true);
    public void actionPerformed (ActionEvent e)
    if (e.getActionCommand ().equals ("delete"))
    delete ();
    else
    if (e.getActionCommand ().equals ("quit"))
    saveContacts ();
    System.exit (0);
    else
    if (e.getActionCommand ().equals ("add"))
    add ();
    else
    edit ();
    public Insets getInsets ()
    // Return an Insets object that describes the number of
    // pixels to reserve as a border around the edges of the
    // frame window.
    return new Insets (10, 10, 10, 10);
    public static void main (String [] args)
    // Create a new cm object and let it do its thing.
    new cm ();
    private void delete ()
    // Obtain index of selected contact item from the names
    // component.
    int index = names.getSelectedIndex ();
    // If no item was selected, index is -1. We cannot edit
    // a contact if no contact item in the names component was
    // selected - because we would have nothing to work with.
    if (index != -1)
    // Remove the contact item from the names component.
    names.remove (index);
    // Remove the Contact object from the contacts Vector
    // object.
    contacts.remove (index);
    // If there are no more contacts ...
    if (contacts.size () == 0)
    delete.setEnabled (false);
    edit.setEnabled (false);
    else
    // Make sure that the first contact item in the names
    // list is highlighted.
    names.select (0);
    private void add ()
    // Create an add data entry form to enter information
    // for a new contact.
    DataEntryForm def = new DataEntryForm (this, "add");
    // If the bOk Boolean flag is set, this indicates the user
    // exited the form by pressing the Ok button.
    if (def.bOk)
    // Create a Contact object and assign information from
    // the form to its fields.
    Contact temp = new Contact ();
    temp.fname = new String (def.fname.getText ());
    temp.lname = new String (def.lname.getText ());
    temp.haddress = new String (def.haddress.getText ());
    temp.maddress = new String (def.maddress.getText ());
    temp.phone = new String (def.phone.getText ());
    temp.wphone = new String (def.wphone.getText ());
    temp.cphone = new String (def.cphone.getText ());
    temp.email = new String (def.email.getText ());
    temp.bdate = new String (def.bdate.getText ());
    temp.comments = new String (def.comments.getText ());
    // Add a new contact item to the names component.
    names.add (temp.lname + ", " + temp.fname);
    // Add the Contact object to the contacts Vector
    // object.
    contacts.add (temp);
    // Make sure that the delete and edit buttons are
    // enabled.
    delete.setEnabled (true);
    edit.setEnabled (true);
    // Destroy the dialog box.
    def.dispose ();
    // Make sure that the first contact item in the names list
    // is highlighted.
    names.select (0);
    // ===========================================================
    // Load all contacts from contacts.dat into the contacts
    // Vector object. Also, make sure that the last name/first
    // name from each contact is combined into a String object and
    // added into the names component - as a contact item.
    // ===========================================================
    private void loadContacts ()
    FileInputStream fis = null;
    try
    fis = new FileInputStream ("contacts.dat");
    DataInputStream dis = new DataInputStream (fis);
    int nContacts = dis.readInt ();
    for (int i = 0; i < nContacts; i++)
    Contact temp = new Contact ();
    temp.fname = dis.readUTF ();
    temp.lname = dis.readUTF ();
    temp.haddress = dis.readUTF ();
    temp.maddress = dis.readUTF ();
    temp.phone = dis.readUTF ();
    temp.wphone = dis.readUTF ();
    temp.cphone = dis.readUTF ();
    temp.email = dis.readUTF ();
    temp.bdate = dis.readUTF ();
    temp.comments = dis.readUTF ();
    names.add (temp.lname + ", " + temp.fname);
    contacts.add (temp);
    if (nContacts > 0)
    delete.setEnabled (true);
    edit.setEnabled (true);
    catch (Exception e)
    finally
    if (fis != null)
    try
    fis.close ();
    catch (Exception e) {}
    // Make sure that the first contact item in the names list
    // is highlighted.
    names.select (0);
    // ========================================================
    // Save all Contact objects from the contacts Vector object
    // to contacts.dat. The number of contacts are saved as an
    // int to make it easy for loadContacts () to do its job.
    // ========================================================
    private void saveContacts ()
    FileOutputStream fos = null;
    try
    fos = new FileOutputStream ("contacts.dat");
    DataOutputStream dos = new DataOutputStream (fos);
    dos.writeInt (contacts.size ());
    for (int i = 0; i < contacts.size (); i++)
    Contact temp = (Contact) contacts.elementAt (i);
    dos.writeUTF (temp.fname);
    dos.writeUTF (temp.lname);
    dos.writeUTF (temp.haddress);
    dos.writeUTF (temp.maddress);
    dos.writeUTF (temp.phone);
    dos.writeUTF (temp.wphone);
    dos.writeUTF (temp.cphone);
    dos.writeUTF (temp.email);
    dos.writeUTF (temp.bdate);
    dos.writeUTF (temp.comments);
    catch (Exception e)
    MsgBox mb = new MsgBox (this, "CM Error",
    e.toString ());
    mb.dispose ();
    finally
    if (fos != null)
    try
    fos.close ();
    catch (Exception e) {}
    private void edit ()
    // Obtain index of selected contact item from the names
    // component.
    int index = names.getSelectedIndex ();
    // If no item was selected, index is -1. We cannot edit
    // a contact if no contact item in the names component was
    // selected - because we would have nothing to work with.
    if (index != -1)
    // Obtain a reference to the Contact object (from the
    // contacts Vector object) that is associated with the
    // index.
    Contact temp = (Contact) contacts.elementAt (index);
    // Create and display an edit entry form.
    DataEntryForm def = new DataEntryForm (this, "edit",
    temp.fname,
    temp.lname,
    temp.haddress,
    temp.maddress,
    temp.phone,
    temp.wphone,
    temp.cphone,
    temp.email,
    temp.bdate,
    temp.comments);
    // If the user pressed Ok...
    if (def.bOk)
    // edit the contact information in the contacts
    // Vector object.
    temp.fname = new String (def.fname.getText ());
    temp.lname = new String (def.lname.getText ());
    temp.haddress = new String (def.haddress.getText ());
    temp.maddress = new String (def.maddress.getText ());
    temp.phone = new String (def.phone.getText ());
    temp.wphone = new String (def.wphone.getText ());
    temp.cphone = new String (def.cphone.getText ());
    temp.email = new String (def.email.getText ());
    temp.bdate = new String (def.bdate.getText ());
    temp.comments = new String (def.comments.getText ());
    // Make sure the screen reflects the edit.
    names.replaceItem (temp.lname + ", " + temp.fname,
    index);
    // Destroy the dialog box.
    def.dispose ();
    // Make sure that the first contact item in the names
    // list is highlighted.
    names.select (0);
    // ========================================================
    // Class: Contact
    // This class describes the contents of a business contact.
    // ========================================================
    class Contact
    public String fname;
    public String lname;
    public String haddress;
    public String maddress;
    public String phone;
    public String wphone;
    public String cphone;
    public String email;
    public String bdate;
    public String comments;
    // ==========================================================
    // Class: DataEntryForm
    // This class provides a data entry form for entering contact
    // information.
    // ==========================================================
    class DataEntryForm extends Dialog implements ActionListener
    // bOk is a boolean flag. When true, it indicates that
    // the Ok button was pressed to terminate the dialog box
    // (as opposed to the Cancel button).
    public boolean bOk;
    // The following components hold the text that the user
    // entered into the visible text fields.
    public TextField fname;
    public TextField lname;
    public TextField haddress;
    public TextField maddress;
    public TextField phone;
    public TextField wphone;
    public TextField cphone;
    public TextField email;
    public TextField bdate;
    public TextField comments;
    public void actionPerformed (ActionEvent e)
    // If the user pressed the Ok button, indicate this
    // by assigning true to bOk.
    if (e.getActionCommand ().equals ("Ok"))
    bOk = true;
    // Destroy the dialog box and return to the point
    // just after the creation of the DataEntryForm object.
    dispose ();
    public DataEntryForm (Frame parent, String title)
    // Call the other constructor. The current constructor
    // is used for add operations. The other constructor
    // is used for edit operations.
    this (parent, title, "", "", "", "", "", "", "", "", "", "");
    public DataEntryForm (Frame parent, String title,
    String fname, String lname,
    String haddress, String maddress,
    String phone,String wphone,
    String cphone,String email,
    String bdate,String comments)
    // Initialize the superclass layer.
    super (parent, title, true);
    // Choose a grid bag layout so that components can be more
    // accurately positioned. (It looks nicer.)
    setLayout (new GridBagLayout ());
    // Add appropriate first name, last name, phone, wphone, and
    // email components to the current DataEntryForm container.
    // (Remember, DataEntryForm is a subclass of Dialog.
    // Dialog is a container. Therefore, DataEntryForm
    // inherits the ability to be a container.)
    addComponent (this, new Label ("First Name: "),0, 0, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.fname = new TextField (20);
    addComponent (this, this.fname, 1, 0, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.fname.setText (fname);
    addComponent (this, new Label ("Last Name: "), 0, 1, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.lname = new TextField (20);
    addComponent (this, this.lname, 1, 1, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.lname.setText (lname);
    addComponent (this, new Label ("Home Address: "), 0, 2, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.haddress = new TextField (20);
    addComponent (this, this.haddress, 1, 2, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.haddress.setText (haddress);
    addComponent (this, new Label ("Mailing Address: "), 0, 3, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.maddress = new TextField (20);
    addComponent (this, this.maddress, 1, 3, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.maddress.setText (maddress);
    addComponent (this, new Label ("Home Number: "), 0, 4, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.phone = new TextField (20);
    addComponent (this, this.phone, 1, 4, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.phone.setText (phone);
    addComponent (this, new Label ("Work Number: "), 0, 5, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.wphone = new TextField (20);
    addComponent (this, this.wphone, 1, 5, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    if (title.equals ("edit"))
    this.wphone.setText (wphone);
    addComponent (this, new Label ("Cell Number: "), 0, 6, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.cphone = new TextField (20);
    addComponent (this, this.cphone, 1, 6, 1, 1,
    GridBagConstraints.WEST,
    GridBagConstraints.WEST);
    addComponent (this, new Label ("Email Address: "), 0, 7, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.email = new TextField (20);
    addComponent (this, this.email, 1, 7, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label ("Birth Date: "), 0, 8, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.bdate = new TextField (20);
    addComponent (this, this.bdate, 1, 8, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label ("Comments: "), 2, 0, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    this.comments = new TextField (20);
    addComponent (this, this.comments, 2, 1, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label (""), 0, 9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    addComponent (this, new Label (""), 1, 9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.WEST);
    Button b;
    // Add an Ok button to this container.
    addComponent (this, b = new Button ("Ok"), 0, -9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    b.addActionListener (this);
    // Add a Cancel button to this container.
    addComponent (this, b = new Button ("Cancel"), 1, -9, 1, 1,
    GridBagConstraints.NONE,
    GridBagConstraints.CENTER);
    b.addActionListener (this);
    // Set the background of the frame window container to
    // pink (to give a pleasing effect).
    setBackground (Color.pink);
    // Set the size of the dialog window to 250 pixels
    // horizontally by 200 pixels vertically.
    setSize (450, 500);
    // Do not allow users to resize the dialog window.
    setResizable (false);
    // Make sure that the dialog window is visible.
    setVisible (true);
    private void addComponent (Container con, Component com,
    int gridx, int gridy,
    int gridw, int gridh, int fill,
    int anchor)
    // Get the current layout manager. It is assumed to
    // be a GridBagLayout object.
    LayoutManager lm = con.getLayout ();
    // Create a GridBagConstraints object to make it
    // possible to customize component positioning.
    GridBagConstraints gbc = new GridBagConstraints ();
    // Assign the x and y grid positions.
    gbc.gridx = gridx;
    gbc.gridy = gridy;
    // Assign the number of grid blocks horizontally and
    // vertically that are occupied by the component.
    gbc.gridwidth = gridw;
    gbc.gridheight = gridh;
    // Specify the component's resize policy (fill) and
    // the direction in which the component is positioned
    // when its size is smaller than available space (anchor).
    gbc.fill = fill;
    gbc.anchor = anchor;
    // Set the new constraints that the grid bag layout
    // manager will use.
    ((GridBagLayout) lm).setConstraints (com, gbc);
    // Add the component to the container.
    con.add (com);
    // ===========================================================
    // Class: MsgBox
    // This class displays a message box to the user. The message
    // is usually an error message. The user must press the Ok
    // button to terminate the message box.
    // ===========================================================
    class MsgBox extends Dialog implements ActionListener
    public void actionPerformed (ActionEvent e)
    // Terminate the dialog box in response to the user
    // pressing the Ok button.
    dispose ();
    public MsgBox (Frame parent, String title, String msg)
    // Initialize the superclass layer.
    super (parent, title, true);
    // Store the msg argument in a Label object and add
    // this object to the center part of the dialog window.
    Label l = new Label (msg);
    add ("Center", l);
    // Create a Button object and add it to the south part
    // of the dialog window.
    Button b = new Button ("Ok");
    add ("South", b);
    // Make the current object a listener to events that
    // occur as a result of the user pressing the Ok
    // button.
    b.addActionListener (this);
    // Make sure that the Ok button has the focus.
    b.requestFocus ();
    // Do not allow users to resize the dialog window.
    setResizable (false);
    // Allow the layout manager to choose an appropriate
    // size for the dialog window.
    pack ();
    // Make sure that the dialog window is visible.
    setVisible (true);
    ====================END OF CODE =======================

    You should first start by formatting the code before
    posting. I lost my interest as I browsed thorugh the
    code.
    Read here -
    http://forum.java.sun.com/help.jspa?sec=formatting
    ...and its way too much code to expect anyone to read. Post a short excerpt of the part you are having trouble with.

  • How to left align the signature field of dynamic pdf

    Hi,
    I am working on dynamic (interactive) pdf and using Adobe LiveCycle Designer (Adobe Acrobat 9 Pro). My problem is that I cannot align left the signature field of my pdf. I can align left, right and center for textboxs and cannot just do that for signature field. When I couldn't do that from GUI I went to XML code for signature and tried this:
                       <para hAlign="left"/>  but it still didn't work. Ideally it should have worked.
    I would really appreciate if you could help me.
    Regards,
    Kiran

    Use skinning. Use the following skin selector:
    af|panelFormLayout::label-cell {text-align: left; }If you want to apply it only on particular panelFormLayout, then set a custom styleClass on the given <af:panelFormLayout> tag (for example, <af:panelFormLayout styleClass="MyStyleClass" ... >) and use a styleClass-dependent skin selector:
    af|panelFormLayout.MyStyleClass::label-cell {text-align: left; }Adding a custom skin is easy. If you do not know how, see this topic in the documentation: 20.2 Applying Custom Skins to Applications
    Dimitar

  • Want to apply Css to Fields Inside PanelGroupLayout

    I have ADF Fusion Web Application with Jdeveloper 11g
    I have customize skin with my css file
    The Problem i face is that
    All the fields inside panelFormLayout works good with the css i use but when i put them inside panelGroupLayout they differ completely
    This is my css file
    af|panelFormLayout
             font-family: Arial, Helvetica, sans-serif;
          font-size: 12px;
            font-smooth: auto;
            border:solid 1px #6691bb;
            text-align: right;
            background: #f3f9ff;
            font-weight: bold;
    af|panelFormLayout::label-cell 
            font-family: Arial, Helvetica, sans-serif;
            font-size: 12px;
            text-align: right;
            color: #333;
            font-weight: bold;
    }i want to apply this style to all fields insied panelGroupLayout how to make this

    Hi,
    use
    af|panelFormLayout af|inputText { ... }
    if you need to apply this to other components, use the following pattern
    af|panelFormLayout af|<component>{ ... }
    Frank

  • Solution Import Failed

    I am trying to import a managed solution in a CRM, but following error occurs:
    The solution cannot be imported because the queue entity contains a Ribbon definition, which is not supported for that entity. Remove the RibbonDiffXml node from the entity definition and try to import again
    When I import the solution it doesn't give any error and completes the whole process, but at the end of import the whole import role backs and above mentioned error occurs.
    Following is the screenshot of the error:
    and following is the error message in log file:
    Following above error message, I have made change in customizations.xml file and removed the <RibbonDiffXml> tag and then re-produced the solution. But this time I got a different error related to Dependency Calculation, screenshot is as follows:
    Log in above case doesn't give any specific error, it just give a general error saying that error occurred.
    In both cases the solution import completed but in the end import got rolled back.
    Kindly help with this issue, it is very critical.

    Thank you Saad.
    Following is the XML definition of the Queue entity in my Development CRM:
    <Entity>
    <Name LocalizedName="Queue" OriginalName="Queue">Queue</Name>
    <ObjectTypeCode>2020</ObjectTypeCode>
    <FormXml>
    <forms type="main">
    <systemform>
    <formid>{a96ce25b-0ba6-4862-a0df-537b9c4e0006}</formid>
    <IntroducedVersion>1.0</IntroducedVersion>
    <FormPresentation>0</FormPresentation>
    <FormActivationState>1</FormActivationState>
    <form>
    <tabs>
    <tab name="general" verticallayout="true" id="{6db25522-e754-4585-a071-3c151552131f}" IsUserDefined="0" ordinalvalue="0">
    <columns>
    <column width="100%" id="0">
    <sections>
    <section name="queue information" showlabel="false" showbar="false" id="{a6b7da11-e32c-4759-b349-af7b46c1cb9f}" IsUserDefined="0" ordinalvalue="0">
    <rows>
    <row>
    <cell id="{9687b1b4-f340-42d9-a315-bd2929839614}" ordinalvalue="10005" solutionaction="Modified" />
    </row>
    <row>
    <cell colspan="2" showlabel="true" rowspan="5" id="{1611dcc3-67fe-4db9-8799-d1f582d7caac}" ordinalvalue="10007" solutionaction="Modified" />
    </row>
    <row>
    <cell id="{54c36cab-341a-3a8c-97c9-20cc695d7d39}" showlabel="true" locklevel="0" ordinalvalue="10001" solutionaction="Added">
    <labels>
    <label description="" languagecode="1033" />
    </labels>
    <control id="new_managerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="new_managerid" disabled="false" />
    </cell>
    </row>
    <row>
    <cell id="{32d58810-0a70-03b0-aac2-21044e2de006}" showlabel="true" locklevel="0" ordinalvalue="10003" solutionaction="Added">
    <labels>
    <label description="" languagecode="1033" />
    </labels>
    <control id="new_hod" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="new_hod" disabled="false" />
    </cell>
    <cell id="{7627244d-1258-4982-813c-940cde51bb47}" showlabel="true" locklevel="0" ordinalvalue="20004" solutionaction="Added">
    <labels>
    <label description="" languagecode="1033" />
    </labels>
    <control id="new_director" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="new_director" disabled="false" />
    </cell>
    </row>
    <row>
    <cell id="{a1614947-d7cd-055a-8b8a-281d73444b7a}" showlabel="false" ordinalvalue="20006" solutionaction="Added">
    <labels>
    <label description="" languagecode="1033" />
    </labels>
    </cell>
    </row>
    </rows>
    </section>
    </sections>
    </column>
    </columns>
    </tab>
    </tabs>
    <Navigation solutionaction="Added">
    <NavBar></NavBar>
    <NavBarAreas>
    <NavBarArea Id="Info">
    <Titles>
    <Title LCID="1033" Text="Common" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="Sales">
    <Titles>
    <Title LCID="1033" Text="Sales" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="Service">
    <Titles>
    <Title LCID="1033" Text="Service" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="Marketing">
    <Titles>
    <Title LCID="1033" Text="Marketing" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="ProcessCenter">
    <Titles>
    <Title LCID="1033" Text="Processes" />
    </Titles>
    </NavBarArea>
    </NavBarAreas>
    </Navigation>
    </form>
    <LocalizedNames>
    <LocalizedName description="Information" languagecode="1033" />
    </LocalizedNames>
    <Descriptions>
    <Description description="A form for this entity." languagecode="1033" />
    </Descriptions>
    </systemform>
    </forms>
    </FormXml>
    <RibbonDiffXml>
    <CustomActions />
    <Templates>
    <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
    </Templates>
    <CommandDefinitions />
    <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules />
    <EnableRules />
    </RuleDefinitions>
    <LocLabels />
    </RibbonDiffXml>
    </Entity>
    and Following is the defintion of Queue Entity in the Production CRM, where I am importing my solution:
    <Entity>
    <Name LocalizedName="Queue" OriginalName="Queue">Queue</Name>
    <ObjectTypeCode>2020</ObjectTypeCode>
    <FormXml>
    <forms type="main">
    <systemform>
    <formid>{a96ce25b-0ba6-4862-a0df-537b9c4e0006}</formid>
    <IntroducedVersion>1.0</IntroducedVersion>
    <FormPresentation>0</FormPresentation>
    <FormActivationState>1</FormActivationState>
    <form>
    <hiddencontrols>
    <data id="emailrouteraccessapproval" datafieldname="emailrouteraccessapproval" classid="{5546E6CD-394C-4bee-94A8-4425E17EF6C6}" />
    <data id="outgoingemaildeliverymethod" datafieldname="outgoingemaildeliverymethod" classid="{5546E6CD-394C-4bee-94A8-4425E17EF6C6}" />
    <data id="incomingemaildeliverymethod" datafieldname="incomingemaildeliverymethod" classid="{5546E6CD-394C-4bee-94A8-4425E17EF6C6}" />
    </hiddencontrols>
    <tabs>
    <tab name="general" verticallayout="true" id="{6db25522-e754-4585-a071-3c151552131f}" IsUserDefined="0">
    <labels>
    <label description="General" languagecode="1033" />
    </labels>
    <columns>
    <column width="100%">
    <sections>
    <section name="queue information" showlabel="false" showbar="false" id="{a6b7da11-e32c-4759-b349-af7b46c1cb9f}" IsUserDefined="0">
    <labels>
    <label description="Queue Information" languagecode="1033" />
    </labels>
    <rows>
    <row>
    <cell colspan="2" id="{255991d3-3d7c-488d-ab5f-59459ecd6c29}">
    <labels>
    <label description="Queue Name" languagecode="1033" />
    </labels>
    <control id="name" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="name" />
    </cell>
    </row>
    <row>
    <cell id="{54c36cab-341a-3a8c-97c9-20cc695d7d39}" showlabel="true" locklevel="0">
    <labels>
    <label description="Manager" languagecode="1033" />
    </labels>
    <control id="new_managerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="new_managerid" disabled="false" />
    </cell>
    <cell id="{a66f8b6d-aed2-4449-9eaf-6debbf4b78be}">
    <labels>
    <label description="Owner" languagecode="1033" />
    </labels>
    <control id="ownerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ownerid" />
    </cell>
    </row>
    <row>
    <cell id="{32d58810-0a70-03b0-aac2-21044e2de006}" showlabel="true" locklevel="0">
    <labels>
    <label description="HOD" languagecode="1033" />
    </labels>
    <control id="new_hod" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="new_hod" disabled="false" />
    </cell>
    <cell id="{7627244d-1258-4982-813c-940cde51bb47}" showlabel="true" locklevel="0">
    <labels>
    <label description="Director" languagecode="1033" />
    </labels>
    <control id="new_director" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="new_director" disabled="false" />
    </cell>
    </row>
    <row>
    <cell id="{9687b1b4-f340-42d9-a315-bd2929839614}">
    <labels>
    <label description="Incoming Email" languagecode="1033" />
    </labels>
    <control id="emailaddress" classid="{ADA2203E-B4CD-49be-9DDF-234642B43B52}" datafieldname="emailaddress" />
    </cell>
    <cell id="{a1614947-d7cd-055a-8b8a-281d73444b7a}" showlabel="false">
    <labels>
    <label description="" languagecode="1033" />
    </labels>
    </cell>
    </row>
    <row>
    <cell colspan="2" showlabel="true" rowspan="5" id="{1611dcc3-67fe-4db9-8799-d1f582d7caac}">
    <labels>
    <label description="Description" languagecode="1033" />
    </labels>
    <control id="description" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="description" />
    </cell>
    </row>
    <row />
    <row />
    <row />
    <row />
    </rows>
    </section>
    <section name="incoming email" showlabel="true" showbar="true" locklevel="0" id="{65cea1b0-5dfa-4e0b-8b01-e6f89d7abdc8}" IsUserDefined="0">
    <labels>
    <label description="Incoming Email" languagecode="1033" />
    </labels>
    <rows>
    <row>
    <cell id="{ab457702-b8d1-458e-9c85-dfd80b7dd74f}">
    <labels>
    <label description="Convert to email activities:" languagecode="1033" />
    </labels>
    <control id="incomingemailfilteringmethod" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" datafieldname="incomingemailfilteringmethod" disabled="false" />
    </cell>
    </row>
    </rows>
    </section>
    <section name="email configuration" showlabel="true" showbar="true" locklevel="0" id="{9DE88AB0-DF45-463c-A91D-E4F9AF70B79D}" IsUserDefined="0">
    <labels>
    <label description="Email Configuration" languagecode="1033" />
    </labels>
    <rows>
    <row>
    <cell id="{e582170e-3060-a166-a6ce-b00d8a7e06b5}" showlabel="true" locklevel="0">
    <labels>
    <label description="Mailbox" languagecode="1033" />
    </labels>
    <control id="defaultmailbox" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="defaultmailbox" disabled="false" />
    </cell>
    </row>
    </rows>
    </section>
    </sections>
    </column>
    </columns>
    </tab>
    </tabs>
    <Navigation>
    <NavBar></NavBar>
    <NavBarAreas>
    <NavBarArea Id="Info">
    <Titles>
    <Title LCID="1033" Text="Common" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="Sales">
    <Titles>
    <Title LCID="1033" Text="Sales" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="Service">
    <Titles>
    <Title LCID="1033" Text="Service" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="Marketing">
    <Titles>
    <Title LCID="1033" Text="Marketing" />
    </Titles>
    </NavBarArea>
    <NavBarArea Id="ProcessCenter">
    <Titles>
    <Title LCID="1033" Text="Processes" />
    </Titles>
    </NavBarArea>
    </NavBarAreas>
    </Navigation>
    </form>
    <LocalizedNames>
    <LocalizedName description="Information" languagecode="1033" />
    </LocalizedNames>
    <Descriptions>
    <Description description="A form for this entity." languagecode="1033" />
    </Descriptions>
    </systemform>
    </forms>
    </FormXml>
    <SavedQueries>
    <savedqueries>
    <savedquery>
    <isquickfindquery>0</isquickfindquery>
    <isprivate>0</isprivate>
    <isdefault>1</isdefault>
    <returnedtypecode>2020</returnedtypecode>
    <savedqueryid>{3a8191c3-d94e-4fd4-af8b-5bf29568a563}</savedqueryid>
    <queryapi></queryapi>
    <layoutxml>
    <grid name="resultset" object="2020" jump="name" select="1" icon="1" preview="1">
    <row name="result" id="queueid">
    <cell name="name" width="300" />
    <cell name="emailaddress" width="200" />
    </row>
    </grid>
    </layoutxml>
    <querytype>0</querytype>
    <fetchxml>
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
    <entity name="queue">
    <attribute name="name" />
    <attribute name="emailaddress" />
    <order attribute="name" descending="false" />
    <filter type="and">
    <condition attribute="queueid" operator="eq" uiname="Customer Service" uitype="queue" value="{E59224C6-6379-E411-80C3-00155D6FA100}" />
    <condition attribute="statecode" operator="eq" value="0" />
    </filter>
    <attribute name="queueid" />
    </entity>
    </fetch>
    </fetchxml>
    <IntroducedVersion>5.0.0.0</IntroducedVersion>
    <LocalizedNames>
    <LocalizedName description="My Active Queues" languagecode="1033" />
    </LocalizedNames>
    </savedquery>
    </savedqueries>
    </SavedQueries>
    <RibbonDiffXml>
    <RibbonNotSupported />
    </RibbonDiffXml>
    </Entity>
    They seem different as per code. Kindly help me sort out how to resolve this issue.

  • ADF11g: methodAction being invoked multiple times without control...

    Hi,
    I have a page that displays different data took from a single data control.
    This datacontrol is invoked by a methodAction, and the resulting bean contains both plain attributes and List of objects.
    I created my page with JDev 11.1.1.3.0, using drag and drop.
    What happens (seeing the log files) is that the page calls multiple times the methodAction instead of "recognizing" it only needs to call it 1 time to have all the data bound to the page,
    and of course the page does not work. I don't see the data even if the dataControls retrieve it.
    Here is my code:
    Page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
      <c:set var="viewcontrollerBundle"
             value="#{adfBundle['sop.view.ViewControllerBundle']}"/>
      <af:pageTemplate viewId="/WEB-INF/templates/dettagliOggettoCoinvoltoTemplate.jspx"
                       id="pt1">
        <f:attribute name="dataOraUltimoAggiornamento"
                     value="#{pageFlowScope.stazione.currentDateTime}"/>
        <f:attribute name="drillDownTab1Title" value="Treni In Arrivo"/>
        <f:facet name="overviewOggettoCoinvoltoArea">
          <af:panelGroupLayout id="pgl3" valign="middle" halign="left"
                               layout="horizontal">
            <!-- rendered="#{bindings._stazione.inputValue != null}"-->
            <af:panelGroupLayout id="pgl5" layout="vertical">
              <af:panelBox text="Info Stazione" id="pb1">
                <af:panelGroupLayout id="pgl8" layout="vertical">
                  <af:panelLabelAndMessage label="Stazione:" id="plam1">
                    <af:outputFormatted value="#{bindings._stazione.inputValue}"
                                        id="of1"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Situazione:" id="plam2">
                    <af:outputFormatted value="#{bindings.situazione.inputValue}"
                                        id="of2"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
              <af:panelBox text="Info TVM" id="pb3">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl10" layout="vertical">
                  <af:panelLabelAndMessage label="Numero TVM:" id="plam10">
                    <af:outputFormatted value="#{bindings.numTVM.inputValue}"
                                        id="of10"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Allarmi TVM:" id="plam11">
                    <af:outputFormatted value="#{bindings.numAllarmiTVM.inputValue}"
                                        id="of11"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl6" layout="vertical">
              <af:panelBox text="Info RFI" id="pb2">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl9" layout="vertical">
                  <af:panelLabelAndMessage label="Tel RFI:" id="plam6">
                    <af:outputFormatted value="#{bindings.telRFI.inputValue}"
                                        id="of6"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Cell RFI:" id="plam3">
                    <af:outputFormatted value="#{bindings.cellRFI.inputValue}"
                                        id="of3"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Fax RFI:" id="plam5">
                    <af:outputFormatted value="#{bindings.faxRFI.inputValue}"
                                        id="of5"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Email RFI:" id="plam4">
                    <af:outputFormatted value="#{bindings.emailRFI.inputValue}"
                                        id="of4"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Tel PRM:" id="plam7">
                    <af:outputFormatted value="#{bindings.telPRM.inputValue}"
                                        id="of7"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Fax PRM:" id="plam8">
                    <af:outputFormatted value="#{bindings.faxPRM.inputValue}"
                                        id="of8"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Email PRM:" id="plam9">
                    <af:outputFormatted value="#{bindings.emailPRM.inputValue}"
                                        id="of9"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl4" layout="vertical">
              <af:panelBox text="News" id="pb8">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl16">
                  <af:panelFormLayout id="pfl1">
                    <af:iterator id="i1" value="#{bindings.result1.collectionModel}"
                                 var="current">
                      <af:panelLabelAndMessage label="Titolo" id="plam15">
                        <af:outputFormatted value="#{current.title}" id="of15"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Autore" id="plam14">
                        <af:outputFormatted value="#{current.author}" id="of12"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Data Pubblicazione"
                                               id="plam12">
                        <af:outputFormatted value="#{current.pubDate}" id="of14">
                          <af:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
                        </af:outputFormatted>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Contenuto" id="plam13">
                        <af:outputText escape="false"
                                       value="#{current.description.value}"
                                       id="ot13"/>
                      </af:panelLabelAndMessage>
                    </af:iterator>
                  </af:panelFormLayout>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="drillDownView1Area">
          <af:panelGroupLayout id="pgl12">
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="drillDownView2Area">
          <af:panelGroupLayout id="pgl13">
          </af:panelGroupLayout>
        </f:facet>
        <f:attribute name="drillDownTab2Title" value="Treni In partenza"/>
        <f:attribute name="drillDownTab3Title" value="Personale"/>
        <f:attribute name="drillDownTab4Rendered" value="true"/>
        <f:attribute name="drillDownTab4Title" value="Allarmi"/>
        <f:attribute name="overviewOggettoCoinvoltoAreaTitle"
                     value="Agenda Servizio Stazione"/>
        <f:facet name="drillDownView4Area">
      /af:table>
          -->
        </f:facet>
        <f:facet name="drillDownView3Area">
        </f:facet>
      </af:pageTemplate>
    </jsp:root>PageDef:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.56.60"
                    id="visualizzazioneDettagliStazionePageDef" Package="fragments">
      <parameters/>
    <executables>
      <variableIterator id="variables"/>
      <methodIterator Binds="generaAgendaServizioStazione.result"
                      DataControl="StazioniServicePojo" RangeSize="25"
                      BeanClass="sop.model.beans.agendaServizioStazione.BeanAgendaServizioStazione"
                      id="generaAgendaServizioStazioneIterator"/>
      <accessorIterator MasterBinding="generaAgendaServizioStazioneIterator"
                        Binds="datiStazione" RangeSize="25"
                        DataControl="StazioniServicePojo"
                        BeanClass="sop.model.beans.agendaServizioStazione.BeanStazione"
                        id="datiStazioneIterator"/>
      <accessorIterator MasterBinding="datiStazioneIterator" Binds="infoTVM"
                        RangeSize="25" DataControl="StazioniServicePojo"
                        BeanClass="sop.model.stazioniService.InfoTVM"
                        id="infoTVMIterator"/>
      <accessorIterator MasterBinding="datiStazioneIterator" Binds="infoRFI"
                        RangeSize="10" DataControl="StazioniServicePojo"
                        BeanClass="sop.model.stazioniService.InfoRFI"
                        id="infoRFIIterator"/>
      <methodIterator id="readRSSStazioneIter" Binds="readRSSStazione.result"
                      DataControl="RssServicePojo" RangeSize="25"
                      BeanClass="com.sun.syndication.feed.rss.Item"/>
    </executables>
    <bindings>
      <methodAction id="generaAgendaServizioStazione" RequiresUpdateModel="true"
                    Action="invokeMethod" MethodName="generaAgendaServizioStazione"
                    IsViewObjectMethod="false" DataControl="StazioniServicePojo"
                    InstanceName="StazioniServicePojo.dataProvider"
                    ReturnName="StazioniServicePojo.methodResults.generaAgendaServizioStazione_StazioniServicePojo_dataProvider_generaAgendaServizioStazione_result">
       <NamedData NDName="locationCode"
                  NDValue="#{pageFlowScope.stazione.stazione.locationCode}"
                  NDType="java.lang.String"/>
       <NamedData NDName="dataRichiesta"
                  NDValue="#{pageFlowScope.stazione.dataRichiesta}"
                  NDType="java.util.Calendar"/>
      </methodAction>
      <attributeValues IterBinding="datiStazioneIterator" id="situazione">
       <AttrNames>
        <Item Value="situazione"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="datiStazioneIterator" id="_stazione">
       <AttrNames>
        <Item Value="_stazione"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoTVMIterator" id="numTVM">
       <AttrNames>
        <Item Value="numTVM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoTVMIterator" id="numAllarmiTVM">
       <AttrNames>
        <Item Value="numAllarmiTVM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="telRFI">
       <AttrNames>
        <Item Value="telRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="faxRFI">
       <AttrNames>
        <Item Value="faxRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="cellRFI">
       <AttrNames>
        <Item Value="cellRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="emailRFI">
       <AttrNames>
        <Item Value="emailRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="telPRM">
       <AttrNames>
        <Item Value="telPRM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="faxPRM">
       <AttrNames>
        <Item Value="faxPRM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="emailPRM">
       <AttrNames>
        <Item Value="emailPRM"/>
       </AttrNames>
      </attributeValues>
      <methodAction id="readRSSStazione" InstanceName="RssServicePojo.dataProvider"
                    DataControl="RssServicePojo" RequiresUpdateModel="true"
                    Action="invokeMethod" MethodName="readRSSStazione"
                    IsViewObjectMethod="false"
                    ReturnName="RssServicePojo.methodResults.readRSSStazione_RssServicePojo_dataProvider_readRSSStazione_result">
       <NamedData NDName="stazioneLocationCode"
                  NDValue="#{pageFlowScope.stazione.stazione.locationCode}"
                  NDType="java.lang.String"/>
      </methodAction>
      <tree IterBinding="readRSSStazioneIter" id="result1">
       <nodeDefinition DefName="com.sun.syndication.feed.rss.Item" Name="result10">
        <AttrNames>
         <Item Value="title"/>
         <Item Value="author"/>
         <Item Value="uri"/>
         <Item Value="pubDate"/>
        </AttrNames>
        <Accessors>
         <Item Value="description"/>
        </Accessors>
       </nodeDefinition>
       <nodeDefinition DefName="com.sun.syndication.feed.rss.Description"
                       Name="result11">
        <AttrNames>
         <Item Value="type"/>
         <Item Value="value"/>
        </AttrNames>
       </nodeDefinition>
      </tree>
    </bindings>
    </pageDefinition>The datacontrols are standard pojo data controls.
    Can someone point me out to the solution ? Why methodAction is called multiple times ?

    Does someone has any clues ?!

  • Strange JTable behaviour - everything is highlighted

    Hello all,
    im experiencing some strange JTable behaviour, and im not so sure why. When i run my program, the JTable appears, but all the cells are highlighted in advance. Also, i can now only select one cell at a time. I have set myTable.setSelectionModeListSelectionModel.SINGLE_INTERVAL_SELECTION);  myTable.setCellSelectionEnabled(true);and my renderer code is below. I call the renderer by using the setDefaultRenderer method with(Object.class,myRenderer).
    I have also changed isCellEditable to return true. If i dont use Object.class, and try to use my own custom class, the JTable is not all highlighted, but it doesnt seem to use myRenderer, and when i click on the header of Column A, all cells from column B and beyond become highlight, which is not normal behaviour. I thought the colum you selected should be highlighted.
    Sorry for the long post, i hope the above makes sense...this is really quite bizzare, and im not so sure why this is happening. Thanks for any advice you can give, regards, Rupz
    import javax.swing.*;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.border.*;
    import java.awt.Component;
    import java.awt.Color;
    import java.awt.Rectangle;
    import java.util.*;
    import java.awt.*;
    public class MyTableCellRenderer extends DefaultTableCellRenderer{
         private Font cellFont;
         private LineBorder  selectBorder;
        private EmptyBorder emptyBorder;
         public MyTableCellRenderer() {
              super();
              setOpaque(true);
              emptyBorder  = new EmptyBorder(1, 2, 1, 2);
              cellFont = new Font("Times", Font.PLAIN, 10);
              setFont(cellFont);
              selectBorder = new LineBorder(Color.red);
         private boolean isHeaderCell(int row, int column){return column == 0;}
         public Component getTableCellRendererComponent (JTable myTable, Object value, boolean isSelected, boolean hasFocus, int row, int column){
              //super.getTableCellRendererComponent(myTable, value, isSelected, hasFocus,row, column);
              if (isSelected){
                   super.setForeground(myTable.getSelectionForeground());
                   super.setBackground(myTable.getSelectionBackground());
                   setBorder(selectBorder);
              else{
                   super.setForeground(myTable.getSelectionForeground());
                   super.setBackground(myTable.getSelectionBackground());
                   setBorder(emptyBorder);
         if (hasFocus) {
              setBorder(selectBorder);
              if (myTable.isCellEditable(row,column)) {
                   super.setForeground(UIManager.getColor("Table.focusCellForeground"));
                   super.setBackground(UIManager.getColor("Table.focusCellBackground"));
         else {setBorder(noFocusBorder);}
         setValue(value, isSelected, hasFocus, row, column);
    //      Color bDis = getBackground();
    //      boolean colourEquals = (bDis != null) && (bDis.equals(myTable.getBackground()) ) & myTable.isOpaque();
    //      setOpaque (!colourEquals);
         return this;
         public void setValue (Object value, boolean hasFocus, boolean isSelected, int row, int column){
              if (value instanceof myCell){
                   myCell foo = (myCell)value;
                   Object data = foo.getValue(row,column);
                   if (isHeaderCell(row, column)) {
                    //label cells are center aligned
                        setHorizontalAlignment(JTextField.CENTER);
                       }else {
                              if (data instanceof Number) {
                                  //numbers are right justified
                            setHorizontalAlignment(JTextField.RIGHT);
                              }else {
                                  //everything else is left justified
                            setHorizontalAlignment(JTextField.LEFT);
                          //value to display in table
                       setText((data == null) ? "" : data.toString());
               else {
                          //not cell object so render with toString of that object
                          setText((value == null) ? "" : value.toString());

    Hi VV!
    thanks for the reply - now the table isnt all highlight when loaded, but as for cell celection..thats a different matter. I did have myTable.setCellSelectionEnabled(true); but no, the cell behaviour is really, eally weird, quite hard to explain, but here goes.
    If i try to select cell D1 and D2 - D1 is selected, D2, E2,F2 and so on become selected. If i try to add D3 to the mix, the entire row 3 is selected, and as soon as i let go of the mouse button, the entire table except row 1 gets selected. really really weird. Below is my tableModel and what i do to the table. Thanks for your help,
    regards
    Rupz
    myTable.setModel(new myTableModel(this,40,40));
         // Create a row-header to display row numbers.
         // This row-header is made of labels whose Borders,
         // Foregrounds, Backgrounds, and Fonts must be
         // the one used for the table column headers.
         // Also ensure that the row-header labels and the table
         // rows have the same height.
         numRows = myTable.getColumnCount();
         numCols = myTable.getRowCount();
         TableColumn       aColumn   = myTable.getColumnModel().getColumn(0);
         TableCellRenderer aRenderer = myTable.getTableHeader().getDefaultRenderer();
         Component aComponent = aRenderer.getTableCellRendererComponent(myTable, aColumn.getHeaderValue(), false, false, -1, 0);
         Font  aFont       = aComponent.getFont();
         Color aBackground = aComponent.getBackground();
         Color aForeground = aComponent.getForeground();
         Border      border  = (Border)UIManager.getDefaults().get("TableHeader.cellBorder");
         FontMetrics metrics = getFontMetrics(cellFont);
          * Creating a panel to be used as the row header.
          * Since I'm not using any LayoutManager,
          * a call to setPreferredSize().
         JPanel pnl = new JPanel((LayoutManager)null);
         Dimension dim = new Dimension( 40,  rowHeight*numRows);
         pnl.setPreferredSize(dim);
         // Adding the row header labels
         dim.height = rowHeight;
         for (int ii=0; ii<numRows; ii++) {
           JLabel lbl = new JLabel(Integer.toString(ii+1), SwingConstants.CENTER);
           lbl.setFont(aFont);
           lbl.setBackground(aBackground);
           lbl.setForeground(aForeground);
           lbl.setBorder(border);
           lbl.setBounds(0, ii*dim.height, dim.width, dim.height);
           pnl.add(lbl);
         JViewport vp = new JViewport();
         dim.height = rowHeight*numRows;
         vp.setViewSize(dim);
         vp.setView(pnl);
         // Set resize policy and make sure
         // the table's size is tailored
         // as soon as it gets drawn.
         myTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
         Dimension dimScpViewport = myTable.getPreferredScrollableViewportSize();
         if (numRows>30) dimScpViewport.height = 30*rowHeight;
         else           dimScpViewport.height  = numRows*rowHeight;
         if (numCols>15)
           dimScpViewport.width = 15*myTable.getColumnModel().getTotalColumnWidth()/numCols;
         else
           dimScpViewport.width = myTable.getColumnModel().getTotalColumnWidth();
         myTable.setPreferredScrollableViewportSize(dimScpViewport);
         myTable.repaint();
    And the table model
    public class myTableModel extends DefaultTableModel {
         private MySpread mySpreadsheet;
         public myTableModel (MySpread aSpreadsheet){
              super();
              mySpreadsheet = aSpreadsheet;
         public myTableModel (MySpread aSpreadsheet, int rows,int cols){
              super(rows,cols);
    //                 for(int x = 0; x < rows; x++) {
    //                      myCell temp = new myCell(new Integer(x+1));
    //                  super.setValueAt(temp, x, 0);
            for(int x =0 ; x < rows; x++)
             for (int y = 0; y < cols; y++)
              // we initialize it here
              super.setValueAt(new myCell(rows,cols,("")),x,y);
         mySpreadsheet = aSpreadsheet;
         public boolean isCellEditable(int row, int column) {return true;}  
         

  • Centering a UILabel in a UITableViewCell

    I have a simple application that uses a few non-standard UITableViewCellStyles (like UITableViewCellStyleValue1, UITableViewCellStyleValue2).
    When I run the app in the Simulator the labels (whether I assign text to textLabel or detailTextLabel or both) are centered vertically. Unfortunately, when I run the app on the (first generation iTouch 32GB) device, the UILabel's don't necessarily vertically line up in the middle of the cell. I've done some additional debugging and determined that when I use UITableViewCellStyleValue1 or UITableViewCellStyleValue2 - it seems that if I assign text to just one or the other labels, "cell.textLabel.text" or "cell.detailTextLabel.text" - then said kabel will appear 'higher' than the middle of the cell.
    If I assign text to both labels then both of the labels are vertically centered.
    I am running the most recent version of Xcode (3.1.4) and deploying to an iTouch running iPhoneOS 3.1.2 SDK. As I mentioned, it is a a first generation iTouch 32GB unit.
    Any idea what is happening?

    That is a good question.
    I'm not setting anything explicitly. I'm simply assigning text to those labels and letting the cell's named style render itself. Maybe I'll strip the controller down and make sure I'm not indirectly affecting the layout or drawing methods.
    The text appears to draw correctly (not bitmapped) but what confounds me is that the labels vertically center themselves when I assign values to both of them (textLabel and detailTextLabel).
    The iTouch device is a first gen device running 3.1.2.

  • Modify HINT in PIE CHART

    Hi everyone...
    do you know if is it possible to modify HINTs that appears in the PIE CHART?
    In the HINT i have only "Label" + "cell value" + "% of pie chart", may I insert other data?
    Thanks for you help.
    LC

    All you could do is to utilise the Labels part and add more data there but not show the Pie Chart Legend.  There are workarounds by using different components to show the details but no as Anil said you cannot add items to the mouse over values.
    Regards
    Charles

  • JXL -- Applet -- NoClassDefFoundError

    First off, I have no clue if this is the correct place to post this, and I'm sorry if it isnt but I couldnt find a forum more specific.
    I am building a project that will be an applet and ran from my school's web server. The program will work similarly to how freerice.com does their thing, only it will include latin vocabulary and there is no free rice for the poor.
    In order to hold all of the vocab words/user data I have decided to use an excel sheet. This is because the data has already been created and it is in an excel sheet, so its just easier that way. So since I will be using an excel sheet for my databasing, I found jxl to be a potentially useful tool.
    I ran a test/learning program to figure out how jxl works, the possible issues I would run into, ect. THAT program was an application. So after getting to a place where I feel comfortable with jxl, I decided to make the necessary changes to my applet to include jxl. However I had some issues which I will talk about below. Here is the code and output for each program.
    Test/Learning Application Code:
    //Imports
    import java.io.File;
    import java.util.Date;
    import jxl.*;
    import jxl.write.*;
    import java.io.*;
    public class Excel
        //Main
        public static void main(String[] args) throws Exception
             //Read
             //Get workbook
             Workbook workbook = Workbook.getWorkbook(new File("myfile.xls"));
             //Get sheet
             Sheet sheet = workbook.getSheet(0);
             //Get Cells
             Cell a1 = sheet.getCell(0,0);
              Cell b2 = sheet.getCell(1,1);
              Cell c2 = sheet.getCell(2,1);
              //Get cell content
              String stringa1 = a1.getContents();
              String stringb2 = b2.getContents();
              String stringc2 = c2.getContents();
              //Print out cell content
              System.out.println(stringa1);
              System.out.println(stringb2);
              System.out.println(stringc2);
              //Close workbook
             workbook.close();
             //Write
             //Get workbook
             Workbook workbook2 = Workbook.getWorkbook(new File("myfile.xls"));
             //Create copy
             WritableWorkbook copy = Workbook.createWorkbook(new File("myfile.xls"), workbook2);
             //Get sheet to be written to
             WritableSheet sheet2 = copy.getSheet(0);
             //Get cell to be written to
              WritableCell cell = sheet2.getWritableCell(1, 2);
              //Write
              if (cell.getType() == CellType.LABEL)
                     Label l = (Label) cell;
                     l.setString("modified cell");
              //Write and Close workbook
              copy.write();
              copy.close();
              //Read again to check for changes
              workbook = Workbook.getWorkbook(new File("myfile.xls"));
             sheet = workbook.getSheet(0);
             a1 = sheet.getCell(0,0);
              b2 = sheet.getCell(1,1);
              c2 = sheet.getCell(2,1);
              stringa1 = a1.getContents();
              stringb2 = b2.getContents();
              stringc2 = c2.getContents();      
              System.out.println(stringa1);
              System.out.println(stringb2);
              System.out.println(stringc2);
             workbook.close();
    }Output:
    (0,0)
    (1,1)
    (2,1)
    (0,0)
    (1,1)
    (2,1)That is exactly what I wanted to get, so there are no issues here.
    Applet Code (edited for space and importance):
    //Imports
    import jxl.*;
    import jxl.write.*;
    import java.io.File;
    import java.io.*;
    public class Host
         ArrayList<User> userArr = new ArrayList<User>();
         JApplet app;
        public Host(JApplet j)
             app = j;
             readUsers();
             for(int i=0;i<userArr.size();i++)
                  User user = userArr.get(i);
                  System.out.println(user.getName()+" "+user.getPassword()+" "+user.getLevel()+" "+user.getPoints());
        //Method having trouble
        public void readUsers()
             try
                    //Runtime Error Occurring here
                  Workbook workbook = Workbook.getWorkbook(new File("data.xls"));
                  Sheet sheet = workbook.getSheet(1);
                  for(int i=0;i<sheet.getRows();i++)
                       Cell nameC = sheet.getCell(i,0);
                       Cell passC = sheet.getCell(i,1);
                       Cell lvlC = sheet.getCell(i,2);
                       Cell ptsC = sheet.getCell(i,3);
                       String name = nameC.getContents();
                       String password = passC.getContents();
                       int level = Integer.parseInt(lvlC.getContents());
                       int points = Integer.parseInt(ptsC.getContents());
                       userArr.add(new User(name,password,level,points));
                  workbook.close();
             catch(Exception e)
                  System.out.println(e);
    }Output (RUNTIME error):
    java.lang.NoClassDefFoundError: jxl/Workbook
        at Host.readUsers(Host.java:47)
        at Host.<init>(Host.java:35)
        at Vocab.init(Vocab.java:26)
        at sun.applet.AppletPanel.run(AppletPanel.java:424)
        at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: jxl.Workbook
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:210)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:143)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 5 moreSo I'm not sure why this is happening here. The only significant difference between the two projects is that one is an application and the other is an applet.
    I understand what the error is saying, but I cant seem to find out how to fix it. I just wanted to provide as much information as possible in hope for better solutions. Any help is greatly appreciated.

    Aussiemcgr wrote:
    Ok, well just for clarification, it is possible to have the library and excel file on the server correct? I seriously doubt it. I would expect that the library you are using requires access to a file. The applet runs on the client thus the file system that the library will use will be that of the client.
    So at some point the excel file will need to be on the client. Alternatives to this
    1. The library supports a stream rather than a file. Then you would need to write quite a bit of code to create a stream that loads the data across the network.
    2. The client OS has a mapped drive with the server. This is an OS feature not a java feature. It is also unsecure on the internet so only suitable, at best, on a private network.
    This is because the excel file will be both written to and read from by each user. I think you need to start over from the architecture and design point of view.
    Consider this what exactly happens in an excel file when two users try to write to it at the same time. This is NOT a java question.
    I already told you that the easiest way to do is to have a copy of the file on the client machine. Your requirement above completely rules this out. The only possible solution using only an applet requires a mapped drive. And that has the previously mentioned limitations. And even then you are going to need a design that deals with that.
    A better solution
    1. Use an actual java server, not just an applet.
    2. Move the data into a real database.

Maybe you are looking for

  • My iPod touch 3rd gen is stuck on apple logo

    My iPod touch 3rd gen is stuck on the white apple logo. It will not manually restart/restore if I hold the power and menu button. It does auto restart about every 15 minutes on its own. If I plug it into my computer, both my computer and iTunes will

  • Error when installing RAC on windows 2000

    Hi, I'm installing Oracle 9i(9.0.1.1.1 EE) RAC for the first time. It has been an interesting experience, with many bumps in the road. But now I'm stuck. I have installed the 9i EE software, but when I try to create a database ( using DBCA), I get an

  • Listbox on Modulepool

    Hi     I Created 2 listboxes, and added a field to one of the checkbox and retriving the data using select statement upto  some 10 rows, here the question is  in one list box numbers from 1- 10 should be displayed and in second list box One – Ten sho

  • When starting up Mail 7.3 does not provide a New Message window

    When starting up Mail 7.3 does not provide a New Message window as it always used to? Have I inadvertently turned something off?

  • Will apple ever update imovie software for the desktop

    In the Fall of 2010, Apple released iMovie 11' and since the release of the iPad, they seem to only be creating updates for iMovie on the iPad, iPhone and iPod Touch!!!  I want to know if Apple is going to update it on OSX.