Re-format Dates in iWork Number
I have a column of dates in "Numbers" in this format: 20 April 2009. Needed to change format to 20/4/09. I selected the column with the dates, and when I chose "Date & Time" at "Cell Format", all the dates switched to Jan 5, although years were correctly reflected. Why is this so? Can anyone help, please?
Hi thimwancheong,
Here are Dates in Numbers 2.3 on OS X Mavericks. I am not able to reproduce a "wrong" year in a Date-And-Time format, whether it is in a Header Column or a Body Column:
I am using DD MMM YYYY (Day short Month full Year date format). It also works if I change to MMM DD, YYYY.
What are we doing differently?
Regards,
Ian.
Similar Messages
-
Form Letter Report - How To Format Date and Number Hidden Fields
Hi
Is it possible to format date and number fields in a form letter report. This case were Paper Design shows fields as $<hire_date>. The examples in reference book only print character values which do not require formatting. I cannot determine how to achieve this. Cannot select fields from Paper Design view as per other report styles where can apply formatting. Do I have to perform formatting in the query to return date as string in format I wish for? This is not case for other report styles.
Thanksyou could add a field, set the source of the field to hire_date (assuming hire_date is a column in the data model), and put a format mask of whatever format you want. then set visible to No.
then instead of &<hire_date> you can instead type &<name of your new field>. -
How to make Hgrid number format data right justified.
This code works fine for table numer format data formatting, but does not work on hgrid?
OATableBean tableBean = (OATableBean) webBean.findIndexedChildRecursive("LoginHistoryVO11");
tableBean.prepareForRendering(pageContext);
DataObjectList ColumnFormat = (DataObjectList)tableBean.getColumnFormats();
DictionaryData myColumnFormat = (DictionaryData)ColumnFormat.getItem(pageContext.findChildIndex(tableBean,"UserName1"));
myColumnFormat.put(COLUMN_DATA_FORMAT_KEY ,NUMBER_FORMAT );
any idea how to achieve this in hgrid?i m sorry, made a minor mistake its working....! :)
-
Error in outputting xml formatted data
Hello,
I'm trying to output xml formatted data using apex.
At about 70% into the formatted output I get this in the browser:
<descript>punct= & > < /,() &</descript>
</row>
- <row The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/otn/f?p=158...
<script language="JavaScript1.1" type="text/javascript">
-^
m">>
<DIVI have a 600 row table (dml below) with identical string in each row of the descript column. (I put in some special characters just to push it through the escape function for html. It is displaying the text correctly.)
The page has one report region (plsql below).
The page template is stripped down.
My local results are identical to the otn hosted workspace.
I did dump the table in xml format and displayed the dump file in browser without a problem, so I'm missing something in the code.
Thank you.
Albert
On OTN webspace, go to http://apex.oracle.com/pls/otn/f?p=15866:1:1291425545573680200:::::
plsql
declare
xdescript varchar2(4000);
begin
-- xml preface is in the page template
-- htp.p('<?xml version="1.0"?>');
htp.p('<rowset>');
begin
for item in
(select descript,cid from receipts order by cid)
loop
htp.p ('<row>');
xdescript := htf.escape_sc(item.descript);
htp.p('<cid>' || item.cid || '</cid>');
htp.p('<descript>'|| xdescript || '</descript>');
htp.p('</row>');
end loop;
end;
htp.p ('</rowset>');
end;
dml
CREATE TABLE "RECEIPTS"
( "CID" NUMBER,
"AMOUNT" NUMBER NOT NULL ENABLE,
"CLEARED" DATE,
"DESCRIPT" VARCHAR2(80),
"DATEENTERED" DATE DEFAULT SYSTIMESTAMP,
"CHECKNBR" NUMBER,
"CLEARSEQ" NUMBER DEFAULT 0,
CONSTRAINT "RECEIPTS_PK" PRIMARY KEY ("CID") ENABLE
CREATE SEQUENCE "RECEIPTS_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999
INCREMENT BY 1 START WITH 4319 CACHE 20 NOORDER NOCYCLE
CREATE OR REPLACE TRIGGER "BI_RECEIPTS"
BEFORE INSERT ON "RECEIPTS"
FOR EACH ROW
BEGIN
SELECT "RECEIPTS_SEQ".NEXTVAL INTO :NEW.CID FROM DUAL;
END;
ALTER TRIGGER "BI_RECEIPTS" ENABLE
/May be it helps you. I use SQL/XML and APEX Application Process to generate XML succesfully
Here is the result:
http://htmldb.oracle.com/pls/otn/f?p=9774:101:0:APPLICATION_PROCESS=RSSNEWEVENTS
and here is the Process Text source:
declare
a clob;
begin
owa_util.mime_header( ccontent_type => 'text/xml', bclose_header => TRUE, ccharset => 'utf-8');
htp.prn('<?xml version="1.0" encoding="UTF-8"?>');
select
XMLTYPE.getStringVal(
XMLElement("rss",
XMLAttributes('2.0' as version),
XMLElement("channel",
XMLConcat(
XMLElement("title",'iActiveLife - novinky'),
XMLElement("link",'http://www.iactivelife.cz/'),
XMLElement("description",'iActiveLife - Zajímavý ivot snadněji'),
XMLElement("language",'cs'),
XMLElement("pubdate",''),
XMLAgg(
XMLElement("item",
XMLConcat(
XMLElement("title",event_name),
XMLElement("link",'http://htmldb.oracle.com/pls/otn/f?p=' || v('APP_ID') || ':37:' || v('SESSION') || '::NO::P37_EVENT_ID:' || event_id),
XMLElement("description",'')
) into a
from (
select event_id,event_name,issue_date, last_update_order
from (
select events.event_id, events.event_name, events.issue_date, rank () over (order by events.issue_date desc) as last_update_order
from events
where exists ( select * from opportunities where events.event_id=opportunities.event_id and opportunities.user_id is not null)
order by events.issue_date desc)
where last_update_order<=10
htp.prn(a);
end; -
Format Data doesn't work?
Hi
I want to see numbers in Discoverer formatted as set in Administrator, which is
999G999G990D99.
The Format Data dialog box tells me that 'Default' formats numbers as they have been set up by your Discoverer manager, using the format 9999999999.
Only, I am my own Discoverer manager and I set up 999G999G990D99.
I can find that setting in EUL5_EXPRESSIONS.IT_FORMAT_MASK and I can see changes done with Administrator.
Why don't they show up in Discoverer?
Hints appreciated
FranziskaInstead of selecting 'Default' go to more Number
formats and seelct the one you want.In which dialog do you find these 'more number formats'?
That will become the new default format.I need different formats for different columns. So one default won't do.
Hope this helps!Afraid not.
Thanks
Franziska -
Dear experts,
i have day number and year ,i wanted to identify the date
ex: day number=203 year=2009
date:22/07/2009
please advice the best possible way to acheive this.
thanksFlorian:
Given that the OP said his fields were VARCHAR2, and his sample data showed leading zeroes, your original solution will work as posted. If the data had been numeric, another solution would be to just reverse the order of the components.
SQL> WITH t AS (
2 SELECT 2009 yr, 203 day_no FROM dual union all
3 SELECT 2006, 201 FROM dual union all
4 SELECT 1999, 99 FROM dual union all
5 SELECT 2000, 001 FROM dual union all
6 SELECT 1945, 100 FROM dual union all
7 SELECT 1921, 101 FROM dual)
8 SELECT TO_DATE(yr||day_no, 'yyyyddd') dt FROM t;
DT
22-JUL-2009
20-JUL-2006
09-APR-1999
01-JAN-2000
10-APR-1945
11-APR-1921It is the way that format masks are applied that causes his. With your mask and numeric iinput, it is taking the first 3 digits as the day number, in your example 902, then the remainder of them as the year, in your example 9. Obviously, the number of days in a year is never more than 366.
By reversing the mask, the first 4 digits are taken as the year, and the remainder are taken as the day number.
John -
hello
pls tell me how to add a date to decimal number as
4 years and 3 months for example ?
EX.
===
1/1/2001
+
4 years and 3 months
Regards,
Abdetu...If you want a specific result, then post your desired result...we don't know your desired format mask.
In case it's yyyymmdd:
SQL> select to_date('1/1/2001', 'dd/mm/yyyy') dt
2 , add_months(to_date('1/1/2001', 'dd/mm/yyyy'), 51) dt2
3 , to_number(to_char(add_months(to_date('1/1/2001', 'dd/mm/yyyy'), 51), 'yyyymmdd')) num
4 from dual;
DT DT2 NUM
01-01-2001 00:00:00 01-04-2005 00:00:00 20050401
1 row selected. -
Formatted Data Labels in CFCHART
Is there a way to format data values in CFCHART?
All my values in database are stored as 99.9 See below). These are percentages that I need to display on a bar chart. Everything works fine except when displaying 76.0, it shows as 76. All other values that have a number besides zero after the decimal point show up fine except for zero. I want the numbers to be consistent. I am already using custom XML file for formatting but unable to display the "zero" after the decimal point.
Let's assume, StartYear = 2007 and EndYear = 2008, and the data in Influencer_Data table looks like this:
ID Poll_Year Company Influence_ID Pulse Goal
96 2008 XYZ 842 59.6 59.6
97 2008 XYZ 839 80.8 80.8
98 2008 XYZ 838 86.9 86.9
99 2008 XYZ 841 67.1 67.1
100 2008 XYZ 840 66.3 66.3
101 2008 XYZ 470 54.5 54.5
102 2007 XYZ 842 56.5 56.5
103 2007 XYZ 839 81.5 81.5
104 2007 XYZ 838 85.5 85.5
105 2007 XYZ 841 71.2 71.2
106 2007 XYZ 840 76.0 76.0
107 2007 XYZ 470 54.2 54.2
108 2008 XYZ 843 82.6 82.6
And the data in influencers table looks like this:
Influencer_ID Influencer_Type
470 Regulators
838 Financial Community
839 Community Leaders
840 Media
841 Government
842 Advocates
843 Mexico
<cfloop index="i" from="#StartYear#" to="#EndYear#" step="1">
<CFQUERY NAME="GetInfluenceData#i#" DATASOURCE="#RMIDSN#">
Select ID.*, I.Influencer_Type
From Influencer_Data ID
INNER JOIN Influencers I ON ID.Influencer_ID = I.Influencer_ID
Where ID.Poll_Year = <cfqueryparam value="#i#" cfsqltype="CF_SQL_INTEGER">
AND ID.Company = 'XYZ'
Order By I.Influencer_Type
</CFQUERY>
</cfloop>
The custom XML file (TLRIS.xml) looks like this:
?xml version="1.0" encoding="UTF-8"?>
<frameChart isInterpolated="false">
<frame xDepth="4" yDepth="5" outline="black" isVGridVisible="true"/>
<xAxis>
<labelFormat pattern="#0.0"/>
</xAxis>
<yAxis>
<labelFormat pattern="#0.0"/>
<labelStyle orientation="Horizontal"/>
</yAxis>
<dataLabels style="Value" font="Arial-12" isMultiline="true">
<![CDATA[ $(value) ]]>
</dataLabels>
<legend allowSpan="true" equalCols="false" isMultiline="true"/>
<elements drawOutline="false">
<morph morph="Grow"/>
</elements>
<popup decoration="Round"/>
<paint palette="Fiesta" paint="Plain" isVertical="true" min="47" max="83"/>
<insets right="5"/>
</frameChart>
And the code for the graph is below:
<cfoutput>
<cfchart format="#ChartType#"
chartheight="300"
chartwidth="750"
scalefrom="0"
scaleto="100"
foregroundcolor="##000000"
databackgroundcolor="##ffffff"
font="Arial"
fontsize="10"
labelformat="number"
style="TLRIS.xml"
show3d="yes"
showlegend="yes"
tipstyle="mouseOver"
tipbgcolor="##FFFF00">
<cfloop index="i" from="#StartYear#" to="#EndYear#" step="1">
<cfset LoopCount = LoopCount + 1>
<cfset WhichColor = ListGetAt(colorlist, LoopCount)>
<cfchartseries
type="bar"
serieslabel="#i#"
seriescolor="#WhichColor#"
datalabelstyle="pattern">
<cfloop query="GetInfluenceData#i#">
<cfchartdata item="#Influencer_Type#" value="#Pulse#">
</cfloop>
</cfchartseries>
</cfloop>
</cfchart>
</cfoutput>mohadi wrote:
I have already done that with no success.
I am beginning to believe this may be a bug.
Even if you try something as simple as the following, the decimal points that have zeroes don't show
<cfchart style="beige">
<cfchartseries type="pie">
<cfchartdata item="New car sales" value="50.0">
<cfchartdata item="Used car sales" value="55.0">
<cfchartdata item="Leasing" value="56.5">
<cfchartdata item="Service" value="76.2">
</cfchartseries>
</cfchart>
Well that is the wrong kind of chart and it is not using the xml style. But it works perfectly with a bar chart, using a custom style. The values display exactly as you have them above.
<cfchart style="myPatternStyle.xml">
<cfchartseries type="bar">
<cfchartdata item="New car sales" value="50.0">
<cfchartdata item="Used car sales" value="55.0">
<cfchartdata item="Leasing" value="56.5">
<cfchartdata item="Service" value="76.2">
</cfchartseries>
</cfchart>
<!--- snippet from xml styles --->
.... other xml ....
<yAxis scaleMin="0">
<titleStyle font="Arial-12-bold"/>
<dateTimeStyle majorUnit="Year" minorUnit="Month"/>
<labelFormat style="Pattern" pattern="#,##0.0#######"/>
</yAxis>
.... other xml .... -
Need help for FM that converts RAW format data to xls format
Hi all,
I am able to get the data from the given spool number to be converted into 'RAW' format. I need to convert this data into Excel format nad want to send the mail as attachment.
I want to know is there a Function Module that converts this RAW format data into the Excel format?
regards,
Brijesh PatelHi,
instead of that you can do this....
once spool is generated you have spool number , using the spool number you can generate the excel file using the FM <b>RSPO_DOWNLOAD_SPOOLJOB</b>, pass the spool number, and filename as some.xls and then it will download it to xls file,
Regads
vijay -
i have a doubt as to how to store the date along with time from my front-end Forms Developer Suite 9i application.
I am trying to give this kind of statement from SQL-plus:-
update login_master set last_accessed=to_Char(sysdate,'dd-mon-yy HH:mi:ss')
where login_ID = :GLOBAL.LOGIN_ID
but, there is a message which comes like this:-
ORA-01830 date format picture ends before converting string.
Also, i want to compare this time stored against time a little later, say after 1 or 2 hrs to get number of minutes.
How can i do this? I hope, my question is clear. Please help in solving the doubt.
regards.This topic is a duplicate of this one:
<p>Format Date for time
<p>Please reply on the other thread. -
Hi,
Can anybody give me an example of formatting date using xsl that works with the oracle xsl processor.
I would like to convert a date string from something like '2004-11-15' to '111504' using xsl stylesheet.
Does oracle 10g support xslt 2.0. I thought it did.
Is there a documentation which lists all the functions/elements of xslt 2.0 supported by oracle 10g.
thanks in advance
phaniYou didn't say how you are invoking your xslt and which release of the database. If you are using the 'C' based engine (via DBMS_XMLPROCESSOR, the SQL XMLTRANSFORM function or the XMLType TRANSFORM method then we currently only support XSLT 1.0.
In 10gR2 we do support the majority of the functions and operators that are common to XQuery and XSLT 2.0 but only for use in XQuery. Depending on what you are doing XQuery may be an alterntive way of generating the required transformation.
Oracle XDK/J does provide support for XSLT 2.0.
The only way I can think of to do what you are trying to do would be using XSLT string and concatentaion functions...
Something similar to the following
<xsl:template name="formatDate">
<xsl:param name="date"/>
<!-- Day -->
<xsl:value-of select="substring($date, 9, 2)"/> 
<!-- Month -->
<xsl:variable name="month" select="number(substring($date, 6, 2))"/>
<xsl:choose>
<xsl:when test="$month=1">Jan</xsl:when>
<xsl:when test="$month=2">Feb</xsl:when>
<xsl:when test="$month=3">Mar</xsl:when>
<xsl:when test="$month=4">Apr</xsl:when>
<xsl:when test="$month=5">May</xsl:when>
<xsl:when test="$month=6">Jun</xsl:when>
<xsl:when test="$month=7">Jul</xsl:when>
<xsl:when test="$month=8">Aug</xsl:when>
<xsl:when test="$month=9">Sep</xsl:when>
<xsl:when test="$month=10">Oct</xsl:when>
<xsl:when test="$month=11">Nov</xsl:when>
<xsl:when test="$month=12">Dec</xsl:when>
<xsl:otherwise>INV</xsl:otherwise>
</xsl:choose> 
<!-- Year -->
<xsl:value-of select="substring($date, 1, 4)"/> <xsl:value-of select="substring($date, 12, 5)"/>
</xsl:template> -
How to print formated data/report on client's printer (Web Application)
Hi All
I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
Application is web based
Technology used are Java - jsp - servlets
i want functionality like...
when user click on print button/link, data is fetched from server and all pages (it is formated data so i want alignment on page while printing) should be printed one after another.
Also printer selection dialog should displayed one time when user click on print button/link.
Questions:
1. How i will transfer all data to client (web browser) from the server ??
2. And how i can print that data on user's printer ??
There is requirement (or limitation) that I can not use applet for this purpose.
And also it is not fix that we must use java tech., we can use any othere tech. but condition is that it must support multiple platform (in short platform indipendant)
There is solution like ...
I can use window.print() function of DOM/JavaScript,
but it prints only one page which is displayed on browser.
I don't want to display any page. and want to print all pages.
if any one done or have idea then let me know.
Thanks in Adv.
Shailesh Koradiyathanks linxpda for reply,
we can use ActiveX component for windows platform for printing purpose, same way we can use platform specific component for printing... (for linux, unix, sun solaris etc...)
if it is possible then let me inform.
Thanks,
Shailesh Koradiya -
How to print formatted data / report on user's printer in Web Application
Hi All
I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
application is web based and tech. used are Java - jsp - servlets
now prob. is ...
how i will transfer all data to client (web browser) from the server and how i can print that data on user's printer ...??
there is requirement that I can not use applet for this purpose.
if any one done or have idea then let me know.
thanks
Shailesh KoradiyaHi
Its simple, first of all break ur data in terms of pages. Write the logic in one JSP.
suppose i have jsp PrintReport.jsp , for page 1 url will PrintReport.jsp?page=0 ... so on
get the page parameter in JSP
String page="";
if(request.getParameter("page")!=null)
page=request.getParameter("page");
get the rowcount from the Result and assume records per page is 100
if u have 1000 rows then 10 pages u have to serve
StartRowNumber=page*recordsPerPage
EndRowNumber=StartRowNumber+recordsPerPage
Execute a SQL query , select * from table where rownum between
StartRowNumber and EndRowNumber
Provide google like pageNumbers in ur HTML page
ie 1 2 3 4 5 6 ..10
Regarding printing , Create HTML button called 'print' and add Javascript ' window.print()' on clicking it.
Hope it would solve ur problem
Cheers
Rajendra Bandi -
Error When Refresh Formatted Data inside Excel Analyzer
I have build a Excel template and load up this to the BI Publisher Server. When I call this template after the log in works fine. When I refresh the data normal it works also fine, but when I try to refresh formatted Data I get the error "Error: This report does not support HTML as an output format." I will not use html output inside Excel, I will use the original Excel template with refreshed data.
Hi Tim,
The Refresh Formatted Data works on MS Excel 2003.
May need to check if its really supported on MS Office 2002.
Btw another question, is it possible to create an excel template without using Excel Analyzer?
Also when I used the generated excel file of Excel Analyzer as template, when the report is generated the data sheet sometimes is not filled with correct data or sometimes there is no data at all, even if the parameters used is the same as the one used in generating the original excel file using Excel Analyzer. This happens most of the time for reports with Concatenated Queries or SQL Queries using "CURSOR" to group a set of data. Note that on initial generation of excel file using Excel Analyzer, correct set of data is displayed. It is only when it is used as template and viewed/exported in Excel format that data is not properly loaded.
Please advise.
Thanks!
Uniz -
Format of reference document number is invalid Message no. 8A556
Dear Expert,
I have problem while executing transaction Manual Posting incoming invoice with t-code FB60. The error message shown as written above "Format of reference document number is invalid Message no. 8A556"
I have check the customizing on document type and number range, they are all standard SAP, nothing strange as far my concern.
Could any one give any idea on this problem.
Thanks in advance
IrhasniDear Experts,
I have tried to investigate this problem but still have no solution for doc. type KR (Posting vendor invoice)
During investigation on this problem, I did a simulation posting using document type other than KR (assign manually) either by t-cod FB60 or F-02 or F-43, I chose doc. type KA and SA, there is no error when using this doc type, it create Accounting document and Tax line item also appear.
From the simulation I did with this problem, the problem seems on Document type KR (default doc. type for Vendor Invoice). I suspect, it might some setting at other modul likely at MM that control the "Reference" field during document entry... eventhough this field is not set as mandatory at OBA7, it's still saying the same error message.
Is there anyone have any ideas about problem in document type KR?
Thanks in advance
Irhasni
Maybe you are looking for
-
Blocked Incoming Invoice Due To Price OR Quantity
Hi Guys, We have Business object For Incoming Invoice BUS2081 and we have Methods "BlockedPriceCheck" which intern calls FM "MRM_EXISTANCE_BLOCKEDPRICEITEM" and "ListBlockedPriceItemdata" which Interns calls "MRM_INVOICE_BLOCKEDPRICEITEMS". I need
-
Mac OS X Will Not Start Up!
Hi I have a major problem right now with my Mac Mini, thats why I'm on my Ibook G4 at the moment. After having reinstalling on of my pieces of software (Dreamweaver 8) my computer asked me to restart. So I did do so and now at startup loads of writin
-
Could someone explain how the DB handles record locking when an aggregate function is called? For instance: select count(*) into v_count from x; ...Is there a lock maintained on table x for the duration of the transaction so no rows can be insert
-
Ipod touch will not sync with itunes using windows 7 makes everything freeze
My itouch has not been able to sync with itunes using windows 7 for a couple of days. Everything just freezes and I have to reboot my laptop. I have reinstalled itunes and deleted the backup of the ipod but nothing is working.
-
Media encoder making file sizes 3x bigger
I've been using Adobe Media encoder CS4 for a while now and haven't had any problems, but lately every file I try to encode comes out bigger when it should be smaller. I've tried to tweak every setting I can but nothing seems to make a difference. I