Using inputRangeSlider for Dates problem

Hello

I use 11g JDeveloper (11.1.1.6)

I followed Duncan Mills blog: https://blogs.Oracle.com/Groundside/entry/using_inputnumberslider_for_dates

I did everything the blog said successfully and with the help of Frank Nimphius and Timo Hahn.

But now I am facing a problem in the RangeSlider when I move the cursor at the beginning of the RangeSlider it comes up with an error of

-Error: The number is outside the valid range.

The number must be between 1.357016358764E12 and 1.384491556713E12.

I did the getters and setters as follows

    public void setDateRangeSliderEndDate(long dateRangeSliderEndDate) {
        this.dateRangeSliderEndDate = dateRangeSliderEndDate;
    }

    public long getDateRangeSliderEndDate() {
        
        Calendar rightNow = Calendar.getInstance();
        long timeInMil = rightNow.getTimeInMillis();
        return timeInMil;
    }

    public void setDateRangeSliderStartDate(long dateRangeSliderStartDate) {
        this.dateRangeSliderStartDate = dateRangeSliderStartDate;
    }

    public long getDateRangeSliderStartDate() {
        
        Calendar prevYear = Calendar.getInstance();
        prevYear.set(Integer.parseInt("2013"), Calendar.JANUARY, 01);
        //prevYear.add(Calendar.YEAR, -1);
        long timeInMil = prevYear.getTimeInMillis();
        return timeInMil;
    }

    public void setDateRangeSlider30DayIncrement(long dateRangeSlider30DayIncrement) {
        this.dateRangeSlider30DayIncrement = dateRangeSlider30DayIncrement;
    }

    public long getDateRangeSlider30DayIncrement() {
        long dayInMil = 30*24*60*60*1000;
        return dayInMil;
    }

    public void setDateRangeSlider1DayIncrement(long dateRangeSlider1DayIncrement) {
        this.dateRangeSlider1DayIncrement = dateRangeSlider1DayIncrement;
    }

    public long getDateRangeSlider1DayIncrement() {
        long dayInMil = 24*60*60*1000;
        return dayInMil;
    }

When I move the cursor between the two, or at the end, and even to load I get no error,

Its only when I take the cursor to the beginning of the cursor of the range which is 01/01/2013 I get the above error in the number outside the range valid

I also debug code to know that since the beginning, it gives the start date value 1357024983415

So why in particular it raise an error when I move the cursor to point to the 01/01/2013

Help, please

Kind regards

Benson

Hello

Solved the problem by replacing

public long getDateRangeSliderStartDate() {  

        Calendar prevYear = Calendar.getInstance();
        prevYear.set(Integer.parseInt("2013"), Calendar.JANUARY, 01);
        //prevYear.add(Calendar.YEAR, -1);
        long timeInMil = prevYear.getTimeInMillis();
        return timeInMil;
    }

with

    public long getDateRangeSliderStartDate() {

        long timeInMil = 1356978600000L;
        return timeInMil;
    }

As she was giving the error of

I spent the StartDate in this timeInMil long mode = 1356978600000L;

Thank you

Kind regards

Benson

Tags: Java

