Formula Column help please - URGENT

I'm trying to create a formula column as follows:
function NO_REPLIESFormula return Number is
NOREPLY number;
begin
SELECT COUNT(reply) INTO NOREPLY
FROM letters
WHERE reply = 'N'
GROUP BY ltrtype, batch;
RETURN (NOREPLY);
end;
This PL/SQL compiles fine, but when I run the report, I get the following messages:
REP-1401 no_repliesformula FATAL PL/SQL error occured. ORA-01422 exact fetch returns more than requested number of rows.
If I remove the GROUP BY ltrtype, batch, I don't get the error messages, but the result I get is the total no_replies instead of the total no_replies for each ltrtype/batch grouping.
Could someone please help me with this?
Thank you.

Hi irish,
I think i am not sure about what you are trying to say, but let me guess, You want the values to be return on the bases of "ltrtype, batch". Which mea that you want more then one values, i mean there can be more then one Groups based on ltrtype and batch. and you want to display these values with repective record???
If i am right, then there is a fault in your code, and that is , you are not specifing in your code that which value is to be diplayed with which record in this report. For that there must be ltrtype, batch colums displayed in the report, you must add those values in your Code in the query, i.e.
function NO_REPLIESFormula return Number is
NOREPLY number;
begin
SELECT COUNT(reply) INTO NOREPLY
FROM letters
WHERE reply = 'N' and ltrtype= :V_ltrtype and batch=:v_batch;
RETURN (NOREPLY);
end;
Where :V_ltrtype and :v_batch are the run time values of each records displayed in the report.
Remember that if you don't sepecify this then your code will return as many records as many distich values of ltrtype, batch. and your variable NOREPLY can hold only one value at a time. I hope you understand both, Solution and the logic behind the error.
Please correct me if i am wrong.
Thanks.
Mohib ur Rehman

