Default value of date picker not showing in sql query

Hi,
I have a tabular form page with a query similar to the following:
select emp_name, salary from emp_table where trunc(hire_date)=trunc(to_date(:P42_START_DATE))
where P42_START_DATE is the name of a date picker item.
I set the source type of the date picker to be "Only when current value in session state is null" and the value to be "select trunc(next_day(sysdate,'MON')-7) from dual;" - basically the monday of the current week. I set the sequence of the date picker to be 5, and the sequence of the region to be 10. Now, when I open this page, no data gets pulled. I checked the page source, and the value of the date picker input is being set to "17-NOV-2008", but it somehow isn't reflected in the sql query.
Data does get retrieved if I manually set the date in the date picker, but I'd like it to default to the monday of the current week. What am I doing wrong?
Thanks

nope, still same problem.
I used javascript alerts to help debug, and here might be some useful information.
The computation to set the value of :P42_START_DATE is set to run "before header", but when I put this following javascript in the header:
<script language="javascript">
var c = $v('P42_START_DATE');
alert(c);
</script>
the alert box is blank (ie :P42_START_DATE is empty). Putting the same exact script in the footer gives 24-Nov-2008 in the alert box. Now, the SQL query is run sometime after the first alert and before the second alert, I believe. Why would the value of :P42_START_DATE not be getting set at the correct time?
P42_START_DATE is a date picker item that belongs to the region SCHEDULE (which is where the sql query is). I set the sequence of the region to 10, and the sequence of the date picker and computation to be 5 and 6. Even so, does this mean that the sql query is executing before the call to the computation, because the region needs to be created before any items can be created that belong to the region?