Similar Questions

  • With the help of inputRangeSlider for Dates

    Hello

    I use 11g JDeveloper (11.1.1.6)

    I followed Duncan Mills blog: https://blogs.oracle.com/groundside/entry/using_inputnumberslider_for_dates

    I did successfully all the blog said...

    I also had the range slider on my page. However the dates aren't correctly

    As stated in the blog component inputNumberSlider a methods of bean for startDate, EndDate, and increments.

    Say is not stated in the blog...

    How could we possibly write these methods because it requires calculations of milliseconds, and it must be accurate

    Help, please

    Kind regards

    Benson

    Hello

    (1) the way I see it, the uiManager does nothing here fancy. It returns the number for the beaches in milliseconds (almost similar to hardcode). I think that the reason why you get the date 01/01 must be in your implementation of the converter (value of debug and see what exactly happens in the converter).

    (2) setting as current end date. Well, as said, the managed bean returns just long values. If the bean dateRangeSliderEndDate property Get accessor method returns something along the lines of

    http://docs.Oracle.com/javase/7/docs/API/Java/util/calendar.html

    Calendar rightNow = Calendar.GetInstance ();

    long timeInMil is rightNow. getTimeInMillis ()

    (3) to get the date in the format you want - change you a method:

    public String getAsString (FacesContext facesContext, UIComponent uIComponent, Object valueAsObject) {}

    selectedValue long = ((Double) valueAsObject) .longValue ();

    Return DateFormatUtils.format (selectedValue, "MM/dd");

    }

    A quick search on Google for DateFormatUtils

    DateFormatUtils (API of Lang 2.6 Commons)

    Hope this is enough hand-guard-body for you to complete your task

    Frank

  • The views using materialized for data warehousing and reporting

    Hello

    I would better understand the materialized views in Oracle in particular the use of the option: REFRESH QUICKLY ON COMMIT. The oracle database, we care is a PLM application and any of the tables to apply using the primary key constraints. Instead, the application uses a separate schema to store the key values for each object/save in the database. I would use Materialized View to the creation of a data warehouse smart to transfer only the lines that have updated since the last refresh of the warehouse. My understanding of the materialized views you can't define a until and unless you have a primary key constraint. It's fine and understandable.

    Can we have an oracle separate sid something like WSHD - data warehouse and using the database between the main site links - site WSHD always transfer lines that have changed since the last refresh with REFRESH QUICKLY ON COMMIT option? (Note: this is taking into account the fact that a database primary key constraints defined on the paintings of masters.)

    I guess you have to install MV NEWSPAPER tables on the main table and then create a materialized using option QUICKLY ON COMMIT REFRESH view?

    Am I wrong?

    Will there be another option for the transfer of the lines of main tables in the data warehouse in Oracle?

    Thank you very much.

    See you soon.
    Rohan

    Published by: José on 10/01/2009 00:21

    1. you can't define a materialized as ON COMMIT REFRESH in a separate database view. It must be in the database even if it's to refresh commit it.
    See http://hemantoracledba.blogspot.com/2008/06/mvs-with-refresh-on-commit-cannot-be.html

    2. you don't have to have a primary key to set a MV. You can set a MV WITH ROWID (except if you re-create the source table, you need to do a refresh of the MV because ROWID changes).
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6002.htm#i2063793

    Hemant K Collette

  • I can't use iCloud for backup of data from third-party applications

    I use an iPod touch 6th generation and I wanted to use iCloud for backup of Twitter, IG, Pinterest etc. I've tried searching steps. So far I've been finding the same set of instructions:

    Settings > iCloud > storage > select your iDevice > turn on apps you want to iCloud to save

    But after clicking on the storage, I don't see that 'manage storage' and below, the option 'change of Plan '. Why does my iPod not not the option choose iDevice? I can see the option to save the data of integrated applications, but not applications, third-party. My iCloud that unit is on but my Photos under icloud is disabled. I really need the extra space. What seems to be the problem?

    Click Manage store (settings > iCloud > storage > Storage manage and you see what moves backup iCloud storage.)

  • Hi all, after happily using CC for almost a year he no longer works: the creative cloud icon continue on spinning and when I try to open ANY CC applications a warning saying "Adobe Application Manager is needed to solve this problem. However, he

    Hi all, after happily using CC for almost a year he no longer works: the creative cloud icon continue on spinning and when I try to open ANY CC applications a warning saying "Adobe Application Manager is needed to solve this problem. However, it is missing or damaged. Please download and install a new copy ecc ecc. Tried all that but I'm stuck. any help, please? Thank you.

    Hello

    Please try following steps depending on your operating system

    (Windows)

    (1) close adobe all processes in the Task Manager (Core sync services for the desktop application adobe, adobe office, broker CIB Adobe updater AAM service)

    2) navigate to the following locations and assign all permissions to the adobe folders to the current user.  (Right click on adobe folder select properties then click on the Security tab, click on edit and select current user, that you are connected to, select full control, click on apply and then ok)

    C: / / program data (to view hidden files to see this folder)

    C: / / program files 86 x files / common

    C: / / program files x 86.

    C: / / program files common files

    C: //program files.

    Go to c:/programdata/Adobe and oobe and rename it oobe.old

    Go to c: / / programfiles86x/common files/adobe/and rename the oobe oobe.old and aamupdator to ammupdator.old and delete the folder Adobe application manager

    Go to c: / / Users/username/appdata/local/adobe/rename in oobe to oobe.old and aamupdator.old aamupdator

    Go to Control Panel/Add or remove programs and uninstall cloud creative app

    Install app creative cloud from link according to https://creative.adobe.com/products/creative-cloud

    Run it and it should work.

    (MAC)

    (1) close adobe all processes in the activity monitor (cloud Creative), synchronization of the base, CC, ccx, services for the desktop application adobe, adobe office, CIB Adobe updater AAM Broker service

    2) navigate to the following locations and assign all permissions to the adobe folders to the current user. To navigate, click on go in the bar on then click goto... type/library/application support of / and then click OK.

    (3) to assign the authorization right click on adobe folder and click on Get info... A window will open. Then click on the lock symbol to allow editing. Then click on sign + to add your user name. Then change read only to read and write. Then click gear icon on the bottom and click on apply to the elements included and click ok... Go to the next step then.

    3) navigate to the location following support/adobe application and rename in oobe to oobe.old and aamupdator.old aamupdator.

    (4) place you ~/Library/application support/adobe/oobe and rename in oobe to oobe.old and aamupdator.old aamupdator.

    Cloud creative library and remove 5 open application).

    (6) open utility library of the application itself and delete Adobe application manager and creative cloud

    (7) install creative cloud from link according to https://creative.adobe.com/products/creative-cloud

    (8) launch cc app and it should work properly

  • problem while browsing the table and tem records for data matching

    Hi I'm using a table all temporary and ane record and a loop through the two to find the correspondence between the dates.
    If the date is then it shud some treatment otherwise it will return null (default values).

    ******
    I'm IN student_rec FIRST... student_rec. LAST / * student_rec.school_date 01-MAR-2012,02-MAR-2012,03-MAR-2012,04-MAR-2012,05-MAR-2012*/ a
    LOOP

    l_return_out.school_date: = student_rec (i) .school_date;
    l_return_out.marks_obtained: = student_rec (i) .marks_obtained;

    BECAUSE me IN selected_dates. FIRST... selected_dates. LAST / * selected_dates 02-MAR-2012,03-MAR-2012,05-MAR-2012*/ a
    LOOP

    DBMS_OUTPUT. Put_line (selected_dates (i));

    IF selected_dates (i) = student_rec (i) .sett_date
    THEN
    EXIT;
    end if;
    -appeal procedure P1
    -output as ret_val1 / * to ret_val1 like 10 for 02-MAR-2012,03-MAR-2012,05-MAR-2012 * /.
    -appeal procedure P2
    -Download ouput as ret_val2 / * for ret_val1 20 02-MAR-2012,03-MAR-2012,05-MAR-2012 * /.

    If ret_val1 > 0 ret_val2 0r > 0
    then
    l_return_out.has_csts: = yes;
    l_return_out.cst_present: = 10;
    l_return_out.cst_absent: = 20;

    on the other
    l_return_out.has_csts: = No;
    l_return_out.cst_present: = 0;
    l_return_out.cst_absent: = 0;
    end if;
    end loop;

    l_return_out.has_cst: = student_rec (i) .has_csts;
    l_return_out.cst_missing: = student_rec (i) .cst_present;
    l_return_out.cst_existing: = student_rec (i) .cst_absent;

    PIPE ROW (l_return_out);
    END LOOP;
    RETURN;

    I expect that as a result

    school_date marks_obtained has_csts cst_present cst_absent
    MARCH 1, 2012 20
    March 2, 2012 Yes 10 20 30
    March 3, 2012 Yes 10 20 40
    MARCH 4, 2012 70
    60 Yes 10 20 5 March 2012

    but this result
    school_date marks_obtained has_csts cst_present cst_absent
    MARCH 1, 2012 20
    30 MARCH 2, 2012
    MARCH 3, 2012 40
    MARCH 4, 2012 70
    5 MARCH 2012 60

    Can someone please select the error I do when processing logic?

    Published by: 942390 on July 13, 2012 20:44

    Published by: 942390 on July 13, 2012 20:45

    >
    Can someone please select the error I do when processing logic?
    >
    Let me see if I understand. If you reach this part of the code:

    if ret_val1>0 0r ret_val2>0
    then
    l_return_out.has_csts := yes;
    l_return_out.cst_present := 10;
    l_return_out.cst_absent := 20;
    else
    l_return_out.has_csts :=No;
    l_return_out.cst_present:= 0;
    l_return_out.cst_absent := 0;
    end if;
    end loop; 
    

    You set values but DO NOT actually exit the loop - you just wrap around and continue. And the next iteration of the loop can actually delete these values and exit the loop.

    Even if these values don't get wiped out then when the loop ends you must run this code

    l_return_out.has_cst := student_rec(i).has_csts;
    l_return_out.cst_missing := student_rec(i).cst_present;
    l_return_out.cst_existing := student_rec(i).cst_absent;
    PIPE ROW(l_return_out);
    

    And this code permanently erases all the values in the first code that I showed and then DIRECTS the row.
    Each row that lead you has therefore values or NULL values for student_rec.

    This is the problem that you requested.

    But tell us why you use two tables and make two loops nested making slow down-by-slow (by line) treatment instead of using SQL for this?

  • I can't scroll with Firefox. I can scroll view and chrome. It is a new problem. I have used Firefox for years.

    Using my mouse pad scroll function that I can't scroll in Firefox. I use Firefox for years and never had a problem before. I can scroll in Chrome and know there are a few sites that I can scroll but not in Yahoo and several other sites. and I can't scroll the page as I type on this issue.

    Try to change the pref on the subject ui.trackpoint_hack.enabled: page default config-1 to 0 or 1 to see if that makes the work button.

    Close and restart Firefox after changing the pref.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences can be reset to the default value using the context menu if they are set of users
    • Preferences can be changed via the context menu: Edit (string or integer) or toggle (Boolean)
  • No problem at all. Company I work with that use IE w / their software online. Can I use IE for that and Firefox for all the rest?

    This company online system has been tested with IE. I met a little trouble trying to disconnect. When I log out, it takes me to the login screen, but I'm not disconnected and can not reconnect. I'll try using IE and see if the problem goes away. If so, can I use IE just for this company and use FF for everything else?

    Yes, you can even use IE as you are using Firefox, if you wish.

  • Can Equium A100 - I use E drive for data backup?

    My Equium A100-27 has a 80 GB hard drive, it is split in the C drive half and drive E.

    I understand that the E drive is used for system recovery purposes, but can I also use it to store data?

    If I use it for how much room must be left free for system data recovery?

    It's old laptop model, and there is no recovery of data stored on the second partition of HARD drive.
    If you can do what you want with this partition, and also use it for backup of data or backup data.

  • Blank apps and icons for the use of cellular data

    Under settings > cellular, "Cellular data for usage" list, the first two rows are for some unknown applications, lack of title and icons. I guess they are vestiges of the apps that I deleted, but I fear that they are malicious software or a another bug. I tried to reset my phone and made sure it was sync properly with my apps on my mac, but these missing apps are still there (see photo). Any suggestion on what these empty applications can be, and if I should disable cell phone use just in case? Thank you.

    It is not malware. I think that your proposal about it being the remains of the applications that you may have deleted would be closer to what past. I saw the same thing on all of my iOS devices. This icon is the 'framework' all the app icons based on. In other words, if you stripped the face from the application icon, you will see which frame.

    It won't do harm to turn off cellular data for these applications. It could even lead to a discovery about what applications they are, if you try to use with cellular data off the coast and they don't work. I just think they are icons that are not displayed correctly.

  • I use word for mac and have problems with Hebrew and orientation of the text from right to left

    Hello

    I use Word for Mac on my MacBook (version 10.11). I have problems setting the orientation of the text of the Hebrew version.

    Where can I find the icon for the orientation of the text? (not like the alignment)

    It doesn't look like Word for Mac has the RTL support. See the first response to this which Hebrew fonts program works well on a mac - to write Hebrew texts or insert the Hebrew into English documents? post for some alternatives.

  • How to search a file .csv for data using its timestamp, then import into labview

    Hi, I am currently get density, viscosity and temperature of an instrument, adding a timestamp data and write to a .csv file that I can view in Excel. It works very well (see attached code) but reimport what I have to do now is search this csv file of data that has been obtained at one time, temperature, density & the values of viscosity at the moment in Labview to do some calculations with them, so that the data acquisition process is still ongoing.

    I found several examples on how to import a CSV together in labview, but none on how to extract data at a specific time. Also, every time I try to do anything with the file .csv for my data acquistion VI is running, I get error messages (probably because I'm trying to write and import data from the .csv file at the same time). Is there a way to get around this, perhaps using the case structures?

    If you need to know my skill level, I use LabVIEW for a few weeks and before that have basically no experience of writing code, if any help would be great. Thank you!

    TDMS is a little more complex than that.  Here is a proof of concept quickly lifting together:

    You should look at some of the examples of read/write TDMS to get a better handle on the tool.  While I should...

  • Problems in using images for screensaver - error preventing the slide show

    original title: problems in using images for screensaver

    I always enjoyed using my photos for a screen saver.  Now, I get the message "an error prevents the slideshow to play."  How can I find and fix the error?

    Hello

    Did you change your computer?

    I suggest you to follow the steps and check

    a. go toC:\Users\ \AppData\Local\Microsoft\Windows Photo Gallery\Pictures.pd4
    and rename "Pictures.pd4".

    It can also help to remove all the video of the target directory files, although the screen saver will play some video formats.

  • Is legal to use "slmgr-rearm" extend using period in Windows 7 Ultimate & may I re-install Win 7 and use it for 30 days after the expiration date (29 days)?

    Hello
    I live in Iran.
    Here access to the original windows is not easy.
    I have ultimate edition (eternity) win 7.
    He let me to use during 30 days three times use "slmgr-rearm" to extend the trial period.
    Hereby, I can use and update.
    I have two questions.
    1. is legal to use "slmgr-rearm" extend with period?
    2-may I have reinstall win 7 and use it for 30 days after the expiration date (29 days)?

    with speciall thank you

    original title: Reinstall windows 7 ultimate

    According to the software Microsoft Windows 7 license, you must activate Windows 7 within 30 days of installation.  You are not allowed to circumvent or bypass the product activation.  After 30 days, you must enter a genuine Windows 7 product key for the edition you have installed, or remove Windows 7 by reformatting the hard drive, on which it is installed.

    In addition, you must respect Export Basics.

  • What value for p_print_server when you use the Rest Data Services as a print server?

    Hello

    I have my report server on the internal workspace defined as BI Publisher URL as default... It works for my BI Publisher reports.

    I have 2 reports who need to use the rest Data Services FOP engine and use GET_PRINT_DOCUMENT function Signature 4

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146

    For these 2 reports, I need to pass a parameter to p_print_server. The documentation describes this as the URL for the print server

    My question is, how to find the URL for p_print_server when I want to use the rest Data Services FOP on ADR?

    I can not put as NULL as at the time, it will use the default BI Publisher URL and then these 2 reports will not work

    Moreover, when I put the server reports on internal workspace as 'Rest Data Services', my two reports work fine, but not when I put is as URL BI Publisher - which is necessary

    Help, please

    Concerning

    Matt

    Hi Matt Mulvaney,

    Matt Mulvaney says:

    I already have the correct configuration to be able to produce reports FOP including two steps you mentioned. This set works very well when I put the "Print server" preference in the settings of APEX Data Services Instance remains - and reports can be produced. But as I said, this must be set to a URL of BI Publisher.

    If you use "Print server" as "Oracle BI Publisher" then the p_print_server parameter would have been:

    http://myserver.mydomain.com:8888/xmlpserver/convert

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (you can also use the IP address)
    • Print Server Port: 8888 (depending on what your BI Publisher Server uses port)
    • Print server script: / xmlpserver/convert

    Similarly, if you choose "Print server" as 'Oracle REST Data Services', the instance settings don't ask questions on the print settings, but internally it uses the following parameters and the p_print_server parameter is:

    http://myserver.mydomain.com:8080 / ADR / _ / fop2pdf

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (host computer on which ADR is hosted)
    • Print Server Port: 8080 (the port used by what ADR/APEX Forum)
    • Script of the print server: / ords / _ / fop2pdf (this is not disclosed by APEX/ADR documentation, but as mentioned by Marc Sewtz in the following thread)

    Reference: Re: Apache FOP disappeared by Oracle APEX installable APEX 5.0 and 5.0.1 APEX

    Kind regards

    Kiran

Maybe you are looking for

  • Why I can't run iTunes as a disc external HARD...?

    Hello I copied the iTunes library from my laptop computer based on Windows to a HARD drive. Since my Macbook Air that I bought just only 128 GB of flash drive, I don't want to copy the iTunes in the Macbook Air. Then, I pressed down option when I lau

  • Strange pages updated to the point that is trying to access a site.

    When I click to access a site, I get weird things like taking a survey of Firefox, the free map of Wal-Mart, which sell things. 1 I had was just a small white square in the middle of the page that says something like congratulations. You are the luck

  • Firefox crashes at startup upward in safe mode

    BP-1e543bed-a2a5-465A-957a-071df2120223

  • migration to 250GB SSD, need to dump local Photos

    I just bought a new iMac with 250 GB of storage Flash and need to clear some media on my old desktop to make the Time Machine backup adjustment on the new Flash Player.  I have an iCloud 200 GB plan, and all my photos on three devices (iPhone, deskto

  • HP Pavilion 15n223sa

    Hi, I need drivers for HP Pavilion 15n223sa Network controller Hardware ID PCI\VEN_10EC & DEV_8179 & SUBSYS_197D103C & REV_01PCI\VEN_10EC & DEV_8179 & SUBSYS_197D103CPCI\VEN_10EC & DEV_8179 & CC_028000PCI\VEN_10EC & DEV_8179 & CC_0280 PCI Simple Comm