Similar Messages

  • Formula column help needed(urgent)

    Hi ,
    I am using the data template for generating XML data.
    BIP provided functions like SUM(), AVG(), COUNT(), MAX(), etc to use as
    below
    <group name="G_DEPT" source="Q1">
    <element name="DEPT_NUMBER" value="DEPTNO" />
    <element name="DEPTSAL" value="G_EMP.SALARY" function="SUM()"/>
    <group name="G_EMP" source="Q2">
    <element name="EMPLOYEE_NUMBER" value="EMPNO" />
    <element name="NAME" value="ENAME"/>
    <element name="JOB" value="JOB" />
    <element name="SALARY" value="SAL"/>
    </group>
    </group>
    but suppose if I want to do a sum like
    Sum(ALLdebits - All credits - All refunds).
    We use to have formula good old formula column. like in ORACLE Reports...
    below is my query in the data template....can someone please suggest?
    <dataTemplate name="R007" dataSourceRef="xyz">
         <properties>
              <property name="include_rowsettag" value="false"/>
              <property name="include_rowtag" value="false"/>
              <property name="xml_tag_case" value="as_are"/>
         </properties>
         <parameters include_in_output="false">
              <parameter name="DATE_FROM" dataType="varchar2" include_in_output="false"/>
              <parameter name="DATE_TO" dataType="varchar2" include_in_output="false"/>
              <parameter name="BANK_GIRO_NUMBER" dataType="varchar2" include_in_output="false"/>
         </parameters>
         <dataQuery>
              <sqlstatement name="Q1">
                   <![CDATA[SELECT
    DISTINCT
    SYSDATE               todayDate
    ,substr(trim(CR_BG_NO),3,8)              creditorBGNumber
    ,CREDITOR_SHORT_NAME   creditorName
    ,COUNT(*) itemCount
    FROM
    R00777_REPORT R1
    WHERE
    R1.TXN_DATE BETWEEN TO_DATE(:DATE_FROM,'YYYY-MM-DD') AND TO_DATE(:DATE_TO,'YYYY-MM-DD') AND
    R1.CR_BG_NO = :BANK_GIRO_NUMBER
    GROUP BY
    substr(trim(CR_BG_NO),3,8)        
    ,CREDITOR_SHORT_NAME]]>
              </sqlstatement>
              <sqlstatement name="Q2">
                   <![CDATA[
    SELECT
    TXN_DATE
    ,substr(trim(CR_BG_NO),3,8)
    ,PAYMENT_TYPE
    ,TXN_SERIAL_NO
    ,decode(PAYMENT_TYPE,'AGDEBIT_TRANSFER',DR_TXN_AMOUNT,'AG_REFUND',-RE_TXN_AMOUNT,'AGCREDIT_TRANSFER',-CR_TXN_AMOUNT)
    SIGN_AMOUNT
    FROM
    R00777_REPORT R2
    WHERE
    R2.TXN_DATE BETWEEN TO_DATE(:DATE_FROM,'YYYY-MM-DD') AND TO_DATE(:DATE_TO,'YYYY-MM-DD')
    AND R2.CR_BG_NO = :BANK_GIRO_NUMBER
    ]]>
              </sqlstatement>
         </dataQuery>
         <dataStructure>
              <group name="response" source="Q1">
                   <group name="head" source="Q1">
                        <element name="itemCount" value="itemCount"/>
                        <element name="todayDate" value="todayDate"/>
                        <element name="creditorBGNumber" value="creditorBGNumber"/>
                        <element name="creditorName" value="creditorName"/>
                   </group>
                   <group name="list" source="Q2">
                        <group name="listItem" source="Q2">
                             <element name="transactionDate" value="TXN_DATE"/>
                             <group name="transactions" source="Q2">
                                  <group name="transaction" source="Q2">
                                       <element name="transactionType" value="PAYMENT_TYPE"/>
                                       <element name="serialNumber" value="TXN_SERIAL_NO"/>
                                       <element name="amount" value="SIGN_AMOUNT"/>
                                  </group>
                             </group>
                             <element name="netSum" value="transaction.SIGN_AMOUNT" function="SUM()"/>
                        </group>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>

    Hi Rainer,
    Many Thanks for your reply
    I had done all the calculations in the report view earlier
    and when i accessed it in the data template as follows
    <element name="netSum" value="netSum" />
    the xml output that i got was like
    <R007>
    <response>
    <head>
    <itemCount>8</itemCount>
    <todayDate>2009-02-05T15:50:12.000+01:00</todayDate>
    <creditorBGNumber>01829209</creditorBGNumber>
    <creditorName>ANDROMEDA</creditorName>
    </head>
    <list>
    <listItem>
    <transactionDate>2008-09-03T00:00:00.000+02:00</transactionDate>
    <netSum>-6647999</netSum>
    <transactions>
    <transaction>
    <transactionType>AGCREDIT_TRANSFER</transactionType>
    <serialNumber>5</serialNumber>
    <amount>-1687200</amount>
    </transaction>
    </transactions>
    </listItem>
    </list>
    </response>
    </R007>
    But the output that i want is something like this
    <R007>
    <response>
    <head>
    <itemCount>8</itemCount>
    <todayDate>2009-02-05T15:50:12.000+01:00</todayDate>
    <creditorBGNumber>01829209</creditorBGNumber>
    <creditorName>ANDROMEDA</creditorName>
    </head>
    <list>
    <listItem>
    <transactionDate>2008-09-03T00:00:00.000+02:00</transactionDate>
    <transactions>
    <transaction>
    <transactionType>AGCREDIT_TRANSFER</transactionType>
    <serialNumber>5</serialNumber>
    <amount>-1687200</amount>
    </transaction>
    </transactions>
    <netSum>-6647999</netSum>
    </listItem>
    </list>
    </response>
    </R007>
    Hence I used the BIP built in template function like this
    <element name="netSum" value="transaction.SIGN_AMOUNT" function="SUM()"/>
    but the sum() function is adding up all amounts as expexted,I want
    the above newsum value as
    Sum(AGdebit-AGCREDIT-AG_refund).

  • Place holder and formula columns help

    Hi All
    Can any one help for me.. how to create placeholder column variable, then how can i assign the variable in formula column to populate.
    As report Output Requirement :
    I have two columns col1 and col2 . based on report parameter (selection type )
    Ex :
    1. select 1 means its need to display col1 , hide the col2
    2. select 2 means its need to display col2 , hide the col1
    3. if they non of selection means need to display both col1 and col2
    can you guide me , how to do task in oracle reports
    Regards
    Sanjay

    Hi Rohit,
    Thanx for ur reply ..
    But when i try to open that link it gives me the following error
    Sorry. This page does not exist.
    The URL you requested could not be found on this server. Please check the spelling in the URL or use our search to find what your are looking for. Thank you.
    Can u suggest me some other place which gives me a precise explanation with some EXAMPLE too ...?
    Thanx again in advance

  • JtextPane Help Please  Urgent.

    Hi,
    I need to read text character by character in a TextArea. Further, if the text is boldm italic etc. I also need to display it that way. I have done this with JTextArea. But, it does not allow me to use the features like bold, italic etc. I also need to have scrolling with the text area. I know that this can be done by JTextPane or JEditorPane. I tried to use JtextPAne, but the text does not get displayed.
    I have used setText and getText methods and added textPane to scrollPane but no use.
    Can someone please help with this? It is kind of urgent.
    Thanks in advance.
    sjl

    You must use sone default action on JTextPane component assign it to a menu item or toolbar button and after can add some style to text inserted...remember that must add a StyledEditorKit() to your component in such way that can add some default functionality.
    public class SimpleEditor extends JFrame {
         protected JTextPane textComp;
         protected Hashtable actionHash = new Hashtable();
         public SimpleEditor() {
              super("SimpleEditor");     
              textComp = createTextComponent();
              hashDefaultActions();
              makeActionsPretty();
              Container content = getContentPane();
              content.add(createToolBar(), BorderLayout.NORTH);
                                               scroll = new JScrollPane(textComp);
              content.add(scroll , BorderLayout.CENTER);
              setSize(320, 240);
                          protected JTextPane createTextComponent() {
              JTextPane ta = new JTextPane();
              ta.setEditorKit(new StyledEditorKit());
              return ta;
                             protected void hashDefaultActions() {
              Action[] actions = textComp.getActions();
              for (int i = 0; i < actions.length; i++) {
                   String name = (String) actions.getValue(Action.NAME);
                   actionHash.put(name, actions[i]);
    // You can add your custom action
         protected void makeActionsPretty() {
              Action a;
              a = getHashedAction(DefaultEditorKit.cutAction);
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a.putValue(Action.NAME, "Taglia");
              a = getHashedAction(DefaultEditorKit.copyAction);
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a.putValue(Action.NAME, "Copia");
              a = getHashedAction(DefaultEditorKit.pasteAction);
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a.putValue(Action.NAME, "Incolla");
              a = getHashedAction(DefaultEditorKit.selectAllAction);
              a.putValue(Action.NAME, "Seleziona tutto");
              a = getHashedAction("font-bold");
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a.putValue(Action.NAME, "Bold");
              a = getHashedAction("font-italic");
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a.putValue(Action.NAME, "Italic");
              a = getHashedAction("font-underline");
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a.putValue(Action.NAME, "Underline");
              a = getHashedAction("font-family-SansSerif");
              a.putValue(Action.NAME, "SansSerif");
              a = getHashedAction("font-family-Monospaced");
              a.putValue(Action.NAME, "Monospaced");
              a = getHashedAction("font-family-Serif");
              a.putValue(Action.NAME, "Serif");
              a = getHashedAction("font-size-10");
              a.putValue(Action.NAME, "10");
              a = getHashedAction("font-size-12");
              a.putValue(Action.NAME, "12");
              a = getHashedAction("font-size-16");
              a.putValue(Action.NAME, "16");
              a = getHashedAction("font-size-24");
              a.putValue(Action.NAME, "24");
              a = getHashedAction("left-justify");
              a.putValue(Action.NAME, "Sinistra");
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a = getHashedAction("center-justify");
              a.putValue(Action.NAME, "Centrato");
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
              a = getHashedAction("right-justify");
              a.putValue(Action.NAME, "Destra");
              a.putValue(Action.SMALL_ICON, //Put your image HERE);
         protected JToolBar createToolBar() {
              JButton button;
              JToolBar bar = new JToolBar();
              // Add simple actions for opening & saving
              button = bar.add(getOpenAction());
              button.setText("");
              button.setFocusable(false);
              button = bar.add(getSaveAction());
              button.setText("");
              button.setFocusable(false);
              bar.addSeparator();
              // Add cut/copy/paste buttons
              button = bar.add(getHashedAction(DefaultEditorKit.cutAction));
              button.setText("");
              button.setFocusable(false);
              button = bar.add(getHashedAction(DefaultEditorKit.copyAction));
              button.setText("");
              button.setFocusable(false);
              button = bar.add(getHashedAction(DefaultEditorKit.pasteAction));
              button.setText("");
              button.setFocusable(false);
              bar.addSeparator();
              JButton toggle = new JButton(getHashedAction("font-bold"));
              toggle.setText("");
              toggle.setFocusable(false);
              bar.add(toggle);
              toggle = new JButton(getHashedAction("font-italic"));
              toggle.setText("");
              toggle.setFocusable(false);
              bar.add(toggle);
              toggle = new JButton(getHashedAction("font-underline"));
              toggle.setText("");
              toggle.setFocusable(false);
              bar.add(toggle);
              toggle = new JButton(getHashedAction("left-justify"));
              toggle.setText("");
              toggle.setFocusable(false);
              bar.add(toggle);
              toggle = new JButton(getHashedAction("center-justify"));
              toggle.setText("");
              toggle.setFocusable(false);
              bar.add(toggle);
              toggle = new JButton(getHashedAction("right-justify"));
              toggle.setText("");
              toggle.setFocusable(false);
              bar.add(toggle);
              return bar;
         public static void main(String[] args) {
              SimpleEditor editor = new SimpleEditor();
              editor.setVisible(true);
    The above code show how to get some default functionality of the JTextPane particularly to StyledEditorKit associated to JTextPane. You can get all default action and after put them as an Action directly to element of JToolBar or JButton...and so you have styled text.
    I hope this help you.
    regards anti-shock

  • File Security on Portal - Help Please urgent

    Hello all,
               I need an urgent help on File Security on Portal.
    suppose we have 5 .PDF files in a perticular directory on the portal server. I want to have J2EE engine check if the user is already logged into portal or not. If the user is not logged in I want to throw logon screen asking them to Login. If the user is logged in I want to show the document directly.
    How to configure these things. Please help me.
    Thanks and regards,
    Vasu Pabbaraju.

    Hi,
    instead of storing Your files into the portal server's filesystem You could store them into KM.
    If the file "dummy.pdf" is stored into the KM folder "/documents/test", You could call it via
    http(s)://<potal server>:<port>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/test/dummy.pdf
    The portal will ask for a login before displaying the document.
    Best Regards
    Frank

  • Encore CS6 crash during build. help please URGENT

    Hi,
    this is my first dvd in encore but I did lots of dvd on dvdstudio.
    My project has 1 main menu, 5 submenus. 2 timeline and more than 50 chapter list access by these sub menus. with option of play once, loop etc.
    Check dvd only bring back an error that Im ignoring cause it says that one timeline has no end action, and also it is orphan. don't care cause all chapter are select by chapter playlist to reduce the amount of size
    anyway I don't think it is something wrong with the authoring, maybe something I missing during the menu creation I did all of them in PS thru adobe dynamic link
    The built process crash at 1/3 of the progress. An it takes like 4 hours just for that. The assets are quicktimes none compresed and some .mp4 all together is about 2 hours of video.
    PLEASE any suggestion ? I need to send this to my client tomorrow
    I can Re make the whole dvd in DVDstudio but as you can guess it took me a lot of time to conect all this assets.
    thanks!

    Stan thanks a lot for all your help
    Last night I leave one of my computers enconding all the material to m2v files with encoder dvd presets.
    But when I tried to replace this files in my encore project it gives me an error: "Could not import file it is not the same type as the file it is replacing" weird. of course this files are now m2v. this files are working perfect in DVDstudio
    I will have to remake the authoring in dvdstudio with this m2v files.
    Too bad I was soooooo in love with adobe CS, I switch a few month ago, and premiere surprise me! is by far much better than FCP, audition is great for fast audio post don't need to use OMF and protools anymore, AE is AE the best for motion. encoder quality/speed is so much better than compresor.
    hope they fix encore and they make a more versatil speedgrade (one that work with any file codec)

  • VO Extension or Substitution Help Please - Urgent (iExpenses)

    Hi All,
    I am trying to limit the data of the Projects and Tasks LOV (on the ExpenseAllocationsPG) in iExpenses Module. I tried a VO substitution and failed with an error.
    ERROR: oracle.jbo.NoDefException: JBO-25002: Definition type View Definition not found
    basically it could not find my custom VO that i created, so i deleted it from the database.
    This is basically what i want to do:
    The standard Projects LOV from the ExpenseAllocationsPG
    1.oracle.apps.ap.oie.server.ProjectsLovVO
    SELECT * FROM (SELECT P.PROJECT_NUMBER PROJECT_NUMBER, P.PROJECT_NAME PROJECT_NAME, P.PROJECT_ID PROJECT_ID, P.START_DATE START_DATE, P.COMPLETION_DATE COMPLETION_DATE, (select O.NAME from HR_ALL_ORGANIZATION_UNITS O where P.CARRYING_OUT_ORGANIZATION_ID = O.ORGANIZATION_ID)PROJECT_ORGANIZATION_NAME FROM PA_PROJECTS_EXPEND_V P) QRSLT ORDER BY PROJECT_NUMBER
    2.oracle.apps.ap.oie.server.ProjectsVO
    SELECT * FROM (SELECT P.PROJECT_NUMBER PROJECT_NUMBER, P.PROJECT_NAME PROJECT_NAME, P.PROJECT_ID PROJECT_ID, P.START_DATE START_DATE, P.COMPLETION_DATE COMPLETION_DATE, O.NAME PROJECT_ORGANIZATION_NAME FROM PA_PROJECTS_EXPEND_V P, HR_ORGANIZATION_UNITS O WHERE P.CARRYING_OUT_ORGANIZATION_ID = O.ORGANIZATION_ID) QRSLT ORDER BY UPPER(PROJECT_NUMBER)
    I tried to do a substititution on both LOV's
    I then created custom Project LOV in a custom folder and i changed the the query a bit as follows to restrict the LOV to user projects:
    SELECT P.PROJECT_NUMBER PROJECT_NUMBER,
    P.PROJECT_NAME PROJECT_NAME ,
    P.PROJECT_ID PROJECT_ID ,
    P.START_DATE START_DATE ,
    P.COMPLETION_DATE COMPLETION_DATE ,
    (SELECT O.NAME
    FROM HR_ALL_ORGANIZATION_UNITS O
    WHERE P.CARRYING_OUT_ORGANIZATION_ID = O.ORGANIZATION_ID
    )PROJECT_ORGANIZATION_NAME
    FROM PA_PROJECTS_EXPEND_V P,
    PER_ASSIGNMENTS_F per,
    HR_ORGANIZATION_UNITS O,
    FND_USER fu
    WHERE per.person_id = pa_utils.getempidfromuser(fnd_global.user_id)
    AND per.primary_flag = 'Y'
    AND SYSDATE BETWEEN per.effective_start_date and per.effective_end_date
    AND p.project_id IN(select project_id from pa_transaction_controls
    where person_id = pa_utils.getempidfromuser(fnd_global.user_id)
    UNION ALL
    select project_id from pa_transaction_controls
    where person_id is null
    and expenditure_category = 'Labour'
    UNION ALL
    select project_id from pa_transaction_controls
    where person_id = pa_utils.getempidfromuser(fnd_global.user_id)
    and expenditure_category = 'Labour')
    AND p.carrying_out_organization_id = o.organization_id
    AND fu.employee_id = per.person_id
    **all that is in bold is what i added.
    my VO substitution does not work. i got errors.....
    Can someone please help me.....am i doin the right thing or is there another approach. It would greatly appreciated. I guess if i can get the Projects LOV to work then the Task Lov would be the same.
    Thanks
    Kresen

    hi Kresen,
    if u r unable to see that extended VO then verify wheter all these steps are done...
    after extending that VO in jdeveloper......Please FTP all the 3 (VO.xml, Voimpl and VORowImpl)
    into to $JAVA_TOP/<custom directory>/oracle/apps/ap/oie/server/ProjectsLovVO
    this thing looks very silly but important......
    Please Substitute the Seeded VO to the Extended VO in the Jdeveloper......then check in the .jpx file whether the substituion has taken place
    in .jpx file
    <Substitutes>
    <Substitute OldName ="oracle.apps.ap.oie.server.ProjectsLovVO" NewName ="xxxx.oracle.apps.ap.oie.server.ProjectsLovVO" />
    </Substitutes>
    this thing should be present....import that jpx file...
    Please convert the java files Voimpl and VorowImpl to Class files in the Server using javac command
    bounce the apache
    regards,
    sravanth

  • DVD Crahses Help Please Urgent

    Hi, I have a 1 hour 45 min video with several chapter points, when I skip through the chapter points on my mac it works fine. I burnt my project on a Dual DVD and played it in my DVD Player, it crashes at one particular chapter point. I tried 3 more DVD players some play it fine, some crash, does anybody have an idea what this could be? I thought if it was a bad burn it would not play on any DVD players so that cant be it. Please help.

    Did you specify a layer break point, or let DVDSP automatically select one? I found that by using auto selection it was less likely to work. Try to insert a marker and specify it as a layer break marker somewhere near the midway mark of your timeline. Also be sure to set it somewhere so that Layer 1 will be larger than Layer 2.
    The other thing I noticed is that Toast didn't handle my BUILD folder properly. I think it disregarded the break point I set up and chose its own, which didn't work. If you were using Toast to burn the disc that could be an issue. I used DVDSP's Build & format and it worked out A-OK.

  • HELP PLEASE urgent: Creating a package, and class that prints all...

    please help, 5 duke dollars up for the best answer, or first answer that solves my problem!
    Hello, I have created a package called molecule that contains classes named Water, Sugar, Carbon Dioxide, and SulfuricAcid, and a sub-package named molecule.atom. The atom sub-package contains classes named Carbon, Hydrogen, Oxygen, and Sulfur. Each class in the molecule package should re-define the toString() method to print the numbers and types of atoms that constitute the molecule. For example, molecule.Sugar.toString() should return the string:
    "Sugar: 6 Carbon, 12 Hydrogen, 6 Oxygen".
    So basically, I have created a folder in C:\molecule\ and a subfolder C:\molecule\atom\ . I have also created a class called ChemTest belonging to the default package. ChemTest.main() creates and prints instances of each molecule and atom, but does not contain any import statements. The problem is that the ChemTest.java file won't compile coming up with 16 errors!
    Can someone explain to me what I am doing wrong?
    here is one of the molecule classes, for example CarbonDioxide.java:
    package molecule;
    public class CarbonDioxide
         private String co2;
         public CarbonDioxide()
              co2 = "Carbon Dioxide: 1 Carbon, 2 Oxygen";
         public String toString()
              return co2;
    and here is one of the atom classes, for example Carbon.java:
    package molecule.atom;
    public class Carbon
         private String c;
         public Carbon()
              c = "Carbon: symbol = C, num = 6, weight = 12.011";
         public String toString()
              return c;
    now here is the ChemTest.java file that won't compile:
    public class ChemTest
         public static void main(String[]args)
              molecule.Water water = new molecule.Water();
              molecule.Sugar sugar = new molecule.Sugar();
              molecule.CarbonDioxide carbonDioxide = new molecule.CarbonDioxide();
              molecule.SulfuricAcid sulfuricAcid = new molecule.SulfuricAcid();
              molecule.atom.Carbon carbon = new molecule.atom.Carbon();
              molecule.atom.Oxygen oxygen = new molecule.atom.Oxygen();
              molecule.atom.Hydrogen hydrogen = new molecule.atom.Hydrogen();
              molecule.atom.Sulfur sulfur = new molecule.atom.Sulfur();
              System.out.println(water.toString());
              System.out.println(sugar.toString());
              System.out.println(carbonDioxide.toString());
              System.out.println(sulfuricAcid.toString());
              System.out.println();
              System.out.println(carbon.toString());
              System.out.println(oxygen.toString());
              System.out.println(hydrogen.toString());
              System.out.println(sulfur.toString());
    and finally, here are the errors:
    C:\molecule\ChemTest.java:5: cannot resolve symbol
    symbol : class Water
    location: package molecule
              molecule.Water water = new molecule.Water();
    ^
    C:\molecule\ChemTest.java:5: cannot resolve symbol
    symbol : class Water
    location: package molecule
              molecule.Water water = new molecule.Water();
    ^
    C:\molecule\ChemTest.java:6: cannot resolve symbol
    symbol : class Sugar
    location: package molecule
              molecule.Sugar sugar = new molecule.Sugar();
    ^
    C:\molecule\ChemTest.java:6: cannot resolve symbol
    symbol : class Sugar
    location: package molecule
              molecule.Sugar sugar = new molecule.Sugar();
    ^
    C:\molecule\ChemTest.java:7: cannot resolve symbol
    symbol : class CarbonDioxide
    location: package molecule
              molecule.CarbonDioxide carbonDioxide = new molecule.CarbonDioxide();
    ^
    C:\molecule\ChemTest.java:7: cannot resolve symbol
    symbol : class CarbonDioxide
    location: package molecule
              molecule.CarbonDioxide carbonDioxide = new molecule.CarbonDioxide();
    ^
    C:\molecule\ChemTest.java:8: cannot resolve symbol
    symbol : class SulfuricAcid
    location: package molecule
              molecule.SulfuricAcid sulfuricAcid = new molecule.SulfuricAcid();
    ^
    C:\molecule\ChemTest.java:8: cannot resolve symbol
    symbol : class SulfuricAcid
    location: package molecule
              molecule.SulfuricAcid sulfuricAcid = new molecule.SulfuricAcid();
    ^
    C:\molecule\ChemTest.java:10: cannot resolve symbol
    symbol : class Carbon
    location: package atom
              molecule.atom.Carbon carbon = new molecule.atom.Carbon();
    ^
    C:\molecule\ChemTest.java:10: cannot resolve symbol
    symbol : class Carbon
    location: package atom
              molecule.atom.Carbon carbon = new molecule.atom.Carbon();
    ^
    C:\molecule\ChemTest.java:11: cannot resolve symbol
    symbol : class Oxygen
    location: package atom
              molecule.atom.Oxygen oxygen = new molecule.atom.Oxygen();
    ^
    C:\molecule\ChemTest.java:11: cannot resolve symbol
    symbol : class Oxygen
    location: package atom
              molecule.atom.Oxygen oxygen = new molecule.atom.Oxygen();
    ^
    C:\molecule\ChemTest.java:12: cannot resolve symbol
    symbol : class Hydrogen
    location: package atom
              molecule.atom.Hydrogen hydrogen = new molecule.atom.Hydrogen();
    ^
    C:\molecule\ChemTest.java:12: cannot resolve symbol
    symbol : class Hydrogen
    location: package atom
              molecule.atom.Hydrogen hydrogen = new molecule.atom.Hydrogen();
    ^
    C:\molecule\ChemTest.java:13: cannot resolve symbol
    symbol : class Sulfur
    location: package atom
              molecule.atom.Sulfur sulfur = new molecule.atom.Sulfur();
    ^
    C:\molecule\ChemTest.java:13: cannot resolve symbol
    symbol : class Sulfur
    location: package atom
              molecule.atom.Sulfur sulfur = new molecule.atom.Sulfur();
    ^
    16 errors
    Please help!!!, thanks!

    HI,
    I tried your problem with the following directory structure:c:\java\ChemTest.java
    c:\java\molecule\CarbonDioxide.java
    c:\java\molecule\atom\Carbon.javaI set the dos-prompt to c:\java and ran the following commands:javac molecule\CarbonDioxide.java
    javac molecule\atom\Carbon.java
    javac -classpath . ChemTest.java- and it worked!
    Sure, in ChemTest.java I deleted all the lines refering to classes that you didn't post...
    I hope this helps you!
    Anja

  • REGEXP Help -Please urgent

    Hi All,
    My data is coming the below way(sample data provided) so I would like to join with both tables using deliveryzipcodes.zipcode with POSTALCODES.postalcode.
    I have not provided all the columns but join should be zipcode with postalcode
    CREATE TABLE Deliveryzipcodes( city,zipcode VARCHAR2(50));
    INSERT INTO deliveryzipcodes (city,ZIPCODE) values('UK','SK8,SK3,SK7,M22,M23');
    INSERT INTO deliveryzipcodes (city,ZIPCODE) values( 'CA''DY1,DY2,DY3,DY4,DY5,B69,WV14');
    commit;
    CREATE TABLE POSTALCODEs( postalcode VARCHAR2(50));
    INSERT INTO POSTALCODEs(postalcode) values('SK3');
    INSERT INTO POSTALCODEs(postalcode) values('SK8');
    INSERT INTO POSTALCODEs (postalcode) values('SK7');
    INSERT INTO POSTALCODEs(postalcode) values('M22');
    INSERT INTO POSTALCODEs (postalcode) values('M23');
    INSERT INTO POSTALCODEs (postalcode) values('DY1');
    INSERT INTO POSTALCODEs(postalcode) values('DY2');
    INSERT INTO POSTALCODEs(postalcode) values('DY3');
    INSERT INTO POSTALCODEs (postalcode) values('DY5');
    INSERT INTO POSTALCODEs(postalcode) values('B69');
    INSERT INTO POSTALCODEs (postalcode) values('B69-567');
    INSERT INTO POSTALCODEs(postalcode) values('B69-E4');
    commit;
    Any help would be appreciated

    LoganP wrote:
    Good trick.
    No need to surround zipcode with "," in the where clause.Yes there is.
    If the zipcode value was e.g. SK39 instead of SK3...
    SQL> update deliveryzipcodes set zipcode = 'SK8,SK39,SK7,M22,M23' where city = 'UK';
    1 row updated.... then your query ...
    SQL> select a.*, b.* from deliveryzipcodes a, postalcodes  b
      2  where zipcode like '%' || postalcode || '%';
    CI ZIPCODE                                            POSTALCODE
    UK SK8,SK39,SK7,M22,M23                               SK3
    UK SK8,SK39,SK7,M22,M23                               SK8
    UK SK8,SK39,SK7,M22,M23                               SK7
    UK SK8,SK39,SK7,M22,M23                               M22
    UK SK8,SK39,SK7,M22,M23                               M23
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY1
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY2
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY3
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY5
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       B69
    10 rows selected.... still returns SK3 even though it doesn't exist in the zipcode.
    However, with the commas...
    SQL> ed
    Wrote file afiedt.buf
      1  select a.*, b.* from deliveryzipcodes a, postalcodes  b
      2* where ','||zipcode||',' like '%,' || postalcode || ',%'
    SQL> /
    CI ZIPCODE                                            POSTALCODE
    UK SK8,SK39,SK7,M22,M23                               SK8
    UK SK8,SK39,SK7,M22,M23                               SK7
    UK SK8,SK39,SK7,M22,M23                               M22
    UK SK8,SK39,SK7,M22,M23                               M23
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY1
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY2
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY3
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       DY5
    CA DY1,DY2,DY3,DY4,DY5,B69,WV14                       B69
    9 rows selected.
    SQL>... SK3 isn't found in the zipcode, which is correct.
    The commas are there for a reason. ;)

  • Artwork help please Urgent

    A friend of mine has downloaded 20 tracks from ITunes for me with all the Art work.
    The problem I have is that I have imported the 20 Tracks to iTunes, and there is no Art work for the tracks. Even Tho they Show in the folder on my desktop
    Is there any reason to why the Art work isn’t showing? I have done this before and the art Dose shows?
    Please help ?
    Thank You

    Have you tried right-clicking on all the tracks, and using *Get Album Artwork* ?

  • Restoring contacts.dat (Help please, urgent)

    Hello.
    I installed Mail for Exchange, and did a mistake so all my contacts got wiped from the phone.
    Its and Nokia N80, and I've got a backup on my computer that I'd like to restore.
    The files I've got is:
    Contacts.dat
    Contacts.xml
    sms.dat
    sms.xml
    and a .db file with a lot of numbers. (IMEI number?)
    How can I restore these files? Please help!

    Thanks for the info - I was able to use Norton Utilities to go to mark those files as not deleted, and got them back!

  • Help please - urgent exam question

    I'm having difficulty with the following question for an OU exam:
    You will now create a method to enable students to make a list of the books they have read, whether they are on the course�s reading list or not.
    Add an instance method to the class, with the header: public Set<String> collectBooksRead()
    The method should first declare a local variable of type Set called readBooks capable of holding a set of strings.
    The method should then assign to that variable an appropriate set object.
    The method should then use a dialogue box to collect the book titles one at a time from the user.
    The dialogue box should have the prompt "Please input a book title or * to finish", and should have an empty string as its default reply.
    Each entered book title should be added to the set referenced by the local variable readBooks. Finally the method should return readBooks as the message answer.
    Here's my code so far but it endlessly loops and I'm unsure how to make it stop.
    public Set<String> collectBooksRead()
    Set<String> readBooks = new HashSet<String>();
    String title;
    do
    title = OUDialog.request("Please input a book title or * to finish",""); //OUDialog.request displays an input dialogue box as specified by a superclass
    readBooks.add(title);
    while
    (title != "*");
    }  

    I'm having difficulty with the following question for
    an OU exam:
    You will now create a method to enable students to
    make a list of the books they have read, whether they
    are on the course�s reading list or not.
    Add an instance method to the class, with the header:
    public Set<String> collectBooksRead()
    The method should first declare a local variable of
    type Set called readBooks capable of holding a set of
    strings.
    The method should then assign to that variable an
    appropriate set object.
    The method should then use a dialogue box to collect
    the book titles one at a time from the user.
    The dialogue box should have the prompt "Please input
    a book title or * to finish", and should have an
    empty string as its default reply.
    Each entered book title should be added to the set
    referenced by the local variable readBooks. Finally
    the method should return readBooks as the message
    answer.
    Here's my code so far but it endlessly loops and I'm
    unsure how to make it stop.
    unplug the computer. works every time

  • Help please (Urgent)

    hai all,
    When i click on the serach tab of the help window, the application quits by throwing the following exception.
    Exception while creating engine named com.sun.java.help.search.DefaultSearchEngine for view: javax.help.SearchView@86b4d5
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at javax.help.search.MergingSearchEngine.makeEngine(MergingSearchEngine.java:148)
    at javax.help.search.MergingSearchEngine.<init>(MergingSearchEngine.java:59)
    at javax.help.JHelpSearchNavigator.getSearchEngine(JHelpSearchNavigator.java:102)
    at javax.help.plaf.basic.BasicSearchNavigatorUI$SearchActionListener.actionPerformed(BasicSearchNavigatorUI.java:109)
    at javax.swing.JTextField.fireActionPerformed(JTextField.java:489)
    at javax.swing.JTextField.postActionEvent(JTextField.java:670)
    at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:784)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2435)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2470)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2398)
    at java.awt.Component.processEvent(Component.java:4902)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3598)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
    at java.awt.Component.dispatchEventImpl(Component.java:3468)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Window.dispatchEventImpl(Window.java:1585)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Caused by: java.security.InvalidParameterException
    at com.sun.java.help.search.DefaultSearchEngine.<init>(DefaultSearchEngine.java:75)
    ... 35 more
    The helpset file used is also present below. This file is being read from a jar file.
    <?xml version='1.0' encoding='ISO-8859-1' ?>
    <!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN" "http://java.sun.com/products/javahelp/helpset_1_0.dtd">
    <helpset version="1.0">
    <title>AxioMS Online Help</title>
    <maps>
    <homeID>overview</homeID>
    <mapref location="map.jhm" />
    </maps>
    <view>
    <name>TOC</name>
    <label>Table of Contents</label>
    <type>javax.help.TOCView</type>
    <data>toc.xml</data>
    </view>
    <view>
    <name>Index</name>
    <label>Index</label>
    <type>javax.help.IndexView</type>
    <data>index.xml</data>
    </view>
    <view>
    <name>Search</name>
    <label>Search</label>
    <type>javax.help.SearchView</type>
    <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
    </view>
    </helpset>
    Can somebody help me out ???

    Hi,
    Check this line
    <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
    It says that the full text index created with the jhindexer is there in the directory
    JavaHelpSearch
    Make sure this directory and the indexed files exist in the jar from where the help set file is loaded.

  • XLIFF HELP PLEASE URGENT in E-Business Suite.

    Hello all. I have been strugling with XLIFF configuration for several days and am under a deadline to get this working.
    I have been able to successfully get it working in the development machine under microsoft word. Loading the translation file in word produces the correct results.
    I have built a XML Template and loaded the XLIFF file in the E-Business Suite. The translation file gets created in the template and when I click on the preview button under the translation, the xliff file sucessfully loads against the template and I can see the xliff applied successfully.
    My issue is when I go to run the report. I create a request, and then when I go under the On Completion section, where the template is shown, there is an option for language and template language.
    I do not know how to change these. There is no other options in the lOV to select.
    I was testing France French.
    I tried to change the Local under Regional settings on my Windows Machine, that did not help.
    There are a few other places to change language.
    So what I need help is on how do you set the language territory locality so the XML reports selects the correct XLIFF file.
    I am not sure where you make the changes to the locality and how it passes this to the XMLP process so it applies the correct xliff file. The documentation is very limiting of this part of the process.
    Any help would be appreciated very much.
    Ill check back soon to see if anyone can assist.
    Thanks in advance.

    Also,
    I am not sure if MLS is needed or NLS. I am not sure if you need to have these options enabled.
    I also found this additional information;
    Set Report Locale
    A locale is a language and territory combination (for example, English (United States)
    or French (Canada)). XML Publisher uses the report locale selection to determine the
    following:
    • The template translation to apply
    • The number formatting and date formatting to apply to the report data
    Note that a particular report must have an available template translation for the selected
    locale. If not, XML Publisher will apply a locale fallback logic to select the template. For
    more information, see Locale Selection Logic, page 4-5.
    The appropriate number and date formatting will be applied independently of the
    template translation.
    Thanks
    Ira Kleiner

Maybe you are looking for