Need help on fetching 500k records
Dear programmers,
I'm developing an web application that allow user to download a very large number of records.
I used JDBC to query result and put it in a text file.
It runs very slow and eats a lot of memory.
Does anyone have suggestion?
Khanh.
Regards,
Hi,
<a href="/people/sap.user72/blog/2005/05/09/have-you-played-blindfold-chess's</a> how to create a dynamic table, though I think you have already done this.
Do look at the comment that Armin Reichert has put in. Now in the source code that he has provided, the last line should be
table.setOnLeadSelect(wdThis.wdGetLeadSelectAction());
Have you done something similar to this?
Have you set the initializeLeadSelect property of the datasource node to true?
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty
Similar Messages
-
Need help to fit the records of a table into a particular region
Hi All,
Need help in getting the records of table to be fitted into a particular region provided for it. But in my case as the records increases the textbox below are moving down accordingly into next page that i dont want.
As shown in the below image i have to fit 22 no. of records in that given area only not disturbing the below textbox alignments.
Thank in advance...
Sreekanth Note: Please vote/mark the post as answered if it answers your question/helps to solve your problem.*****Hello,
In SSRS, Report items within a report can be
kept together on a single page implicitly or explicitly by setting the keep with group or keep together properties.
In your case, you can try to specify the "KeepTogether" property to True on the Table properties windows.
If there are other report items under or above the Table and you want keep all items on the single page, you can try to add a Rectangle and put all items into the Rectangle.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Need Help With File Matching Records
I need help with my file matching program.
Here is how it suppose to work: FileMatch class should contain methods to read oldmast.txt and trans.txt. When a match occurs (i.e., records with the same account number appear in both the master file and the transaction file), add the dollar amount in the transaction record to the current balance in the master record, and write the "newmast.txt" record. (Assume that purchases are indicated by positive amounts in the transaction file and payments by negative amounts.)
When there is a master record for a particular account, but no corresponding transaction record, merely write the master record to "newmast.txt". When there is a transaction record, but no corresponding master record, print to a log file the message "Unmatched transaction record for account number ..." (fill in the account number from the transaction record). The log file should be a text file named "log.txt".
Here is my following program code:
// Exercise 14.8: CreateTextFile.java
// creates a text file
import java.io.FileNotFoundException;
import java.lang.SecurityException;
import java.util.Formatter;
import java.util.FormatterClosedException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import org.egan.AccountRecord;
import org.egan.TransactionRecord;
public class CreateTextFile
private Formatter output1; // object used to output text to file
private Formatter output2; // object used to output text to file
// enable user to open file
public void openTransFile()
try
output1 = new Formatter("trans.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openTransFile
// enable user to open file
public void openOldMastFile()
try
output2 = new Formatter("oldmast.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openOldMastFile
// add transaction records to file
public void addTransactionRecords()
// object to be written to file
TransactionRecord record1 = new TransactionRecord();
Scanner input1 = new Scanner(System.in);
System.out.printf("%s\n%s\n%s\n%s\n\n",
"To terminate input, type the end-of-file indicator",
"when you are prompted to enter input.",
"On UNIX/Linux/Mac OS X type <ctrl> d then press Enter",
"On Windows type <ctrl> z then press Enter");
System.out.printf("%s\n%s",
"Enter account number (> 0) and amount.","? ");
while (input1.hasNext()) // loop until end-of-file indicator
try // output values to file
// retrieve data to be output
record1.setAccount(input1.nextInt()); // read account number
record1.setAmount(input1.nextDouble()); // read amount
if (record1.getAccount() > 0)
// write new record
output1.format("%d %.2f\n", record1.getAccount(), record1.getAmount());
} // end if
else
System.out.println("Account number must be greater than 0.");
} // end else
} // end try
catch (FormatterClosedException formatterClosedException)
System.err.println("Error writing to file.");
return;
} // end catch
catch (NoSuchElementException elementException)
System.err.println("Invalid input. Please try again.");
input1.nextLine(); // discard input so user can try again
} // end catch
System.out.printf("%s %s\n%s", "Enter account number (> 0) ",
"and amount.","? ");
} // end while
} // end method addTransactionRecords
// add account records to file
public void addAccountRecords()
// object to be written to file
AccountRecord record2 = new AccountRecord();
Scanner input2 = new Scanner(System.in);
System.out.printf("%s\n%s\n%s\n%s\n\n",
"To terminate input, type the end-of-file indicator",
"when you are prompted to enter input.",
"On UNIX/Linux/Mac OS X type <ctrl> d then press Enter",
"On Windows type <ctrl> z then press Enter");
System.out.printf("%s\n%s",
"Enter account number (> 0), first name, last name and balance.","? ");
while (input2.hasNext()) // loop until end-of-file indicator
try // output values to file
// retrieve data to be output
record2.setAccount(input2.nextInt()); // read account number
record2.setFirstName(input2.next()); // read first name
record2.setLastName(input2.next()); // read last name
record2.setBalance(input2.nextDouble()); // read balance
if (record2.getAccount() > 0)
// write new record
output2.format("%d %s %s %.2f\n", record2.getAccount(), record2.getFirstName(),
record2.getLastName(), record2.getBalance());
} // end if
else
System.out.println("Account number must be greater than 0.");
} // end else
} // end try
catch (FormatterClosedException formatterClosedException)
System.err.println("Error writing to file.");
return;
} // end catch
catch (NoSuchElementException elementException)
System.err.println("Invalid input. Please try again.");
input2.nextLine(); // discard input so user can try again
} // end catch
System.out.printf("%s %s\n%s", "Enter account number (> 0),",
"first name, last name and balance.","? ");
} // end while
} // end method addAccountRecords
// close file
public void closeTransFile()
if (output1 != null)
output1.close();
} // end method closeTransFile
// close file
public void closeOldMastFile()
if (output2 != null)
output2.close();
} // end method closeOldMastFile
} // end class CreateTextFile--------------------------------------------------------------------------------------------------
// Exercise 14.8: CreateTextFileTest.java
// Testing class CreateTextFile
public class CreateTextFileTest
// main method begins program execution
public static void main( String args[] )
CreateTextFile application = new CreateTextFile();
application.openTransFile();
application.addTransactionRecords();
application.closeTransFile();
application.openOldMastFile();
application.addAccountRecords();
application.closeOldMastFile();
} // end main
} // end class CreateTextFileTest-------------------------------------------------------------------------------------------------
// Exercise 14.8: TransactionRecord.java
// A class that represents on record of information
package org.egan; // packaged for reuse
public class TransactionRecord
private int account;
private double amount;
// no-argument constructor calls other constructor with default values
public TransactionRecord()
this(0,0.0); // call two-argument constructor
} // end no-argument AccountRecord constructor
// initialize a record
public TransactionRecord(int acct, double amt)
setAccount(acct);
setAmount(amt);
} // end two-argument TransactionRecord constructor
// set account number
public void setAccount(int acct)
account = acct;
} // end method setAccount
// get account number
public int getAccount()
return account;
} // end method getAccount
// set amount
public void setAmount(double amt)
amount = amt;
} // end method setAmount
// get amount
public double getAmount()
return amount;
} // end method getAmount
} // end class TransactionRecord -------------------------------------------------------------------------------------------------
// Exercise 14.8: AccountRecord.java
// A class that represents on record of information
package org.egan; // packaged for reuse
import org.egan.TransactionRecord;
public class AccountRecord
private int account;
private String firstName;
private String lastName;
private double balance;
// no-argument constructor calls other constructor with default values
public AccountRecord()
this(0,"","",0.0); // call four-argument constructor
} // end no-argument AccountRecord constructor
// initialize a record
public AccountRecord(int acct, String first, String last, double bal)
setAccount(acct);
setFirstName(first);
setLastName(last);
setBalance(bal);
} // end four-argument AccountRecord constructor
// set account number
public void setAccount(int acct)
account = acct;
} // end method setAccount
// get account number
public int getAccount()
return account;
} // end method getAccount
// set first name
public void setFirstName(String first)
firstName = first;
} // end method setFirstName
// get first name
public String getFirstName()
return firstName;
} // end method getFirstName
// set last name
public void setLastName(String last)
lastName = last;
} // end method setLastName
// get last name
public String getLastName()
return lastName;
} // end method getLastName
// set balance
public void setBalance(double bal)
balance = bal;
} // end method setBalance
// get balance
public double getBalance()
return balance;
} // end method getBalance
// combine balance and amount
public void combine(TransactionRecord record)
balance = (getBalance() + record.getAmount());
} // end method combine
} // end class AccountRecord -------------------------------------------------------------------------------------------------
// Exercise 14.8: FileMatch.java
import java.io.File;
import java.io.FileNotFoundException;
import java.lang.IllegalStateException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.util.Formatter;
import java.util.FormatterClosedException;
import org.egan.AccountRecord;
import org.egan.TransactionRecord;
public class FileMatch
private Scanner inTransaction;
private Scanner inOldMaster;
private Formatter outNewMaster;
private Formatter theLog;
// enable user to open file
public void openTransFile()
try
inTransaction = new Scanner(new File("trans.txt"));
} // end try
catch (FileNotFoundException fileNotFoundException)
System.err.println("Error opening file.");
System.exit(1);
} // end catch
} // end method openTransFile
// enable user to open file
public void openOldMastFile()
try
inOldMaster = new Scanner(new File("oldmast.txt"));
} // end try
catch (FileNotFoundException fileNotFoundException)
System.err.println("Error opening file.");
System.exit(1);
} // end catch
} // end method openOldMastFile
// enable user to open file
public void openNewMastFile()
try
outNewMaster = new Formatter("newmast.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openNewMastFile
// enable user to open file
public void openLogFile()
try
theLog = new Formatter("log.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openLogFile
// update records
public void updateRecords()
TransactionRecord transaction = new TransactionRecord();
AccountRecord account = new AccountRecord();
try // read records from file using Scanner object
System.out.println("Start file matching.");
while (inTransaction.hasNext() && inOldMaster.hasNext())
transaction.setAccount(inTransaction.nextInt()); // read account number
transaction.setAmount(inTransaction.nextDouble()); // read amount
account.setAccount(inOldMaster.nextInt()); // read account number
account.setFirstName(inOldMaster.next()); // read first name
account.setLastName(inOldMaster.next()); // read last name
account.setBalance(inOldMaster.nextDouble()); // read balance
if (transaction.getAccount() == account.getAccount())
while (inTransaction.hasNext() && transaction.getAccount() == account.getAccount())
account.combine(transaction);
outNewMaster.format("%d %s %s %.2f\n",
account.getAccount(), account.getFirstName(), account.getLastName(),
account.getBalance());
transaction.setAccount(inTransaction.nextInt()); // read account number
transaction.setAmount(inTransaction.nextDouble()); // read amount
else if (transaction.getAccount() != account.getAccount())
outNewMaster.format("%d %s %s %.2f\n",
account.getAccount(), account.getFirstName(), account.getLastName(),
account.getBalance());
theLog.format("%s%d","Unmatched transaction record for account number ",transaction.getAccount());
} // end while
System.out.println("Finish file matching.");
} // end try
catch (NoSuchElementException elementException)
System.err.println("File improperly formed.");
inTransaction.close();
inOldMaster.close();
System.exit(1);
} // end catch
catch (IllegalStateException stateException)
System.err.println("Error reading from file.");
System.exit(1);
} // end catch
} // end method updateRecords
// close file and terminate application
public void closeTransFile()
if (inTransaction != null)
inTransaction.close();
} // end method closeTransFile
// close file and terminate application
public void closeOldMastFile()
if (inOldMaster != null)
inOldMaster.close();
} // end method closeOldMastFile
// close file
public void closeNewMastFile()
if (outNewMaster != null)
outNewMaster.close();
} // end method closeNewMastFile
// close file
public void closeLogFile()
if (theLog != null)
theLog.close();
} // end method closeLogFile
} // end class FileMatch-------------------------------------------------------------------------------------------------
// Exercise 14.8: FileMatchTest.java
// Testing class FileMatch
public class FileMatchTest
// main method begins program execution
public static void main( String args[] )
FileMatch application = new FileMatch();
application.openTransFile();
application.openOldMastFile();
application.openNewMastFile();
application.openLogFile();
application.updateRecords();
application.closeLogFile();
application.closeNewMastFile();
application.closeOldMastFile();
application.closeTransFile();
} // end main
} // end class FileMatchTest-------------------------------------------------------------------------------------------------
Sample data for master file:
Master file
Account Number Name Balance
100 Alan Jones 348.17
300 Mary Smith 27.19
500 Sam Sharp 0.00
700 Suzy Green -14.22Sample data for transaction file:
Transaction file Transaction
Account Number Amount
100 27.14
300 62.11
300 83.89
400 100.56
700 80.78
700 1.53
900 82.17 -------------------------------------------------------------------------------------------------
My FileMatch class program above has bugs in it.
The correct results for the newmast.txt:
100 Alan Jones 375.31
300 Mary Smith 173.19
500 Sam Sharp 0.00
700 Suzy Green 68.09The correct results for the log.txt:
Unmatched transaction record for account number 400Unmatched transaction record for account number 900------------------------------------------------------------------------------------------------
My results for the newmast.txt:
100 Alan Jones 375.31
300 Mary Smith 111.08
500 Sam Sharp 0.00
700 Suzy Green -12.69My results for the log.txt
Unmatched transaction record for account number 700-------------------------------------------------------------------------------------------------
I am not sure what is wrong with my code above to make my results different from the correct results.
Much help is appreciated. Please help.From the output, it looks like one problem is just formatting -- apparently you're including a newline in log entries and not using tabs for the newmast output file.
As to why the numbers are off -- just from glancing over it, it appears that the problem is when you add multiple transaction values. Since account.combine() is so simple, I suspect that you're either adding creating transaction objects incorrectly or not creating them when you should be.
Create test input data that isolates a single case of this (e.g., just the Mary Smith case), and then running your program in a debugger or adding debugging code to the add/combine method, so you can see what's happening in detail.
Also I'd recommend reconsidering your design. It's a red flag if a class has a name with "Create" in it. Classes represent bundles of independant state and transformations on that state, not things to do. -
Need help pointing email mx records to correct locations
Hello,
My customer stopped recieving emails when I took his site live with BC. I called Godaddy who his email was already set up with. They told me I needed to get two mx records pointed to the correct locations. THey gave me the locations, but I can not find where I can change them in Muse.
Thank you in advance for any help that masy be offered.Hi,
Are you still experiencing this issue. If yes, please let me know and I will help you further. -
Need query to fetch single record
I am having table t1 with below data
c1 c2
1 10
2 10
when I am using below query
select max(c2) from t1 group by c1
I am geeting both the records.
How can i fetch only record (any one) ?Hi,
Here's one way
WITH got_r_num AS
SELECT c1, c2
, ROW_NUMBER () OVER (ORDER BY c2 DESC) AS r_num
FROM t1
SELECT c1, c2
FROM got_r_num
WHERE r_num = 1
The row displayed will be the one with the highest c2 value (or one of those rows, if there happens to be a tie.)
This is called a Top-N Query, because it picks N items (N=1 in this case) from the top of an ordered list.
Starting in Oracle 12.1, you can also use
SELECT c1, c2
FROM t1
ORDER BY c2 DESC
FETCH FIRST 1 ROW ONLY -
Need help in fetching requested data from JSP
Hello,
I really need help in fecthing requested data from JSP to servlet. Can anyone assist me as soon
as possible because I must finish my program by today.....( 20/02/2002).
Thanks in advance.It is very likely that somebody can help you, if you say what your problem is. In fact somebody might already have helped you. What is your problem?
-
HR_INFOTYPE_OPERATION - Need help w/Deleting infotype records
Hello all,
We have an issue where infotype records got created where the ENDDA is less than the BEGDA (ENDDA = 06/30/2006 and BEGDA = 07/01/2006). We are trying to delete these using HR_INFOTYPE_OPERATION but we are getting message PG-009 (No data stored for 9001 in the selected period) returned in our tests.
BTW, 9001 is one of our customer infotypes.
I know I can remove these records using a direct SQL statement, but I would prefer to remove them more gracefully if possible. Is there a way around this error? I actually think function module HR_READ_INFOTYPE is raising the error.
Any suggestions would be greatly appreciated.
Thanks,
AlYou can check report RHRHDC00, I think it can help you with custom infotype too.
Otherwise you might need to delete the records forcefully using DELETE statement, which is not suggested since all the standard FM consider BEGDA and ENDDA and in your case they will always return blank.
You can also check FM -
HR_ECM_DELETE_INFOTYPE
Regards,
Amit
Reward all helpful replies. -
Need help with adobe audtion recording using a mic i wantto plug in
i need to record audio into adobe audtion using an external mic that i will plug intgo the mac. But whe i plug in the chord i still geth thw internal mic recording..any help please??????????????@
I'll stress that I use Windows not a Mac so I'm not expert on that sort of thing but this guide seems to give the information you need: How to Setup External Microphone in Mac - Make Tech Easier
Once you have the computer itself set up, the controls you need within Audition are on the Edt/Preferences/Audio Hardware menu. If the mic is properly recognised by the Mac operating system as per the link above, you should then find it on a drop down menu you can select from in Audition. -
Beginner! Need help getting started with recording music.
I am the definition of 'new' at the moment. I want to record my own music at home and I've been told that using an Apple Mac is one of the better ways to go about it at home.
I have a number of questions, most of which have probably been asked before (apologies!) starting right from the beginning.
1. What type of Mac would be best suited as a dedicated tool for recording music? Obviously speed and memory are big factors, but are there any other considerations here (available inputs, drivers, sound cards etc)? I'm hoping to keep the cost below AUS$3000 if possible.
2. Do i need any other hardware for this application? (this is where you can tell how inexperienced I am haha) such as mixers etc? If I should need a mixer, is there a particular type or brand of mixer that works well with Macs?
3. Will plugging a guitar amp into the mac improve sound quality over plugging the guitar directly into the Mac? I bought a Griggin Garage Band guitar cable a while ago to record some background music for a friend's DVD, and I found it worked well, but I'm looking for the best quality sound now.
4. What would be the most effective software to use? I've briefly used Garage Band and found that to be simple and useful, but I've heard that there are better software packages available.
I'm hoping to be able to record guitar, bass and vocals directly on to the Mac, and create drum tracks using samples and loops. I know how to play music but as you can tell I know very little about recording it! Any help or suggestions would be appreciated!
Thanks..I would presume one line level input will suffice?
Close, you need a Line Level AND Mic Level input since you'll want to record vocals.
Thanks for the link to your Q&A page, I found some very useful info there.
It's showing its age, and will hopeful get updated soon, but most of the info is good at least for a background.
Anyway, I think I might recommend this Presonus INSPIRE over the FireBox, it'll save you about $100 and since PreSonus makes excellent equipment (and we have an active member here that uses the Inspire), I'm confident that it offers great quality.
I think the firepod that you use looks great, but might be overkill
I agree, the FirePod would be serious overkill for your needs. Again, an awesome interface, but you'd be paying for all those Mic PREs, and using 1. That wouldn't make sense, and since the FP isn't cheap...
my talent and engineering knowledge is quite limited
Then I would strongly suggest GB as the software, and then do lots of reading. The weakest link in music production is your engineering skills. Mixing and Mastering (especially the latter) are art forms. A bad engineer using a $10,000 bit of software and hardware would make a fantastic performance sound like garbage. With good engineering skills you can make a pro recording with GB.
The learning curve with something like Logic is dramatically increased, and again, without the skills to take advantage of what it offers, your recordings are not going to sound any better. At the very least, start with GB to learn the skills of Recording/Editing/Mixing/Mastering. The "price of admission" is low enough that if in a year you find that you need a feature GB doesn't offer, your money will not have been wasted, it will have been valuable learning time.
Hope those more specific answers help
~~HangTIme [Will Compute for Food] %-)>
Note: I am an Amazon Associate, if you purchase this item via my link I will get a small commission) -
Need help on selection of records in dynamically created table
hi,
Ia m able to bind the onleadSelect event to the dynamially created table .
But i was not able to select the table records.
default first record was only selected.
can u help me out to find the way.
i am pasting the code for reference.
can u suggest me the right direction.
i want the selected record in the table to be dispalyed in another view thru this action event.
but only the forst record is now getting selected by default.
here the code.
IWDNode node =wdContext.currentContextElement().node().getChildNode(nodename,0);
for (int l = 0; l < node.size(); l++) {
int ele = node.getLeadSelection();
IWDNodeElement element= node.getElementAt(ele);
table.setOnLeadSelect(wdThis.wdGetObjectSelectedAction());Hi,
<a href="/people/sap.user72/blog/2005/05/09/have-you-played-blindfold-chess's</a> how to create a dynamic table, though I think you have already done this.
Do look at the comment that Armin Reichert has put in. Now in the source code that he has provided, the last line should be
table.setOnLeadSelect(wdThis.wdGetLeadSelectAction());
Have you done something similar to this?
Have you set the initializeLeadSelect property of the datasource node to true?
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty -
Need help, Trouble in uploading records using sql loader in Forms 6i
Hi,
I am trying to develop a screen for uploading records to a table by using a ctl file, batch file and sql loader.
Env: Forms 6i, Oracle 8
Table to be updated is: shy_upload_table
My TSN entry looks similar to this,
TEST_AXA.CNB.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 11.23.11.123)(PORT = 1234))
(CONNECT_DATA =
(SID = axdabc)
My intention is whenever i press the upload_button, I should truncate the table and upload it with the contents of the file.
In the when-button-pressed event of the upload_button I have the following code. always I am able to truncate the table but am not able to upload it with the contents of the file. Can any of you help me fix this problem ?
declare
var_control varchar2(256);
VAR_DATA VARCHAR2(256);
VAR_OUTPUT VARCHAR2(500);
var_filename varchar2(256);
str varchar2(50);
cnt number;
begin
FORMS_DDL('TRUNCATE TABLE shy_upload_table ');
select count(*) into cnt from shy_upload_table;
message('count '||cnt);
MESSAGE('');
If NOT form_success Then
MESSAGE('Upload Failed');
MESSAGE('Upload Failed');
else
set_item_property('DISPLAY_PB',enabled,property_true);
--when ever i run, i am able to see the display_pb enabled. it means form_success is true.
end if;
var_filename := :txt_filename;
--I have tried with each of the below option,
--sqlldr userid/[email protected] control=F:\ERP\file_upload.ctl
--sqlldr userid/password@axdabc control=F:\ERP\file_upload.ctl
--sqlldr userid/password@TEST_AXA.CNB.COM control=F:\ERP\file_upload.ctl
VAR_DATA :='data=' || var_filename ;
VAR_OUTPUT := var_control|| ' ' ||VAR_DATA;
host('F:\a.bat');
end;
batch file contents...
# I have tried with each of the below options
sqlldr userid/[email protected] control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
#sqlldr userid/password@axdabc control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
#sqlldr userid/password@TEST_AXA.CNB.COM control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
pause
Thanks
vishHi Francois,
Thanks for responding, I am not very sure of what you want me to try out.
When I double click the batch file containing the below, the record gets inserted in the table. Only when using my form and trying to upload, it fails to insert the record.
batch file contents...
#sqlldr userid/password@TEST_AXA.CNB.COM control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
pause
Thanks
Vish -
Need help displaying rank of records in report
Post Author: tpoland
CA Forum: General
I have a report that is contains summary information that needs to be ranked at the summary level based on performance.*note, this data is completely fictional
Company
Location
Dealer Volume
Walkin Volume
CarQuest
$100,000
$25,000
Walden
$10,000
$8,000
Young St
$20,000
$12,000
Main St
$70,000
$5,000
Napa
$80,000
$45,000
Walck
$15,000
$10,000
Ransom
$20,000
$22,000
Syracuse
$45,000
$13,000
So now ranking Dealer Volume and Walkin Volume I would end up with
Company
Location
Dealer Rank
Dealer Volume
Walkin Rank
Walkin Volume
CarQuest
1
$100,000
2
$25,000
Walden
$10,000
$8,000
Young St
$20,000
$12,000
Main St
$70,000
$5,000
Napa
2
$80,000
1
$45,000
Walck
$15,000
$10,000
Ransom
$20,000
$22,000
Syracuse
$45,000
$13,000
For the column of Dealer Rank I could use a Running Total but this would be defeated if the data were sorted in a different fashion. Manually entering the ranking isn't an option because there will be about 4000 summary records in this report. Any suggestions about how to proceed would be much appreciated.
thank you in advance,Post Author: yangster
CA Forum: General
Well this gets pretty ugly. there is no easy way to create a ranking formula.the dealer ranking you don't have to worry about since it is in your main report and you are sorting by it so you can just start a count that starts at 1 at the topwalkin ranks is another story, you'll need to create a subreport that contains the same summation and create a shared variable for the ranking which will pass it back to the main report -
Netstream record ok - But need help to play the record after
Hello,
I use amazon EC2 with fms.
I can publish and record microphone and webcam, but after i want to play the record.
I use the same link that i use for publish record but i cannot access to my record.
I see my record in the admin consol.
I think that i must activate the progessive download?
But i dont know how and where.
Can you help me please?
Thanks a lot
Oeannthanks for you reply but not resolve my problem...
i publish record with this code and is ok:
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, nc_netStatusHandler);
nc.client = this;
nc.connect("rtmp://xxx-xx-xx-xx-xx.compute-1.amazonaws.com/music");
ns = new NetStream(nc);
ns.attachAudio(mic);
if(webcam!=null)
if(webcamActivate==true)
ns.attachCamera(webcam);
ns.publish("mp4:test.mp4", "record");
and for replay my record i use flvplayback
but cannot found my record...
flvplayer.source = "rtmp://xxx-xx-xx-xx-xx.compute-1.amazonaws.com/music/mp4:test.mp4"
flvplayer.play();
in the past i was with influxis an i process with this step and work.
then i am with fms with a server test and dont work for replay.
i think that i must activate progressive download but i dont know how in the config of server.
and excuse me for my english i speak french....
thanks to help me again
Oeann -
Need help on storing persistance records in J2EE JSP application
Hi,
I want to store a hashtable of info with about five attributes (id, name, username, date) in a persistent state in JSP order to not always call the database. I am either going to use session or request objects.
My question is if it's a good idea to store the hashtable with 2000 records just to avoid the database connection or should I just stick with using database connection using connection pooling? Thanks.
MkieWell it seems to be having a heavy session if you keep 2000 records Hashtable I think, I would have gone with a serialized to a file or database so that to handle more no. of sessions as well as persistant information. Anyway if you put the data in session object if server crashes you loose data of every active session :(
Just a thought !! -
Need help in Data Dictionary record upload
Hi All,
In my table I have 2 fields. Say FIELDA and FIELDB.
FIELDA is INT type and FIELDB is of CHAR type.
I have created a table maintenance generator and DB Utility is also done.
Now I want to upload the following record into the table.
FIELDA should be loaded with value '1'
FIELDB should be loaded with value '!' (Just Exclamatory sign)
When doing the same, FIELDA only gets populated into DB and not in FIELDB '!'. How can I over come this.
Points Assured,
Regards,
VijiHi there.
The best way to populate a table is with a program. However, you can do that in SM30. This may look stupid but to input the exclamation mark in SM30 you have to do it twice, i.e, put the mark and press enter. The mark will dissapear. After that, put it again and press enter again and it will be keeped.
This happens because it's a speccial character.
Best regards.
Valter Oliveira.
Maybe you are looking for
-
HT2242 how to change itunes language on iphone
I've bought my Iphone from Germany and my ITunes and Appstore language is set to German. How can I change the language to English?
-
Customer statements do not tie to to other transactions
Hi, The Customer Statements (ZFCS), Customer Balances (F.23), Customer Line Item display (FBL5N) and Aging Report (Z_AGING) should all tie. They do in PRD now. A document number with a Invoice reference does not show up in ZFCS. This is a partial pay
-
Create a new MWord or MExcel document from the portal
Hi all, Do you know if I can create a new WORD document (no upload) from the portal. From the dropdown menu we have the option to create a text ot html file, not Word or excel. thanks in advance
-
How to print HTML to a remote Server
Ho guys my problem is only this how to print HTML to a remote Server i hav used JavaPrintService for it javax.print.... The Doc Flavor i used is DocFlavor.INPUT_STREAM_TEXT_HTML_HOST; and with simple print attribute set but it doesnt locates the Prin
-
Need help on ERP R12 Reporting
Hi, Any body have an idea about ERP R12 reporting on Error Tables in 10 g. Thanks