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

Similar Messages

  • 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

  • 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".

  • 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...

  • Can I make a checkbox populate the current date?

    I've been asked to make a form that has quite a few checkboxes.  These checkboxes also need to be marked with a date when checked off.
    Rather than have the person filling out the form type the date every time they check the box, they request that when the user clicks the checkbox that a current date show next to the checkbox.
    I don't know if this can be done with a current date stamp or with having a text box that populates with the current date, etc.
    The forms are also going to be used throughout multiple days, so I can't just call on a "current date" and show/hide that text box like I had originally thought to do.
    I'm also really green to scripting so any help or guidance in the right direction would be much appreciated.
    Thank you.

    The following Mouse Up script for a check box will set the associated text field to the current data when it's selected, and blank the field when not:
    // Mouse Up script for check box
    (function () {
        // Get a reference to the text field
        var f = getField("text1");
        // Set the value of the text field
        if (event.target.value !== "Off") {
            f.value = util.printd("mm/dd/yyyy", new Date());
        } else {
            f.value = "";
    Replace "text1" with the name of the associated text field.

  • 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

Maybe you are looking for

  • Display positions in Org unit sorted by Position Desc

    Hi All, Can you please let me know how the positions in an Org unit can be displayed in sorted order by position description? Like in PPOME when you display/change an Org unit we should be able to see similar positions displayed together in sorted or

  • About half the sites I open crash immediately.

    iMac OS 10.6.4 Fire Fox 3.5.5 After upgrading to an iMac and upgrading all my software, about half the web pages that I open crash immediately. Yes, I've checked your site for a solution. The sites open in Safari. This window that I'm filling in righ

  • Error message showed after change to myfaces

    Hi, I have changed my app to use the myface instead of sun RI and found that the following error is shown on every page. 89891 [http-8080-2] ERROR org.apache.myfaces.renderkit.html.HtmlResponseStateManager - No component states to be saved in client

  • How can I authorize my laptop?

    I got a new laptop so I tried to authorize but got the message about too many activations. When I tried to contact customer support and begin a chat, there's an option to "select the program you're having a problem with" and digital editions isn't on

  • Test Stand Shut Down with no reason

    Hello , I'm using Test Stand 4.2 & LabWindows CVI 9.0 . I'v created a program that checks 30 cards in Batch mode , using Test Stand as master that calls CVI functions from dll files i'v created . In the program there are no error nor warnings But i h