Help relating the output
I have the following xml:
<?xml version="1.0" encoding="UTF-8"?>
<REPORT>
<P_REQUEST_ID>5953004</P_REQUEST_ID>
<LIST_Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Forms</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>30</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Forms</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>6</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Forms</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>9</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Function</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>11</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Function</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>2</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>PackageBody</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>49</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>PackageBody</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>19</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>PackageBody</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>53</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Procedure</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>67</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Procedure</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>39</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Procedure</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>64</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Reports</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>209</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Reports</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>71</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Reports</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>107</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>SQLScript</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>267</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>SQLScript</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>36</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>SQLScript</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>76</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>ShellScript</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>3</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>ShellScript</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>1</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Trigger</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>6</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>Trigger</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>1</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>View</FILE_TYPE>
<COMPLEXITY>SIMPLE</COMPLEXITY>
<FILE_COUNT>32</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>View</FILE_TYPE>
<COMPLEXITY>MEDIUM</COMPLEXITY>
<FILE_COUNT>8</FILE_COUNT>
</Q_SUMMARY_REPORT>
<Q_SUMMARY_REPORT>
<FILE_TYPE>View</FILE_TYPE>
<COMPLEXITY>COMPLEX</COMPLEXITY>
<FILE_COUNT>5</FILE_COUNT>
</Q_SUMMARY_REPORT>
</LIST_Q_SUMMARY_REPORT>
</REPORT>
and i need the output in the following format
Simple Medium Complex
Forms 30 6 9
Function 11 2
PackageBody 49 19 53
Procedure 67 39 64
Reports 209 71 107
SQLScript 267 36 76
ShellScript 3 1
Trigger 6 1
View 32 8 5
Total 641 180 319
Please help me with the possibility of this type of output,thanks in advance.
Kind Regards,
Mahi
The output is quite possible. Create a pivot table with File type as Rows and Complexity as the column and file count as the data. Set the sort order for column 1 as descending text and turn the Total for "Row Subtotal' and "Row Total" to False.
This will give you the required output. If the Complexity values can be more than the three values you have currently and you want to sort them correctly, it would be a good idea to bring in a sort column.
I can send you the RTF template. Please send me an email to [email protected]
Thanks,
Bipuser
Similar Messages
-
hii friends,
i want f4 (help )functionality at the output the alv report,i need the code . guys do suggest me.
thanks®ards,
sumanth reddyHi,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <Field_Name>
PERFORM request.
FORM request.
use function 'F4IF_INT_TABLE_VALUE_REQUEST'
ENDFORM.
Regards,
Chandra Shekhar Agnihotri
Edited by: Chandra Shekhar Agnihotri on Feb 25, 2009 9:54 AM
Edited by: Chandra Shekhar Agnihotri on Feb 25, 2009 9:54 AM -
Help installing the OUTPUT MODULE
I installed the download for the OUTPUT module in bridge, by following the directions on the adobe website. The module name appears in the upper right of the screen, but nothing happens when I click on the name. I put the module folder into the location ~/Library/Application Support/Adobe/Bridge CC folder. I could not find a Bridge CC Extensions folder. I BELIEVE I PUT IT INTO THE RIGHT LOCATION.
There is no Adobe Bridge CC 2014. There are only Adobe Bridge CS6 and Adobe Bridge CC. Adobe Bridge CC has been modified to invoke/work with Photoshop CC 2014. This is a problem for users that have both Photoshop CC and Photoshop CC 2014 installed. From my previous append you should see where Adobe Output Module get installed on Window. I use the Adobe instructions for installing the output module into Adobe. Here is what I downloaded and where the output module workspaces get installed.
I see two options in the Adobe Bridge CC output module PDF and some poor web Galleries. -
Help assessing the output of fsck on my external drive
EDIT: It's Terabytes, not Gigabytes
Hi all,
I have a 3GB 3 TB external hard drive in ext4. It's new but lately it has often been giving me
input/output errors. That said, there was a heavy usage at the time, with two external
disks being written with data. Also, I had once unplugged the drive by mistake while data
was being written on it.
Could somebody tell me what conclusions can we have from the following result of fsck?
I'm curious if the disk is damaged or something.
Thanks in advance.
jorge@flamingo:~$ sudo fsck.ext4 -cDfty -C 0 /dev/sdb1
e2fsck 1.42.12 (29-Aug-2014)
BRICK: recovering journal
Checking for bad blocks (read-only test): 0.43% done, 7:22 0.43% done, 7:24 elapsed. (0/0/0 errors) <---- That went on for about a day
BRICK: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? yes
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (667461777, counted=667500230).
Fix? yes
Free inodes count wrong (183133100, counted=183133113).
Fix? yes
BRICK: ***** FILE SYSTEM WAS MODIFIED *****
BRICK: 15431/183148544 files (15.4% non-contiguous), 65066042/732566272 blocks
Memory used: 608k/704k (470k/139k), time: 90243.44/14.23/ 0.19
I/O read: 35MB, write: 21MB, rate: 0.00MB/s
Last edited by geo909 (2014-10-01 20:32:43)graysky wrote:OK... the command I posted will do a scan of the entire disk... for 3TB, that will likely take days. Do you see any reallocated sectors from `smartctl --all /dev/sdX | grep -i reall` ? If you do, scanning the disk might be a waste of your time. Once you get them, more tend to follow. Probably better to RMA the drive.
smartctl says the health status is OK. So I'll start running e2fsck.
On another note, after googling around, I started suspecting the power too. I live in an old house, with very few outlets,
so I have one outlet for: a monitor; speakers; a laptop; a printer/scanner; a powered usb hub connected to an external
disk and an mp3 player; a desk lamp, and this hard disk.
Also, the last time the disk gave me a I/O error was when I was doing a very large synchronization with unison in two disks
simultaneously. With normal use I haven't had anything unusual so far, so maybe it's just that I've been asking too much
from my drives.
Last edited by geo909 (2014-10-02 02:35:10) -
How do you Select data from two tables with similar data amd merge the output together.
I have two Tables containing Sales Data. I want to read the Table a sort by date and accumulate dollars by order date. Then I want to read the second table and accumulate these dollar amounts by date and then merge the records together so that I gave 1 row
with amounts for type A and amounts for type b.
Here are the tables I am looking at.
Select Cast(J.Order_Date As Varchar(11))) As [Order Date]
,Sum(Case when Sales_Code like '%Comm%' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Comm]
,Sum(Case when Sales_Code = '5-Day' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
,Sum(Case when Sales_Code like '%Auto%" then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
,Sum(Case when Sales_Code = '' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Fixed]
,Sum(Case when Sales_Code = 'XX' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Comm)
,Sum(Case when Sales_Code = 'YY' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Auto)
,Sum(Case when Sales_Code = 'ZZ' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Fixed)
from [PRODUCTION].dbo.Job As J
union all
Select Cast(SH.Order_Date As Varchar(11))) As [Order Date]
,Sum(Case when Sales_Code like '%Comm%' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Comm]
,Sum(Case when Sales_Code = '5-Day' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
,Sum(Case when Sales_Code like '%Auto%" then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
,Sum(Case when Sales_Code = '' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Fixed]
,Sum(Case when Sales_Code = 'XX' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Comm)
,Sum(Case when Sales_Code = 'YY' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Auto)
,Sum(Case when Sales_Code = 'ZZ' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Fixed)
from [PRODUCTION].dbo.SO_Detail As SD
Inner Join [PRODUCTION].dbo.SO_Header As SH
on SD.Sales_Order = SH.Sales_Order
Group by J.Order_Date
Order by J.Order_Date Desc
Looking for output like
Order Date Job Comm Job AUto Job Fixed SO Comm SO AUto SO Fixed
Mar-11-2014 100.00 250.00 50.00 200.00 300.00 400.00
Mar-10-2014 500.00 340.00 0.00 110.00 400.00 500.00
Mar-09-2014 600.00 333.00 56.00 210.00 500.00 300.00
Thanks for your help
SWProductionSeeing the output it looks like what you need is this
select COALESCE(p.[Order Date],q.[Order Date]) AS [Order Date],
COALESCE([Job Comm],0) AS [Job Comm],
COALESCE([Job AUto],0) AS [Job AUto],COALESCE([Job Fixed],0) AS [Job Fixed],COALESCE([SO Comm],0) AS [SO Comm],COALESCE([SO AUto],0) AS [SO AUto],COALESCE([SO Fixed],0) AS [SO Fixed]
from
Select Cast(J.Order_Date As Varchar(11))) As [Order Date]
,Sum(Case when Sales_Code like '%Comm%' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Comm]
,Sum(Case when Sales_Code = '5-Day' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
,Sum(Case when Sales_Code like '%Auto%" then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
,Sum(Case when Sales_Code = '' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Fixed]
,Sum(Case when Sales_Code = 'XX' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Comm)
,Sum(Case when Sales_Code = 'YY' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Auto)
,Sum(Case when Sales_Code = 'ZZ' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Fixed)
from [PRODUCTION].dbo.Job As J
)p
full join
Select Cast(SH.Order_Date As Varchar(11))) As [Order Date]
,Sum(Case when Sales_Code like '%Comm%' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Comm]
,Sum(Case when Sales_Code = '5-Day' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
,Sum(Case when Sales_Code like '%Auto%" then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
,Sum(Case when Sales_Code = '' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Fixed]
,Sum(Case when Sales_Code = 'XX' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Comm)
,Sum(Case when Sales_Code = 'YY' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Auto)
,Sum(Case when Sales_Code = 'ZZ' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Fixed)
from [PRODUCTION].dbo.SO_Detail As SD
Inner Join [PRODUCTION].dbo.SO_Header As SH
on SD.Sales_Order = SH.Sales_Order
Group by J.Order_Date
)q
on p.[Order Date] = q.[Order Date]
Order by COALESCE(p.[Order Date],q.[Order Date]) Desc
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to F4 help to the ALV column
Hi Gurus,
Is there any method in classical ALV, to add F4 help for the output column.
(Samething is a default in OOP method and can be overridden by user specific values using event ONF4).
But I need in Classical ALV.
Your helpful answer will be suitably rewarded.
-B S B.TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
***********SELECTION SCREEN DESIGN***********************
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
**********END OF SELECTION SCREEN DESIGN*****************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_TAB = RETURN_TAB
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Regards. -
Installing the "Output Module" on a Mac computer
I'm REALLY new to Mac and need help installing the "output module" in bridge on my computer. I'm using creative cloud if that matters.
Thanks,
MelindaYou simply put the folder where you want (I put mine at the root level of my hard disk).
The Sample files are set up to use the API from the parents folder, so there is nothing to worry about.
Just open a sample project that looks compelling and start hacking. :)
Regards,
Jeshua Lacock, Owner
phone: 877.240.1364 -
Help to catch the output of a Transaction
Hi,
I have this issue and need help, I have a program lets say "ZPROGRAM", this programs calls a RFC "ZFUNC" this function must be able to send the parameters to execute a SAP standard transaction for example MB51, the function must send the plant number, storage location, and material number, then this RFC must catch the output of the report into an internal table so that i can work with the output in "ZPROGRAM", in other words what I see on screen as result of MB51 I need it in an internal table so that I can manupulate the data.
I hope someone could tell me how to accomplish this.
Thanks in advice.Hi,
Pls try
DATA list_tab TYPE TABLE OF abaplist.
DATA vlist LIKE table of LISTZEILE WITH HEADER LINE.
submit RM07DOCS
with XXX
EXPORTING LIST TO MEMORY
and return .
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = vlist
listobject =list_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
Regards,
Pole
Edited by: Pole li on Jul 17, 2008 3:57 AM -
Need help to draw a graph from the output I get with my program please
Hi all,
I please need help with this program, I need to display the amount of money over the years (which the user has to enter via the textfields supplied)
on a graph, I'm not sure what to do further with my program, but I have created a test with a System.out.println() method just to see if I get the correct output and it looks fine.
My question is, how do I get the input that was entered by the user (the initial deposit amount as well as the number of years) and using these to draw up the graph? (I used a button for the user to click after he/she has entered both the deposit and year values to draw the graph but I don't know how to get this to work?)
Please help me.
The output that I got looked liked this: (just for a test!) - basically this kind of output must be shown on the graph...
The initial deposit made was: 200.0
After year: 1 Amount is: 210.00
After year: 2 Amount is: 220.50
After year: 3 Amount is: 231.53
After year: 4 Amount is: 243.10
After year: 5 Amount is: 255.26
After year: 6 Amount is: 268.02
After year: 7 Amount is: 281.42
After year: 8 Amount is: 295.49
After year: 9 Amount is: 310.27
After year: 10 Amount is: 325.78
After year: 11 Amount is: 342.07
After year: 12 Amount is: 359.17
After year: 13 Amount is: 377.13
After year: 14 Amount is: 395.99
After year: 15 Amount is: 415.79
After year: 16 Amount is: 436.57
After year: 17 Amount is: 458.40And here is my code that Iv'e done so far:
import javax.swing.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.Math;
import java.text.DecimalFormat;
public class CompoundInterestProgram extends JFrame implements ActionListener {
JLabel amountLabel = new JLabel("Please enter the initial deposit amount:");
JTextField amountText = new JTextField(5);
JLabel yearsLabel = new JLabel("Please enter the numbers of years:");
JTextField yearstext = new JTextField(5);
JButton drawButton = new JButton("Draw Graph");
public CompoundInterestProgram() {
super("Compound Interest Program");
setSize(500, 500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
amountText.addActionListener(this);
yearstext.addActionListener(this);
JPanel panel = new JPanel();
panel.setBackground(Color.white);
panel.add(amountLabel);
amountLabel.setToolTipText("Range of deposit must be 20 - 200!");
panel.add(amountText);
panel.add(yearsLabel);
yearsLabel.setToolTipText("Range of years must be 1 - 25!");
panel.add(yearstext);
panel.add(drawButton);
add(panel);
setVisible(true);
public static void main(String[] args) {
DecimalFormat dec2 = new DecimalFormat( "0.00" );
CompoundInterestProgram cip1 = new CompoundInterestProgram();
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new GraphPanel());
f.setSize(500, 500);
f.setLocation(200,200);
f.setVisible(true);
Account a = new Account(200);
System.out.println("The initial deposit made was: " + a.getBalance() + "\n");
for (int year = 1; year <= 17; year++) {
System.out.println("After year: " + year + " \t" + "Amount is: " + dec2.format(a.getBalance() + a.calcInterest(year)));
@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
class Account {
double balance = 0;
double interest = 0.05;
public Account() {
balance = 0;
interest = 0.05;
public Account(int deposit) {
balance = deposit;
interest = 0.05;
public double calcInterest(int year) {
return balance * Math.pow((1 + interest), year) - balance;
public double getBalance() {
return balance;
class GraphPanel extends JPanel {
public GraphPanel() {
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setColor(Color.red);
}Your help would be much appreciated.
Thanks in advance.watertownjordan wrote:
http://www.jgraph.com/jgraph.html
The above is also good.Sorry but you need to look a bit more closely at URLs that you cite. What the OP wants is a chart (as in X against Y) not a graph (as in links and nodes) . 'jgraph' deals with links and nodes.
The best free charting library that I know of is JFreeChart from www.jfree.org. -
NOOB Question - Cannot seem to get the output in a text or CSV file - Please help!!
I was able to put together a script which finds members of a certain AD group, filters down the users, and then calculates the number of days till a password reset is needed. I am able to get on screen exactly what i am looking for, but cannot seem
to figure out how to get the same data to a file. What i am doing wrong? two goals here:
1. Create a spreadsheet with a list of users whose password is about to expire.
2. Down the line automate an email to users whose password is about to expire.
Here is my code:
## Get List Of Users in Password Change Lockout that do not have an expired password or a password that never expires
$Names = (Get-ADGroupMember -Identity "Password Change Lockout" -Recursive |`
Get-ADUser -Properties * |`
Where-Object {$_.PasswordNeverExpires -eq $False -and $_.PasswordExpired -eq $False} |`
Sort-Object name |Select-Object -ExpandProperty SamAccountName)
## Get Password last Set values for all
Foreach ($Name in $Names)
$VAR1 = (Get-ADUserResultantPasswordPolicy -Identity $Name).MaxPasswordAge
$VAR2 = (Get-ADUser $Name -Properties *).passwordlastset
$VAR3 = (Get-ADUser $Name -Properties *).name
$DTPC = (New-TimeSpan -Start (Get-Date) -End ($VAR2 + $VAR1) | Select-Object -ExpandProperty Days)
Filter users to those who need to change thier password in 15 days.
If ($DTPC -lt 15)
No matter what i try between the {} after the If statement, I cannot get the output to a file. However, if I use a Write-Output I get exactly what i looking for. I feel like i am forgetting some basic concept and could really use some help. Thanks.
Matt
Matt DillonHi Matt,
I generally create an empty array (something like $out = @()) at the top of the script and then use $out += $desiredOutput inside of the foreach loop.
Outside of the loop, you can then pipe $out to Out-File or Export-Csv, depending on your needs.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing) -
Can anyone help me find the output option in Bridge CC?
Can anyone help me find the output option in Bridge CC?
http://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
-
i am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me. aftwer 100ms it has to go to zero state
hi,
You can try generating 5V continously for 100ms in a loop later on you can make it low.
Hope this helps you. -
Context-sensitive help - where is the CS topic folder in the output files?
I have created a FlashHelpPro help file in RoboHelp 7 HTML. In the project setup pane, I have Map ID'd my context-sensitive topics and linked them to their respective pages. I generated the project, but there is no folder containing the context-sensitive topics in the output files. As a result, the developer suggested that I need to create a separate folder in the Project Manager that contains all the context-sentitive topics. Is this actually the next step, or can the developer find what he needs elsewhere in the files?
I haven't seen anything about creating a separate folder in the Project Manager, which seems redundant as there is the 'Context-sensitive Help' folder already present in the Project Set-up. Do I need to create a separate folder, as suggested by the developer? If not, where can he find the context-sensitive files in the output? Thank you.Hi,
What do you mean that the context sensitive topics are not in the output? RoboHelp generates your output and (in WebHelp, so the same should count for FlashHelp) puts the context sensitivity in cshdat_webhelp.htm. Your developer doesn't need to worry about this, he just has to get his call right.
For information on calling the help, see http://www.grainge.org/pages/authoring/calling_webhelp/calling_webhelp.htm. It's for WebHelp but it should be the same for FlashHelp.
If your developer only wants to know which mapid's he has to call, you best give them your map files (the .h files).
Greet,
Willam
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer. -
trying to use headphones to watch a show online... sound still comes out of the internal speakers, not through my headphones.. i used help, said to go to sound preferences and choose headphones from the output pane, but it doesn't list headphones
trying to do this on a macbook pro...please help
-
// Code Help need .. in Reading CSV file and display the Output.
Hi All,
I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
The example of CSV file is
Firstname,LastName
Happy,Coding
Learn,C#
I want to display the output as
HappyCodingXYZCollage
LearnC#XYXCollage
The below is the code I have tried so far.
// .Reading a CSV
var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
List<string> listA = new List<string>();
while (!reader.EndOfStream)
var line = reader.ReadLine();
string[] values = line.Split(',');
listA.Add(values[0]);
listA.Add(values[1]);
listA.Add(values[2]);
// listB.Add(values[1]);
foreach (string str in listA)
//StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
Console.WriteLine("the value is {0}", str);
Console.ReadLine();
Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
Best Regards,
Raja Village Sync
Beginer CoderVery simple example:
var column1 = new List<string>();
var column2 = new List<string>();
using (var rd = new StreamReader("filename.csv"))
while (!rd.EndOfStream)
var splits = rd.ReadLine().Split(';');
column1.Add(splits[0]);
column2.Add(splits[1]);
// print column1
Console.WriteLine("Column 1:");
foreach (var element in column1)
Console.WriteLine(element);
// print column2
Console.WriteLine("Column 2:");
foreach (var element in column2)
Console.WriteLine(element);
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]
Maybe you are looking for
-
Default namespace & interface in Sender Soap Adapter XI vs. PI 7.1
In XI there is an option to set the default namespace and interface for sender SOAP adapters. Where or how is this to be handled in PI 7.1
-
Excel Multi Value Parameter fails
I have a stored proc that i pas through multiple values to one parameter. In SSMS this works perfectly. From excel i have a range of ids that i put into one cell as csv's. If i put 21 ids this works perfectly, if i exceed 21 i receive the following e
-
Table of Contents Deactivated in HTML Formatted Emails - How to Fix?
Problem Details: I produce a newsletter with an embedded table of contents. In iOS7, users were able navigate via the table of contents and traverse to the corresponding articles. This functionality has been lost upon the installation of iOS8. My
-
Does anyone know the differences between SEM-BW based BCS, and SEM R3 Based BCS. Especially, the difference in use, and business use. So, When would I use BW based, and when R3 based? What are the reasons for using one or the other? Thanks in advance
-
IChat - Host does not support Kerberos authentication
Hi all, I have been trying but with no success to set up an iChat server on 10.6. Our OS X server is bound to AD and will hopefully be using AD to authenticate the iChat clients. I have followed Apple's guide on commenting out the <!-- <cram-md5/> --