Cannot output my result using setText
Everything in my code works fine except for the very last line. I have created a program that calculates a grade based on 5 inputs. After calculating the grade i try and display the result in the output field in my window. The line readsoutput.setText(grade) but it gives me the error when i compile "cannot find symbol". Now if i changed the variable (grade) to a value like ("100") it works no problem, so it appears that the problem has something to do with my variable, which is type double. I cannot figure out how to make my variable display in the output field. The full code is below. Thanks for your help.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class gradeCalculator extends JFrame implements ActionListener
public static final int WIDTH = 300;
public static final int HEIGHT = 240;
private TextField inputOne;
private TextField inputTwo;
private TextField inputThree;
private TextField inputFour;
private TextField inputFive;
private TextField output;
public static void main(String[]args)
gradeCalculator Calculator = new gradeCalculator();
Calculator.setVisible(true);
public gradeCalculator()
setTitle("GradeBook Calculator");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(WIDTH,HEIGHT);
Container contentPane = getContentPane();
contentPane.setLayout(new BorderLayout());
JPanel scorePanel = new JPanel();
scorePanel.setLayout(new GridLayout(5,2));
scorePanel.setBackground(Color.LIGHT_GRAY);
JLabel labelOne = new JLabel("Unit One: ",JLabel.RIGHT);
scorePanel.add(labelOne);
inputOne = new TextField ("",15);
inputOne.setBackground(Color.white);
scorePanel.add(inputOne);
JLabel labelTwo = new JLabel("Unit Two: ",JLabel.RIGHT);
scorePanel.add(labelTwo);
inputTwo = new TextField ("",15);
inputTwo.setBackground(Color.white);
scorePanel.add(inputTwo);
JLabel labelThree = new JLabel("Unit Three: ",JLabel.RIGHT);
scorePanel.add(labelThree);
inputThree = new TextField ("",15);
inputThree.setBackground(Color.white);
scorePanel.add(inputThree);
JLabel labelFour = new JLabel("Unit Four: ",JLabel.RIGHT);
scorePanel.add(labelFour);
inputFour = new TextField ("",15);
inputFour.setBackground(Color.white);
scorePanel.add(inputFour);
JLabel labelFive = new JLabel("Lab: ",JLabel.RIGHT);
scorePanel.add(labelFive);
inputFive = new TextField ("",15);
inputFive.setBackground(Color.white);
scorePanel.add(inputFive);
contentPane.add(scorePanel,BorderLayout.NORTH);
FlowLayout layout = new FlowLayout();
layout.setAlignment(FlowLayout.RIGHT);
JPanel averagePanel = new JPanel();
averagePanel.setLayout(layout);
averagePanel.setBackground(Color.GRAY);
JLabel average = new JLabel("Average: ");
averagePanel.add(average);
output = new TextField("",15);
output.setBackground(Color.white);
averagePanel.add(output);
contentPane.add(averagePanel,BorderLayout.CENTER);
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new FlowLayout());
buttonPanel.setBackground(Color.LIGHT_GRAY);
JButton calButton = new JButton("Calculate");
calButton.addActionListener(this);
buttonPanel.add(calButton);
JButton resetButton = new JButton("Reset");
resetButton.addActionListener(this);
buttonPanel.add(resetButton);
contentPane.add(buttonPanel,BorderLayout.SOUTH);
public void actionPerformed(ActionEvent e)
if(e.getActionCommand().equals("Reset"))
inputOne.setText("");
inputTwo.setText("");
inputThree.setText("");
inputFour.setText("");
inputFive.setText("");
output.setText("");
else if(e.getActionCommand().equals("Calculate"))
String expression;
int result;
double grade;
expression = inputOne.getText();
result = Integer.parseInt(expression);
expression = inputTwo.getText();
result += Integer.parseInt(expression);
expression = inputThree.getText();
result += Integer.parseInt(expression);
expression = inputFour.getText();
result += Integer.parseInt(expression);
expression = inputFive.getText();
result += ((Integer.parseInt(expression))*0.5);
grade = (result/4.5);
output.setText(grade);
}
Thanks, I kinda knew what I needed to do, but couldn't quite figure it out. Your info pointed me in the right direction. I changed my code to this
String string = Double.toString(grade);
output.setText(string);and it seems to work fine now.
Thanks for your help.
Similar Messages
-
How to output query results directly to a file
Hello,
I'm new to this and i need to know how to output the results of a query directly to a file instead of it displaying on the screen and then outputting to a file in SQL Developer Version 2.1.0.63.
Thanks in advance for any help!
Edited by: user13036938 on Jun 16, 2010 7:24 AM
Edited by: user13036938 on Jun 16, 2010 7:25 AMfor a really basic spool:
SPOOL [FILEPATH];
SELECT [SOMETHING] FROM [SOMETABLE] WHERE [SOMECONDITION];
SPOOL OFF;see also:
http://www.oracle.com/technology/products/database/sql_developer/files/sql_worksheet_commands.html
for a list of other useful SQLPlus commands supported by SQL Developer
Edited by: Irian on 16-giu-2010 17.08 -
Satellite Pro U300: DVD issue - error: cannot output to external monitor
Hi,
I was having problems playing a dvd on my U300.
Basically the software would load but when I tried to play the dvd it said "cannot output to external monitor".
Having gone through all options I could not find anything to stop this happening. I then downloaded the latest software from the toshiba site.
dvdpl-20070807102909.zip
I resintalled this but got the same error message.
I then uninstalled the software and tried to reinstall but now it just produces an error mesaage saying it cannot intsall the software on this computer.
How can I reinstall this?
Regards,
MarkI presume you have received the Toshiba Recovery CD. Am I right?
On this CD you can find the Toshiba image file. This image contains the Vista OS, Toshiba drivers, tools and additional software.
But note; you cannot install only a single program. To reinstall a application from the Recovery CD you have to format the HDD and have to reinstall the whole OS using the Recovery CD.
As Gipsyman said, the Toshiba driver page contains update and the original preinstalled software is needed. -
The XML page cannot be displayed Cannot view XML input using XSL stylesheet
Hi Oracle Gurus,
I got this error ...once i have submitted request it shows warning ..I opened output it shows the below error...i cant understand how to resolve this error...Please help me...It is PL/SQ L STORED PROCEDURE CODE...
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A semi colon character was expected. Error processing resource 'http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...
<CP_PROJECT>IT/Quintiles/J&J COGNOS</CP_PROJECT>
----------------------------^
n-left:1em;text-indent:-2em"> <GL_MAIN_PERIOD>Jun-12</GL_MAIN_PERIOD>
<TOTAL_REVENUE>4026.14</TOTAL_REVENUE>
<GL_PERIOD>Jun-12</GL_PERIOD>
</G_TOTAL_REVENUE_CAT>
THIS IS MY LOG FILE
[10/1/12 10:44:26 AM] [main] Starting GSF service with concurrent process id = 157635.
[10/1/12 10:44:26 AM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[10/1/12 10:44:26 AM] [Thread-22] Service thread starting up.
[10/1/12 10:44:26 AM] [Thread-23] Service thread starting up.
[10/1/12 10:52:33 AM] [OPPServiceThread1] Post-processing request 1296337.
[10/1/12 10:52:33 AM] [157635:RT1296337] Executing post-processing actions for request 1296337.
[10/1/12 10:52:34 AM] [157635:RT1296337] Starting XML Publisher post-processing action.
[10/1/12 10:52:34 AM] [157635:RT1296337]
Template code: XXTGSCPR004
Template app: PA
Language: en
Territory: US
Output type: EXCEL
[100112_105234216][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[100112_105234216][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[100112_105234216][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[100112_105234216][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[100112_105234216][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[100112_105234217][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[US7ASCII]
[100112_105234217][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
[100112_105234217][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[100112_105234217][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[100112_105234217][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=orappsus64.tsindia.in)(PORT=1530)))(CONNECT_DATA=(SID=clone)))]
[100112_105234217][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[100112_105234218][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[100112_105234218][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
[100112_105234218][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[100112_105234219][][EXCEPTION] [DEBUG] [APPLTMP]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appltmp]
[100112_105234219][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) SE Runtime Environment]
[100112_105234219][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]
[100112_105234219][][EXCEPTION] [DEBUG] [java.vm.version]:[11.0-b15]
[100112_105234219][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
[100112_105234219][][EXCEPTION] [DEBUG] [dbcfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]
[100112_105234219][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[100112_105234219][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[100112_105234219][][EXCEPTION] [DEBUG] [path.separator]:[:]
[100112_105234219][][EXCEPTION] [DEBUG] [APPLCSF]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc]
[100112_105234220][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
[100112_105234220][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[100112_105234220][][EXCEPTION] [DEBUG] [sun.java.launcher]:[SUN_STANDARD]
[100112_105234220][][EXCEPTION] [DEBUG] [user.country]:[US]
[100112_105234220][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
[100112_105234220][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[100112_105234220][][EXCEPTION] [DEBUG] [user.dir]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log]
[100112_105234220][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.6.0_10-b33]
[100112_105234220][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[25943]
[100112_105234220][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
[100112_105234220][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
[100112_105234221][][EXCEPTION] [DEBUG] [os.arch]:[i386]
[100112_105234221][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]
[100112_105234221][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[tmp]
[100112_105234221][][EXCEPTION] [DEBUG] [line.separator]:[
[100112_105234221][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[100112_105234221][][EXCEPTION] [DEBUG] [os.name]:[Linux]
[100112_105234221][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[100112_105234221][][EXCEPTION] [DEBUG] [cpid]:[157635]
[100112_105234221][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[UTF-8]
[100112_105234221][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
[100112_105234221][][EXCEPTION] [DEBUG] [java.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/../lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib32:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib:/AP1/oracle/PROD01/apps/apps_st/appl/cz/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/iby/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/pon/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/sht/12.0.0/lib:/usr/java/packages/lib/i386:/lib:/usr/lib]
[100112_105234222][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[100112_105234222][][EXCEPTION] [DEBUG] [java.class.version]:[50.0]
[100112_105234222][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Tiered Compilers]
[100112_105234222][][EXCEPTION] [DEBUG] [queue_appl_id]:[0]
[100112_105234222][][EXCEPTION] [DEBUG] [os.version]:[2.6.18-128.el5]
[100112_105234222][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
[100112_105234222][][EXCEPTION] [DEBUG] [user.home]:[home/applmgr01]
[100112_105234222][][EXCEPTION] [DEBUG] [user.timezone]:[Asia/Kolkata]
[100112_105234222][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
[100112_105234222][][EXCEPTION] [DEBUG] [file.encoding]:[UTF-8]
[100112_105234222][][EXCEPTION] [DEBUG] [java.specification.version]:[1.6]
[100112_105234222][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
[100112_105234222][][EXCEPTION] [DEBUG] [conc_queue_id]:[6269]
[100112_105234222][][EXCEPTION] [DEBUG] [java.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/apps_st/comn/java/lib/appsborg2.zip:/AP1/oracle/PROD01/apps/apps_st/comn/java/classes]
[100112_105234222][][EXCEPTION] [DEBUG] [user.name]:[applmgr01]
[100112_105234222][][EXCEPTION] [DEBUG] [DBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]
[100112_105234222][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[100112_105234222][][EXCEPTION] [DEBUG] [java.home]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre]
[100112_105234222][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
[100112_105234223][][EXCEPTION] [DEBUG] [user.language]:[en]
[100112_105234223][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[100112_105234223][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[100112_105234223][][EXCEPTION] [DEBUG] [logfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log/FNDOPP157635.txt]
[100112_105234223][][EXCEPTION] [DEBUG] [java.version]:[1.6.0_10]
[100112_105234223][][EXCEPTION] [DEBUG] [java.ext.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/ext:/usr/java/packages/lib/ext]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/resources.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/sunrsasign.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/classes]
[100112_105234223][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
[100112_105234223][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[100112_105234223][][EXCEPTION] [DEBUG] [file.separator]:[]
[100112_105234223][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
[100112_105234223][][EXCEPTION] [DEBUG] [APPLOUT]:[out]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
[10/1/12 10:52:35 AM] [UNEXPECTED] [157635:RT1296337] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
Caused by: oracle.xdo.parser.v2.XMLParseException: Expected ';'.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
... 17 more
[10/1/12 10:52:35 AM] [157635:RT1296337] Completed post-processing actions for request 1296337.
[GC 8059K->6286K(8692K), 0.0076290 secs]
[Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor17]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor13]
6286K->3865K(8692K), 0.0446370 secs]
Please help great appriciation.
Thanks,
Sidharth.A semi colon character was expected. Error processing resource 'http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...
<CP_PROJECT>IT/Quintiles/J&J COGNOS</CP_PROJECT>
----------------------------^
n-left:1em;text-indent:-2em"> <GL_MAIN_PERIOD>Jun-12</GL_MAIN_PERIOD>
<TOTAL_REVENUE>4026.14</TOTAL_REVENUE>
<GL_PERIOD>Jun-12</GL_PERIOD>
</G_TOTAL_REVENUE_CAT>
{code}
Your PL/SQL code doesn't produce a valid XML document.
In the XML grammar, "&" is a special character and must be escaped using the character entity "&amp;".
If you were using standard methods to build XML from Oracle (SQL/XML functions for instance), I'm sure you wouldn't have this error.
Please show us the PL/SQL code you're using to produce this XML output and we'll be able to help you further. -
Outputting quiz results to E-mail / Excel
Hi everyone,
I am a multimedia computing student currently on placement at
an organisation. I am designing an e-learning package at the moment
and am fairly new to Captivate. I have designed a package which
consists of 6 question slides. I have set the project to send the
results of the quiz to my work's e-mail address. I'm trying to find
out if there is a way of getting Captivate to directly output the
results to an Excel document. I have read numerous articles on this
site regarding outputting the results to an Access database and
would use this method, although my workplace unfortunately does not
have ColdFusion. I have also read the article regarding manually
importing the results from the e-mail into Excel, but have been
asked by my supervisor to see if there is way for Captivate to
automate this process. If you guys can help in any way, it would be
greatly appreciated.
The organisation does not currently have a LMS either, so I
can't even output the results to that. On top of that, they want me
to find a way of identifying when somebody has been through the
appication, but without a LMS I guess Captivate is unable to do
that. If you can let me know whether this is true too, that would
be brilliant!
Many thanks in advance for your help guys.Would your office, department, and/or township be willing to
look at an
LMS? There are a few free and low-cost LMS products out
there...
Gaftop's solution is decent but shouldn't be limited to ASP.
Since Captivate can run javascript functions that are present
in the
parent HTML page, just make calls to that JS, which then
posts to
whatever backend page you have setup to receive that POST
(ASP, PHP,
etc). Then have the backend page update the database.
This does, of course, require some sort of web server.
Erik
jostler wrote:
> Hi everyone,
>
> I am a multimedia computing student currently on
placement with the police. I
> am designing an e-learning package at the moment and am
fairly new to
> Captivate. I have designed a package which consists of 6
question slides. I
> have set the project to send the results of the quiz to
my work's e-mail
> address. I'm trying to find out if there is a way of
getting Captivate to
> directly output the results to an Excel document. I have
read numerous
> articles on this site regarding outputting the results
to an Access database
> and would use this method, although my workplace
unfortunately does not have
> ColdFusion. I have also read the article regarding
manually importing the
> results from the e-mail into Excel, but have been asked
by my supervisor to see
> if there is way for Captivate to automate this process.
If you guys can help
> in any way, it would be greatly appreciated.
>
> The police don't currently have a LMS either, so I can't
even output the
> results to that. On top of that, they want me to find a
way of identifying
> when somebody has been through the appication, but
without a LMS I guess
> Captivate is unable to do that. If you can let me know
whether this is true
> too, that would be brilliant!
>
> Many thanks in advance for your help guys.
>
> It's really good to find other people whom are
experiencing similar problems
> to talk to. The head multimedia designers at work are
absolutely useless!
>
> :-)
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.macromedia.com/support/forums/team_macromedia/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/groups?q=macromedia.authorware -
Cannot find the result of ipod back up
I am buying a new 32 gb touch (latest) and already have a 16gb which I know I will lose at some time or other- you cant ring these things up! My object is to have both with virtually the same content. I am not sure how to go about this but have started by backing up my 16gb in itunes. But I cannot find the result. Is there any way I can examine the back up data so that at least I know it has worked. Thereafter I was hoping to use the back up data to copy directly to my new ipod by restoring or whatever. I shall be glad of help
Many thanksMac OS X :
Library/iTunes/Mobile Applications
Windows XP :
C:\Documents and Settings\[user name]\Application Data\Apple COmputer\iTunes\Mobile Applications\
Windows Vista :
c:\Users\[username]\AppData\Roaming\Apple Computer\iTunes\Mobile Applications\
Note : these locations are hidden by default in Windows
Check "Show hidden files and folders" in folder options
File is called "iPod touch App Pack 4A93.ipa
regards -
No search result using managed property from a column of a published infopath form
Hi,
I'm trying to use a managed property in the advanced search to retrieve only words from a column of a published InfoPath form. We are using FAST Search and verify that the column are being crawled by checking the crawled property in Central Admin but still
cannot retrieve search result for the managed property. We also do a full crawl before testing the search. Thank you..Hi Rommel,
When we create a column from a list (not site column), then we need create list item with this column value, then we need to full crawl, then the the crawled propery ows_listColumnName will be generated, then create a managed property to map this
crawled property(start a full crawl again if needed), then add the custom managed property in advance search web part property, then check again.
Here is an article about how to add the custom managed proerpty in advanced search web part, you can take a look.
http://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
Thanks
Daniel Yang
TechNet Community Support -
Error when trying to enter data in the textarea using settext in 9.3
not allowing to enter data in the textfield using settext and throwing below error
Cause: oracle.forms.handler.TextAreaItem cannot be cast to oracle.forms.handler.TextFieldItemI had the same problem.I think this is a bug with 9.3.The workaround I used was to record: click the Text Area,go to Functions menu->edit->Edit,enter the text.Stop recording.Then you can playback.
-
Compressor output to FLV using Flash Pro Codec?
I was told by an Apple Tech support person, after venting my frustrations over Apple's website promoting Compressor being able to output to FLV, that Compressor CAN output to FLV using the FLV codec that is available if you have Flash Pro Installed. (Part of CS3 Web Bundle)
I need to build things in Motion and output to Flash for website use, without having to spend almost $1000 for a motion plug-in. I think this is the only time that Apple has really advertised something that's not available without a lot more third party expense.
So... can someone explain how to use the Flash Pro Codec in Compressor to output to FLV?
Any help would be greatly appreciated!
Will H.I have Final Cut Studio 2 as well as the Adobe Flash encoder and can't transfer a Quicktime to a FLV that plays back on ether of my systems. I shouldn't have to buy another application to do this.
Hope you or someone can help.
Standard misperception of FLV. FLV is not a self-contained movie, it requires a Flash Player running inside a Web page or the Flash application. You cannot even open the Flash Player and play an FLV unless the Flash Player…nevermind. It's weird, but that's Adobe for you.
You can play it back easily inside Adobe's free Media Player (it's beta but harmless). Free download for both Winderz and MAcintosh.
bogiesan -
Outputing the results of your programs
In C++ I always output the results of my programs to the screen. Because I was always making just console programs I would use cout like this:
int main( )
int product = 2;
while(product <= 1000)
cout << 2 * product;
return 0;
Now I have a 5 year old Deitel book that I've been looking through and it appears that they rely more on using some GUI components. They will mostly output the results to dialog boxes or message boxes.
I was wondering is that the only way in Java to output the results of your programs? For example how could I write the above program in Java outputing the results to the console window?public class MyOutput{
public static void main(String args[]){
System.out.println("Hello World"); // <<-- Output to a console.....
} -
HP Deskjet 1000 Printer - J110a cannot print in color using WIndows 8
J110a cannot print in color using WIndows 8. The printer will only print in black and white even though it works fine on a PC with Windows 7. I installed the latest drivers from the HP web-site.
Hey @KC1964,
Welcome to the HP Support Forums!
I understand that since installing your HP Deskjet 1000 Printer on your Windows 8 computer you have not been able to print in colour. Because you are able to print fine from a Windows 7 computer we know that this issue is not being caused by your printer. I would like to assist you today with resolving this issue. I'm thinking that your machine is either experiencing a driver conflict or a setting issue within the Windows 8 computer. Please follow the steps below.
Step 1: Check Settings:
Open your Start screen by selecting the Windows button on the bottom left hand corner of your computer screen or by selecting the Windows key on the bottom left of your keyboard, to the right of the Ctrl button
Once the Start screen opens type Devices and Printers
Click on Devices and Printers
In the Devices and Printers folder right click on your HP Deskjet
Select Printing Preferences
In the Preferences window select the Advanced button on the bottom right
Look for the Greyscale or Print Black Only and make sure they are disabled
If all settings are correct, yet the issue persists, please proceed to the next step.
Step 2: Try Alternate Driver:
To confirm if this issue is specific to the Deskjet 1000 driver I am going to have you load an alternate driver on your machine.
Open your Start screen by selecting the Windows button on the bottom left hand corner of your computer screen or by selecting the Windows key on the bottom left of your keyboard, to the right of the Ctrl button
Once the Start screen opens type Devices and Printers
In the Devices and Printers folder right click on your Deskjet 1000 and left click on Printer Properties
Left click on the Advanced tab
Left click on New Driver
When the New Driver window opens just hit 'next' until you see a list of Manufacturers on the left and a list of Printers on the right.
Select HP as the Manufacturer on the left
Select Deskjet 9800 as the printer on the right. If Deskjet 9800 doesn't appear than select 'Windows Update' on the bottom left and once the update completes you will be able to select Deskjet 9800.
After selecting Deskjet 9800 hit next to complete the New Driver Wizard
Under the Printer Properties window select 'Apply' but don't hit OK
Select the General tab
Rename your printer back to HP Deskjet 1000
Hit OK
Lastly, right click on your Deskjet 1000 one more time and left click on Printing Preferences
Left click on the Paper/Quality tab
Left click on the 'Normal' dropdown for Print Quality on the bottom right and change this to Fast Normal
Click Apply and OK
Now that the new driver is added in, please test printing in colour again.
Please respond to this post with the result of your troubleshooting. Good luck!
X-23
I work on behalf of HP
Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping! -
AUDITION FINAL EXPORT / MIXDOWN FONCTION does NOT ever work
The Output Wave Resulting is a TOTAL SILENCE - NO SOUND AT ALL
Bought & registered Program act as an expired DEMO...
The result is a wave with a completely flat HORIZONTAL LINE of pure $300.00 rip off of SILENCE
Even after many clean reinstallations AUDITION never is able to do a Final Mixdown with any Sound in it.
A AUDITION Support Technician cleaned up during 1 hour about 15 secret hidden Adobe files in the Windows XP System.
After this clean up the AUDITION program functionned ONCE! Once it was able to output a Final Mixdown with sound in it.
That never occured again after. I have a very standard very well maintained Windows XP computer.
My understanding & the experience with the Adobe Support Technician prooves that the problem is the deeply hidden spy files of Adobe who erroneously turn my bought & registered program into an expired DEMO. I have reported the problem numerous times to Adobe, & everytime I talk to support people at Adobe, they tell me they have never heard about this problem, when I already had reported it MANY times at the Adobe Tech Support department !!!
I can only draw the conclusion Adobe is trying to hide this problem away by pretending they have never heard about it.. ?
Anybody have had a similar AUDITION / DEPRESSION nightmare & found a solution ?Astraelia wrote:
Audition is the first & only program easely accessible for musicians who record themselves without having the expertise of a sound technician handling the recording operations. This is certainly by far, the greatest quality of Audition.
I would term Audition to be the very first & only recording program (on PC) conceived for musicians. All the others Audio Logic, Q Base ect. are conceived for professionnal recording engineers.
You seem to have a rather strange conception of Audition, I must say. Most musicians want it to do rather more than it does. It wasn't conceived for musicians at all really - it was originally designed to be just an editor, to which the functions of a multitrack tape recorder were added. Its primary use is professional - always has been, mainly by radio stations. Just about every station in the world has at least one copy, and some larger ones like the BBC have rather a lot more... and I'd say that it was the likes of Cubase and Logic that are conceived for musicians, not Audition. It's also used by a lot of Mastering studios, even though they won't admit it. The primary reason for it being in Adobe's Creative Suite is because it's getting more and more integrated with the video programs in it - nothing to do with music at all.
I'm afraid that whether you like it or not, Audition is marketed towards people who do know what they're doing, by and large. That's why it behaves the way it does, and why you do really need to be at least a bit of a technician to use it effectively. And I'm still trying to think whether I know of any guitarists at all who use amplifiers and who don't understand at least the basics of how a mixer works, but I'm afraid that I can't think of any. I'm not going to say that it's common knowledge, but I don't think it's that rare either. -
Cannot find paged results cookie
I have made an application, that works when accessing edirectory 8.8.2
(on a windows server, not that the platform matters I suppose).
I am able to do a paged ldap search, and my results are coming back to
me, nice and paged, like they are supposed to.
When I try the exact same code against a oes2sp1 with 8.8.4, I get
something like this (and only the first page of results)
(192.168.0.160:2151)(0x0003:0x63) controlPagedSetup: cannot find paged
results cookie
(192.168.0.160:2151)(0x0003:0x63) Sending operation result 53:"":"" to
connection 0x6804380
Why is the server saying that, and what does it mean? I don't recall
any possibility of setting cookies in the ldap api (actually an delphi
ldap control)I have found the Paged Results Control to work:
http://ldapwiki.willeke.com/Wiki.jsp...deSortControls
Not sure about 8.8.4 or using Netware as all my attempts are 8.8.2 &
8.8.3 and on Linux/Unix.
Send me an email: jim at willeke com and we can try some things.
-jim
Nicolai Jensen wrote:
> I have made an application, that works when accessing edirectory 8.8.2
> (on a windows server, not that the platform matters I suppose).
> I am able to do a paged ldap search, and my results are coming back to
> me, nice and paged, like they are supposed to.
>
> When I try the exact same code against a oes2sp1 with 8.8.4, I get
> something like this (and only the first page of results)
>
> (192.168.0.160:2151)(0x0003:0x63) controlPagedSetup: cannot find paged
> results cookie
> (192.168.0.160:2151)(0x0003:0x63) Sending operation result 53:"":"" to
> connection 0x6804380
>
> Why is the server saying that, and what does it mean? I don't recall
> any possibility of setting cookies in the ldap api (actually an delphi
> ldap control)
> -
Two different results using one query
Hi Friends
Oracle version that I am using is : Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
I have a scenario where one account can be related to two customers. Hence, in table have many rows for one account. Here’s the sample data:
Account_ID | product_code | cust_id | relationship_code | entity_code
1111 | ABC | 1234 | SOL | CUST
1111 | ABC | 2222 | ZZZ | LINK
1111 | ABC | 4455 | ABC | LINK
2222 | ABC | 7890 | SOL | CUST
2222 | ABC | 5678 | ZZZ | LINK
3333 | JFK | 5878 | TST | CUST
3333 | JFK | 3254 | PRI | CUST
3333 | JFK | 3299 | PRI | CUST
4444 | JFK | 2535 | SOL | CUST
4444 | JFK | 4565 | SOL | CUST
5555 | DEF | 6666 | PRI | CUST
5555 | DEF | 6667 | TST | CUST
5555 | DEF | 9667 | TST | CUSTIn this scenario, I need two outputs differently:
Output 1: When an account has relationship_code = ‘SOL’ then take the least cust_id
1111 | ABC | 1234 | SOL | CUST
2222 | ABC | 5678 | ZZZ | LINK
4444 | JFK | 2535 | SOL | CUST Output 2: else take the highest cust_id
3333 | JFK | 5878 | TST | CUST
5555 | DEF | 9667 | TST | CUSTHow can I get this result using one query?Not sure what you mean. Works OK:
SQL> with t as (
2 select 1111 account_ID,'ABC' product_code,1234 cust_id,'SOL' relationship_code,'CUST' entity_code from dual union all
3 select 1111,'ABC',2222,'ZZZ','LINK' from dual union all
4 select 1111,'ABC',4455,'ABC','LINK' from dual union all
5 select 2222,'ABC',7890,'SOL','CUST' from dual union all
6 select 2222,'ABC',5678,'ZZZ','LINK' from dual union all
7 select 3333,'JFK',5878,'TST','CUST' from dual union all
8 select 3333,'JFK',3254,'PRI','CUST' from dual union all
9 select 3333,'JFK',3299,'PRI','CUST' from dual union all
10 select 4444,'JFK',2535,'SOL','CUST' from dual union all
11 select 4444,'JFK',4565,'SOL','CUST' from dual union all
12 select 5555,'DEF',6666,'PRI','CUST' from dual union all
13 select 5555,'DEF',6667,'TST','CUST' from dual union all
14 select 5555,'DEF',9667,'TST','CUST' from dual union all
15 select 6666,'XYZ',8877,'SOL','CUST' from dual
16 )
17 select account_ID,
18 product_code,
19 cust_id,
20 relationship_code,
21 entity_code
22 from (
23 select account_ID,
24 product_code,
25 cust_id,
26 relationship_code,
27 entity_code,
28 case max(case relationship_code when 'SOL' then 1 else 0 end) over(partition by account_ID)
29 when 1 then dense_rank() over(partition by account_ID order by cust_id)
30 else dense_rank() over(partition by account_ID order by cust_id desc)
31 end rnk
32 from t
33 )
34 where rnk = 1
35 /
ACCOUNT_ID PRO CUST_ID REL ENTI
1111 ABC 1234 SOL CUST
2222 ABC 5678 ZZZ LINK
3333 JFK 5878 TST CUST
4444 JFK 2535 SOL CUST
5555 DEF 9667 TST CUST
6666 XYZ 8877 SOL CUST
6 rows selected.
SQL> SY. -
Why does this simple example output such result?
for example:
public class ArithmeticDemo {
public static void main(String[] args){
double x = 27.475;
double y = 7.22;
System.out.println("Subtracting...");
System.out.println(" x - y = " + (x - y));
above example output below:
Subtracting...
x - y = 20.255000000000003
it should output below result:
Subtracting...
x - y = 20.255
who can tell me why?
who can help me?
thankshi
im not precise, but the reason for above result should be internal representation of double.
there is something called precision when dealing with floats and double.
if u really bothered about only three digit precision try this!
DecimalFormat df = new DecimalFormat(".000");
System.out.println(" x - y = " + df.format((x - y)));
as my all time favorite author, Kathy sierra used to say,
if u really want to fall asleep try reading how doubles are represented in system, and how they are manipulated.
anyway, if u find anything regarding this please lets all know.
thanks & regards
vijay
Maybe you are looking for
-
No icon for nokia mail in 7.8 on lumia710 in live ...
Hi ... I have a Lumia 710 running on wp7.8 Firmware version - 1600.3036.8858.12460 I have pinned the Nokia mail to start but when I make the tile smallest there was no icon of Nokia mail .... I thought it is a temporary problem and I reset my phone b
-
Change Segment (New GL)
Is it possible to change the segment assigned to a profit center in New GL PCA? If yes, how can this be done? Please advise, Thanks, Pallavi
-
What is the role of a pl/sql programmer ?
Hi I am new to oracle.i want to know what is the role of pl/sql programmer in a software development environment? what kind of backend work he/she has to do in a project? plz reply. thanx.
-
Why won't my Imac's cd drive accept cd's? It goes in but it feels like there is something blocking it from going in all the way. As far as I know there isn't anything in there.
-
Hi!! in my application i make code that must be present in every JSP pages. For that, i put it into a separated JSP page who is included in the other JSP (using <jsp:include> tag). My problem is that each JSP who include the repetitive JSP, uses a di