How to display today's date in a textfield?
Hi all,
I have a textfield and it is a page item P18_DOJ.By defalut I want to display today's date in that textfield and it is should be readonly.How do i do that?
Put "Select sysdate from dual;" as source type SQL Query and "readonly" in the HTML Form Element Attributes field.
Similar Messages
-
How do I display today's date and a date 1 month from today in livecycle designer
Hello,
Does anyone know how to display a future dates in 3 date fields that would be 1 month; 2 months and 3 months from today?
I am making a sales contract form and in a date field is today's date (which can be altered if the user needs to change it). The javascript I have is:
if
(this.rawValue == null){
var
msNow = (new Date()).getTime();
var
d1 = new Date(msNow); this.rawValue
= util.printd("mmm/dd/yyyy", d1);}
else
{ this.rawValue
= rawValue;
Then in the next date field i need to display the date 1 month from today
The third date field 2 months from today
the fourth date filed 3 months from today.
Any suggestions would be greatly appreciated.Hi Peter,
If you need to be more exact than adding 30 days then you can use the following code;
function
addMonth(date){
var year = date.getFullYear();
var month = date.getMonth();
var day = date.getDate(); month= (month % 12) + 1; year
+= parseInt(month / 12);
var days = daysInMonth(month, year);
if (day > days) {
day= days; }
return new Date(year, month, day);}
function daysInMonth(iMonth, iYear){
return 32 - new Date(iYear, iMonth, 32).getDate();}
You need to pass in a Date object to addMonth so (assuming DateTimeField1 is your date field);
NextMonth.rawValue= util.printd("mmm/dd/yyyy", addMonth(
= util.printd("mmm/dd/yyyy", addMonth(
Date.parse(DateTimeField1.formattedValue));
Bruce -
How to display today date using formcalc
Hi all,
how to display today date using formcalc, eg April 20, 2009?
ThanskksNum2Date(Date(), "DD/MMM/YYYY", "de_GB")
-
How to display the current date in the prompt value.
Hi,
How to display the current date in the prompt value. When the user runs the query he want the current date to be displayed in the prompt value and he should also be able to change the date if required ...... I am using web Intellegency BO XI3.0.
Thanks,
Shakthi.Please refer the below link.
Prompt with default date ( currentdate-1 and current date-8)
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
Regards,
Bilahari -
How to display the header data on different position in alv report
hi all,
how to display the header data on different position in alv report.
for example ,
customer name
xxxx xxxx
vendor name street
xxxx xxxx xxxxx
pls help me .hi
as per my understanding you need to trnasfer header internal table data to pdf..
please check the following links for internal table to pdf..
Convertion of Internal table data to PDF
This link is related to ur issue
Re: how to insert the calling of the FM: OTF to PDF
Thanks -
Using a checkbox in numbers- if,then, I want to display today's date if checked, and keep that date, the day it was checked, not the current day
this will not work. Numbers does not provide a timestamp. you can, however, enter the formula "=now()" in any cell, then copy that same cell, then paste (using the command "Edit > Paste Formula Results"
If you need a time stamp often,
make a single cell table with the formula (mentioned earlier).
and copy and paste as needed -
May I know that anybody has the codes to display today's date in JLabel?? It's very urgent...
Thanks in advanced!try.....
//gives todays date,
//you might want to format it using SimpleDateFormat
Date todaysDate = new Date()
jLable.setText(todaysDate) -
How to display planned movement date and actual movement date together?
Hi, Professionals,
My purpose is to list delayed outbound deliveries.
Anyone could tell me how to display planned movement date and actual movement date?
Appreciate your help.Thanks Shiva.
I tried another way to do it. It works only for a short period of time.
By using VL06O, I list all outbound deliveries by limiting both planned goods movement dates and actual goods movements dates to the same week I would like to inspect. Say both from 7th/11 to 14th/11.
then I list outbound delivery list with planned goods movement date to 7th/11 but left out actual goods movements dates this time.
In excel, I compare those two lists and filter out those unique ones because those unique documents means delayed deliveries which cannot delivery according to planned date.
However, the "delayed" list generated by this method has some noises. Not all of documents are really delayed although most of them do.
I'm also looking for a way to list sales documents number of these delayed delivery documents so i can retrieve order details from it such as order value.
Help still needed. -
Displaying metadata, how to display ONLY the Date
I would like to display the Date below each image in Aperture 3. When I select "Date" in the Browser & Viewer Metadata window, the result is a very long string with the Date, the Time and the Time Zone. meaning that most of the time I see nothing because the string is much too long to be displayed...
How to display ONLY the Date ?
Thank you.
Olivierom28 wrote:
I will do that but still... if the Date could be ONLY the Date "without time and time zone", I would be able to display more information.. and it will look nicer.
I said at the top of my first response above: +Afaik, there is no way within Aperture to change the date format of the date metadata overlay.+
Send Aperture feedback to Apple via "Aperture→Provide Aperture Feedback"
In the past I used Expression Media and the config for displaying such info was better.
Aperture has a strange interface for it (and for other parameters), it does not behave at all like an Apple software (for the GUI), probably an external development team... but I agree it is more complex than iPhoto.
Aperture is 10x more complex than iPhoto.
If you want to see a rigid, boxed, "engineer"-style image database interface, take a look at Lightroom 3. It's a great program -- but it's a very different concept of information presentation and interaction.
Thanks again. -
May I know that anybody has the codes to display today's date in JLabel?? It's very urgent...
Thanks in advanced!Hi~
Try
JLabel label = new JLabel(new Date()); or JLabel label = new JLabel();
label.setText(new Date());Regards,
Seung-Jin Jung -
How to Display the Predefault Date Time
Hi frnds,
How to display the Default DateTime in the date field via sctipting i have a requirementy to show in one of the date field as next day's date with 9:00 a.m time stamp(2/15/2010 9:00 A.M) the data type of that field& column is UTC_datetime.please help i am getting.
siebel beeHave a look at the function Today(), TimeStamp() and ToChar()
You should be able todo it with something similar to this:
Expr: "ToChar(TimeStamp(),'MM') + '/' + ToChar(TimeStamp(),'DD') + '/' + ToChar(TimeStamp(),'YYYY') + ' ' + ToChar(TimeStamp()+(1/24),'HH') + ':00:00'"
as a pre-default value. -
How to display the Current Date on page using ADF Components
Hi,
Is there any way to display the system date on a page developed using ADF Components.
I am thinking of writing the java code to display the date. Just wanted to check is there any pre-defined component of ADF that I can make use of.
Could anyone tell me how to do this using ADF components?
Thanks in advance.
Sivaji....Please refer the below link.
Prompt with default date ( currentdate-1 and current date-8)
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
Regards,
Bilahari -
How to display a table data on Screen having a Table control
Hi ,
I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.Hi Gayatri,
After creating table control do the following steps.
1. In the flow logic section write the following code:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
MODULE ASSIGN_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
LOOP AT I_LIKP.
ENDLOOP.
I_LIKP is the internal table which is used to display table data in the table control.
2. In Process Before Output, in the module STATUS_0200 write the following code:
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
In Process After Input, in the module USER_COMMAND_0200 write the following code:
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
MOVE-CORRESPONDING I_LIKP TO LIKP.
So, Totally your flow logic code should be like this.
TABLES: LIKP, LIPS.
DATA: BEGIN OF I_LIKP OCCURS 0,
VBELN LIKE LIKP-VBELN,
ERNAM LIKE LIKP-ERNAM,
ERZET LIKE LIKP-ERZET,
ERDAT LIKE LIKP-ERDAT,
MARK TYPE C VALUE 'X',
END OF I_LIKP,
BEGIN OF I_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
WERKS LIKE LIPS-WERKS,
LGORT LIKE LIPS-LGORT,
END OF I_LIPS,
FILL TYPE I.
CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LIKP'.
SELECT VBELN
ERNAM
ERZET
ERDAT
FROM LIKP
INTO TABLE I_LIKP
WHERE VBELN = LIKP-VBELN.
IF I_LIKP[] IS INITIAL.
CALL SCREEN 200.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module assign_data OUTPUT
text
MODULE ASSIGN_DATA OUTPUT.
MOVE-CORRESPONDING I_LIKP TO LIKP.
ENDMODULE. " assign_data OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE STATUS_0200 OUTPUT.
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE USER_COMMAND_0200 INPUT.
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
Save and Activate the program along with the screen in which you have included table control.
Hope this will help you.
Regards
Haritha. -
How to display the current date witout chane anyone
Hi all
I have some problem in date field.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : S_INDATE TYPE SY-DATUM DEFAULT SY-DATUM.
SELECTION-SCREEN END OF BLOCK B1 .
This the code of selection screens. Normally default it will display the current date. But in my program it can change the user but I want to display the date and it cant be the change anybody.. How should I do it ??????????
Regards,
nawahi ,
Chk this.
SELECT-OPTIONS : s_kunnr for kna1-kunnr.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
if (SCREEN-NAME EQ 'S_KUNNR-HIGH') OR (SCREEN- NAME EQ 'S_KUNNR-LOW').
SCREEN-input = 0.
MODIFY SCREEN.
ENDLOOP.
Rgds
Anver -
How to display three months data in ALV grid control
Hi
Thanks for all.I have tried now it is working but as per requirement month name and cumulative total will display like this format.cumulative total means month1amount+ month2amount+month3amount.And one more thing month range will change some times means sometimes i will give January date to march date and sometimes i will give July date to October date. but date range is same means between dates range is three months.
please tell me how to display.
GAS PRESSURE WELDING COST EFFECTIVENESS Dec-11 Cummulativetotal
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Jan-12
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Feb-12
Sr. No Item Unit Rate Qty Amount
Thanks & Regards,
Vasu.
Moderator message: only one thread per issue, please.
Edited by: Thomas Zloch on Feb 20, 2012Hi
Thanks for all.I have tried now it is working but as per requirement month name and cumulative total will display like this format.cumulative total means month1amount+ month2amount+month3amount.And one more thing month range will change some times means sometimes i will give January date to march date and sometimes i will give July date to October date. but date range is same means between dates range is three months.
please tell me how to display.
GAS PRESSURE WELDING COST EFFECTIVENESS Dec-11 Cummulativetotal
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Jan-12
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Feb-12
Sr. No Item Unit Rate Qty Amount
Thanks & Regards,
Vasu.
Moderator message: only one thread per issue, please.
Edited by: Thomas Zloch on Feb 20, 2012
Maybe you are looking for
-
UI elements not being displayed for a particular user
Hi, I designed two i/p fields and text view for the same in a view. All are static UI elements and no visibility property is set. This view is displayed as a popup when i press the button in the main view. This is working fine for all the users in pr
-
Install BW7 ABAP+JAVA, why is SCS instance nr set to 00?
Hi, we are trying to install BW7 ABAP+JAVA, and SAPinst defaulted the SCS instance nr to be 00, and the CI nr to be 01. We cannot change this values from the SAPinst screen. We want CI to be 00 and SCS to be 01. Anyway to do this? Thanks.
-
ADF FACES: HTML template text Layout is broken when uses ADF Faces tags
This works fine: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri=
-
COULD SOMEONE HERE TELL ME HOW TO GET AN ALBUM OFF OF MY IPAD 2!!!!!! I KNOW THAT USING ALL UPPER CASE LETTERS MAKES IT LOOK LIKE I'M SCREAMING!!!! I AM SCREAMING!!!!! I'VE USED A PC SINCE 1991, AND I'M STARTING TO UNDERSTAND WHY I'VE DONE THAT.
-
Web Reports Take 10 minutes trying to show a PDF the first time
I have a critical error on my ORACLE Web Reports, using Application Server Enterprise Edition 10.1.2.2 The first time i call a reports take 10 minutes trying to show a PDF, and give me an error No response from application webserver, this is a red er