requirement on Functions (date)

Hello

Adfbc 11.1.1.5.0 - Jdev

I needed that.

Date of commencement of leave: 28/10/2012 / / where I changed the date of beginning, based on the result of days required must be produced.

date needed: 1

end date: date of //result

How can I achieve this. ?

Kaim,
I'm not sure I get your problem right. This is to add a number of days to a given date or how to trigger the update of the "end date" depending on the start date and the number of days required?

To add a number of days to a given date, you can use this

    public  Date dateAddDays(Date aDate, int aDays)
    {
            Calendar cal = Calendar.getInstance();
            cal.setTime(aDate);
            cal.add(Calendar.DATE, aDays);
            return cal.getTime();
    }
    

To trigger the update, set the 'start date' and or 'good days' for autoSubmit, set the start date valueChangeListener and/or the necessary for a bean method where you will have the start date and the days necessary values and call the method above.

Timo

Tags: Java

Similar Questions

  • WebLogic Portal (10.3.0) requires the function "com.m7.nitrox (1.0.20)" (?)

    (I'm re-posting as WebLogic Portal (10.3.0) requires the function "com.m7.nitrox (1.0.20)" (?))

    Greetings. I just installed WebLogic Portal 10.3 and I am trying to install a couple of workshop/Eclipse plug-ins, but when I select any item to install I get this error:

    WebLogic Portal (10.3.0) requires the "com.m7.nitrox (1.0.20)" function, or compatible.

    Everything else seems to work very well, so I don't know why my installation gives me this problem. I did a little digging already and that you have not found what can cause this problem, and I hope that someone here may be able to point me in the right direction.

    Thank you!

    It is a known issue with WLP 10.3; He was approached for the next version of WLP. You may contact support to try to get a patch created (reference CR379999).

    I see 2 possible solutions:

    1. manually download the new plugin and either a) create an expansion slot on the filesystem of it and add that via Help | Software updates | Manage the Configuration, or b) extract to one of the folders workshop (tools/eclipse_pkgs/2.0/eclipse_3.3.2, tools/eclipse_pkgs/2.0/pkgs/eclipse, workshop_10.3/workshop4WP/eclipse, wlportal_10.3/eclipse) eclipse and restart the workshop.

    2. change wlportal_10.3/eclipse/features/com.bea.wlp_10.3.0/feature.xml, comment out the lines in the block , workshop to restart, and then try again.

    Greg

  • General requirements implemented to date?

    Hello world

    I wonder if there is a list of * requirements * for the good less than more recent version update? I'm interested in particular:

    1. is it allowed to add many new packages?

    2. what happens if a single class in these new packages implements persistables?

    I have a huge update, but the current version silently ignores new build., i.e. when I try to update just silently fails. What may be common problems in such a case? What should I check first?

    Never seen a silent failure.  How do you update?

    The problem you are experiencing is almost certainly that you have modified the structure or the "signature" of the Persisted storage.  If you do this, then the update will fail, because the new application is not able to read the old have persisted data, and so if the update has been allowed to continue, the user keep persistent data.

    Adding a new Persistable class should not do this, it is changing and existing persistent class that can screw up.

    If you look at classes persisted.  If they are changed, you will have to remove the old version (and persistent data) before installing a new.

  • Using value as parameter of function data

    Hi all
    Is it posible on Essbase use values of data as parameters to functions? For example, the code

    @CONCATENATE ("AccountMember", "Text")

    Returns "AccountMemberText", but I need to get the value in AccountMember concatenated with text, as 123456Text.
    So, is it posible to get the value as a string?
    Thank you!
    Mauro.

    Edited by: 992758 03/13/2013 08:36

    I don't think that's what wants to Mauro, Celvin. If actually 1234 as a data value contains "AccountMember", he wants to return "1234Text", which is arguably a member name.

    I don't think it's possible (but I'm willing to be wrong) without a set predefined options and a potentially ugly logic of 'IF'. A CDF would be an option.

  • Function data FDM seg/card table

    If FDM is mainly used to transport data, tables of card/segment of data in the database can be purged without risking loss of important data? These tables contain large amounts of data, and our company does not FDM to reference historical data. These tables can be served without losing the functionality of the application of FDM itself?

    If you do not judge the prerequisites data (FDM) also important, you won't lose anything.*

    If you need to drill through back / activated between HFM to FDM. However, who would break of course.

    Published by: beyerch2 on July 11, 2012 09:59

  • Text field required from the data entered in a previous field

    Good afternoon

    I'm trying to implement a requirement such that if the data entered in A text field then the field of text B is necessary. The research on the forum I did, I think I need to use the change event. But the only entries members I've seen involve drop downs or boxes option and I don't know how to translate in to whether or not data is entered in a text field. Thanks in advance!

    Hello

    Darkness samll error you did. It must be xfa.event.newText. No xfa.eventnewText. If you see attention you missed the "dot /." between the event and newText. Try it and see what happens next.

    Thank you

    Sidonie.

  • Require the function does not page load

    Hello

    I am trying to add a recordset for a page on my site, the wizard in DW.

    I did this perfectly fine, however, when I now try and get an overview of the page, it does not load anything, so I think it's a failure in the 1st line which is: require ('http://www.bhx-birmingham-airport.co.uk/Connections/dest.php');

    , The originally entered this as a virtual Assistant ('http://www.bhx-birmingham-airport.co.uk/Connections/dest.php'); but I changed it it threw an error indicating that the file is not found.

    Any ideas what is happening (or not as the case may be).

    Thank you

    When I now try and get an overview of the page, it doesn't load anything, so I think it's a failure in the 1st line which is: demand ("http://www.bhx-birmingham-airport.co.uk/Connections/dest.php");

    Yes, it would be. The command of PHP require() function takes a relative path to a local file. It cannot be used with a URL. It should be something like this:

    require("../Connections/dest.php");
    
  • How to create a function for the function date two

    Hai All

    How can we create a function for the date function two and to return the number of hours between two dates

    For example

    1 January 2010 0815' - '01-jan-2010 1715' and I need to calculate the time between two dates

    How can I create a procedure

    Thanks I advance

    Srikkanth.M

    What have you tried?

    Here is an example (untested):

    CREATE OR REPLACE FUNCTION RETURN_HOURS
    (
            pDateStart      IN DATE
    ,       pDateEnd        IN DATE
    )
    RETURN NUMBER
    DETERMINISTIC
    AS
    BEGIN
            RETURN (pDateEnd - pDateStart) * 24;
    END RETURN_HOURS;
    
  • Error the server behavior requires a ColdFusion Data Source

    I'm probably way behind you all, but I make the shot the book ColdFusion 8 and Chapter 4 tutorial. He tells me to link by clicking the sign + on link, then the message: this server behavior requires a Data Source ColdFusion please check the database for more information on how to create a.
    When I do I go to the administration and the cfartgallery data source tool is all ready and I can check it out and get the OK
    The book is "web application construction Kit Volume1 for Coldfusion8.

    I don't know what else will explode, but I looked at the display of the address and it was empty. When I added Art.cfm and click on the + I got the screen the tutoral asked? Off, I again.

  • Requirements for the data plan BBM

    Hi, maybe this is a stupid question to some, but to buy the blackberry from rim, monthly subscription services will still work the same way that if I had a blackberry, IE. BBM will always use the data?

    Topic title edited to reflect the new topic.

    Wendi1 wrote:

    Hi, maybe this is a stupid question to some, but to buy the blackberry from rim, monthly subscription services will still work the same way that if I had a blackberry, IE. BBM will always use the data?

    Topic title edited to reflect the new topic.

    If you are referring to the BlackBerry OS 7 devices and below, then Yes! BIS is always necessary for users BBOS be able to use the BlackBerry Services like email or BBM. But if you are wanting to use the BIS on your Lumia then Im afraid it won't work. BBM works with regular mobile data or WiFi on iOS, Android, BlackBerry 10 and Windows Phone devices.

    I hope I understood your question.

  • Get-view datastore and get-function data store

    Hey, my first time posting here.

    Creating a function which takes as input pipeline and processes that each entry through process in a function. I want the function to be able to take the 'get - view - viewtype datastore' and 'get-datastore' as input.

    Obtained in what concerns obtaining the opinion of the GET and get-datastore work separately in the service, but when I want the function to be able to take one or the other input that I can't make it work.

    Here is the function at this moment, not really work for one of the entries.

    Function Get-DatastoreSpace () {}
    [cmdletbinding()]
    (param
    [Parameter (mandatory = $true,)]
    ValueFromPipeline = $true)]
    $Datastore
    )

    BEGIN {$ReportDatastore = @ ()}

    {IN PROCESS

    $row = "" | Select-Object Datastore_name, Datastore_Freespace_GB, Datastore_type, Datastore_Capacity_GB
    $row. Datastore_name = $_.name
    $row. Datastore_type = $_.type
    $row. Datastore_Capacity_GB = [math]: tour ($_.) Capacity / 1 gb, 3)
    $row. Datastore_Freespace_GB = [math]: tour ($_.) FreeSpace / 1 gb, 3)

    $ReportDatastore += $row

    }

    END {$ReportDatastore}

    }

    Any ideas on how to do this?

    Thanks in advance

    Eirik

    Check the type of the object in the variable $datastore.

    Something like that

    if($datastore -is [VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.VmfsDatastoreImpl]){
    # From Get-Datastore
    }
    elseif($datastore -is [VMware.Vim.Datastore]){
    # From Get-View -ViewType Datastore
    }
    else{
    # Wrong object type
    }
    
  • The server reboots required when the data source is changed?

    Whenever I create a new Data Source, or change the Source of existing data from the server asks for the restart after clicking on the button "activate changes. Is it necessary every time when the DS is changed?

    Can someone clear my doubt as soon as POSSIBLE.

    Thanks in advance.

    -Prasad

    Hello

    I think it must refer to a particular data source restart not restarting the server. What that does show when you click on reboots and view changes in the upper left corner of the Weblogic console.

    Kind regards
    Neeraj Sehgal

  • help required oracle functions

    Hai
     select  99.9899 from dual
    after comma, I want only 2 digits

    I want 99.99 SHOULD BE MY ANSWER

    pls
    I used ceil and floor
    It does not work


    so help

    S

    Hi there trunc function is appropriate because in round and ceil of function return
    rounded value which is 99.99
    That is to say

    SELECT ROUND(99.9899,2) FROM dual;
    99.99
    SELECT ceil(99.9899) FROM dual;
    100
    SELECT floor(99.9899) FROM dual;
    99
    

    but the trunk
    Returns n truncated at the decimal place m, where m and n are digital representations. If m is omitted, truncate to 0 places. If m is negative, truncates (zero fact) m digits left of the decimal separator.

    select trunc(99.9899,2) from dual;
    99.98
    

    concerning
    Hitesh

    Published by: Hitesh Nirkhey on February 17, 2011 13:16

  • How to get the required connection pool data source?

    Hi we have created two pools of connections with two different userid to restrict access to the database. now I have 2 pools. so if I want to get the connection to a specific pool how to do this?

    Use the JNDI string. When you created your pools you created the jndi names. So when connecting to the data source, you specify jndi. That's how.

    Your postal code if you have a problem.

  • How to add an hour to function date

    Hai All


    This is my select statement


    Select to_number (TO_DATE (TO_CHAR(Intime,'DD-MON-YYYY') |)) » '||
    To_char (0815, '0000'), "MON-DD-YYYY HH24") - respondent
    ) * 24 * 60 dail_Att;


    I had another table called Train_mast, the fields are


    TRAINCODE VARCHAR2 (4)
    TRAINNO VARCHAR2 (10)
    TRAIN VARCHAR2 (30)
    DATE OF V_DATE
    MAJ VARCHAR2 (2)
    LATE_HRS VARCHAR2 (4)
    REMARKS VARCHAR2 (10)
    REFNO VARCHAR2 (10)
    UNITID VARCHAR2 (2)


    Here is when the train is late, I entered the late hours

    For example, if the train is late 30 so I need to add with the start time 0815 + 30 0845 IE and I need to subtract from the respondent


    How can I do this

    Concerning

    Srikkanth.M

    Hi Srikkanth,

    I have no watch in your query, but in general what I feel, it's that you want to add the number of minutes to a date.

    To add minutes to a date, you can do all of this-

    SYSDATE + 30 / (24 * 60) - this will add 30 minutes at present.
    SYSDATE + 15 / (24 * 60) - this will add 15 minutes at present.

    I hope this helps.

    Best regards

    Arif Khadas

Maybe you are looking for