Set current date

Hello guys,
Regarding the date, how can I set the current date as default value in a inputtext .
It seems very tricky to handle devault values with JSF.
please help
Thanks

Hi Suresh,
Setting Current Date :
oForm.Items.Item("txt1").Specific.Value=DateTime.Today.ToString("yyyyMMdd")
Sure, This is helpful for you!!!
Regards,
G.Suresh

Similar Messages

  • Exit to set current date as default

    Hai Gurus,
    One of our clients require to set the current date as default billing date when perfirming vf01. As you know in vf01, if we dont specify any date, the system would take the default date from the delivery date. We found an exit for this requirement. RV60AFZC. However I want to make sure whether this is the right exit to be used ..
    awaiting a valuable reply
    Dinkar

    The following one of the options would satisfy your condition
    A. T-Code: VTFL(delivery related billing)
    For the billing document and delivery, at item level assign the copying requirement 011 or if you are currently using some other routine then you can use following in that VBRK-FKDAT = SY-DATUM.
    B. T-code VTFA(order related billing) Similar to A, using copying requirement 011
    I'm not sure about user exit

  • Set current date as Value Paremeter

    Hello:
    I have the next problem. Please, see the image for understand my question...
    [Question|http://www.hiboox.es/go/imagenes/informatica/question,7d43dd9e9978614b1027a0fc95b18289.jpg.html]
    I want to set a default parameter with the current date in the field HastaClosedTime (1) with a function that insert the current day.(2)
    Someone, can help me?
    Thanks a lot!!

    i think this is a crystal report
    you should post it in the cyrstal report forum to get more accurate answers
    good luck

  • Setting Current date to calendar control when the page loads

    Hi all ,
    I am using a calendar contol i want to set its value to current date,
    is there any method to do that ? Please help

    This might help
    http://blogs.sun.com/roller/page/divas?entry=calendar_component_tips

  • How to set Current Date as default date in the form?

    Hi ,
    I have a date field and in the form I need it to be 'Current Date' as defualt.
    How do I get it in Portal??
    Thanx
    swati

    In the "Default Value Type" you choose "SQL query returns date" and in Default Value you write "select sysdate from dual".

  • Setting Current Date on a checkbox

    Hi all,
    I have a requirement in which all the rows have a checkbox if user checks the checkbox and save the record I need to populated current date for checked record in a column.
    Please guide me in this regard. Its urgent please.
    Thanks
    Ragni Gupta

    Hi,
    Yes. If you have advanced table and do validation only for changed records you have to use row reference. Complete description is given in DEV guide for further clarification.
    I will give you a snippet if needed:
    Eg:
    1. In check box property add Action Type: firePartialAction and give it a name say, updateCheckBox. Checked Value = Y, Unchecked Value = 'N' as usual;
    2. In CO Process Form request:
    String event = pageContext.getParameter(EVENT_PARAM);
    if("updateCheckBox".equals(event)){               
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] param = { rowReference };
    am.invokeMethod("updateDate",param);
    3. In AMImpl
    public void updateDate(String rowReference ){
    OARow row = (OARow)findRowByRef(rowReference );
    if(row != null){
    if(row.getAttribute("CheckBoxAttribute") == 'Y'){
    row.setAttribute("DateAttribute",datevalue);
    Hope it is understandable.
    Regards.
    Edited by: niranj.s on Apr 5, 2012 3:45 PM
    Edited by: niranj.s on Apr 5, 2012 3:48 PM

  • How to set current data as default when stop VI automatically?

    Each time, when I finish a VI, I want it remember all current value so that I can reuse it next time. I want this can be done by program itself.
    Any idea, thanks

    Hello,
    If you are using LV 8, there is a built in function to perform a "make current value default" at end of you VI.
    If LV 7 and older there are some tricks, that have been explained and re-explained on the forum, so do a search with "make current value default" and you'll find all you need.
    Hope this helps.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Error when trying to set a date type edit field

    Hi all
    I have an edit text field in a form which is bounded to a date type
    database field using dbDataSource.
    When i try to set the edit text field value with Today's date by code.
    I recieve an error message that the value which
    i'm trying to set is not legal. the  error number is [131-183].
    I use the following code to set the edit field:
    If oEditText.Value.Trim = String.Empty Then
                Dim strDate As String
                Dim sboBob As SAPbobsCOM.SBObob =
                 oCompany.GetBusinessObjec(SAPbobsCOM.BoObjectTypes.BoBridge)
                 rs = sboBob.Format_DateToString(Microsoft.VisualBasic.Today)
               strDate = rs.Fields.Item(0).Value.ToString().Trim()
    Try 
           oEditText.Value = strDate
    Catch ex As Exception
        SBO_Application.MessageBox("error setting
    current date: " & ex.Message)
    End Try
    End If
    My question is how can i set the edit field with a valid value?

    Hi!
    When writing to EditText.Value you must always use the B1 "DB-Format" as String.
    The following examples are assuming (it's a must!) that the EditText-Fields are bound to a corrosponding DataSource (Type Date, Price etc...)
    MyDateEditTxt.Value="20080207"
    MyPriceEditTxt.Value="1341.79"
    The best of it: It's Windows and SBO-GUI-Language independent.
    EditText.String must always be written with the format of the actual Language of the SBO-GUI, which can be changed by the user....
    You may also have a look at my statements regarding these problems near the end of this thread:
    [How to pass date value to an UDF;
    Cheers,
    Roland

  • Add current Date/Time to a database note?

    If we set the database note when we are loading the cube, what would be the syntax to set the current date/time?<BR><BR>For example...<BR><BR>ALTER DATABASE <NAME> SET NOTE <COMMENT><BR><BR>What would go in <COMMENT> in order to set current date/time?<BR><BR>Cheers!

    Hi Philip,
    There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
    Hope this helps...

  • Set variable date in a procedure with current month and previous month

    Hi guys, I need to set two date range in one procedure. The date should be
    @datefrom the third day of the current month
    @dateto the seventh day of the current month
    @datefrom-1 the third day of the previous month
    @dateto-1 the seventh day of the previous month
    format like @datefrom '2014-03-03' @dateto '2014-03-07'
    @datefrom '2014-02-03' @dateto '2014-02-07'
    The problem for me it's going to be the jump between the years...2014 to 2015...any advice?
    Thanks

    DECLARE @FirstDayOfCurrentMonth DATE
    SELECT @FirstDayOfCurrentMonth = DATEADD(MONTH, DATEDIFF(MONTH, '01/01/1900', Current_timeStamp), '01/01/1900')
    SELECT
    DATEADD(DAY, 2, @FirstDayOfCurrentMonth) As ThirdDayOfCurrentMonth
    ,DATEADD(DAY, 6, @FirstDayOfCurrentMonth) As SeventhDayOfCurrentMonth
    ,DATEADD(DAY, 2, DATEADD(MONTH, -1, @FirstDayOfCurrentMonth)) As ThirdDayOfPreviousMonth
    ,DATEADD(DAY, 6, DATEADD(MONTH, -1, @FirstDayOfCurrentMonth)) As SeventhDayOfPreviousMonth
    OUTPUT
    ThirdDayOfCurrentMonth SeventhDayOfCurrentMonth ThirdDayOfPreviousMonth SeventhDayOfPreviousMonth
    2014-12-03 2014-12-07 2014-11-03 2014-11-07
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • How can I set the date field to auto populate the current date?

    I have many forms to create where the current date dictates a specific change in options or conditions for the form filler to follow. I cannot see any way to handle that issue. Is it possible to simply set the current date as a default?
    jcytrny

    Sorry, we currently do not support having today's date show up in a date field by default
    Randy

  • XL - Reporter - To set current system date as the PARAMETER to run a report

    Hi
    Version : SAP 2007 B
    Patch : 10
    Using the XL -  Reporter we had designed a stock report as per the client rquested format. In that Report , we use parameter function to get the start date and End date ( 2 PARAMETERS) for which the report should be generated.
    Using the Report Organizer , JOB was created for the above report scheduling that the report should run daily night 9 Clock and save it in Local Computer.
    Now comes the problem , how to provide the parameter ( Start and End Date - which is nothing but the server date or computer date)
    Is there is any way to set the XL-Reporter Parameter - as current date or server date .
    Thanks

    Hi Balaji,
    Check the following thread its solves your problem
    Re: XL Reporter Date Function
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • How to set default value to current date in Webcenter Imaging Application?

    Hi
    I have created an application in Webcenter Imaging and have a field called as ScanDate.
    While uploading documents against that particular application, i want that ScanDate field should default to Current Date.
    I tried setting the default value but it becomes a static date.
    Can anyone suggest me what to do in this case?
    Regards
    ACM

    You can't do that anyway. The default values are saved as part of the VI and a built application can not do that. Instead, you will have to do this yourself by saving the data to a file, loading it and wiring it into a local variable of the control. You can do this, for example, with the configuration file VIs or, if you want to rely on the good work that other people already did, you can go to the OpenG site and download their file package, which includes saving control values to INI files.
    Try to take over the world!

  • OWL with Default Set containting Current Date as query parameter

    Hello Everybody,
    I have a custom BO which mainly consists of a name and a time period (start and end date).
    Now I'd like to create a Default set like
    "Give me all objects with today between start and end date."
    I already tried the following:
    Filling a field using UI-Scripting:
    $data.UIState.Today = $controller.DateTimeUtils.DateNow;
    Copy the field into the search parameter
    executing the query with this search parameter.
    However, I using this approach, I only managed to search for objects matching exactly todays date, but not using greater/lower comparators.
    Furthermore I also searched for a field transformation giving me the current date but did not succeed.
    Does anyone have any ideas how to achieve this or how to get one of the above ideas to work?
    Best regards,
    Ludger

    Hello Ludger,
    That`s what I expected: The fields do not define the interval.
    Therefore you need to define it by yourself via this "less or equal".
    What you can do in the UI Designer at the query definition is to provide an interval
    For the field "CurrentDate" provide
    - SelectOption = "between"
    - Low Value = your start date
    - High Value = your end date
    - Select Option = "include"
    HTH,
        Horst

  • Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow

    Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
    I need to set it today because there are tasks that is needed to be completed on the same day.
    Is there a way without modifying the page/form. like a configuration or something?
    ----------------------- Sharepoint Newbie

    Hi ,
    As Ajeet said,  for implement your requirement, you can change the data validation on the Due data field.
    You can do as the following :
    Open the site with SharePoint Designer 2010
    Click on Workflows on the left launch, then find ‘Approval-SharePoint 2010’, click on it
    On the Forms section, click ‘ReviewApproval_***.xsn’
    Then you can find Due Data for All Tasks, and change the validation
    In addition, if you create an approval workflow with SharePoint Designer, you can use a specific date, it contains hour and minute.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How to change the description in CV03(N) transaction ?

    How to chnage the long test description in CV03N transaction   Posted: Jan 10, 2010 11:36 PM     Edit          Reply  Hi Friends, I have a requirement as below: 1. Excecute the transaction CV04N 2. Give Document value(s) and Excecute 3. Double click

  • GRC 10.0 Connector error

    Hi experts, I'am working on a GRC 10.0 (AC) implementation and when creating a conncetor to the SAP ERP, we have no error nor problem. But, when I try to run the SYNC programs, lets say GRAC_ROLEREP_PROFILE_SYNC, GRAC_PFCG_AUTHORIZATION_SYNC, etc. I

  • Tuning of very small procedure

    Hi All, We are using the following procedure to get respective sequence number by passing the table name as parameter: ================================ CREATE OR REPLACE procedure SEQ_GEN(Tbl_name in varchar2, SEQ_NO out number) is seq_name varchar2(

  • Multiple Presentation Services -OBIEE

    Hi, I have 2 RPDs which needs to be deployed in OBIEE. I want to view the analytical reports of both these RPDs. However the data sources of these 2 RPDs are different. Also, I have installed OBIEE on Linux Machine. Would it be possible to have 2 ins

  • Making notes in PDF using iBooks

    So I just got an iPad, it's a beautiful thing. I wanted to make some notes on a PDF I downloaded from my Uni but am unable to highlight or select words or passages. It's not a scanned document or anything. Any reason why I am unable to do this? Cheer