Apply custom repeat formatting, column deletion, and sorts?
I download a .csv sales report file weekly. Is there a way to create and apply a pre-determined/custom formatting, deletion of columns, and "sorts?"
The .csv data contains the same fields/headers on each week. Then every week I go through and delete the columns that I don't need and sort the data on the same criteria. Is there a way to save these steps and apply them with each new report I open?
It would be the equivant in Photoshop, of "recording" "actions" and "playing" them on opened files.
There is no way to rtecord actions but if you describe exactly what you need, I may try to write a script doing the trick.
The most efficient scheme would be to send to my mailbox an exemple of the csv file (ten rows would be sufficient) and the Numbers document which you want to get starting from this source.
Click my blue name to get my address.
Yvan KOENIG (VALLAURIS, France) mercredi 24 août 2011 21:29:19
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
Similar Messages
-
I've purchased numerous books through the itunes store in which I was able to read. Now I'm unable to open some of the ibooks that I've purchased, I get an error message...book formate error, delete and redownload, which I've done numerous times with negative results. What are my options?
within the receipt that Apple sent to you via email is a Report a Problem link. use that link to report your issue.
also you could try a basic reset and see if that resolves your issue. hold down the Lock button & Home button at the same time for ~15 seconds, the iPad should then perform a reset. -
JSF Custom component for table pagination and sorting
hi
i want such a custom component that render a table and table has the features of pagination and column sorting.
any one know from where i can get such a custom component.
(if this component is available with source then it would be more help full for me)
thnks & regards,
Haroon
Message was edited by:
HaroonAnwarPADHYARI know two companies that offer JSF component for table pagination and sorting and AJAX based :
http://www.teamdev.com/quipukit/demo/datatable/DataTable_filteringAndPaging.jsf
http://java.samples.infragistics.com/NetAdvantage/JSF/2006.1/
The problem? They are not open source..
And I am too looking forward on this subject, because I want to develop my own custom component and add some features. If someone has any tips, references or samples of their own, it would be really appreciated.
Thank you.
Paul -
Allow users to click on a Column Heading and sort
Hi All
I created a master Detail table using the BC4J tags, My users are able to search and return results to the DataTableQueryComponent but the would like to click on the column and sort by it.
How do I achieve that
Thank youWith JSF and the ADF Faces table it's easy and built-in, you can right click the table and in the properties on the third tab you can specify for each column if it is sortable.
In JSP I think you'll have to call a method that will set the order by for the view object and rexecute the query. -
Bug or Feature? Array Custom Contextual Menu Destroys "Delete" and "Insert" Element!
Step to Reproduce:
- Create an Array (doesn't matter of what type).
- Ctrl-M (to switch to Run Mode)
- Notice that:
- when you Right-Click on the Array borders, you have access to an "Empty Array" menu item among other things
- when you Right-Click in an Array element, you have access to an "Insert Element Before" and a "Delete Element" menu item among other things
- Now switch back to Edit Mode and modify the contextual menu in the following way:
- Advanced>>Run-Time Shortcut Menu>>Edit...
- Edit>>Copy Entire Menu
- Switch to "Custom" menu (instead of "Default"): the menu disappears and is replaced by a single ??? item
- Edit>>Paste: The default menu reappears with the ??? on top
- Create you favorite custom menu item by editing the ??? item (say: Do Nothing)
- Save the menu with the control and switch to Run Mode (Ctrl-M).
- Now try the first 3 steps above: wherever you right-click, you have access to the Custom Menu, but the Array Element contextual menu is GONE.
In other words, you cannot (it seems) define a custom contextual menu for an array without destroying the default contextual menu for its elements.
Therefore, if you want to preserve the ability to Insert and Delete Elements in an array, you have to add these two items to the Array contextual menu and juggle with the position of the right-click to figure out whether or not to display them...Well, I created in LabVIEW 2012 such a control and added part of the default menu in the way you described with copy-paste as a submenu to an Edit entry in my custom menu and it did not disappear:
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Collection: searching, deleting and sorting
Hi,
I have a text file in which has the data:
Name (String), Age (int), Sex (char), Height (double)
e.g.
John, 34, M, 150.6 (line 1)
David, 54, M, 177.8 (line 2)
There are many records in a text file. And the printout should like:
Name: John
Age: 34
Sex: M
Height: 150.6
Not just display the whole line. I need the tokens to be displayed one by one on console screen.
How can I use Collection framework, such as Vector() to do it?
Please advise.
gogoYou can read in the file using a FileReader, then parse each line with a StringTokenizer.
I would recommend introducing a class Person to capture the 4 types of data, and then add each Person to a List (yes, this is from the Collections framework).
Some small snippets:FileReader inputFile = new FileReader("myfile.txt");
List persons = new ArrayList();
while(....) {
String line = inputFile.readLine();
StringTokenizer strtok = new StringTokenizer(",");
Person p = new Person(name, age, sex, height);
persons.add(p);
System.out.println("Name: " + p.getName());
// do something with the list here -
Apply custom style to the first tab of af|panelTab component
Hi,
Could anyone please advice me how to apply custom style to the first and last tabs of af|panelTab component.
For eg- If I have 6 tabs and I want tab1 and tab6 to be in Red and rest of the tabs in blue, what should I add. Please advice.
Regards
Jeffry Roy
Edited by: Jeffry on Mar 8, 2011 4:45 AMHi Rishit,
Please let me know if you have applied Fix pacK3 for Xcelsius.
I have seen this issue in FP2, which got fixed in FP3. The workaround you can try is including a blank cell.
Thanks,
Amit. -
Add rows and sort JTable in the same program
I would like to have a button to add rows to the JTable, but would also like to sort the data within the columns. This program can sort the data prior to clicking the 'add row' button. After I click the button, there is no new row, and I lose the ability to sort the column. Do you have any tips or advice as to what I can do to fix my program? Is it because I have to have the final code for SortFilterModel to work?
Thanks
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
public class TableRowColumn extends JFrame
private final static String LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
JTable table;
DefaultTableModel model;
JPanel buttonPanel;
JButton button;
public TableRowColumn()
Object[][] data = {
{"6", "K"},
{"5", "A"},
{"1", "Z"}
String[] columnNames = {
"Number",
"Letter"
model = new DefaultTableModel(data, columnNames);
//comment out this SortFilterModel line
final SortFilterModel sorter = new SortFilterModel(model);
//Change sorter to model
table = new JTable(sorter);
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
// Add table and a Button panel to the frame
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
buttonPanel = new JPanel();
getContentPane().add( buttonPanel, BorderLayout.SOUTH );
button = new JButton( "Add Row" );
buttonPanel.add( button );
button.addActionListener( new ActionListener()
public void actionPerformed(ActionEvent e)
model.addRow( createRow() );
int row = table.getRowCount() - 1;
table.changeSelection(row, row, false, false);
table.requestFocusInWindow();
//Set up double click handler for column headers and sort
table.getTableHeader().addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent event)
//check for click
if (event.getClickCount() < 2) return;
//find column of click and
int tableColumn = table.columnAtPoint(event.getPoint());
//translate to table model index and sort
int modelColumn = table.convertColumnIndexToModel(tableColumn);
sorter.sort(modelColumn);
private Object[] createRow()
Object[] newRow = new Object[2];
int row = table.getRowCount() + 1;
newRow[0] = Integer.toString( row );
newRow[1] = LETTERS.substring(row-1, row);
return newRow;
public static void main(String[] args)
TableRowColumn frame = new TableRowColumn();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setVisible(true);
}I attempted to modify the code in the correct way, but I ran into a problem near the bottom with the model.addRow(rowData); line. It has an error saying it can't find the addRow method. If I take away the model part, it will compile, but it will cause an infinite loop when I push the 'Add Row' button within the program. I didn't expect that to work, and I think it isn't calling the right model.
I am aware that my code organization and design skills are not very good. I am a fan of basic assembly and low-level hardware languages for the most part.
Thanks for your advice so far, it has been helpful.
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
public class TableRowColumn extends JFrame
private final static String LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
JTable table;
public DefaultTableModel model;
JPanel buttonPanel;
JButton button;
public TableRowColumn()
Object[][] data = {
{"9", "C"},
{"5", "A"},
{"3", "B"}
String[] columnNames = {
"Number",
"Letter"
model = new DefaultTableModel(data, columnNames);
//comment out this SortFilterModel line
final SortFilterModel sorter = new SortFilterModel(model);
//Change sorter to model
table = new JTable(sorter);
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
// Add table and a Button panel to the frame
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
buttonPanel = new JPanel();
getContentPane().add( buttonPanel, BorderLayout.SOUTH );
button = new JButton( "Add Row" );
buttonPanel.add( button );
button.addActionListener( new ActionListener()
public void actionPerformed(ActionEvent e)
sorter.addRow( createRow() );
int row = table.getRowCount() - 1;
table.changeSelection(row, row, false, false);
table.requestFocusInWindow();
//Set up double click handler for column headers and sort
table.getTableHeader().addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent event)
//check for click
if (event.getClickCount() < 2) return;
//find column of click and
int tableColumn = table.columnAtPoint(event.getPoint());
//translate to table model index and sort
int modelColumn = table.convertColumnIndexToModel(tableColumn);
sorter.sort(modelColumn);
private Object[] createRow()
Object[] newRow = new Object[2];
int row = table.getRowCount() + 1;
newRow[0] = Integer.toString( row );
newRow[1] = LETTERS.substring(row-1, row);
return newRow;
public static void main(String[] args)
TableRowColumn frame = new TableRowColumn();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setVisible(true);
class SortFilterModel extends AbstractTableModel{
public SortFilterModel(TableModel m){
model = m;
rows = new Row[model.getRowCount()];
for (int i = 0; i < rows.length; i++) {
rows[i] = new Row();
rows.index = i;
public void sort(int c){
sortColumn = c;
Arrays.sort(rows);
fireTableDataChanged();
public Object getValueAt(int r, int c) {
return model.getValueAt(rows[r].index, c);
public boolean isCellEditable(int r, int c){
return model.isCellEditable(rows[r].index, c);
public void setValueAt(Object aValue, int r, int c){
model.setValueAt(aValue, rows[r].index, c);
public int getRowCount() {
return model.getRowCount();
public int getColumnCount(){
return model.getColumnCount();
public String getColumnName(int c) {
return model.getColumnName(c);
public Class getColumnClass(int c){
return model.getColumnClass(c);
private class Row implements Comparable {
public int index;
public int compareTo(Object other) {
Row otherRow = (Row)other;
Object a = model.getValueAt(index, sortColumn);
Object b = model.getValueAt(otherRow.index, sortColumn);
if (a instanceof Comparable) {
return ((Comparable)a).compareTo(b);
else{
return a.toString().compareTo(b.toString());
public void addRow(Object[] rowData) {
Row[] oldRows = new Row[rows.length];
for (int i=0; i<rows.length; i++) {
oldRows[i] = rows[i];
rows = new Row[rows.length +1];
for (int i=0; i < oldRows.length; i++) {
rows[i] = oldRows[i];
rows[oldRows.length] = new Row();
rows[oldRows.length].index = oldRows.length;
addRow (rowData);
//model.addRow(rowData);
fireTableDataChanged();
private TableModel model;
private int sortColumn;
private Row[] rows; -
FI Customer Account Statement with Debit and Credit Columns
Hi SAP Expert,
We are using form (developed from T-code: SE71) to send customer account statment for only open items this is working fine.
Now My wants customer account statement for all transactions but with debit and credit in a separate columns. is there any way we fulfill these kind of request?
if any particular logic then let me know please.
thanks in advance
b/r
prashant raneDear Vivek,
You logic is helpful can I apply this in SE71 form development?
Below is my customer layout format
Document # | Document Date | Reference | Debit Amt | Credit Amt |
In bottom toal Debit / credit balance figure
can I use any code/login is SE71 form or I will need to create any development report which involves user exit?
I am looking for SE71 optios first
thanks in advance
Prashant Rane -
Not able to save date column with custom date format. in OBIEE 11g
Hi,
I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
But when I use this custom format and try to save the report in 11g its giving this below error.
''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
This HTML might be present in column headings, table headings, text views, narrative views, the print header,
or the print footer and must be removed before saving.''
Please let me know what changes I need to do for this.
Regards,
Ambika Nanda.Hi ,
privilage issues...check the security settings once..
Thanks,
Ananth -
Can't see HTML and Custom text format under data format tab in obiee.
Hi,
I want to add a java script to my report but I can't see HTML/Custom text format option under Data Format Tab--->"Treat Text as" menu.
My report is a union report.
For data column and numeric columns i can see custom option available but for text columns it is not visisble.
Any idea why it is not showing and what should be done here.
Any pointers are welcome.
Please help,it is really urgent.
Thank in advance!
Edited by: 810008 on May 18, 2011 10:03 PMHi,
Select text column (varchar column) -> Treat Text as -> custom text format ->Remove @ (default) -> add [html]<script>sometext(‘@’)</script> followed by your javascript
for eg:
[html]<script>buildGoogleChart(‘@’)</script> <head> <script type="text/javascript"> function show_alert() { alert("Hello! I am an alert box!"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html>
hope helps u.........
cheers,
Aravind -
How can I delete the custom repeat option in the reminders app
Hi,
When I try to set a reminder to repeat every month the reminder app automatically sets a "custom repeat" of "every month that has 29 days in it". Where did this custom repeat option come from? I don't think I created it. How can I delete it?Hi Chris,
Thanks for your reply.
I am using the native iOS reminders app. I have tried closing the app and powering my phone off and on, but to no avail. I was under the impression that one can set custom reminders using siri? I have friend with a toddler who was playing with my phone. I figured maybe she set off Siri and a custom reminder was set by mistake? -
How to not repeat the column values if repeated on next line and so on..?
Hi all,
The XmlP template that is designed gives me the output as follows :
COL1 COL2 COL3 COL4 COL5 COL6 COL7
abc 1 1000.00 10.00 95.00 695.00 cad
abc 2 1000.00 100.00 95.00 695.00 cad
abc 3 1000.00 100.00 95.00 695.00 cad
But my requirement is as follows :
COL1 COL2 COL3 COL4 COL5 COL6 COL7
abc 1 1000.00 10.00 95.00 795.00 cad
- 2 - 100.00 - - -
- 3 - 100.00 - - -
Note : "-" indicates blank column values (gaps are being filled)
How do I not repeat the column values if repeated?
Please let me know if you have answer for it?
Thanks in Advance
MunnaIam trying to design the xml publisher template using xmlp template builder.
My requirement is :
For a receipt number, I have receipt amount, applied amount, unapplied amount and on account amount. And for each receipt, there can be multiple applied amount ( as the receipt can be applied multiple times), but the unapplied amount, on account amount and receipt amount is single.
By using the logic as said above from http://blogs.oracle.com/xmlpublisher/2007/04/13
Iam getting the output something like this:
Receipt Number| Receipt Amount | App Amount |UnappAmount|OnaccountAmount|
111-b|249.28|249.28|0.00|0.00|
1110|1,000.00|10.00|95.00|795.00|
1110| -|10.00|-|-|
1112|1500.00|1,271.02|-|-|
1112|-|228.98|-|-|
My requirement is to go get something like this:
Receipt Number| Receipt Amount | App Amount |UnappAmount|OnaccountAmount|
111-b|249.28|249.28|0.00|0.00|
1110|1,000.00|10.00|95.00|795.00|
1110| -|10.00|-|-|
1112|1500.00|1,271.02|0.00|0.00| ---> here lies the difference
1112|-|228.98|-|-|
How do i check the duplicate of the column values only for a receipt number??
Because as for receipt no. 111-b the unapplied amount and on account amount is 0.00, the the unapplied amount and on account amount for receipt number 1112 is getting hided( because its a duplicate) . In reality, it should be 0.00 and any other line for that receipt number (1112) should be hided. except for the applied amount.
Note We can see that last 2 columns in the last record( for receipt number 1112) is getting hided that is as expected but for 4th record the unapplied amount and on account amount should be 0.00 respecively.
'-' indicates hided value
Please help.
Thanks in Advance -
Cannot delete and save a bracket in custom controller
hii all,
I am getting a strange problem.I have long methods in custom controller.
The final end bracket at the bottom is giving an error:unmatched bracket....When i try delete and save it, itz not getting saved....
I cant find a solution to this.Please do help out.
Thanks,
Parama.Hi Parama,
This is a small but a very common problem.
Its only a matter of finding out the missing closing bracket that you must have deleted by mistake.
The way to solve this problem is to take one method at a time.
Double click on the opening bracket of your methods. The only code that should get selected, must be the code belonging to that method only.
If so, then there is no problem with brackets in that method. Repeat with the next method.
If not so, then go into the code & repeat the above by double clicking on the opening brackets of all the for/if/while/try-catch/ etc statements.
This way, you will be able to quickly & systematically findout the missing closing bracket.
I hope this helps in resolving your mystery of the missing bracket..;-)
Regards,
Hanoz -
This is what I am trying to do:
Lock the information in column A so it always stays there (1st, 2nd , 3rd, etc.)
Sort Column C (total winnings) in descending order and keep the coresponding participants (column B ) with the amount.
Create a value in Column D (4 behind Leader) that shows the difference between C3 and C4, C3 and c5, etc.
The amounts and names are filled from another sheet and change weekly. I can sort based on total winnings and the names follow. I can also create a formula to show the difference between the Leader and the next place participant however when I do a sort based on Total Winnings after the new values each week the Place and $Behind Leader always shift up and down. The information in Column A seems "locked" to the information in Columns B and C. The refernce in Column D is always Chris's amount and I want it to be refenced to the 1st place Participant.
I hope I've explained this.
Thanks - James
2013 Standings
Place
Participant
Total Winnings
$ Behind Leader
1st
Chris
$24.00
2nd
Ken
$22.00
-$2.00
3rd
Paul
$20.00
-$4.00
4th
Josh
$18.00
5th
Kelly
$16.00
6th
Greg
$14.00
7th
Dave
$12.00
8th
Darren
$10.00
9th
Don
$8.00
10th
Tony
$6.00
11th
Suzanne
$4.00
12th
James
$2.00
13th
Spare 1
$0.00
14th
Spare 2
$0.00
15th
Spare 3
$0.00
16th
Spare 4
$0.00
17th
Spare 5
$0.00
18th
Spare 6
$0.00
19th
Spare 7
$0.00
20th
Spare 8
$0.00Hi j&s,
Numbers uses a data base model that treats each row of a table as a single record. You can sort all or selected rows on the values in one or more column(s), but the whole row moves to maintain the integrity of each record.
If you want some columns to be excluded from a sort, you need to remove those columns (or their data) from the table. Jerry has offered a way to do that for the rankings, but that solution will not resolve the issue of the 'leader board' cells acting badly in a sort.
Here's an alternate. The first view is of the table(s) (with the participants in alphabetical order), just after the current totals had been entered.
At this point, the Leader board, which pulls names and totals from the first three body rows of the data table, shows the correct cells, but these don't include the correct information.
Note that column A does show the correct placing for each participant.
The second view shows the same table(s) after the data table has bee sorted. The sort may be descending on column C (Totals) or ascending on column A (Place).
Place is calculated from the Total values, using this formula:
A2: =RANK(C2,C,largest-is-high)
Fill down into the rest of the cells in column A. Any empty rows should be removed from the bottom of the table, or have zeros entered into their total column cells.
The Leader board table has two formulas:
A2: =OFFSET(Data :: $A$1,ROW()-1,1)
Fill down to A4.
This returns the name of the participant in the top body cell of column B of the data table.
B2 contains the word "Leader"
B3: =IF((OFFSET(Data :: $A$1,1,2)-OFFSET(Data :: $A$1,ROW()-1,2))>0,OFFSET(Data :: $A$1,1,2)-OFFSET(Data :: $A$1,ROW()-1,2),"Leader")
Fill down to B4
The root of this formula is OFFSET(Data :: $A$1,1,2)-OFFSET(Data :: $A$1,ROW()-1,2)
This returns the total value from the first and second body cells in the total column, and subtracts the second from the first.
The rest of the formula is an IF statement tohandle the occasions where there's a two or three-way tie for the lead. (image below) If the result is greater than zero, the subtraction is repeated and the result returned to the cell (B3); if the result is zero, the word :Leader: is returned to this cell.
Placing the calculation in a separate table and using OFFSET, with a base cell (Data::A1) that is in a row defined as a Header row makes this table and its formulas immune from sorting of the Data table.
Here's the tie, which arose when i added another 11 particpants to check sorting of the Place column:
Regards,
Barry
Message was edited by: Barry (added image and notes on Tie case)
Maybe you are looking for
-
When installing Conttibute 4.0 you'll get also a lot of extra PAYLOAD software from Adobe, which I do not want to have installed. I am speaking about copies of Abode Bridge, Version Cue, Anchor services, Assets Services, Camera Raw, Maps, Extended Sr
-
Hi IS MIll experts & IS Retail experts, We are using ECC 6.0 and have activated IS Retail system. And for our specific business, we wanted to use some functions in IS mill, such as double-measure-unit for per meterial with variable convert factors, i
-
Reading back file for analysis purposes controlling X-axis
Alright, I lose using labview. I use it for a ton of different projects at work. I have been fooling around with this for a while and maybe I am just missing it. Here goes, in one of my applications I record 4 AI channels at various rates (6, 600,
-
10.5.7 Update Correlates With Fans Running Continually
After updating to 10.5.7, my MacBook's fans seem to run continually. If I Restart, they will stop for about 10 minutes, then return to continual running. As possible solutions, I tried: - zapping the PRAM, - reinstalling the update. Neither worked. H
-
Acrobat 8 Professional on Mac OS X 10.4.11. A form I created in Acrobat does not transmit the data in the form fields when e-mailed vie the submit button. The artwork - created in Illustrator - arrives, but the fields are empty. This form is intended