Format a column as mm/dd/yy
I'm trying to format an entire column as mm/dd/yy. I've tried everything! Help!
Here's what it looks like on my setup.
On iOS:
On the Mac:
First select the cells in the column. After they are selected, then Format as shown.
SG
Similar Messages
-
Problem in Formatting Total Column in Classic Table
Hi,
I am using Classic Table.
I am able to format the column data but i am unable to format the column total value. I searched in forum and tryed something like in the following thread..
Problem in formatting Total Value in advanced table
since i am using Classic Tables i am unable to do it.
I also tried the following
OATableBean table = ....
OATotalRowBean totalRowBean = (OATotalRowBean)table.getColumnFooter();
System.out.println("Formattotal : "+totalRowBean);
if (totalRowBean != null)
oracle.cabo.ui.validate.Formatter formatter = new OADecimalValidater("#,##0.00;#,##0.00","#,##0.00;#,##0.00");
totalRowBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
in this case the total is not formatted.
I also refered developer guide. There i found how to set value to total column.. but how to get the value its not given..
Any body pls help in this regards
Thanks & RegardsHi,
When i am using Classic Table i am able to format column data but i am not able to format the column Total
Code i using ;
OATableBean table = (OATableBean) webBean.findChildRecursive("EmpTestVO12");
table.prepareForRendering(pageContext);
OAMessageStyledTextBean totalBean = (OAMessageStyledTextBean)table.findChildRecursive("Salary");
if(totalBean!=null)
Formatter formatter = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
totalBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
//Properly formatting column data
Whe i am using OAAdvance Table bean i am able to format the total but i am unabele to format the Column data. Using following code..
OAAdvancedTableBean tableBean=(OAAdvancedTableBean)webBean.findChildRecursive("region2");
tableBean.prepareForRendering(pageContext);
OAColumnBean c1=(OAColumnBean)webBean.findChildRecursive("column12");
if(c1!=null)
c1.setAttributeValue(CURRENCY_CODE,"USD");
Can anybody pls tell me how can i achieve both (column values and totals formatting) using either Classic Table or Advance Table..
Thanks & Regards,
Ram -
Conditionally Formatting One Column Based On The Value of Another Column
I have the following requirement:
I have 2 columns in a report showing Actual Sales & Budget Sales each year. I am using a bar chart to show the different values for these 2 columns.
I need to conditionally format the column "Actual Sales" so that if it is less than the "Budget Sales" it will appear in red, and green if "Actual Sales" is greater than "Budget Sales." So in a nutshell,
CASE WHEN "Actual Sales" < "Budget Sales" THEN
RED
ELSE
GREEN
END
Thoughts anyone?CASE WHEN (COL1 - COL2) < 0 then Red else Green end
regards
John
http://obiee101.blogspot.com -
Is it possible to make a condition for formatting multiple column?
I am working on financial report like Balance Sheet. So that I am going to have 2 column and 1 on left, 2 and 3 on right.
I tried to use format multiple columns but can't find any method to define where to break.when you create a stored procedure or use a command file( i believe) you can create CASE statements
CASE WHEN ='BLUE' THEN 'COLUMN1'
WHEN ='GREEN' THEN 'COLUMN2' END AS BUCKET1
when you use this as the dataset you will see this as a field
you can then group by the fields created. -
Alternative to pre .. /pre formatting of columns?
Hello,
is there an alternative (maybe css-style - is there a list of these predefined definitions anywhere?) to the <pre>...</pre> formatting of columns.
The problem of this way of doing it, is that the highlighting feature is not working any more.
RalfCheck for that date 0001.01.01 00:00:00 000 in the script, why so hard?
But really, I'd use the Conditional Split and check for string representation of the date diverting incorrect records.
Arthur My Blog -
Formatting for columns in group above report(non grp col)
Hi
I have a report that is group above. So for every record that appears in the group above, below is the corresponding fields. What I am trying to do is apply formatting like font, hide/show etc to the rows below. How can I do that.
record1...............................<group above>...
<corresponding columns-latest>
<corresponding columns-old>
record2...............................<group above>...
<corresponding columns-latest>
<corresponding columns-old>I want to be able to compare latest and old for a particular record and hide/show depending on if the value has changed. I only have one query for this report that is group above. Is it possible?Like you did select * from ....(select....)... In reports I wasnt able to create a col to col link for such cases. I need to have the db columns directly in select.
Secondly, for a workaroudn i even changed that - next challenge was treating xmltype columns using xmlsequence as db columns. So if I have xmlsequence in my query, i cant create col to col link. I have 4 queries with unions. 2 have xmlsequence and 2 doesnt. When i create col to col link for cases with xlseq, it forces me to create a grp link... When i have queries without xmlseq, i can create the col to col link. -
I have an old PDF, but not the source document. It is in two-column format, that is, two pages of text on one PDF page. I've tried converting to Word in Acrobat Pro XI, but that still preserves the two-column format. It's too big and complex to reformat in Word. I'd like to simply have each of the columns on their own page.
You can copy the page and crop the left and the rigth column.
-
Formatting a column in a datagrid
If I want to format some data in a column of a datagrid is
there a preferred way of doing that? I have used both an
itemRenderer and a labelFunction
Is there a preference to one or the other?lableFunction can be used when the tweaking required is very
trivial and you want to modify some text getting displayed.
(custom) itemRenderers can be used when we want to display
something complex within a cell like few controls, icons, labels,
links etc. -
Formatting a column in numbers
I am using the travel planning template in numbers. I tried to enter a 10 digit confirmation number but it is being displayed in a format similar to scientific notation. I tried adjusting the column width. Can anyone please tell me how to adjust the formatting to allow for this type of a data format?
I am using a new macbook with mac os x 10.5.4We may add the ZERO WIDTH NO-BREAK SPACE ($FEFF) at the end of the "number" so, it will keep its leading zeroes and don't be displayed in scientific format.
Yvan KOENIG (from FRANCE lundi 14 juillet 2008 11:17:33) -
ALV Excel Output - Formatting of Columns
Hi guys,
I have a requirement to format the date column output from an alv grid to a spreadsheet.
The date in the alv is 01.01.2007 and they want this to appear as 01/01/2007 in the spreadsheet. I noticed in SE16N that this functionality exists, as the date in the spreadsheet is seperated by /.
The bespoke report is currently using the standard SAP FM REUSE_ALV_GRID_DISPLAY.
Any help would be greatly appreciated.
Many Thanks,
Philip JohannesenButton in alv grid cell using REUSE_ALV_GRID_DISPLAY
REUSE_ALV_GRID_DISPLAY
Please give me reward points.. -
FDM - Import Format (Fixed Column Type - No Delimiter)
Hello,
Question on FDM. I've built an import format and successfully imported a Fixed Column type text file. Everything imports beautifully. FYI - The format of the file looks just like a Trial Balance with a column for Debits and one column for Credits. In the import format setup, I am using the DrCrSplit script. Weird thing here is that I noticed it just ignored any of the rows where the balance was over 1 million (but brought everything else in perfectly). I've played with the Start and Length fields to no avail.
Does anyone have any ideas?
Thanks,
JamesGood day,
You can add a script as the last item to you amount import format, this will dump the values to a text file which may give you some idea of the issue. Open you file in a hex editor, there may be non printing characters.
Thanks
Function dumpamt(strField, strRecord)
'Declare Local Variables
Dim objFSAppend
Dim objFAppend
Dim strFileAppend
Dim blnCreate
'Initialize the file path
strFileAppend = "\\networkdirectoy\YourFileName.txt"
blnCreate = True
'Open the file system object and create the file
Set objFSAppend = CreateObject("Scripting.FileSystemObject")
Set objFAppend = objFSAppend.OpenTextFile(strFileAppend, 8, blnCreate)
'Append Data to File
objFAppend.WriteLine(strField)
'Close the objects
objFAppend.Close
Set objFAppend = Nothing
Set objFSAppend = Nothing
dumpamt = strField
End Function -
Format varchar2 column which stores a number and display it in 10,000 forma
Problem Description
I am having a Standard VO , which has a varchar2 datatype attribute.
In my view page i am dispaly this vo in a OATABLE.
I want to foramt one of the varchar2 column to display it in a requried format
Eg :- if the value in the column is 9999 i want to display it as 9,999.
I have tried few sources but i did not work...
I tried all the sources metioned below
OAMessageStyledTextBean arcmrecovalue1=(OAMessageStyledTextBean)oawebbean.findChildRecursive("Arcmrecovalue2");
arcmrecovalue1.setDataType("NUMBER");
arcmrecovalue1.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,formatter);
String currency = "USD";
arcmrecovalue1.setAttributeValue(CURRENCY_CODE,currency);
arcmrecovalue1.setAttributeValue(OAWebBeanConstants.CURRENCY_CODE,"USD");;
arcmrecovalue1.setAttributeValue(*ON_SUBMIT_VALIDATER_ATTR*,*formatter*);
OAMessageStyledTextBean arcmrecovalue2=(OAMessageStyledTextBean)oawebbean.findChildRecursive("Arcmrecovalue2");
if(arcmrecovalue2 != null)
String arcmrecovalue = (String)((OAMessageStyledTextBean)oawebbean.findChildRecursive("Arcmrecovalue2")).getValue(oapagecontext);
String retValue = null;
try
OADBTransaction oadbtransaction = l_rootAM.getOADBTransaction();
String s = "{? = call convert_string(?)}";
OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)oadbtransaction.createCallableStatement(s,0);
oraclecallablestatement.registerOutParameter(1,Types.VARCHAR);
oraclecallablestatement.setString(2,arcmrecovalue);
oraclecallablestatement.execute();
retValue = oraclecallablestatement.getString(1);
catch(SQLException sqlexception)
throw OAException.wrapperException(sqlexception);
catch(Exception exception)
throw OAException.wrapperException(exception);
arcmrecovalue2.setAttributeValue("Arcmrecovalue2",retValue);
* The sql function wil return the formatted string.. but it is able to format only the first value of the table.. the second row is not formatted.
Can anyone help meProblem Description
I am having a Standard VO , which has a varchar2 datatype attribute.
In my view page i am dispaly this vo in a OATABLE.
I want to foramt one of the varchar2 column to display it in a requried format
Eg :- if the value in the column is 9999 i want to display it as 9,999.
I have tried few sources but i did not work...
I tried all the sources metioned below
OAMessageStyledTextBean arcmrecovalue1=(OAMessageStyledTextBean)oawebbean.findChildRecursive("Arcmrecovalue2");
arcmrecovalue1.setDataType("NUMBER");
arcmrecovalue1.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,formatter);
String currency = "USD";
arcmrecovalue1.setAttributeValue(CURRENCY_CODE,currency);
arcmrecovalue1.setAttributeValue(OAWebBeanConstants.CURRENCY_CODE,"USD");;
arcmrecovalue1.setAttributeValue(*ON_SUBMIT_VALIDATER_ATTR*,*formatter*);
OAMessageStyledTextBean arcmrecovalue2=(OAMessageStyledTextBean)oawebbean.findChildRecursive("Arcmrecovalue2");
if(arcmrecovalue2 != null)
String arcmrecovalue = (String)((OAMessageStyledTextBean)oawebbean.findChildRecursive("Arcmrecovalue2")).getValue(oapagecontext);
String retValue = null;
try
OADBTransaction oadbtransaction = l_rootAM.getOADBTransaction();
String s = "{? = call convert_string(?)}";
OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)oadbtransaction.createCallableStatement(s,0);
oraclecallablestatement.registerOutParameter(1,Types.VARCHAR);
oraclecallablestatement.setString(2,arcmrecovalue);
oraclecallablestatement.execute();
retValue = oraclecallablestatement.getString(1);
catch(SQLException sqlexception)
throw OAException.wrapperException(sqlexception);
catch(Exception exception)
throw OAException.wrapperException(exception);
arcmrecovalue2.setAttributeValue("Arcmrecovalue2",retValue);
* The sql function wil return the formatted string.. but it is able to format only the first value of the table.. the second row is not formatted.
Can anyone help me -
WPF - Format DataGrid column as currency - WPF
Hi,
I have a WPF DataGrid that is populated with data from an access database.
What I want to do is format all cells in a certain column to the currency format (2 decimal places {0:C} i think)
In the access database the format is set to currency and it doesn't show up in the database
Also, is there a way to specify Australian currency so that it rounds to the nearest 5 cents and has 2 decimal places.
I used this to format the Date and time correctly but I am unsure how to format for currency:
private void DgvInventoryData_OnAutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e)
if (e.PropertyType == typeof (DateTime))
((DataGridTextColumn) e.Column).Binding.StringFormat = "dd/MM/yyyy";
Thanks for all the help in advance...
From, Nathaniel PeifferHi,
Thanks for the answer but the Data in the DataGrid is not from Data Binding it is from an access database using SQL queries and OleDb stuff.
I am looking for a solution that is in the C# code because I want the user to be able to change the formatting at their leisure.
So i don't really know how to do the xaml stuff, mainly the C# code
From, Nathaniel Peiffer -
Export Of Data In The .CSV Format With Column Headings On Top
I'm trying to export data in the .csv format from a report (Crystal Reports XI Release 2). When I export the data, the heading appears in the first few columns on the left hand side (i.e. columns "A" thru "G") for every row, rather as a column heading on top. These header describe the data beneath it. I tried various combinations of export options. The file needs an extension .csv (or .xls) for the tool that uses the data. Any suggestions how I can accomplish this ?
Abhishek,
I tried to apply your solution, but forgot that the Crystal Reports support desk updated my version of Crystal Reports XI to Release 2 for a previous problem. My CDs are Crystal Reports XI Release 1. Now I can't export at all until I figure out how to turn on the export option. I do have access to older version (version unknown) that came with one of business system. The options it has are "Character", "Tab", and "Delimeter" for "Separated Values (CSV)". It does not have the option that you mentioned. Is there a similar option with this older version ? Lastly, How can I turn on the "Export" for "Crystal Reports XI Release 2" ? Thanks ! ! ! -
How to format table columns in Forms 10g
Hi Friends,
I have payment table in the format
col1 col2
1 dell
2 HP
3 Compaq
4 Acer
i want to show this info in forms 10g
Payment has to be made tomorrow- DELL,HP,Compaq,ACERHi Francois,
I have create the from based on that data block only but it is coming sequentially, for example
Label - Payment for items tomorrow-Dell
HP
Acer
Compaq
But i need the same thing in
Payment for items tomorrow- Dell,HP,Acer,Compaq
please advice how i can make this, contect of the column should come with comma -
I have a column with times in it. I have selected the format that is X:XX AM/PM. However, when I sort the column by time, it also sorts by the date stamp on it, even though the date is not included in the format I have selected. For instance, when I created the document on March 8, it included that date automatically. When I changed some of the times when working on it the next day, it also changed the date. Now when I sort, those times appear at the end of the document. Is there anyway to get rid of the date stamp that numbers seems to automatically place on the cell contents?
Formatting the value in a cell changes how that value is displayed, but does not affect the value itself (with the exception noted in discussion f column E in the first set of examples).
Any cell where a date or a time has been entered (or calculated) contains a Date and Time value.
If only the Date has been entered, the time part is set to 00:00:00 (midnight, at the start of that date).
If only the Time has been entered, the date part is set to the date of the entry.
As Wayne suggests, you can reformat these cells as Text. Once that's done, you can edit the text to show only the part you want to show:
Here the values shown in column B were entered directly. These three values were then copied, and pasted into columns C, D and E.
All three columns were then formatted as Text, with the results seen in column C. Note that the 2:03PM time entry includes today's date.
Columns D and E were then edited to remove the representation of the date, with the results seen in column D.
Finally column E's format was reset to Automatic, with the resulting display.
Mathematically, column D gives trhe expected results of subtracting one time from another. But leaving the values as text introduces another issue.
Formatted as Text, the values in this column follow Text sorting rules, resulting in the unexpected result seen in the second table below.
Roows 3 and 4 sorted ascending on the entry column (column B). March 16 is before March 18 (the hidden date in row 4), so it comes first in the list.
Sorting these two rows in ascending order on the text values in column C gives the same order: 16... is 'alphabetically' before 18.... Note though, that March 3, 2013 (3/3/2013...) would sort alphabetically after March 18 (18/3/2013) as 1... is 'alphabetically' before 3.....
Sorted the same rows on the text values in column D reverses the two times. 'alphabetically', 2:0... comes before 2:1...
When the text values are changed to Automatic format, Numbers interprets the entries as dates (E2) or times (E3 and E4) and completes the Date and Time values following the usual rules.
Row 6 shows the results of subtracting B3 from B4 (in column B). Two things to note:
Numbers correctly recognizes the text in columns C and D as showing Date and Time values (column C) or the Time parts of Date and Time values (column D), appends the missing part, where necessary, and correctly completes the subtraction.
Numbers follows the referenced cells through their positional changes in a sort, and keeps the cell references pointing to the original cell in its new position. The results of the subtraction do not change.
An alternate method of stripping dates from Date and Time values:
One means of removing the effects of the date part of the value is to use TIMEVALUE(B2) to extract a decimal value representing the time as the fraction of the current day that has passed to that time.
Placed into an auxiliary column used for sorting, this will correctly sort rows in order of ascending (earlier to later) time od day, disregarding the date.
Used in a subtraction formula, the difference will be a number which can be multiplied by 24 to give the number of hours (and decimal parts of an hour) between the two times, or multiplied by 1440 to give the number of minutes (and decimal parts of minutes, if any) between the two times.
Regards,
Barry
Maybe you are looking for
-
Getting the above error message when attempting to uninstall Office 2013 App-V version (downloaded using ODT) in Software Center. There are no office 2013 or App-V processes showing as running in Task Manager. Nothing in event viewer to show what is
-
How to make my wifi work . I'm using HP PAvilion G series Windows 7
can somebody teach me how to make my wifi work. The guy from the place where i asked them to fix my laptop told me to download drivers from sites. and he gave me a list of drivers. But i lost it.. but then. I have downloaded almost all except for the
-
hello sir i have mac os x lion and A fter upgrading to Lion i can't instal the face time app its type ( FaceTime can't be installed on "Mac" because the version of Mac OS X is too new. ) can anyone help me please . notes : on snow leopard t
-
SET_ITEM_PROPERTY...I have a problem.
I have a problem. Which the parameters of this TRIGGER? I tried: SET_ITEM_PROPERTY(:block.item,property,value) Where it is the error? Thank4s Fernando Delago - [email protected] Sco Paulo - Brazil
-
I updated my work computer to Yosemite yesterday and noticed that some apps just won't open anymore. Bartender and Menuola are a couple that I've noticed. I get this pop-up with no error message, just "The application "Bartender" can't be opened." St