Add the Date

Hi!!
I am using jdeveloper 11.1.1.5
I had created a LegalDoc VO and dragged and dropped as af:table.,
In that i had an Issued ON[Date Attribute],Validity [Number Attribute],Expiry [Date Attribute]
While my user enters the Issued ON Date and Validity the Espiry should automatically generated.,
For Eg:
Issued On                 Validity           Freq                  Expiry            [Should be automatically generated]
21/02/2012                3                 Days              24/02/2012 
21/02/2012                3              Months             21/05/2012
21/02/2012                3               Years               21/02/2015    Could any bosy pls help me to get out of this issue

Thank you renuka!!
I had used this method in my AMIMpl Class and i need to call this method in my ValueChangeListner
    public void ExpiryDate(){
        ViewObject vo = this.getLegalDocDetailsView1();
        Row vor = vo.getCurrentRow();
        Calendar c1;
        try {
            java.util.Date datefromtable = convertDomainDateToUtilDate((Date)vor.getAttribute("LddIssuedOn"));
            c1.setTime(datefromtable);
        } catch (SQLException e) {
            System.out.println ("Exception caught"+e);
        Number n = (Number)vor.getAttribute("LddValidDur");
        if (vor.getAttribute("LddValidFreq").equals("D")){
            c1.add(Calendar.DATE,n);   //In this i am getting error as add(int,Number) cannot invoke add(int,int) in calendar
    public java.util.Date convertDomainDateToUtilDate(Date domaindate) throws SQLException {
        System.out.println("*/*/*/*/*/*/*/*/*/");
        java.util.Date date = null;
        if (domaindate != null) {
            java.sql.Date sqldate = domaindate.dateValue();
            date = new java.util.Date(sqldate.getTime());
        return date;
    }

Similar Messages

  • How to add the date field in the dso and info cube

    Hi all.
    I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
    Thanks & Regard
    KK

    my prob is solved
    KK

  • Webelements : does not support when i add the data sourcce& view in HTML

    hi Masters,
    i am using sap crystal reports 2008 and when i add the data source and add tables to the report and i use web elements functions as my selection screen then it does not show i mean the script remains as it is and when i take out my data source
    then it works when i view it in HTML VIEWR.
    how can i make it to work despite me using the data soruce.
    thank you,
    pasala

    hi Pasala,
    this is due to the sap integration kit which does not support pass-through html. webelements require pass-through html in order to show up as html.
    here's what you can try though:
    1) install the latest sap integration kit on your boe system machine(s)
    2) if the above does not solve the issue follow the steps at the bottom of [this thread|WebElements: HTML not rendering when using Bex Query as Source]
    3) if 2 above doesn't work then see [this thread |Re: WebElements only show HTML tags (even after following WebElement guides)]as a last resort
    hopefully step 1 & step 2 will solve the issue.
    jamie

  • Is it possible to add the date to the notifications center?

    im using the new iphone 5 and was wondering if its possible to add the date to the notification center?  i know the date shows up when you have an event scheduled.

    The photo in the calendar replaces the date. You can ctrl-click the photo and add a caption to show the day number.
    Clicking the disclosure triangle to the right of the caption will show a panel where you can edit the font (all this tested in iPhoto 9.5.1), but it does look funny, you'd be better off by not adding the day number:

  • How can I add the date at the top of the screen along with the day and time display?

    Hello,
    How can I add the date at the top of the screen along with the day and time display?
    Thanks so much!

    Open System Preferences>Date & Time:
    Ciao.

  • How can I add the date to my locked screen on iPhone 5, i0S7

    How can I add the date to my locked screen on iPhone 5, i0S7

    The date is not showing up on the locked screen since I updated to the latest software.  Trust me, I looked for it before posting

  • Hi, If I play a single episode of a full season on Apple TV / I-Phone / I-Pad, the last played adds the date to all episodes in that season, is it a setting I need to reset

    Hi, If I play a single episode of a full season on Apple TV / I-Phone / I-Pad, the last played adds the date to all episodes in that season, is it a setting I need to reset / update - thanks Paul

    Does TV Shows show as a category under the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage on your Mac's iTunes ? If it does, and that series is still in your country's store, then it should show there and you can download it from there (click the cloud icons) onto your Mac's iTunes library - you can then sync the episodes to your phone.

  • Any Way to Add the Date to Pictures in PSE 4.0??

    I've just started using PSE 4.0, and am new to the forum.
    I don't see any way to add the date to a picture. I want to be able to add the date to the picture file for sending to a commercial source for printing. In my search in this and other forums, it appears there was a feature to add the date via Print|Show more options|Label|Date in PSE 3.0, but the "Date" seems to have been eliminated in 4.0.
    I've used a separate program (Exifer) for this in the past, but doing it one picture at a time is tedious at best, and very time consuming. With all the capabilities of PSE, I'm amazed that this isn't an obvious capability.
    Any advice would be greatly appreciated.
    Tks...Thksnow

    Barb -
    You are absolutely right. Unfortunately the Date function under Caption put an entire date and time stamp on the picture, which is not what I want. All I'm trying to do is put a date stamp on the picture similar to a dateback on a 35mm camera (yes I still have a few of those!!), which we really like to have for our family photo albums.
    The best I've figured out from a suggestion on another forum is to use the Watermark function under the same Process Multiple Files area. The downside is that I have to put the date in manually, as opposed to automatically from the file data, but it's better than doing it with another program.
    Bryan

  • Can you add the data information to the data points in a chart

    I am trying to add the data information to the data points in a line chart.  can this be done?

    You can add Value labels to the series to show the numerical value at each data point. The control is in the Series section of the Chart Inspector (see green arrow).
    If you are asking about text labels, such as the "Test 1", "Test 2", etc. in column A of the table, You can add these by copy/paste into a text box placed in front of the chart, or use a formula ( =Table 1::A1 ) to transfer the text into a single cell table placed appropriately on the chart.
    Using single cell tables will allow automatic updating of the label if the content of the Table 1 cell(s) changes. Neither method will automatically reposition the label if there's a change in the data feed to the chart.
    Regards,
    Barry

  • How to add the Date Track Button

    How to add the Date Track Button on a customized Form ?
    1. Profile of Datetrack:Enabled = Yes
    2. All HR Forms includes the Date Trak Button
    3. On the Customized Form "Alter Date Track" can be activated from Menu :Tool --> Alter Date Track.
    I'd Like the Button to appear on button ruller.
    Thanks for help

    Rachel,
    Please review the following notes, it may be helpful.
    Note: 177733.1 - How Date Track Works
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=177733.1
    Note: 169059.1 - Understanding the Flow of Date Track Dates Through the Forms
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=169059.1

  • Can you add the date of the reviews in appstore?

    Hi there :-)
    Can you add the date with the reviews in the appstore?
    It will make it a lot easier to make choises when we like to try an app or even buy it.
    It's very common on fora on the www.
    Kind regards.

    Apple is not here. Apple ddoes not answer questions here. This is a user to user forum.
    http://www.apple.com/feedback/

  • Is it possible to add the date to a photo in an iPhoto calendar?

    After a picture is dragged to a day on my calendar the date disappears, is it possible to add or restore the date? I am using the latest update of iPhoto.

    The photo in the calendar replaces the date. You can ctrl-click the photo and add a caption to show the day number.
    Clicking the disclosure triangle to the right of the caption will show a panel where you can edit the font (all this tested in iPhoto 9.5.1), but it does look funny, you'd be better off by not adding the day number:

  • How can I add the date next to time in menu bar?

    Hi, I'd like to see today's date next to the "time" on the right-hand side of the menubar. I called Apple tech support twice about it and no one could help. The last guy suggested I post the question here, and someone might know of a third-party app... I don't want a calendar on my desktop, I don't want to click anything to see the date. I want it in the menubar with the time. It would be so handy.

    SOOO AWESOME -- THANK YOU! I spent over an hour on the phone with two different tech support people and they said it couldn't be done. Have to admit it's sort of a dodgy workaround, but thanks for the link, V.K, I am SO pleased! I was even able to add a couple of extra spaces to keep the time and date spaced apart. (Maybe the next OS can resolve this in a simpler manner...)

  • Can Mail add the date of an email and a link to the email in Address Book?

    I seem to remember back in the days when I used Entourage, that there was a feature that allowed me to have the email program add a date and link to the email in the address book file for the email recipient. Is there a script or anything that would allow that automation?
    I would like to be able to open a persons address book file and see all of the emails I sent to that person in Address Book. I know I could do a search in Mail for that address, but it would be sweet if I could have a record of all the emails sent to a given person with a link to each email directly from within Address Book.
    Am I crazy or is this something others would like? Or, am I missing a little box somewhere that I need to click somewhere?...

    What you're wanting is not a feature in any mail client, so I wouldn't hold your breath waiting for it to appear in Mail, or Address Book.
    If you want to keep track of all the emails sent to or from a particular person, you'd need to create Smart Mailboxes for all of them and rules to route Sent mail from each person's address to those respective mailboxes. If that's too much work for you, you can still do a search by name in Mail and select whether you're looking for mail sent From, or To that person and all of them will appear, except any you may have deleted.
    Mulder

  • I want to create a form that as you add the numbers it adds the data from different fields...

    I would like to create a form similar to a shopping bag where you can enter amount and unit price and it would grab the multiplied total, then it would add the sum of all in a totals section...

    Sorry FormsCentral doesn't support calculations on online forms. You could achieve something like that with a PDF form (with the logic you need in it) and then import this PDF in FormsCentral.
    If you use the PayPal integration with the online form then paypal will show the total.
    Gen

Maybe you are looking for