Date format in file Formetter.js using Web IDE
Hi Experts,
I know that at the forum includes discussions which relate to date format, but I couldn't find topics of the date format using Formatter.js file in Web IDE.
To the point. It's the fragment of my index.html file, where can find resourceroots:
<script id="sap-ui-bootstrap"
src="resources/sap-ui-core.js"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-resourceroots='{"RbsNew": "./"}'>
</script>
My Formatter.js file looks like:
jQuery.sap.require("sap.ui.core.format.DateFormat");
jQuery.sap.declare("RbsNew.Formatter");
sap.ui.RbsNew.Formatter = {
date : function (value) {
if (value) {
var oDateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({pattern: "yyyy-MM-dd"});
return oDateFormat.format(value);
else {
return value;
and it's located directly in the project directory - RbsNew.
I try use this file to format the date in Detail.view.xml file - exactly in Table. The fragment of code looks like:
<Text
text="{
path:'Bdate',
formatter:'sap.ui.RbsNew.Formatter.date'
}"/>
Unfortunately, I can't see the expected results.
Please help, because I don't know what I'm doing wrong.
Regards
Marcin
try
<Text
text="{
parts : [ 'Bdate'],
formatter:'RbsNew.Formatter.date'
}"/>
btw, any errors in console?
Similar Messages
-
How to save file in km using web dynpro abap
Hi Experts,
We have a requirement that file should be saved in a folder in km, the name of the folder should be the employee number.
Could you please tell me how to create folder with employee number in KM and store file in it using web dynpro abap.
Thanks and Regards,
Santhoshi.Thanks Naga Raju Meesala.
How come all these methods are deprecated...getEP5User
Also, since I am building a weddynpro DC, what is the proper way to include these jar files as Used DCs?
Now proceed in the same way with the variable PORTAL_HOME and add the following .jar files:
u2022 \lib\prtapi.jar The portal runtime APIs
u2022 \portalapps\com.sap.portal.usermanagement\lib\com.sap.security.api.ep5.jar The user management APIs of the Enterprise Portal 5.0 are deprecated, but still in use in SAP NetWeaver 04
u2022 \portalapps\com.sap.netweaver.bc.rf\lib\bc.rf.framework_api.jar KM Repository Framework APIs
u2022 \portalapps\com.sap.netweaver.bc.rf.service\lib\bc.rf.global.service.urlgenerator_api.jar Repository Framework Utility: URL Generator
u2022 \portalapps\com.sap.netweaver.bc.sf\lib\bc.sf.framework_api.jar Repository Framework: Repository Services
u2022 \portalapps\com.sap.netweaver.bc.util\lib\bc.util.public_api.jar Repository Framework Utilities -
Date format to DDMMYYYY for leave request web dynpro
Dear All,
Can someone tell me how to change the date format to ddmmyyy in the leave request dynpro page. I already set in the parameter in SU01 but still it remain as mmddyyyy.
Thanks
Regards,
BryanHi Brain,
The Java Web Dynpro uses the Portal UME Language, rather than the SU01, if you set the user language to English UK via the Portal Identity Management the date will be displayed correctly.
Regards,
Jason -
OutofMemory Error while sending file to database using Web services
I have a file of 30MB to be written to the MySQL database. I am doing this in Axis web services and it gives me the following error:
(I am using Tomcat as the application server and Apache as the web server, Axis 1.3 and MySQL standard 5.0.21 version. I have set the minimum and maximum heap size and it works well without using the web service (just uploading and downloading from the database using a simple java program). Another thing to notice is that I can send a file of almost 10MB size to the database using web service without any problem. But it doesn't work with the 30 MB .)
java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:dbr221d.dbr.louisville.edu
java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at edu.louisville.bcc_ma.ws.lab.LabServiceSoapBindingStub.storeGZIPFile(LabServiceSoapBindingStub.java:472)
at edu.louisville.bcc_ma.lims.labclient.container.SendGZIPFile.sendFile(SendGZIPFile.java:69)
at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.login(LoginContainer.java:58)
at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.main(LoginContainer.java:44)Sorry for the delayed response here, forget to add it to my watchlist. I didn't catch if you were using Java 1.5 or not. Prior to 1.5 the default maximum heap space was 64MB which with the overhead of the appserver might be your problem.
Take a look at http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and the java -Xmx <size> command line option to change the default (I believe the size argument is in bytes, but don't hold me to that). I think you can pass that as a command line option to the startup script, but you should check the doco to see if it needs to be wrapped in some other arg etc.,
I seem to recall running into this same problem a few years back when I had a servlet doing some intense graphics processing on the fly and setting this option fixed the problem. -
Retrieve latest revision of a file from perforce using web url
Hello,
I am trying to retrieve the latest revision of a file from perforce using the web url and powershell. e.g.
$Pforce = "perforce.test.com/@md=d&cd=//music/Database/DBA%20Scripts/&cdf=//msc/Database/DBA%20Scripts/20scrub%20script.sql&c=don@//music/Database/DBA%20Scripts/common%20script.sql"
$CommonScrub = Invoke-WebRequest $Pforce
I am getting an error message below about invalid header. Does anyone have any ideas what this means and how to fix it?
Is there another method I can use to get the files from perforce using powershell. Has anyone done this?
Invoke-WebRequest : The server committed a protocol violation. Section=ResponseHeader Detail=Header name is invalid
At E:\scripts\GetHTML_Headers.ps1:3 char:16Hi,
You can set the headers via the -Headers parameter (this only works in V4):
http://technet.microsoft.com/en-us/library/hh849901.aspx
Also,
from this article:
Error: The server committed a protocol violation
The Exception will tell what the HTTP protocol violation is:
"The server committed a protocol violation. Section=ResponseHeader Detail=Header
name is invalid"
Fix the server to conform to the HTTP RFCs to avoid this error. .NET is a stickler that the HTTP Protocol be followed.
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
Upload data from flat file to OVKK using BDC
Hi All,
I want to upload data from flat file to OVKK tcode using BDC.
OVKK is a maintaince view with a table control.
So please send me code for uploading data to OVKK through BDC.
Thanks & Regards,
Siva.BHi,
Welcome to SDN!!!!!!!!!!
Can you see this example for Table control.
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Today this is the second post on the same issue and same Tranx.
1st try through SHDB and check the code.
Thanks.
If this helps you reward with points. -
To which Forms directory to put a text file to show using WEB.SHOW_DOCUMENT
Need to show a text file using WEB.SHOW_DOCUMENT.
In which Forms sub-directory should the text file reside and what is the syntax for the command?
Is it like WEB.SHOW_DOCUMENT('http://192.949.99.19:8890/forms/abc.txt','_blank');Hi, I did this
-- My OC4J URL when I run a form is this: http://192.168.11.103:8890/forms/frmservlet
-- I want to open abc.txt. I put abc.txt in dir E:\Ora_Dev_10g_R2\forms which is my Forms home
-- When I try WEB.SHOW_DOCUMENT('http://192.168.11.103:8890/forms/abc.txt','_blank') it gives
The page cannot be found -
How to play .DAT format video file in my iPOD
Hi all,
I have 5th generation video iPOD. I tried to load some videos which is in .dat format, but it doesn't play. Can anyone help me how to convert this .dat file format to corresponding format that run on my iPOD.
Thanks,
Santhosh
5th Generation video iPOD Windows XPHi,
I have VCD, which is in DAT format. I tried this software videora but its not working. Could you suggest how to do the conversion? -
Not able to save file changes on HCP Web IDE
Hi
i am not able to save the file changes on my HANA XS Application created on HCP Trail Account using Wed IDE. This problem does not occur always but now it has become frequent. On click of save button waiting icon comes up and then after minutes it shows error message as Error while Saving.
I normally use HCP Web IDE platform for all development work.
My Account ID : i314165trial
Can anybuddy tell me what is the issue as this is will hamper the development process.Check the permissons on the folder and drive, not just on the file.
-
Generate XML file from RFC using Web Services
Hi,
I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
Any FM available?
Thanks,
Ram Sanjeevwhich version of WAS you are on .
if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
lower version of WAS use class cl_http_client.
if this case you have to manually build the soap message.
/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
Regards
Raja -
How to display the data in XML files into JSP using Jdeveloper.
Hi All,
I have two XML files one XML file has the view names and the other has the table names of a particular views, how to display the data in JSP using JDeveloper where when i click a particular view the list of tables of that particular view from XML file two should be displayed in JSP Page.
Are there any reference documents, regarding the above process please can anyone guide through how to do it.Let the servlet ask your business tier to provide the data, then stuff it into beans, and pack those into the Session instance. Then forward the request to the JSP, let the JSP get those beans and display them.
-
Write data to text file on command using trigger
Hi there
I'm kinda new to using Labview, and i seek some advices.
I've got this program, which is used to read from a usb-device (6215). It measures the voltage at an input channel on the usb-device, and processes it, and finally writes the data to a txt file. I want to control when it writes the data (only one instance/ measurement at a time) via a trigger.
The problem is, that the trigger does not work. It always writes to the file i have specified. Can anyone help me getting this right?
Furthermore, if someone have any suggestions how to make the data in the text file more readable (i'dd suggest using colums - but how?) i would greatly appreciate it. Maybe converting to an exel-document could be the answer?
Thank you in advance, Troels
Ps:
Hope you can see past the danish text
Attachments:
Sensor.vi 12 KBYour true and false cases are identical and the file write is outside of the case statement. The boolean trigger does nothing. Why don't you try putting the file write inside the true case statement and nothing in the false case? You wouls also place the DAQmx Read inside the true case.
If you are not going to use an event structure (but you should), place a Wait (ms) function inside the loop. -
Upload file into KM using Web Dynpro ABAP
Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ. Any help on how to do this would be very much appreciated. Thanks.
Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ. Any help on how to do this would be very much appreciated. Thanks.
-
How to regularly load data from .csv file to database (using apex)
Hi,
i am using apex3 , I need to load data from a csv file to apex . I need to perform this automatically through code at regular time interval of 5-10 seconds.
Is it possible .If yes how ?. Please reply as early as possible. This will decide whether to use apex or not for this application.
this is question for Application Express. Dont know why in forum for BPEL
Edited by: TEJU on Oct 24, 2008 2:57 PMHello,
You really need to load the data every 5-10 seconds? Presumably it's read only?
I would look at using an Oracle external table instead, that way you just drop your CSV in a location the DB can read it and then you build a table that essentially references the underlying CSV (that way when you query the table you view the data in the CSV file).
Take a look at this link for a quick example on usage -
http://www.oracle-base.com/articles/9i/SQLNewFeatures9i.php#ExternalTables
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
I have this query
SELECT file_prefix ||'_'||file_name||'_'||TO_CHAR(TO_DATE(sysdate, 'DD-MON-YYYY'),'RRRRMMDD')||'_THRU_'||TO_CHAR(TO_DATE(sysdate -1,
'DD-MON-YYYY'),'RRRRMMDD')||'.txt' file_path
FROM payment_schedule
WHERE payee_id = 2
AND payment_period_from = 1;
The result set i am expecting is
Sales_Commissions_20100310_THRU_20100309.txt
but the result i am getting is
Sales_Commissions_00100310_THRU_00100309.txt
It show up as 00 instead of 20 in the date field.
Thanks in advance>
SELECT file_prefix ||'_'||file_name||'_'||TO_CHAR(TO_DATE(sysdate, 'DD-MON-YYYY'),'RRRRMMDD')||'_THRU_'||TO_CHAR(TO_DATE(sysdate -1,
'DD-MON-YYYY'),'RRRRMMDD')||'.txt' file_path
FROM payment_schedule
WHERE payee_id = 2
AND payment_period_from = 1;
>
Here you are using TO_DATE(sysdate,...) that seems to be a common mistake we see in this forum. sysdate is returned as a DATE datatype so there is no need to TO_DATE() it. In fact, it can result in all sorts of errors and corrupt data.
Instead you probably want something more like
SELECT file_prefix||'_'||file_name||'_'||
TO_CHAR( sysdate, 'YYYYMMDD')||
'_THRU_'||TO_CHAR( sysdate -1, 'YYYYMMDD')||
'.txt' AS file_path...
Maybe you are looking for
-
How can i move my contacts, mails etc from gmail to icloud?
How can I move my contacts, mails, etc from gmail account to icloud?
-
IPad suddenly no longer shows in iTunes
Up until about a week or two, any time I would open iTunes (Windows 7 PC) my iPad would show up on the left as a wireless device. Now it no longer shows unless I directly plug it in, and my iPad is definitely connected to the WiFi. I did just updat
-
The above message pops up on screen every time I launch Elements
-
How do I compress a pdf file without loosing image quality, unlike in preview?
whenever I compress a file in preview, the image gets compressed but it gets blurred. pls help... how can i retain image quality?
-
Audio/Movie Files Open in QuickTime Rather than iTunes
I work with online classes at a college, and we have been posting m4a and m4v files in our online courses. we put the actual files on our Mac server and post the links to the files on course webpages. Question: In the past, when students clicked on a