Similar Messages

  • Date picker not showing for datetime type in advanced search page

    Hi,
    I have an advanced search page in my SharePoint 2013 site. There is a property which is of type datetime. For that I'm not getting a date picker. I don't know why this is not working. It is showing the date picker in SharePoint 2010 but not in 2013. Can
    anyone help me on this? Thanks in advance.
    Thanks,
    Jawahar
    Im searching more abt me...........

    A date picker was never supported in Advanced Search.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Date picker not showing up in iOS Reader with multiple dates?

    Hi all,
    The date picker for iOS shows up for forms with a single date box. However, with multiple forms, the keyboard pops up instead of the date picker. It still handles correctly formatting-wise, but it's become a bit of hassle with having to type the date instead of simply filling out today. Is this a bug or by design?

    Hi jncasino,
    We are not able to reproduce this issue at our end. Could you please share the file having this issue to help us investigate and fix this issue?
    Thanks,
    -Shilpi

  • Value from data grid not showing in workspace

    Hi everyone.
    I've entered value in data grid that i maid in Planning for one member. It looks like there is no velue for that member. What needs to be done to recognize new source?
    Member is set on Store and is used in some formulas in Dynamic Calc members.
    Thx.

    Maybe it is an implied share, is it is an only child, set the member to "never share", refresh and try again.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Report data  does not reflect the SQL Query?

    Hi,
    I have a report which does not seem to be processing all records returned from the database. When I run the SQL Query produced by crystal manually against the SQL Server all data is returned correctly in crystal not. Does this mean my links are not set up correctly in the Database Expert? or is there another issue, I use a Crystal Syntax selection formulae which is based on a couple of paramters to filter the database records.
    Help is appreciated
    K

    <p>I agree with Rahul on checking the record count on the report vs. the record count from the query.  Conditional suppression and Group selection formula will hide records that are actually being returned.</p><p>It sounds like (from your question) that you are using the database linking expert in CR.  You can also check the SQL that CR is sending by going to Database -> Show SQL Query... compare this with the query you are using for validation, this will give you some clues as to whether your linking structure has an issue. </p>

  • How to set group name as default value in People Picker in Infopath 2010

    How to set group name (shareoint Groupname)  as default value in People Picker in Infopath 2010

    Under the Developer tab in Infopath you can manage Loading Events, unfortunetly i dont have Visual Studio on this PC so i cant laborate, but i believe it's rather simple to figure out.
    Edit: Found a easier way, through Data > Default Values.

  • In IPhoto I changed movie dates after thumb nails were created in IMovie but the new dates are not showing up in IMovie.  Is there someway to refresh the IPhoto event in IMovie?

    Background:  I'm transferring file folders from a Visa laptop via an external hard drive to my IMac.  In the folders are photos and videos from different cameras.  SO I first tried to import to IMovie but it would not recognize any of the files.  So then I imported into IPhoto and both photos and videos were imported and I created events for each folder.  When I first opened IMovie I had to wait for it to create "thumb nails".  Then I could view the events in IMovie BUT the video clips are not together because they have vastly different dates and are mixed with videos from other events.  I looked at the dates and said I can fix that in IPhoto which i did but those new dates are not showing up in IMovie.    I think I need to somehow refresh the event data that Imovie is using but have not found how to do that in either IPhoto or IMovie. 
    I'm doing this on three events with about 100 photos and videos.  But I have many 1000s more to do so need to know how to either fix this or delete these events, reimport, change the dates, then open again in IMovie.   I'm sure that would work but I can't understand why changing the dates in IPhoto is not being reflected in IMovie.  
    Appreciate any tips or pointers.
    OBTW this is my first question as a first time Apple owner. 

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    Ok, the issue seem to be solved. The problem was this:
    The many hundred files (raw and xmp per image) have been downloaded by ftp in no specific order. Means - a couple of files in the download queue - both raw and xmps. Most of the time, the small xmp files have been finished loading first and hence the "last change date" of these xmp files was OLDER than the "last change date" of the raw file - Lightroom then seem to ignore the existence of the xmp file and does not read it during import.(a minute is enough to run into the problem)
    By simply using the ftp client in a way that all large raw files get downloaded first followed by the xmp files, we achieved that all "last changed dates" of the xmp files are NEWER than the related raw files. (at least not older)
    And then LR is reading them and all metadata information has been set / read correctly.
    So this is solved.

  • Default value for date

    Hi experts,
    I want to set default value for dates..
    My screen has : date_from & date_to.
    date_to : will be current date(today's date) if Eg: 27.08.2007 (here i used NOW())
    then date_from must be 01.06.2007 (3 months logic)
    similarly : if date_to is 01.01.2007
    then date_from must be 01.11.2006
    kindly help...
    Thanks a lot!!!
    Regards,
    Bijal

    Hi Bijal
    (DGET(NOW(),'D'))-1) returns number which is 0 incase of 01.08.2007, so DADD(NOW(),-0,'D') is again ideally same day 01.08.2007 .
    So, DADD(DADD(NOW(),-0,'D'),-2,'M') should give you 01.06.2007.
    <b> IT WORKS!!! -
    I have tested it now.</b>
    Please check and revert.
    The IF formula which sent actually returns String, so use DVAL(IF(DGET(NOW(),'D')!=1,DADD(DADD(NOW(),-((DGET(NOW(),'D'))-1),'D'),-2,'M'),DADD(NOW(),-2,'M')))
    Message was edited by:
            Navneet Giria

  • Set default value for people picker only when user checks a checkbox (Sharepoint 2010)

    The javescript in below link works for me.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2b130f64-3db2-484a-9a53-ccbe18d2c5de/set-default-value-for-people-picker-in-list-template-current-user?forum=sharepointgenerallegacy
    However, I'd like to set default user for people picker only when user checks a checkbox. 
    I am new to  development. Could you please help me on this requirement ?
    Thank you very much. 

    Hello,
    Use this link to to validate checkbox value, if true then set the person or group value (i.e. as posted in your link).
    http://geekswithblogs.net/haniamr/archive/2011/03/10/validate-that-a-checkbox-is-checked-using-javascript.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Time of email shows in Date Column, Date is not showing on new emails

    Date is not showing in Date column. Only time is showing.
    I just migrated from OE - Old emails show the time & Date.

    If these are emails received today that is normal. Thunderbird assumes you know what day it is and only displays the time for messages received today. It will append the date to these messages at midnight tonight.

  • Due date is not showing up in UWL

    Hi ,
    Due date is not showing up in UWL. Back end is ECC not GP Just regular work flow.
    I can see in workflow object end date kind. But the field is blank. For due date any additional configuration needed.
    I really appreciate your help.
    Regards
    Mark

    Hi,
    As far as I remember correctly, the Due Date in UWL is the Requested End date in the workflow. So basically you need to open the workflow in backend in WF builder and look at the step. There is a tab for setting different deadlines and stuff. If you do the settings there (for example set the requested end in 3 days), I think that work item will display the due date based on that data.
    Regards,
    Karri

  • Default value of date as first day of month

    Ho can I make my default value of date parameter as first day of month? {$SYSDATE()$} gives only current date and we can make it like {$SYSDATE()-7$} if we want to minus 7 days but how can we set the default value to first day of month?

    I got the answer...It is {$FIRST_DAY_OF_MONTH()$} instead of {$SYSDATE()$}

  • How to set default value to date type attribute.

    Hi,
    How to set default value to date type attribute.
    E.g I want to set u201C01/01/1999u201D to date attributes.
    First i want to set value and then i want to fetch the same & want to check equals.
    please suggest solution.
    Regards,
    Smita

    Hi,
    In wdinit() method u can set the date
    DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
    Date today = Calendar.getInstance().getTime();
    String reportDate = df.format(today);
    wdContext.currentContextElement().setFromDate(reportDate);
    Another way you have set the this formate like that
    1. Create a Simple type under "Dictionaries->SimpleType" called DateFormat
    2. Select the type as "date"
    3. Go to the "Representation" tab and set the format as "dd/MM/yyyy" (or whatever u want, but month should be MM)
    4.Bind the context attribute to the type created now.
    Hope this helps u.
    Best Regards
    Vijay K

  • Data is not showing up in report on ODS

    Hi All,
    we have requirment like below
    we have an ODS  no update rules and nothing with 5 fields . with bex reporting flag checked..
    we have function module to fill the data for these 5 fileds in  ODS active data table .
    So data is there only in active data table that table was filling  by using  function module.
    so i need report that data .when i created and run the report data its not showing up.
    Please let me know whats the issues is and how to handle.
    I appreciate your help
    Regards,
    Sirisha

    In this case you need to use Write-Optimized DSO or if you are in earlier version, then you need to use Transactional ODSinstead of basic DSO.
    thanks.
    Wond

