Difference in date to the APEX 4

Dear APEX Expers,

I'm working on a small scale application, I have two fields of date for employee leave form one is start_date and end_date, other
first of all I want to write a check that is user between end_date less then start_date then system not allow him/herself and displays a message using a larger date start_date thn.

then I third field where I want to show a difference car after user between these two dates.

Thanks in advance

Kind regards
Mazahir Abbas

Hello

Just go to the same page:
http://Apex.Oracle.com/pls/OTN/f?p=9904351712:18:222164516075521:no:RP:

I add another region for source code.

Kind regards

Patel Kartik
--------------------------------------------------------------------
http://patelkartik.blogspot.com/
http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1

Tags: Database

Similar Questions

  • SPACE is not displayed in the data in the apex 5.0.1

    Hi all

    I use version apex 5.0.1 on internet explore Oracle database 11g R2.

    I have data with the Urdu language and I could see my SQL Developer data correctly,

    but when I opened the apex to display the data, I have problem with a SPACE between each word that is separated from the SPACE.

    The screenshot is below. the EXCLAIMATION sign is displayed instead of the SPACE.

    Untitled.png

    How to solve this problem?

    Thank you.

    Hi Maahjoor,

    It would be useful for us that you can reproduce this problem on apex.oracle.com and provide us with the application id so that we can have a look. Have you also tested with another browser if the browser specific?

    Concerning

    Patrick

    ---

    Member of the APEX development team

  • date in the apex 4.1 format

    Hello

    We have a custom to an apex application table. In this table we have type DATE for column1(for eg)

    If Column1 is introduced by APEX, we use date picker standard apex and format DD-MON-RRRR. After we insert and when we refreshh the apex to see page

    We see values such as 10 October 10 October 10, 2010,

    any idea or fix...

    I tried in the select statement to sql source [in this area] with to_date(column1,'DD-MON-YYYY')... but did not

    Also, I followed same insert statement with no luck

    Please notify

    KP

    is a change in the properties of the application and it works now

  • Loading data into the APEX problem

    Hello world...

    I am new to Oracle APEX and I am facing problems loading the data into the table. My problem is the text data are load with double quotes.

    Please suggest.

    Thank you
    Suresh

    Hello

    assuming that you load the data via the UI APEX via home > SQL Workshop > utilities > data workshop > Load Data
    By also provide more information like the version used, APEX how/where you download data, etc.

    If you put your data in a file and select ' 'Download the file (separated by commas or tabs' then on the next screen, you can field 'Optionally Enclosed By' in double quotes ("").
    This should remove the double quotes of the data during the import.

    Concerning
    Bottom

  • Difference in date in the same column

    Select to_char (CREATEDON, 'DD-MM-YYYY HH24:MM:SS'), LABSTATUS, history_paperlesstran COMMENTS
    where hnum = ' 797551 order by to_char (CREATEDON, 'DD-MM-YYYY HH24:MM:SS');

    Rownum TO_CHAR(CREATEDON,' LABSTATUS REMARKS)
    ------------------- ---------- --------------------------------------------------
    1 10/20/2010-08:10:08 1 barcode number generated and printed
    2 10/20/2010-08:10:08 1 barcode number generated and printed
    3 10/20/2010-08:10:08 1 barcode number generated and printed
    4 10/20/2010-08:10:08 1 barcode number generated and printed
    5 10/20/2010-08:10:08 1 barcode number generated and printed
    6 10/20/2010-08:10:08 1 barcode number generated and printed
    7 20/10/2010 09:10:55 3 totals received by the Department
    8 10/20/2010-09:10:58 3 totals received by the Department
    9 10/20/2010-09:10:58 3 totals received by the Department
    10 10/20/2010-09:10:58 3 totals received by the Department
    11 20/10/2010 09:10:58 3 totals received by the Department
    12 10/20/2010 10:10:38 3 totals received by the Department
    13 20/10/2010 11:10:34 1 barcode number generated and printed
    14 10/20/2010 11:10:34 1 barcode number generated and printed
    15 20/10/2010 11:10:35 3 totals received by the Department
    16 10/20/2010 12:10:08 3 totals received by the Department
    17 20/10/2010 14:10:03 1 barcode number generated and printed
    18 10/20/2010-14:10:44 3 totals received by the Department

    18 selected lines.

    Dear friends, now I want to get the difference in date on labstatus based, i.e rownum1 - rownum7, rownum2 - rownum8 and rownum17 - rownum18

    Thing is Barcode number generated and printed - totals received at the Ministry for each and every samples.

    Thanks for your solution in advance...

    Published by: bharathit on October 21, 2010 02:18

    You mean something like this?

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as rn, to_date('20-10-2010 08:10:08', 'DD-MM-YYYY HH24:MI:SS') as dt, 1 as labstatus, 'Barcode number generated and printed' as comments from dual union all
      2             select 2, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      3             select 3, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      4             select 4, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      5             select 5, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      6             select 6, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      7             select 7, to_date('20-10-2010 09:10:55','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
      8             select 8, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
      9             select 9, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
     10             select 10, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
     11             select 11, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
     12             select 12, to_date('20-10-2010 10:10:38','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
     13             select 13, to_date('20-10-2010 11:10:34','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
     14             select 14, to_date('20-10-2010 11:10:34','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
     15             select 15, to_date('20-10-2010 11:10:35','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
     16             select 16, to_date('20-10-2010 12:10:08','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
     17             select 17, to_date('20-10-2010 14:10:03','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
     18             select 18, to_date('20-10-2010 14:10:44','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual)
     19  --
     20  -- END OF TEST DATA
     21  --
     22     ,x as (select rn, dt, labstatus, comments, row_number() over (partition by labstatus order by rn) as labrn from t)
     23  --
     24  select y.rn as rn1, y.dt as dt1, z.rn as rn2, z.dt as dt2, round((z.dt - y.dt)*24*60) as mins_diff
     25  from x y join x z on (y.labrn = z.labrn)
     26  where y.labstatus = 1
     27* and   z.labstatus = 3
    SQL> /
    
           RN1 DT1                        RN2 DT2                  MINS_DIFF
    ---------- ------------------- ---------- ------------------- ----------
             1 20/10/2010 08:10:08          7 20/10/2010 09:10:55         61
             2 20/10/2010 08:10:08          8 20/10/2010 09:10:58         61
             3 20/10/2010 08:10:08          9 20/10/2010 09:10:58         61
             4 20/10/2010 08:10:08         10 20/10/2010 09:10:58         61
             5 20/10/2010 08:10:08         11 20/10/2010 09:10:58         61
             6 20/10/2010 08:10:08         12 20/10/2010 10:10:38        121
            13 20/10/2010 11:10:34         15 20/10/2010 11:10:35          0
            14 20/10/2010 11:10:34         16 20/10/2010 12:10:08         60
            17 20/10/2010 14:10:03         18 20/10/2010 14:10:44          1
    
    9 rows selected.
    
    SQL>
    
  • How to extract data from the APEX report with stored procedure?

    Hi all

    I am doing a report at the APEX. the user selects two dates and click on the GO button - I have a stored procedure linked to this region of outcome for the stored procedure is called.

    my stored procedure does the following-

    using dates specified (IN) I do question and put data in a table (this painting was created only for this report).

    I want to show all the data that I entered in the table on my APEX report the same procedure call. can I use Ref cursor return? How to do this?

    Currently, I use another button in the APEX that basically retrieves all the data from table. Basically, the user clicks a button to generate the report and then another button for the report. which is not desirable at all :(


    I m using APEX 3.1.2.00.02 and Oracle 10 database.

    pls let me know if you need more clarification of the problem. Thanks in advance.

    Kind regards

    Probashi

    Published by: porobashi on May 19, 2009 14:53

    APEX to base a report out of a function that returns the sql code... Your current code goes against a Ref cursor returns the values...

    See this thread regarding taking a ref cursor and wrapping it in a function to channel out as a 'table' (use a cast to cast tabular function vale)...

    (VERY COOL STUFF HERE!)

    Re: Tyring to dynamically create the SQL statement for a calendar of SQL

    Thank you

    Tony Miller
    Webster, TX

  • is the result data for the APEX linkable report, able to put in place another report?

    I'm working on a directory. If the user enters John as first name and Smith as a surname, after "enter" John Smith will appear, with all its details such as his Department, title, email, telephone, rental of office etc.. Is possible that the Department is a link and if the user clicks on the link they will consider the entire Department is the list?

    Thank you very much for the help.

    MZ

    Yes, it is possible... When you build select it, you would go in the setup of the region and the column you want make a link to another report: http://st-curriculum.oracle.com/obe/db/apex/r40/apexirr/apexirradv/apexirradv_ll.htm

    Thank you

    Tony Miller
    Webster, TX

  • between operator to group by date in the Apex of the interactive reports

    Hello

    In the filter of interactive reports, I could not find the "between" for the date field (got a "group by date" in my (source) sql query.) I wonder, is - this in view of the group by clause date?. Is there a way to show the operator "between" in the interactive reports filter.

    Thank you

    I just opened an existing style IR report, went to the actions, filter, selected a date column and found at the bottom of the list of values... Are you sure of the date that you want to filter on is a real date column?

    Thank you

    Tony Miller
    Webster, TX

    What happens if you were really stalking a paranoid schizophrenic... They would know?

    If you answer this question, please mark the thread as closed and give points where won...

  • Migration of the apex of one schema to another in the same database

    Hello

    I'm new to Apex and installed Apex 4.2 on a database and creates a dashboard based on some tables.
    Now I have to create a diagram in the same database and have to replicate all tables and should have the same dashboard.

    Now my question is-

    1 can I install Apex on the other schema and then having to export and import dashboards and reports to the installed Apex?
    2 is it possible that the installed Apex even can be used also for the other schema and can have two separate (Dev and Prod) environment?

    Help, please... Please provide any document or link for the same.

    Thanks in advance.

    Kind regards
    Sébastien Pallav

    A database can have a single schema of apex (APEX_040200).
    It is not a good idea for DEV and PROD in the same PB (so using the same data to the APEX). He makes hard development (because he may - or is - break PROD at one point).

    But - if you must - you can create two schemas: like A and B.
    Export your APP1 then import it under a different id (in the same workspace - but you can also set up two work spaces).
    Using the apex management console, change the schema by using your new imported application is to B. In this way, your app will run "as user B".

  • BlackBerry Z10 difference between guest and the data service

    Hi all

    new user of the Z10, his job very well, I just had a small problem or issue. What is the difference between data services being on vs calls in roaming? I usually use wifi, but often the mode invite, can't do the acquisition of internet connection, even though I have the data service and a G full download available.

    Any help would be greatly appreciated!

    See you soon,.

    Excellent!

    Thanks for the reply "prompt"!

  • How to add data to the table changed in sql developer at Apex and vice versa

    Hello

    I had tables of database with sql developer. But now, I have modified the database (new tables added + changed the data in the tables). However, in the Apex, I the old database. Is it possible to get the new Apex database with the data of the table changed so this database in both places (sql and apex developer) is exactly the same... Also the other way around.

    Thank you

    The database schema that contains the tables, is it associated with the workspace even you are searching through the APEX product t development?  Why I'm asking is, if they are the same schema, the tables that you MODIFIED should be appear in the sql for APEX workshop part.  Now reports and forms will NOT see the changes (unless you have actually added or updated definitions for column).

    Can you explain what exactly you were doing the SQL Developer to the tables in your schema?

    Thank you

    Tony Miller
    Los Alamos, NM

  • No access to the data in a database linked when calling procedures in the APEX 5

    Hello

    I use

    • APEX 5.0.3
    • APEX DB: Oracle DB 12 c
    • DB related: Oracle DB 11 g

    When you call procedures and packages of APEX-side on the related DB, I can't access the data with a "select...". "in the tables on the DB related.

    Is it because of the different versions of DB?

    Is there a general setting in my APEX 5.0.3 I need to access the data in the tables on the DB related?

    Any help appreciated.

    Thanks in advance.

    Concerning

    Norbert

    Hello

    Thanks for the reply.

    But at least we do the upgrade again.

    ... when editing a dblink and recompile the schema it all works.

    Concerning

    Norbert

  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

  • Problem with the new format of date calendar 5 Apex

    I noticed that when I click on a day in the new schedule 5 Apex, the date that I get on another page, where I would create an event, is in a weird format

    On the create link, I use the new variables of substitution of calendar - & APEX$ NEW_START_DATE.  and & NEW_END_DATE$ APEX.

    When I click on a date in the calendar to create an event, let's say that I clicked on 10 November 2015, it gives me '11 10-11thn-15' as date

    Although I have it managed by using Regex, but still sound to be weird or I'm doing something wrong.

    Please notify.

    Hi Kim/Farhan,

    Thank you to reproduce this problem, looks like we have some change transformation formats date between db and client-side problem. I submitted the bug #21445554.

    Kind regards

    Patrick

  • [Apex 5] Ways to temporarily store data on the page before validate/cancel

    Hi all

    could you tell me what would be the best approach in this situation. I have a report with the dishes. By clicking on a link change with a particular dish or by clicking on create button displays a form where the user can change or provide new data. This is based on a table whose name is as flat (automatic line is used). What is more personal here it is only when creating or editing a user of plate is provided with a list of foods and the list of ingredients associated with this dish. User can click on a food that is automatically displayed on another list with flat real describes. At the moment this report ingredients is based on editable views (2 tables under). What is the point here is that the food choice on a list not the insert to display editable with ingredients by a dynamic Action before the user changes record or cancel.

    I want to reach is temporarily food drive that the user chose and insert it to the editable display only when the page is sent or ignore them if you selected Cancel. What would be the right approach here? I've heard of Collections of the Apex, is it ok here? Or perhaps the best approach would be to collect these data on the frontend (angular for example).

    https://Apex.Oracle.com/pls/Apex/f?p=27355:LOGIN_DESKTOP:16878181180272:

    Demo/demo

    Yes, you could look at using local storage in the browser... but then you must coordinate display and migration to the database...

    For your sake I would lean towards APEX collections...

    Thank you

    Tony Miller

    Software LuvMuffin

    Salt Lake City, UT

Maybe you are looking for

  • How can I change the language implemented

    I just bought a second hand MacBook Pro. He had the remains of someone elses account (no iCloud or iTunes, I checked before buying) so I wiped the hard drive and reinstalled the operating system. The only problem is that it's now in Hungarian (I don'

  • LabVIEW 3D surface color card

    Hello I'm tracing a 3-d chart using the help of ground surface 3D and it works fine, but color ramp values adapt to my data. My question is: is it possible to change the values of the color ramp? for example I have a color ramp between - 92.4 and - 8

  • Windows 7 on a computer with drive SSD C which has now a windows directory of $. ~ bt

    Original title: Geoff I run Windows 7 on a computer with drive SSD C which now has a windows directory of $. ~ bt which I don't want. I can't remove this directory despite several attempts! Please help me remove this unwanted directory as I do a lot

  • Their battery: battery won't charge

    I just got this computer 3 months ago, that it is a DELL laptop this morning, everything was good and when I went to load it in the evening, the battery won't charge. Sighn the card shows that his office do not. How do I HELP! And can I still use my

  • Dreamweaver offers a secure connection multi level feature?

    Hello:I am trying to create a connection so multi level when guest log in, they see the content specific to their level of play.