Unable to set default date for Date Picker item using Auto Row Processing

Okay, I have searched through the forum for an answer, and have not found a thing to account for my problem.
First, does anyone know if using Auto Row Processing has problems updating an item/field in a record where the Source is defined as Database Column if the 'Display As' is defined as 'Date Picker (MM/DD/YYYY)'?
I ask this only because I found out the hard way that Auto Row Processing does NOT fetch the value for an item where the field is defined as TIMESTAMP in the database.
My problem is as follows: I have a form that will CREATE a new record, allowing the user to select dates from Date Pickers, text from Select Lists, and entering in text into a Textarea item. The information is saved using a standard (created through the Auto Row Processing wizared) CREATE page level button. After the record is created the user is able to go into it and update the information. At that time, or later, they will click on one of two buttons, 'ACCEPT' or 'DECLINE'. These are Item level buttons, which set the REQUEST value to 'APPLY' (Accept) and 'UPDATE' (Decline). The Accept button executes a Process that changes the Status Code from 'Initiated' to 'Accepted', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record. The Declined button runs a Process that changes the Status Code from 'Initiated' to 'Declined', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record.
However, even though the Status Code field is updated in the database record in both Accepted and Declined processing, the Declined_Accepted_Date field remains NULL in the database record (by looking at the records via SQL Developer). WHY??? I looked at the Session State values for both the Status Code and the Declined_Accepted_Date fields and saw that the fields (items) had the expected values after the process that SAVEs the record.
The following is the code from the Accept button Page Process Source/Process:
BEGIN
:P205_STATUS_CD := 'A';
:P205_REF_DECLINE_ACCEPT_DT := SYSDATE;
END;
As can be seen, the Status Code and Declined_Accepted_Date items are set one right after the other.
As an aside, just what is the difference between Temporary Session State vs Permanent Session State? And what is the sequence of events to differentiate the two?

Here's yet another thing that I just looked into, further information...
One other difference between the date field I am having problems with (Accepted_Declined_Date), and other dates (with Date Pickers) in the record is that the Accepted_Declined_Date never gets displayed until after it is set with a default date when the Accept and Decline buttons are pressed.
One of the other dates that works, the Received Date, is able to write a default date to the record that is never typed into the box or selected from the calendar. That date is placed into the box via a Post Calculation Computation in the Source, which I set up as: NVL(:P205_REF_RECEIVED_DT,TO_CHAR(SYSDATE,'MM/DD/YYYY'))
However, I do remember actually trying this also with the Accepted_Declined_Date, and setting the Post Calculation Computation did not work for the Accept_Decline_Date. Could this be because the Accept_Decline_Date is never rendered until the Status Code is set to Declined (in other words, there is no need to display the date and allow the user to change it until the record is actually declined)???
The control of the displaying (rendering) of the date is set via the Conditions / Condition Type: Value of Item in Expression 1 = Expression 2
Expression 1 = P205_STATUS_CD and Expression 2 = L
Does this shed any light???

