How to format the output of Today() ⨍(x) when used in a formula
This table should explain what I'm asking to do. Have the Wed, Nov 2, 2011 applied to a date when I use the Today() function. Without the workaround of refernencing another cell to pickup formatting like I do in the final row.
Formula
Cell Format
Result
=CONCATENATE("Today is ",TODAY())"
Date: Mon,Jan 5, 2009 Time: None
Today is 02/11/2011
=TODAY()
Date: Mon,Jan 5, 2009 Time: None
Wed, Nov 2, 2011
= CONCATENATE("Today is ",C3)
Date: Mon,Jan 5, 2009 Time: None
Today is Wed, Nov 2, 2011
Hi Barry
I just discover this thread.
The main problem here is that as we aren't allowed to define the format used by TODAY() in the described formula, we have to use a formula which is localization dependant which is really annoying.
For my own use, I will just use two columns :
In the first one the formula would be :
=IF(MID(""&1/2,2,1)=".","Nous sommes le","Today is")
In the second one it would be :
=TODAY()
The vertical border between the two columns is set to white.
But I think that the most efficient answer would be that Apple give us the ability to pass a parameter to TODAY() and/or NOW().
This parameter would define the format which would remain the current one when the parameter is omitted.
Yvan KOENIG (VALLAURIS, France) 07 /11 /2011 17:38:15
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
Similar Messages
-
Revision: 10545
Author: [email protected]
Date: 2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
Log Message:
Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
QE Notes: 2 Mustella tests fail:
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
Doc Notes: None
Bugs: SDK-15241
Reviewer: Darrell
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/browser/DataGrid
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-15241
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.asHi Matthias,
Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional). We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files). We also use VIPM Enterprise to distribute new VI Packages over the network.
Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
Please feel free to contact JKI if you have any specific questions about these products.
Thanks,
-Jim -
How to get the addition DML Error information when using PL/SQL?
Given the following statements:
drop table bob;
create table bob
col1 number(6,2),
col2 number(6,2) not null
insert into bob(col1, col2) values (123.12, null);
insert into bob(col1, col2) values (123.12, 12345.12);
commit;
I get different behavior from Oracle error messages.
Here is the sample output:
Table dropped.
Table created.
insert into bob(col1, col2) values (123.12, null)
ERROR at line 1:
ORA-01400: cannot insert NULL into ("BOB"."COL2")
insert into bob(col1, col2) values (123.12, 12345.12)
ERROR at line 1:
ORA-01438: value larger than specified precision allows for this column
Commit complete.
Note that in the first error (1400) the generated error message contains the name of the problematic column ("BOB"."COL2"). Also note that in the regurgitated statement the error pointer (*) is at the far left. In this case, the regurgitated statement is of no use to me because the error message identifies the culprit column.
However, in the second error (1438) the generated error message is very generic and does NOT indicate the problematic column. In addition, in this case the error pointer (*) of the regurgitated statement has moved to point to the troublesome column. In this case, I must use BOTH the error message and the regurgitated statement to completely understand the problem.
This difference in how error messages are constructed causes difficulty within PL/SQL. If PL/SQL happens to generate a 1400 error message, then simply capturing the error message and giving it to the user provides enough information for him/her to solve the problem. However, if a 1438 error is generated then the resulting error message has insufficient information for the user to pursue the problem.
So my question is, within PL/SQL do you know how to get your hands on Oracle's regurgitated statements so that they can be presented to the user to assisted him/her in problem resolution?
Thanks.I don't think it's that easy. Notice that if you put the insert into an actual pl/sql block, you don't get the correct column pointer anymore.
BEGIN insert into bob(col1, col2) values (123.12, 12345.12); END;
ERROR at line 1:
ORA-01438: value larger than specified precision allows for this column
ORA-06512: at line 1
Richard -
How to set the margin of a jtextfield when using standard lineborder
Hi,
I want to give my jtextfield a custom inset. The problem is that I also use a lineborder which controls the inset, thus when I try to the setMargin method, it doesn't work.
Can anyone tell me how to do this?
Much thanks
Hugo Hendrikshello,
try to use a compoundborder and add the lineborder and an emptyborder to it. by setting the emptyborders insets you can control the jtextpanes insets.
i hope that one works =)
bye -
How to prevent the insertion of rollover code when using a template
Hi there
I am designing a site in Dreamweaver using templates. These templates use rollover images. The code that DW uses for the rollover I have abstracted out into a separate javascript file, which is linked to in the header. Further, I am using window.onload() to call the preloader instead of the <body> onload event. All this works fine.
The problem is that every time I make a change to the template, DW re-inserts the rollover code into the head of the HTML file, and reinserts the preloader code into the <body> tag.
Now, I have found a solution to the <body> tag problem by changing the preload flag from 1 to 0 in the link created; it seems that DW uses this flag as in indication of whether to insert the onload code into the boday tag. So that part is fixed.
But I can't find any way to keep DW from inserting the unecessary and redundant rollover code into the head of the generated HTML files. Is there a way I can prevent this from happening?
...MikeJust don't externalize your js until the very last step before publishing.
You can let the dev team know about this here -
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform -
How to format the spaces in a text file using bat file scripting
Currently the records in my text file are like this:
100239 0000015.00
QRP
I want them to be like this:
100266 0000015.00 QRP
There should be 6 spaces before the first column and 8 spaces after that. There should be 1 space between the second and third columns.
Generally this file contains approx 1000 records.
Any help is highly appreciated.
Thank you.So far it's like this:
for /f "skip=2 delims=*" %%a in (C:\Bonus_File_Export.txt) do (
echo %%a >>C:\newfile.txt
xcopy C:\newfile.txt C:\Bonus_File_Export.txt /y
del C:\newfile.txt /f /q
I've to format a text file generated by the tool Microstrategy and it feed it to another system in a specific format. Ihave removed the headers with the above script but was unable to remove the spaces between those columns.
You can use this code as a basis for your script:
@echo off
set Line=
if exist d:\temp\newfile.txt del d:\temp\newfile.txt
for /F "skip=2 tokens=1-2" %%a in (d:\temp\test.txt) do call :Sub %%a %%b
goto :eof
:Sub
if not "%2"=="" (
set Line= %1 %2
) else (
echo %Line% %1>>d:\temp\newfile.txt
It works provided that your input file uses this format:
Header line
Header line
100239 0000015.00
QRP
100240 0000016.00
QRR
100241 0000017.00
QRS
100242 0000018.00
QRT
100243 0000019.00
QRU
100244 0000020.00
QRV -
The keyboard brightness controlls of the iMac do not work. The keyboard brightness controlls of the MacBook only controll the MacBook. Same goes for the display set up of the MacBook, I can change the MacBooks brightness there but not the one of the secondary screen.
I am working in a pretty dark room and that iMac 27 is at full bightness. Gives me a headache. Please help.
ThanksRight, it shoulld work if Mid 2011 & up, might it be a bad TB cable?
Here's how it's supposed to work...
http://support.apple.com/kb/HT3924
The mid 2011s & up need Thunderbolt...
http://support.apple.com/kb/TS3775 -
How to write the code for a panel when using treeview?
Hi,
We are developing a new plug-in in Indesign as based on treeview. we have completed the design part, but we have some doubts in coding..
One dialog widget and three panels(General, fitting, Eventsandscripts).
The .fr file:
resource GeneralPanelWidget (kGeneralPanelResourceID)
__FILE__, __LINE__,
kGeneralPanelWidgetID, // WidgetId
kPMRsrcID_None, // RsrcId
kBindNone, // Frame binding
Frame(0,0,800,500) // Frame
kTrue, // Visible
kTrue, // Enabled
kGeneralPanelTitleKey, // Panel name
StaticTextWidget
kInvalidWidgetID, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 15, 138, 35, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
ksamPrefProjectPathStringKey, // Initial text.
ksamPrefProjectPathTextEditBoxWidgetID // No associated widget
// TextEditBox Widget resource
TextEditBoxWidget
ksamPrefProjectPathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame(140, 15, 420, 35), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
ButtonWidget
ksamChooseProjectButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 15, 500, 35,
kTrue, kTrue,
ksamChooseBtnStringKey,
StaticTextWidget
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 45, 138, 65, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
ksamPrefImagePathStringKey, // Initial text.
ksamPrefImagePathTextEditBoxWidgetID // No associated widget
// TextEditBox Widget resource
TextEditBoxWidget
ksamPrefImagePathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame(140, 45, 420, 65), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
ButtonWidget
ksamChooseImgpathButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 45, 500, 65,
kTrue, kTrue,
ksamChooseBtnStringKey,
StaticTextWidget
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 75, 138, 95, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
ksamPrefMasterTempPathStringKey, // Initial text.
ksamPrefMasterTemplatePathTextEditBoxWidgetID // No associated widget
// TextEditBox Widget resource
TextEditBoxWidget
ksamPrefMasterTemplatePathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame 85
Frame(140, 75, 420, 95), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
ButtonWidget
ksamChooseMasterTempButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 75, 500, 95,
kTrue, kTrue,
ksamChooseBtnStringKey,
CheckBoxWidget
ksamShowFrameLabelCheckBoxWidgetID, // WidgetId
kSysCheckBoxPMRsrcId, // RsrcId
kBindNone,
Frame( 10, 165, 320, 185) // left, top, right, bottom
kTrue, // Visible
kTrue, // Enabled
kAlignLeft, // Alignment
ksamShowFrameLabelChkBoxTextKey // Initial text
DefaultButtonWidget
kOKButtonWidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
320, 380, 390, 400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
ksamPrefSaveStringKey, // Button text
CancelButtonWidget
kCancelButton_WidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
400, 380, 470, 400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
ksamPrefCancelStringKey, // Button name
kTrue, // Change to Reset on option-click.
This is for General panel design and we have written the code for this..but we dont know where to call this functions. we implemented this plug-in based on BasicSelectableDialog sample plug-in. please guide me to complete this code.
Thanks in Advance..Your question is not very clear. Have you gone through the PanelTreeView.sdk example in the sdk?
-
Hi everyone in the forum,
I do not know if i should post this question here, but i think is the best place. Sorry if i were wrong.
just a question because i have no idea how to format the output i need.
I have a REAL or FLOAT and the output restrictions shows that it should be:
1.0000 D-08 if the value is less than 1
1.0000 if the value is [1,9]
1.0000 D+03 is value bigger than 9
and the other problem is whith other variable (type String) which represents integers, e.g, 0.000000 1.0000000 2.000000; and i have to return only 0 1 2 .
Any suggestion about how to format the output?
ThanksDecimalFormat
-
How to change the output as text format in Apps R12.1.3
Hi All,
Currently iam trying to modify the Java Concurrent Program (FDExtractAndFormatting) in Batch Payment Process. This Program is generated in text format in 11i APPS. Now we are upgrading to R12.1.3. In R12.1.3 output is coming as PDF format. Here my requirement is how to change the output as text format in R12.1.3 also.
Please do the needful and suggest me.
Regards,
Jagadeesh1. It is seeded java concurrent program. Some attributes are missing from 11i to R12. In 11i it is a text format.So i have to investgate on how to retrive those attributes in R12. What is the concurrent program name?
Have you tried to change the output and submit the request?
2. Once all are attributes are coming in PDF format. Client wants to open same output in text format as it is 11i (In R12 it is generated in PDF format).If the above does not help, please log a SR.
Thanks,
Hussein -
How to send the output to PDF format in reports 6i?
Hi,
How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
Thanks
KavithaHello,
Do you get this problem only for DESFORMAT=PDF ?
Test with :
DESFORMAT = RTF, DESNAME = C:\x.rtf
or
DESFORMAT = HTMLCSS, DESNAME = C:\x.html
does it work ?
Check if DESNAME is modified in the reports itself.
Regards -
How to get the output of the report in pdf format
how to get the output of the report in pdf format?
Thanks in advance,
madan.Refer these links
http://www.sap-img.com/bc037.htm
http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF -
Hi All,
I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
Pls suggest.. I used the below code
repeat with i in allContents
if class of i is button then set the end of allStaticText to contents of i
end repeat
Applscript ouptput
{button 1 of window "Player Installer" of application process "Install Player" of application "System Events", button 2 of window "Player Installer" of application process "Install Player" of application "System Events", button 3 of window "Player Installer" of application process "Install Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install Player" of application "System Events"}
Java output
<NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install Player"), 'from':'null'() } } }>Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
tell application "System Events"
get button 2 of window 1 of process "TextEdit"
my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
end tell
on objectToText(UI_element)
set theText to ""
tell application "System Events"
repeat
if exists attribute "AXParent" of UI_element then
set theParent to value of attribute "AXParent" of UI_element
set theClass to class of UI_element
if name of UI_element exists then
set theName to name of UI_element
set theText to theText & (theClass as text) & " \"" & theName & "\" of "
else
set k to 0
get UI elements of theParent whose class is theClass
repeat with thisItem in result
set k to k + 1
if contents of thisItem is UI_element then exit repeat
end repeat
set theIndex to k
set theText to theText & (theClass as text) & " " & theIndex & " of "
end if
set UI_element to theParent
else
set theClass to class of UI_element
set theName to name of UI_element
set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
exit repeat
end if
end repeat
end tell
return theText
end objectToText
Message was edited by: Pierre L. -
How to download the output of a report along with column header
Hi,
Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.Hello,
Try this FM:
Data: being of itab occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
end of itab.
data:begin of fld_tab occurs 0,
fld_name(20),
end of fld_tab.
fld_tab = 'Material'.
append fld_tab.
fld_tab = 'Material Desc'.
append fld_tab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = 'C:\1.txt '
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES = fld_tab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Naimesh -
LabVIEW webservice: How to format the published XML data
Hi,
Im trying to publish some measurement data with LabVIEW webservice and read the data with Android client. However i have some problems with the XML output from the LabVIEW webservice.
I want to publish the data in in this form:
<Response>
-<Terminal>
<Parameter> Temperature</Parameter>
<Value> 5 </Value>
<Unit> ºC </Unit>
<Description> Measurements from Sensor 1</Description>
</Terminal>
</Response>
Any ideas how i can do this? i havent found any good example on how to format the XML output this way.Hi,
You can format the data using Format Into String as shown in the attached snippet. Is this maybe something you can use?
Willy
Willy
Attachments:
format xml data.png 31 KB
Maybe you are looking for
-
Convert an already created pdf to otf
i made an report that takes some pdf from sapscript and takes the otf's and send them as email attachement. Now i want to incude one more pdf to the same email that is already created and i store it to my fileserver . How can i do this ? REPORT YDP_
-
System file associations - cannot select Bridge.
Since I upgraded to CS6 last year, I can't seem to change my file type associations to point image files to open in Bridge, and it's driving me crazy. On a Windows computer, I right-click and select "open with", then browse and choose Bridge.exe, but
-
Hi all, I am trying to change the label name and the text in text view, when i do the changes in development system its changing, but when i transport the changes to testing system the changes does not reflect, i tried resetting the OTR buffer, still
-
How to Filter the List in Combo Box in JDeveloper?
Hey guys, I really need your help regarding this matter. In JDeveloper, I need to filter the list in combobox in order for us to query faster especially when the list is very long. For example in a 'Country' combo box, when you type 'p' in the field,
-
Several key figures in one colume in P&L report
Hello! Please, say me about decision of my problem: I hame hierarchy 0GL_ACCOUNT in P&L report, key figure is 0Balance. Items of P&L connected with one or more accounts. But for several accounts I need new key figure (not 0Balance), which calculated