Maybe you are looking for

  • Setup for Controlling Articulations (or Patches) as an Interface

    Hi, Here is a new set-up I've created (though, I'm sure others have done this or similar things before). The objectives of this set-up are to provide a way to deal with situations where I have limited processing power and limited computer memory duri

  • Unable to start EIM 9.0 Listener service

    I have installed EIM 9.0 in distributed architecture. In the listener service, the PG's are not listed. Please find the attached screenshot. Agent PG server is not yet installed. Is it required to have agent Pg service started before starting listene

  • Need Help Setting Up Wide Area Bonjour

    The subject says it all. Please assume I am a newbie. I need step by step procedure. Do I need a registered domain? Is there a web page with simple instructions. I want to be able to share files with family across the web - so they can download full

  • CS3 and PowerPC Mac - can't get Photoshop CS3 to install

    I'm using a PowerPC based Mac - OSX v 10.4.11. I tried to install the CS3 suite - some apps installed fine, some did not. Photoshop CS3 did not install. Now when I try to use PS CS2 quite a few features are missing, particularly in the filters menu.

  • Attaching a Lightbox in Dreamweaver

    Hello. I am creating a web site in Dreamweaver and I am trying to the gallery portion of the site using Lightbox. However, the lightbox is created and is ready to go, I just don't know how to attach it to my already layed out page. How do I go about