Similar Messages

  • 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

  • Set default value for date/time to previous month

    Hi All
    I have two date/time parameters in my report and I want to set the default value for both the parameters
    For start date parameter I want the first date of previous month and for end date parameter I want the last date of previous month.
    Can someone please point me to the right direction
    Thanks
    Rone

    Hi Rone,
    These links can be helpful for you:
    http://www.bidn.com/blogs/hardikabhavsar/bidn-blog/1639/default-date-parameters-in-ssrs
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/584a98ae-bb75-4740-9198-e6be3c1aec12/
    Regards,
    Manoj
    *Happy to help
    http://experiencingmsbi.blogspot.com/

  • Unable to set default program for .pdf

    CURRENT PROBLEM:
    As show in print screen, when i attempt to set default program nth happens at all. The only way i can open any .pdf file now is by 1st opening adobe reader 9 and select the .pdf file manually
    INITIAL STAGE OF PROBLEM:
    Problem started after upgrading to windows 7 from vista. Windows 7 is able to recognise adobe reader 8 as a valid default program since it is in windows.old. Thus the default for .pdf is adobe reader 8 (it was installed in vista).
    Subsequently, installing adobe reader 9 isof  no use as it will be ignored and windows 7 will only continue to use adobe reader 8 as the default reader when i try to open a .pdf file, unless if i manually opened adobe reader 9 and selected a .pdf file manaually
    However, I am unable to uninstall adobe reader 8 as the "program and feature" can only identify adobe reader 9 and does not think that adobe reader 8 exists.
    ATTEMPTs TO SOLVE:
    Thus, I removed windows.old by using the disk cleanup. However, I am still unable to set adobe reader 9 as the default reader. Instead, .pdf are no longer accessible/"open-able" unless I 1st opened adobe reader 9 and then selected a .pdf manaually.
    I've attempted reinstalling and restarting comps etc, they dun seem to help. I suspect the OS is now only able to recognise adobe reader 8 from windows.old as a valid program directory due to some registry issues since it was initally set as the default when i 1st upgraded the OS. Now that adobe reader 8 is removed, there might be some corrupted registry somewhere that needs to be set right again?
    Really need help with this. Thanks a million.

    Thanks guys for showing interest in helping.
    As you guys can see, there's no adobe reader when u expand. Also, I already browsed the reader just in case too. Thus expanding doesnt help. =(
    Also, I cant seem to find the "file type" tab in folder options

  • Set Default Value for People Picker in List Template current user

    Hi,
    I have field definition in my custom list
      <Field ID="{26763808-64BB-4A3C-93A0-ED45AF783D45}"  Type="User" Name="RequestedBy" DisplayName="Requested By" Required="FALSE" ></Field>
    I need to set default current user in this.
    I found few options with javascript.
    Thanks in Advance.
    Where I can find on set of default commands like Today
    Hari

    Hi,
    Default current user can’t be got in calculated column like Today. I suggest that use SPD Workflow described above or JavaScript. Open NewForm page of the list, then add “pageview=shared&toolpaneview=2”
    to the page URL, click Enter to go to edit mode. Then add a Content Editor Web Part to the bottom of NewForm page, copy the code bellow into Source Editor of CEWP.   
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript" src="http://come:100/sites/collection1/Shared Documents/jquery.SPServices-0.7.0.js"></script>
    <script type="text/javascript">    
    $(document).ready(function(){
    var CurrUser=$().SPServices.SPGetCurrentUser({
    fieldName: "Name", debug: false});
    $('#ctl00_m_g_dab5800a_09ac_4f35_97f6_9b5496127f68_ctl00_ctl04_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv').html(CurrUser);
    </script>
    Note:
    download jquery.SPServices-0.7.0.js here and upload it to your own site:
    http://spservices.codeplex.com/SourceControl/list/changesets, and then replace the route of jquery.SPServices-0.7.0.js above with the route in your site. ctl00_m_g_dab5800a_09ac_4f35_97f6_9b5496127f68_ctl00_ctl04_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv
    is the id of the people-picker, please find it in your own NewForm page.
    Another method, you can use Event Handler. Here is the example code.
    public
    override void ItemAdded(SPItemEventProperties properties)
    if (properties.ListTitle == "listname")//replace listname with your list.
    SPWebcurrentWeb = properties.OpenWeb();
    SPUseruser = currentWeb.SiteUsers.GetByID(properties.CurrentUserId);
    SPListItemliitem = properties.ListItem;
    SPFieldUserValuefieldUser =
    newSPFieldUserValue(currentWeb, user.ID, user.LoginName);
          liitem["currentuser"] = fieldUser;//replace currentuser with your field name.    
          liitem.Update();
    //base.ItemAdded(properties);
    If anything unclear, please feel free to ask.
    Thanks.
    Emir Liu
    TechNet Community Support

  • TM2-1100: Unable to set default rotation for slate/tabl​et mode

    I have a brand new TM2 Tablet (2nd Generation).
    When I put the screen into tablet/slate mode the display DOES automatically rotate, but it rotates 180 degrees, landscape rather than potrait.
    I can press the bezel rotate button 4 times to eventually get it to the proper potrait orientation, but I have owned several other tablets and never had to do this... They always either rotated to portrait (90 or 270 degrees) automatically or allowed me to set how it would rotate when put in tablet/slate mode.
    Googling this rotation issue found many similar complaints, even by major industry reviews of the TM2. Some people on the 1st generation TM2 were able to correct this by installing older HP Quick Launch Button software and changing the registery settings, but the second generation TM2 does not use that HP Quick Launch Button software.
    I called HP and they basically said it was working as designed.
    Has anyone found a solution to this? Granted, it's not a show-stopper but it is very annoying and it is basic tablet functionality that should work.
    Thanks.

    Same problem on my TM2-2150.  not even 2 months old and already things are quitting.  
    The workaround I  did that makes me less unhappy is as follows.
    1. Check the intel video drivers for the screen orrientation hot-keys.  Mine are Ctrl-Alt-Arrow (direct to top of screen)
    2. Enable Penflicks in all directions
    3. Pick the screen orientation you want to use in tablet mode.  ( Mine turns the screen clockwise)
    4. Change one of the directional pen-flicks to a custom key command coresponding to the keyboard shortcut to change screen orientation.
    5. Change the directional 90 degrees away (anti-clockwise in my case) to the key command to revert the screen back.
    now the direction you picked on the screen toggles the orientation of the screen between landscape and tablet mode.  It's not ideal, but it is workable.

  • 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

  • How to hide PNP selection windows and set default values for PNP.

    Hi expert,
         I am using HR logical database PNP, but I don't want to display selection windoes for running program on PNP, whereas I want to set default value for some selection items in the program. could you please tell me how to get those two targets?
    Many Thanks,

    Hi
    You have mentioned 2 things.
    1. Don't want selection windows for running program for PNP - this can be achieved using the HR Report category - You can get more details on HR Report Category on
    HR Report Category
    2.  I want to set default value for some selection items - This you need to achieve in initialization event of your program.
    How you can get this can be explained by INITIALIZATION (SAP Library - ABAP Programming (BC-ABA))
    Thanks,
    Sreeram

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • BCS: unable to determine consolidation area for data basis B1

    Dear gurus,
       I have two consolidation areas B1 and Y1 on the same data basis B1. I want to report the  data of consolidation area Y1. I created a query which had the restrictions on consolidation chart of accounts, fiscal year variant, version, fiscal year, posting period and group currency. But when I opened the query with BEx Analyzer, the error prompted like below:
       Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
       Error reading the data of InfoProvider ZCB_B1V11
       Unable to determine consolidation area for data basis B1
    The row of the query is Item. I found if I activated the hierarchy of Item, this error occured and if deactivated the hierarchy of Item, the error disappeared.
    Please advise. Points will be awarded if helpful.
    Thanks in advance.
    Jin Ming

    Hi Jin Ming,
    Something is wrong with your hierarchy.
    In my case items hierarchy works fine.
    May propose two cases:
    1. Which version of your hierarchy, defaulted 100 or not? If not - wait for trouble.
    2. Hierarchy are global for all consolidation areas. If you hierarcical structures in different cons areas assigned to different special versions, the I'd not exclude some controversies between globality and special version pecularities.
    Hope this helps.

  • [Access 2010] Change default formats for data types

    Whenever I import data, the default format for Boolean data types is "-1,0." I know how to subsequently change this format to "Yes/No," but I'd like to change the default
    setting to "Yes/No." Is this possible?
    Thanks in advance.

    Hi,
    I found you post the same question in other place and got the advice. I agree with Mr. Kees suggestion. The data type is a build-in default setting with Access, we can't change it. We may try the workaround via VBA to test.
    http://forums.cnet.com/7723-6129_102-627633/access-2010-change-default-formats-for-data-types/#message5617496
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Have a good time.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • 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

  • Can start date be set before valid for date for an equipment?

    Can start date be set before valid for date for an equipment?

    Hello,
    Generally when a asset/equipment  is purchased that is the valid from date and when commissioning done and it becomes operational then that date is start up date. So logically start up date should not before valid from date, it could be same.
    Can you elaborate why you want start up date before valid from date ?
    Thanks
    Naveen

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

  • Extending flash: how do I set default values for filenames

    Hi,
    I am trying to set default values for filenames
    <choosefile> and <popupslider>s that will show up when
    my XMLpanel first loads in my jsfl extension file. It seems that I
    can only set default values for textbox items.
    How do I do this for filenames and popups?
    As a workaround, I also tried using a flash object dialog box
    to look like a <choosefile>, or any jsfl command, but then
    how do I return those values back to the XMLpanel that calls them.
    and pass the data back to my jsfl script.
    lemme know if you know a way,

    Create two constants for the Allocate Mode input (right click > create > constant). Place one in the true case of the case structure, and place the other one in the false case. Wire them to the same tunnel (border of the case structure), then wire the tunnel to the Allocate Mode terminal of the AO Config. I don't have Traditional DAQ installed, but that should do it.
    Misha

Maybe you are looking for

  • Control record issue !

    Hi All, I am handling UK Payroll and got an issues related to payroll run and control record, Issue 1: The payroll driver (RPCALCG0) has skipped around 1500 Employees against payroll run for particular period Issue 2: How control record allowed user

  • Why do new items not appear in my library?

    I have noticed that new song, movies, etc. do not appear in my library under iTunes 10.7 I can see them in the Recently Added playlist, but not in my library. I just bought The Avengers. The digital copy downloaded and installed to my iTunes and I sy

  • A question when using BDC tables

    Hi suppose i have a session named SESSION1, in which there are 100 transactions. now i want to know each transaction's status ( processed or incorrect ), how to do this using ABAP code? i searched standard tables such as APQI,APQD,APQL but found noth

  • Very Slow SQL query - Fast in SSMS

    We have a very simple query that executes instantly in SSMS, returning about 45,000 rows.  Whenever I run the same query on a CFM page it takes about 47 seconds to execute. I've tried reindexing, turning it into a stored procedure, etc.. but nothing

  • Dreamweaver CS3 ignores attribute case preferences

    My Code Format preferences are set to lower case for both tags and attributes, but when I open a file, Dreamweaver CS3 converts onload and onclick attibutes to onLoad and onClick.  I also turned on the "Override case of" settings for tags and attribu