Program object schedule success but is not executed in real time
Hi all,
I have a batch file ad following is the content
set path=C:\WINDOWS\system32
echo Copying started at %date% %time%>>_date_.txt
XCOPY "
Boxis\c$\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes\qaawsWsdl.zip" "
Sxi31\d$\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes" /s /a /d
echo Copying finished at %date% %time%>>_date_.txt
echo Completed Successfully at %date% %time%>>_date_.txt
echo -
>>_date_.txt
pause
I have uploaded this batch file in enterprise. When I schedule it the status is shown as Success however the file qaawsWsdl.zip is not copied to the destination.
Note: When executing the batch file real time the file is getting copied
I have added the user in Replace a process level token policy
I have set program object rights to run script/binaries
SIA is running on domain account that has access to source as well as destination folders.
Am I missing something?
Environment
Business Objects XI 3.1 SP3 clustered (Also tried above in standalone, same issue)
Windows Server 2003
The program object will run with the credentials of the user you provided in the schedule panel unless you did not provide any and you have set a default user account in the CMC under Application->CmC->Program object settings. THis user has to have access on the source and target directories.
What you can do is try to login manually on the BOBJ server using the credentials of the windows user that runs the program object and try to run the script from the command line.
The domain account under which the SIA is running is not really relevant
Regards,
Stratos
Similar Messages
-
Stored Procedure Inside SSIS Successful but does not Perform INSERT - First time since Pkg Created
All - We have a Stored Proc that Runs inside a SSIS package and INSERTS in a table and it was developed a Year Ago - After almost one year this Stored Procedure runs and DOES NOT INSERT - and when I pull the procedure out and Manually runs it -
it runs totally fine.
Did anyone face anything like this before ?
It does create around 10 temp tables before running the INSERT and it INSERTS around 2.5 Million rows. And its a Wide table with 180 ColumnsWhen you execute the Stored Procedure directly in SSMS (SQL Server Management Studio), it execute under the login that you open SSMS, it was be a Window login or SQL Server one.
So from SSIS packages, you have to ways :
1. When you execute the package from SSIS, it execute under the service that SSIS run.
2. When you scudule the package in SQL Agent, the package execute under the account service of SSIS, or another one (you can specify) by impersonation.
Ok, for the solution, i prefere change the impersonate before call procedure, exactly change the current login to another that have the priviliges to execute and insert the Data in the table like :
1. Edit the SP.
2. before the T-SQL type :
EXECUTE AS USER = 'yourLogin';3. retryTo understand the impersonation :http://msdn.microsoft.com/fr-fr/library/ms181362.aspx -
Bootstrap success but Synchronization not worked yet
bootstrap success but Synchronization not worked yet
this is i got in ActiveChgImp.trc
Trace Log Started at Wed Jul 19 12:59:34 EEST 2006
Initialized debug!!
Set retry Count!!
Set Scheduling Interval!!
Initialised src connector
Initialized Src Connector.
TAG FOUND:(INTERFACEDETAILS)
LINE,11:(Package: gsi)
key:(Package)
Value Continuation Not Present
Putting Key into Hash :PACKAGE
LINE,22:(Reader: ActiveChgReader)
key:(Reader)
Value Continuation Not Present
Putting Key into Hash :READER
LINE,31:(SkipErrorToSyncNextChange: false)
key:(SkipErrorToSyncNextChange)
Value Continuation Not Present
Putting Key into Hash :SKIPERRORTOSYNCNEXTCHANGE
LINE,19:(SearchDeltaSize: 500)
key:(SearchDeltaSize)
Value Continuation Not Present
Putting Key into Hash :SEARCHDELTASIZE
SkipErrorToSyncNextchange is set to: false
Search Delta Size set to: 500
Initialized Config Info.
Initialized Provisioning Related Details
Initialized Sync Mode.
Mapping init successful
Initialized Mapping Info.
Initialized Filter Info.
Initialized Execution Cmd.
Initialized Status Attrs.
LDAP URL : (tampro.Twa.com:389 [email protected]
Specifying binary attributes: mpegvideo objectguid objectsid guid usercertificate orclodipcondirlastappliedchgnum
LDAP Connection success
Applied ChangeNum : 1295771Available chg num = 700
Applied ChangeNum : 1295771Available chg num = 1295813
and then run the server but Synchronization not worked yethi,
I used ldapmodify to modify "SkipErrorToSyncNextChange=true",but show errors,following:
LDAP URL : (davidliu:11712 cn=Directory Manager
Specifying binary attributes: mpegvideo objectguid objectsid guid usercertificate orclodipcondirlastappliedchgnum
LDAP Connection success
testsunone:Error in Mapping EngineODIException: DIP_GEN_INITIALIZATION_EXCEPTION
ODIException: DIP_GEN_INITIALIZATION_EXCEPTION
at oracle.ldap.odip.util.DirUtils.getLastChgNum(DirUtils.java:48)
at oracle.ldap.odip.gsi.LDAPReader.initAvailableChgKey(LDAPReader.java:751)
at oracle.ldap.odip.gsi.LDAPReader.initialise(LDAPReader.java:235)
at oracle.ldap.odip.engine.AgentThread.mapInitialise(AgentThread.java:351)
at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:277)
at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:165)
testsunone:about to Update exec status
Error in proxy connection : java.lang.NullPointerException
so,according to the Solution of way, I used ldapmodify to fix the following one entrie:
dn: orclODIPAgentName=testsunone,cn=subscriber profile, cn=changelog subscriber, cn=oracle internet directory
changetype: modify
replace: orclaci
orclaci: access to attr = (*) by group="cn=odisgroup,cn=odi,cn=oracle
internet directory" (read,write,search,compare)
orclaci: access to entry by group="cn=odisgroup,cn=odi,cn=oracle
internet directory" (browse,proxy)
but it's looks like not success,also show "DIP_GEN_INITIALIZATION_EXCEPTION" error.
why? anybody can help me,please! thank advance.
I used the oracle portal_wireless_101200 and the SunONE Directory Server 5.2.
Regards.
david -
Problem in Background Job. Job Completed Successfully but data not Posted
Hi All,
There is a problem in Background Job in Production server (600).
The job completed successfully but data not posted.
The same Job was working perfectly till the starting of the May month.
but now it is not working and rebate has not been posted.
Where to check and what to check
Pls suggest.
Regards,
P KamalHi ,
Please first check the status of the Job , ifs successfully completed then debug it (tcode JDBG) and
check out, whether the values passed (might be using Import-export ,set-get parameter Ids) to the Job are getting passed properly or not. These values might not be getting passed properly.
If it has some error in Job Log then let me know the error.
Regards,
Uma -
I have downloaded the latest Adobe Flash - it says successful but will not work. It says to 'Manage Plug-ins but the Plug-in says it is enabled but it will not work at all. I have tried disabling and then enabling - no success. Please help!
There's two different versions of Flash. The ActiveX version for IE, and the Plugin version for other browsers. Did you install the correct version? This forum's software doesn't thing that Flash is installed for Firefox or the Plugin is disabled.
1.Download the Flash setup file from here: <br />
[http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
Save it to your Desktop.<br />
2. Close Firefox using File > Exit <br />
then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
{XP: Ctrl+Alt+Del, Vista: Shift+Ctrl+ESC = Processes tab}
3. Then run the Flash setup file from your Desktop.
4. Start Firefox and test your installation here: https://www.adobe.com/software/flash/about/
* On Vista and Windows 7 you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). <br />
See this: <br />
[http://vistasupport.mvps.org/run_as_administrator.htm] -
I have a slide with 6 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?
What setting do you have in Quiz > Settings > Required? If it's not set to Optional, do that.
-
InDesign auto-size frame feature not working in real time in InCopy why?
We have just recently migrated from InCopy CS4 to CS6 to take advantage of the new features like the auto resize frame option, however it now seems that this feature is not working in real-time.
Basically the steps are needed to be complete before it auto-resizes the frame in InCopy, we use both layout and assignment based workflows:
1. From an ID document ('doc1'), exported a 'layer' to IC, certain frames are set to auto-size in height using the text frame options. So that editorial can review and make changes to text and the frame should resize according to the specifications set. IC stories are saved to a folder located in a content folder inside the top issue working folder.
2. Editorial opens the IC software, then opens the ID 'doc1'. Check’s out correct .icml file and makes edits to frame with auto resize.
3. Frame does not resize according to text frame set options and InCopy file does not respond in same fashion as InDesign.
4. Change only occurs when InCopy file is closed and updated in InDesign, which is frustrating as this feature would save huge amounts of time serving editorial requests.
Has anybody experienced this type of workflow problem? If anyone can provide mw with some pointers as to what can I do to get this to update in real time perhaps run a script? Update file in InCopy and refresh I will very much appreciate their assistance. I have run out of ideas.
Thanks!We've had all sorts of problems with this feature as it should've worked straight out of the box but after some testing we have found that its something to do with the way you open the actual file in InCopy. Which is far from ideal and should have been UAT by Adobe before release.
This will not work consistently work if you open the designed .indd or .icma file in InCopy using the file open command within the application.
If you need this to work, the InCopy user has to open the .indd or .icma file by dragging and droping from OS windows explorer into InCopy, we use Windows 7 acrros all the teams. Check out .icml files add text changes to the set auto resized frames, this process will expand/collapse the frames to fit the content but as you have to use the drag and drop method to open the .indd and .icma file, 2 users cannot access the same time doc at the same time (a serious flaw in the programming architecture!) which stops people working in parallel. Save changes, check in .icml content and close .indd or .icma.
However the flaw comes in if you then open the .indd and .icma file in InCopy using the file open command within the application, before an InDesign user opens and saves the file (updates the design). The corrections added in the previous stage above, will not show the frames expanded/collapsed to take in the added text and instead show over matter???? The only way around this is to ask an InDesign user to open, update and save the design that way the InCopy user will see the same result no matter what file open method they use.
Another suggestion is to design the page to have some of the auto resize frames anchored within main body of text and that way the frames will expland/collapse when checking out and editing the content. However, this does cause issues with InDesign crashing etc. so we have tried to stop this method within the working group.
Have you experienced other more serious issues with InDesign crashing consistently when re-importing .icml files? See other forums here:
http://forums.adobe.com/thread/671820?start=80&tstart=0
http://forums.adobe.com/message/5045608#5045608
As far as we can see this is a major flaw in how the application(s) work, we have an enterprise agreement with Adobe and purchase a large volume of Adobe products globally but so far the technical support team are unable to find a solution to this and I'm not hopeful of any resolution soon even with the new release of Adobe CC. -
Receiving the error message while executing the Real Time DTP
Hi,
I am receiving the error message while executing the Real time DTP for Billing data.
Error Message - Record filtered in advance as error records with the same key exist RSM2 722
When I check the logs below is the message I am able to see. Can someone suggest as how to proceed further.
Diagnosis
The existing DTP requires a serialized update because fields are updated
non-commutatively during the processing run (for example, MOVE).
Therefore all new data records that have the same semantic key as
incorrect records that have not yet been corrected in earlier requests
or earlier data packages of the same request, are filtered out after the
extraction in a special step. In this way the system ensures that
incorrect data records are not repeated for your changes, which may not
contain errors themselves.
System Response
The data record is not updated but is written to an error stack.
Procedure
Procedure
Correct all incorrect data records and update them using an error DTP.
Procedure for System Administration
I checked the error stack and corrected the entries and let me know as how to proceed further. I am unable to execute the Error DTP as its not allowing me to edit and has only display options.
Regards,
RamHi Arvindh,
Its write optimized DSO.. there is no option to generate SIDs.
Hi Kiran,
I checked the link u sent me. Here the main issue is..The function module is standard and its not allowing me to do enhancement point..
Any idea in using Badi's??
Thanks all... -
Edit in datasheet field is not updated in real time
Hello,
I have SharePoint 2007, a list viewed in Edit in DataSheet and a workflow attached to the list which updates a field FirstTitle in the list when the item is created.
The problem is that, while in Edit in Datasheet view, the field FirstTitle is not updated in real time so the workflow starts again and again because the field is still viewed as empty. The users keep receiving the error message "Your changes conflict
with those made concurrently by another user" (the other user being actually themselves). So they have to exit Edit in Datasheet and enter again in order to have FirstTitle field refreshed and that is annoying and totally unproductive.
I tried from SharePoint designer different checks, I used different actions like wait until item is changed and then stop but nothing worked. Is there any workaround to this ?
Thanks in advance,
Teddy
Able was I ere I saw ElbaThanks for sharing the answer here, it is really helpful for others with the similar issue.
Qiao Wei
TechNet Community Support -
Tcode opens selection screen, but does not executes the program
Hi!
tcode opens selection screen of a custom program, but it seems that it does not executes the program itself.
Sounds strange, but how to explain this if I can run a program manually with no problem and it displays result screen, but when I try to run the program with tcode - it opens selection screen but program quits before displaying result screen. I was putting a breakpoint at the begining of the program - it does not triggers debuger when running a tcode (it triggers debugger if to run program manually).... any ideas?
Help will be appreciated,
MindaugasAre you using this???
SET PARAMETER ID '80B' FIELD T_TABLE-OPBEL.
CALL TRANSACTION 'FPE3' AND SKIP FIRST SCREEN.
That way it should work....
Greetings,
Blag. -
Job finished successfully but Spool not generated(no spool icon)
I am generating a report which . When the program in scheduled, the job completed successfully but spool icon is not available. Could any one suggest us the reason why spool has not generated. Thanks in advance!
Hi,
When executing report, Spool gets generated only when an Output is generated. Please check if output exits for the selection criteria.
Also check any special mechanisms are used that diverse the ouput when executed in background. -
Communication Channel status successful but file Not Delivered.
Hi All
I have a receiver communication channel which is showing status as SUCCESSFUL but the log says The message status was set to NDLV. Due to which am unable to retrigger it even form Message Monitoring
Its set to FTP & is not received at that side.
Kindly put in your inputs on the possible solution for this issue.
Regards
Soumen!!!I dont think it is held in queue.....you will get an error (the one which you got) and then the message will go into Error state.
When the channels are stopped and it receives a file it raises an error alert and is set to error state. Later when channel is started the file gets processed(You can try doing it.I did). Here it gave the error message but sets the channel to successful. Thats what is botehring me.
Looks like you are scheduling the receiver channel....why?
Had some requirement...
@ Balaji : Its successful -
Compiles but does not execute as expected????
Here is my code. I can compile and execute but does not perform as expected What do I need to change?
import java.io.;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.math.*;
public class CalcTest extends JFrame implements ActionListener, ItemListener
public JMenuBar createMenuBar()
JMenuBar mnuBar = new JMenuBar();
setJMenuBar(mnuBar);
//Create File & add Exit
JMenu mnuFile = new JMenu("File", true);
mnuFile.setMnemonic(KeyEvent.VK_F);
mnuFile.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFile);
JMenuItem mnuFileExit = new JMenuItem("Exit");
mnuFileExit.setMnemonic(KeyEvent.VK_F);
mnuFileExit.setDisplayedMnemonicIndex(1);
mnuFile.add(mnuFileExit);
mnuFileExit.setActionCommand("Exit");
mnuFileExit.addActionListener(this);
JMenu mnuFunction = new JMenu("Function", true);
mnuFunction.setMnemonic(KeyEvent.VK_F);
mnuFunction.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFunction);
JMenuItem mnuFunctionClear = new JMenuItem("Clear");
mnuFunctionClear.setMnemonic(KeyEvent.VK_F);
mnuFunctionClear.setDisplayedMnemonicIndex(1);
mnuFunction.add(mnuFunctionClear);
mnuFunctionClear.setActionCommand("Clear");
mnuFunctionClear.addActionListener(this);
// Fields for Principle
JPanel row1 = new JPanel();
JLabel dollar = new JLabel("How much are you borrowing?");
JTextField money = new JTextField("", 15);
// Fields for Term and Rate
JPanel row2 = new JPanel();
JLabel choice = new JLabel("Select Year & Rate:");
JCheckBox altchoice = new JCheckBox("Alt. Method");
JTextField YR = new JTextField("", 4);
JTextField RT = new JTextField("", 4);
//Jcombobox R=rate,Y=year
String[] RY = {
"7 years at 5.35%", "15 years at 5.5 %", "30 years at 5.75%", " "
JComboBox mortgage = new JComboBox(RY);
// Fields for Payment
JPanel row3 = new JPanel();
JLabel payment = new JLabel("Your monthly payment will be:");
JTextField owe = new JTextField(" ", 15);
//Scroll Pane and Text Area
JPanel row4 = new JPanel();
JLabel amortization = new JLabel("Amortization:");
JTextArea chart = new JTextArea(" ", 7, 22);
JScrollPane scroll = new JScrollPane(chart, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
StringBuffer amt = new StringBuffer();
Container pane = getContentPane();
FlowLayout flow = new FlowLayout(FlowLayout.LEFT);
JButton Cal = new JButton("Calculate");
NumberFormat currency = NumberFormat.getCurrencyInstance();
public CalcTest()
// Title and Exit of JFrame
super("Mortgage and Amortization Calculator");
setSize(475, 328);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//JFrame layout
pane.setLayout(flow);
//Input output fields added to JFrame
row1.add(dollar);
row1.add(money);
pane.add(row1);
mortgage.setSelectedIndex(3);
mortgage.addActionListener(this);
mortgage.setActionCommand("mortgage");
row2.add(altchoice);
altchoice.addItemListener(this);
row2.add(choice);
YR.setEditable(false);
RT.setEditable(false);
row2.add(YR);
row2.add(RT);
row2.add(mortgage);
pane.add(row2);
row3.add(payment);
row3.add(owe);
pane.add(row3);
owe.setEditable(false);
//Scroll Pane added to JFrame
row4.add(amortization);
chart.setEditable(false);
row4.add(scroll);
pane.add(row4);
//Executable Button- Clear,Exit, Calculate
JPanel row5 = new JPanel();
JButton clear = new JButton("Clear");
clear.addActionListener(this);
row5.add(clear);
pane.add(row5);
JButton exit = new JButton("Exit");
exit.addActionListener(this);
row5.add(exit);
Cal.setEnabled(false);
Cal.addActionListener(this);
row5.add(Cal);
pane.add(row5);
setContentPane(pane);
setVisible(true);
} //End of constructor
private void calculate()
String loanAmount = money.getText();
if(loanAmount.equals(""))
return;
double P = Double.parseDouble(loanAmount);
int y;
double r;
if(altchoice.isSelected())
if(YR.getText().equals("") || RT.getText().equals(""))
return;
y = Integer.parseInt(YR.getText());
r = Double.parseDouble(RT.getText());
else
int index = mortgage.getSelectedIndex();
if(index == 3)
return;
int[] terms = { 7, 15, 30 };
double[] rates = { 5.5, 5.35, 5.75 };
y = terms[index];
r = rates[index];
double In = r / (100 * 12.0);
double M = P * (In / (1 - Math.pow(In + 1, -12.0 * y)));
owe.setText(currency.format(M));
//Column Titles for Text Area
chart.setText("Pmt#\tPrincipal\tInterest\tBalance\n");
for (int i = 0; i < y * 12; i++)
{ double interestAccrued = P * In;
double principalPaid = M - interestAccrued;
chart.append(i + 1 + "\t" + currency.format(principalPaid)
+ "\t" + currency.format(interestAccrued)
+ "\t" + currency.format(P) + "\n");
P = P + interestAccrued - M;
public void itemStateChanged(ItemEvent ie)
{ int status = ie.getStateChange();
if (status == ItemEvent.SELECTED)
mortgage.setEnabled(false);
YR.setEditable(true);
RT.setEditable(true);
Cal.setEnabled(true);
else
mortgage.setEnabled(true);
YR.setEditable(false);
RT.setEditable(false);
Cal.setEnabled(false);
public void actionPerformed(ActionEvent ae)//Calculations and Button executions
String command = ae.getActionCommand();
// Exit program
if (command.equals("Exit"))
System.exit(0);
// Cal button
if (command.equals("Calculate") || command.equals("mortgage"))
calculate();
// Clear fields
if (command.equals("Clear"))
money.setText(null);
mortgage.setSelectedIndex(3);
owe.setText(null);
chart.setText(null);
} //End actionPerformed
public static void main(String args[]) throws IOException
new CalcTest();
[/Code]Here is the code again
import java.io.;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.math.*;
public class CalcTest extends JFrame implements ActionListener, ItemListener
public JMenuBar createMenuBar()
JMenuBar mnuBar = new JMenuBar();
setJMenuBar(mnuBar);
//Create File & add Exit
JMenu mnuFile = new JMenu("File", true);
mnuFile.setMnemonic(KeyEvent.VK_F);
mnuFile.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFile);
JMenuItem mnuFileExit = new JMenuItem("Exit");
mnuFileExit.setMnemonic(KeyEvent.VK_F);
mnuFileExit.setDisplayedMnemonicIndex(1);
mnuFile.add(mnuFileExit);
mnuFileExit.setActionCommand("Exit");
mnuFileExit.addActionListener(this);
JMenu mnuFunction = new JMenu("Function", true);
mnuFunction.setMnemonic(KeyEvent.VK_F);
mnuFunction.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFunction);
JMenuItem mnuFunctionClear = new JMenuItem("Clear");
mnuFunctionClear.setMnemonic(KeyEvent.VK_F);
mnuFunctionClear.setDisplayedMnemonicIndex(1);
mnuFunction.add(mnuFunctionClear);
mnuFunctionClear.setActionCommand("Clear");
mnuFunctionClear.addActionListener(this);
// Fields for Principle
JPanel row1 = new JPanel();
JLabel dollar = new JLabel("How much are you borrowing?");
JTextField money = new JTextField("", 15);
// Fields for Term and Rate
JPanel row2 = new JPanel();
JLabel choice = new JLabel("Select Year & Rate:");
JCheckBox altchoice = new JCheckBox("Alt. Method");
JTextField YR = new JTextField("", 4);
JTextField RT = new JTextField("", 4);
//Jcombobox R=rate,Y=year
String[] RY = {
"7 years at 5.35%", "15 years at 5.5 %", "30 years at 5.75%", " "
JComboBox mortgage = new JComboBox(RY);
// Fields for Payment
JPanel row3 = new JPanel();
JLabel payment = new JLabel("Your monthly payment will be:");
JTextField owe = new JTextField(" ", 15);
//Scroll Pane and Text Area
JPanel row4 = new JPanel();
JLabel amortization = new JLabel("Amortization:");
JTextArea chart = new JTextArea(" ", 7, 22);
JScrollPane scroll = new JScrollPane(chart, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
StringBuffer amt = new StringBuffer();
Container pane = getContentPane();
FlowLayout flow = new FlowLayout(FlowLayout.LEFT);
JButton Cal = new JButton("Calculate");
NumberFormat currency = NumberFormat.getCurrencyInstance();
public CalcTest()
// Title and Exit of JFrame
super("Mortgage and Amortization Calculator");
setSize(475, 328);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//JFrame layout
pane.setLayout(flow);
//Input output fields added to JFrame
row1.add(dollar);
row1.add(money);
pane.add(row1);
mortgage.setSelectedIndex(3);
mortgage.addActionListener(this);
mortgage.setActionCommand("mortgage");
row2.add(altchoice);
altchoice.addItemListener(this);
row2.add(choice);
YR.setEditable(false);
RT.setEditable(false);
row2.add(YR);
row2.add(RT);
row2.add(mortgage);
pane.add(row2);
row3.add(payment);
row3.add(owe);
pane.add(row3);
owe.setEditable(false);
//Scroll Pane added to JFrame
row4.add(amortization);
chart.setEditable(false);
row4.add(scroll);
pane.add(row4);
//Executable Button- Clear,Exit, Calculate
JPanel row5 = new JPanel();
JButton clear = new JButton("Clear");
clear.addActionListener(this);
row5.add(clear);
pane.add(row5);
JButton exit = new JButton("Exit");
exit.addActionListener(this);
row5.add(exit);
Cal.setEnabled(false);
Cal.addActionListener(this);
row5.add(Cal);
pane.add(row5);
setContentPane(pane);
setVisible(true);
} //End of constructor
private void calculate()
String loanAmount = money.getText();
if(loanAmount.equals(""))
return;
double P = Double.parseDouble(loanAmount);
int y;
double r;
if(altchoice.isSelected())
if(YR.getText().equals("") || RT.getText().equals(""))
return;
y = Integer.parseInt(YR.getText());
r = Double.parseDouble(RT.getText());
else
int index = mortgage.getSelectedIndex();
if(index == 3)
return;
int[] terms = { 7, 15, 30 };
double[] rates = { 5.5, 5.35, 5.75 };
y = terms[index];
r = rates[index];
double In = r / (100 * 12.0);
double M = P * (In / (1 - Math.pow(In + 1, -12.0 * y)));
owe.setText(currency.format(M));
//Column Titles for Text Area
chart.setText("Pmt#\tPrincipal\tInterest\tBalance\n");
for (int i = 0; i < y * 12; i++)
{ double interestAccrued = P * In;
double principalPaid = M - interestAccrued;
chart.append(i + 1 + "\t" + currency.format(principalPaid)
+ "\t" + currency.format(interestAccrued)
+ "\t" + currency.format(P) + "\n");
P = P + interestAccrued - M;
public void itemStateChanged(ItemEvent ie)
{ int status = ie.getStateChange();
if (status == ItemEvent.SELECTED)
mortgage.setEnabled(false);
YR.setEditable(true);
RT.setEditable(true);
Cal.setEnabled(true);
else
mortgage.setEnabled(true);
YR.setEditable(false);
RT.setEditable(false);
Cal.setEnabled(false);
public void actionPerformed(ActionEvent ae)//Calculations and Button executions
String command = ae.getActionCommand();
// Exit program
if (command.equals("Exit"))
System.exit(0);
// Cal button
if (command.equals("Calculate") || command.equals("mortgage"))
calculate();
// Clear fields
if (command.equals("Clear"))
money.setText(null);
mortgage.setSelectedIndex(3);
owe.setText(null);
chart.setText(null);
} //End actionPerformed
public static void main(String args[]) throws IOException
new CalcTest(); -
What if simple Applet prg compiles successfully but do not loaded
Dear Sir,
I am new to applet programming. I have witten a very simple applet program with init, start and paint method. My prog complied successfully but when I run the prog using appletviewer cmd, the Applet window does not loaded(does not appear). Please guid me throgh the solution.
Thanks & Regards
pankhTake a look at this applet tutorial.
[http://java.sun.com/docs/books/tutorial/deployment/applet/index.html] -
Photosmart 7520 e-ALL-IN-ONE appears to send email from scan successfully but does not
The scanner scans and appears to send the email successfully, actually confirms the email has been sent but does not arrive
This question was solved.
View Solution.Hi Anne,
Thank you for the update. It’s great that we solved one issue, now onto the next ...
Please Try the HP Print and Scan Doctor for Windows. The Print and Scan Doctor diagnoses and helps resolve common printing, scanning, and connectivity problems. It should resolve the problem, or at least point you in the right direction to solve the issue of the missing text. If it doesn’t, please try following the steps in Troubleshooting Print Quality Issues.
Regards,
Happytohelp01
Please click on the Thumbs Up on the right to say “Thanks” for helping!
Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
I work on behalf of HP
Maybe you are looking for
-
HT201413 Why can't I get Home Sharing to show up in my Itunes?
I have three computers authorized on my Home Sharing, but when I call up Itunes on any of the computers, Home Sharing computers do not show up. Can someone help me. I just got a new computer and can't seem to get my Itunes library switched over.
-
How do I change the Apple id against a certain telephone number? I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?
-
How to add two columns in OBIEE report?
Hi to All, Can anyone tell me how to add two columns in OBIEE report and get that result in a new column? Thanks in Advance, Thenmozhi
-
File not getting picked up JMS sender communication chnanel in EOIO mode
Hi Experts, We have a scenario to process the messages in sequence via JMS sender comm channel. We changed the jms channel to EOIO, after the change, the channel is in green but no message arrives to the Adapter engine. We are working on a newly inst
-
Hello, Please give me some code with using index acess ( please high light the index)