IWDDateNavigator: event onDaySelect

Hi,
at the moment I'm using developer studio SP4 with WAS 6.40 sneak preview.
I have implemented the UI element IWDDateNavigator. Of course, if user selects a day in the DateNavigator, I want to handle this event. So, I need to get the selected day. The event onDaySelect should be the right choice. The method I define should have a parameter day of type java.sql.Date (parameter mapping is considered). But if I implement it like this I got an error during execution because of wrong data type. It only works if I define the parameter day of type String. Then I get the date as String: "16.11.2004".
Is this an error of SP4? Or is it my error?
regards
Frank

Hi Frank,
Probably this is error of <b>SP4</b>.
I performed the following steps on <b>SP9</b> and everything works fine:
1. Add IWDDateNavigator to view
2. Create Action handler with parameter "day" of type java.sql.Date (actually, I've selected DDIC type rather then Java type)
3. Assing onDaySelect event to forementioned action
4. In wdDoModifyView I place the following code:
if (firstTime)
  final IWDDateNavigator dn = (IWDDateNavigator)view.getElement("MyDateNavigator");
  dn.mappingOfOnDaySelect().addSourceMapping("day", "day");
5. In action handler enter primitive code to debug value selected:
wdComponentAPI.getMessageManager().reportSuccess
  "Date: " + day
Everything works as expected.
Regards,
VS

Similar Messages

  • Reg DateNavigator month navigation error

    Hi,
      I'm using DateNavigator element in one view to select date from the calendar. It is working.  But, when user presses right/left arrow keys to change month, the input field gets filled with NaNaNaNaNa .
    Can you please guide me as to why this is coming instead of changing the month..?
    Thanks.
    Kumar Saurav.

    Hello,
    where are you getting the selected date?
    The following code works even when we navigate to a different month using the arrows in DateNavigator.
    ONACTIONDAYSELECT is event handler for the event "OnDaySelect" of the DateNavigator.
    method ONACTIONDAYSELECT .
      DATA param TYPE D.
      wdevent->get_data( EXPORTING NAME = 'DAY'
      IMPORTING VALUE = param
    endmethod.
    In the above code, param will have the selected data.
    Hope this helps!
    Regards,
    Srilatha

  • How to find out date when user clicks on a date of Date Navigator

    Hi Experts,
    I have created WD application. It contains DateNavigator. User clicks on a particular date. We want to display the clicked date. How we can do so? I have done following coding. What I should type after "hi" + ????? to display the selected date.
    public void onActionSelectDate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSelectDate(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("hi ");
        //@@end
    Regards,
    Gary

    HI Gary,
    You can do this by binding the context attribute of type date to the firstSelectedDate property of the datenavigator Ui element.
    then suppose context attribute to which you have bound the UI element has the name date then create an action for the event onDaySelect. then write the following code in the event handler
    public void onActionselectdate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionselectdate(ServerEvent)
        String str = wdContext.currentContextElement().getDate().toString();
        wdComponentAPI.getMessageManager().reportSuccess("HI" + str);
        //@@end
    It will solve your issue.
    But the date format here will be YYYY-MM-DD if you want to change it then either you have to use one simple type or modify it in the code itself by using some string operation.
    Regards,
    Sarbjeet

  • Calendar Using Date Navigator in Webdynpro ABAP

    Hi,
         My Requirement is in the calendar the dates from today to some specific date(Ex:-30 days from today).
    Should be enable in all other dates grade out. how can we achieve using date navigator.
    For example: Indian railway booking site, allows booking from today to 60 days, remaining dates are grade out, Can't be selected.
    similar validation need to be achieved through date navigator.
    Regards
    Narasimha

    Hi Narasimha,
    The requirement exactly like RAILWAYS ticket booking cannot be achieved by using DATE navigator as we don't have any provision to disable/to graded out the dates of our wish.
    You can achieve your requirement ( up to some extent) as below
    Create a date navigator ui element and bind the start date and end date to context attributes
    Create a node DATE_SEL ( 0...n ) and attribute "DATE" of type DATS
    Now, right click on DATE NAVIGATOR ui element and  choose "Add selection" option from menu to add the dates of selection. Bind the datasource and selected date to node "DATE_SEL" and attribute "DATE" respectively
    The selection node "DATE_SEL", you can populate the 60days/30days as per your requirement and it hightlights ( you can choose your choice of color ) the dates in the calender. So that user focuses on these dates for selection. if any other dates other than these selection, you can raise an error message to the user by using event "ONDAYSELECT"
    Hope this helps you.
    Regards,
    Rama

  • Clickable dates in date navigator

    hi gurus
    Is it possible to set specific dates in the date navigator as "not clickable"?
    We do not want our customers to be able to select dates before today and later than 90 days in the future.
    So the user should not be able to click on those dates.
    Thanks in advance for your assistance.
    Wouter Heuvelmans
    Pyramid Applied Solutions

    Hi Wouter.
    AFAIK this is not possible. I do not see any properties that cut the date navigator to a certain range. You could use DateNavigatorMarking and DateNavigatorLegend to indicate selectable values. But you have to check allowed values by urself.
    Check the <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/EN/53/fe8b41b4b3b25fe10000000a1550b0/frameset.htm">help</a> site out.
    Maybe you can make use of the events (ondayselect and onmonthsselect) to popup a message that this day is prohibited.
    Hope this helps a bit.
    Cheers,
    Sascha
    Message was edited by:
            Sascha Dingeldey

  • Training and Event Management - report on list of cancelled courses

    Hi All,
    Is there any standard report available to get the list of cancelled courses (be it business event grp , type or business event) Would appreciate your inputs on this.
    Kind regards
    Sathya

    S_AHR_61016216 - Cancellations per Attendee , i think there is no standard report for cencelation of business events, type and group.
    for cancellations per attendee reports is available in the system.
    good luck
    Devi

  • How can I see Calendar event END times at a glance?

    How can I display my Calendar event titles exactly as I type them? I do not want Calendar to remove duration from the titles of my events. Otherwise I can't see event END times at a glance in month view; only start times. How can I "trick" Calendar to just show my titles as I type them - as I always could before I upgraded. I used to be able to enter "Seminar 9am-5:45" and it would appear that way regardless of how or what I chose to enter (or not enter) for duration.
    I am running OSX 10.9.3.

    It's a bit weird, but if you type in the time info TWICE into the event title then Calendar uses/deletes one of them to populate the event details and leaves the other.
    Apple - Mac OS X - Feedback

  • Event List view in iCal?

    I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
    I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Can I show a color bar instead of a color bullet in iCal Monthly view for all my events in all calendars?

    In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.

    Greetings Judith,
    Before making any attempts at deleting calendar data, backup what you have just in case:
    Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed.  By typing in a value for days you can tell iCal to delete all events before that time frame.
    Example:
    Today is 4-16-2012.
    If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
    Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
    Re-open iCal and check to see if the events are gone.  If not you may want to leave it open for several minutes and then quit again.
    Once the events are removed go back to  iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
    Hope that helps.

  • Can you show at a glance which event images are in albums?

    Say I had an event containing multiple similar but different images, is there a way to show in the grid view for example which images have already been used in one or more albums?
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box. I guess you could hide images you've used but that wouldn't work automatically, nor would any other tagging/rating.
    Another approach would be to make albums containing everything in a given event, then move the images out of that album once used, just seems fiddly to me.
    AC

    AC
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box.
    Yes it would and many people have suggested tit. Add your voice to the chorus at iPhoto Menu -> Provide Apple Feedback.
    A workaround - and it's no better - is to go to an album and select al, then give all those pics a keyword. Then in grid view you can see which pics have the keyword. (View -> Keywords)
    Regards
    TD

  • Unable to capture startup and shutdown event of Photoshop in automation Plugin.

    Hi,
    I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
    I am unable to detect the cause of the problem. Can someone please giude me??
    Thanks in advance.

    Hi Tom,
    Thanks for the suggestion.
    Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
    Any other thing that I need to do to make it work?
    Thanks

  • Unable to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout
    pageLayoutCO (controller)
    ----header (Region)
    ----------messageComponentLayout (Region)
    -----------------MessageLovInpurt
    -----------------MessageChoice(Item)
    -----------------MessageTextInput
    -----------------MessageLayout
    ----------HideShow (Region)
    -----------------MessageLovInpurt(Item)
    -----------------MessageChoice(Item)
    -----------------MessageTextInput(Item)
    -----------MessageComponentLayout (Region)
    -----------------MessageLayout
    ------------------------SubmitButton(ID:SearchBtn)
    ------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
    -----------header(Region)
    I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
    The two methods I used as follows aren't worked:
    if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    if (pageContext.getParameter("ClearBtn") != null) {
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Mandy
    Edited by: user8898100 on 2011-8-2 上午7:49

    Mandy,
    Its really strange that its not able to caputure the event in CO.
    Below is the way in which we handle to Submit action at CO level.
    /Check whether ClearBtn is same in case too.
    if(pageContext.getParameter("ClearBtn")!=null){
    System.out.println("Inside the Clear Btn Action");
    Regards,
    Gyan

  • SAP event not triggering in B1if

    Hi,
    Facing an issue when creating JE in one company on trigger of this b1if scenario gets activated and create JE in another company,earlier it was working fine, after upgrading Integration Component from SAP 9.0 PL12 to SAP 9.0 PL15  issue occurred.
    In message log in b1if can't see any log(Success,Failure,Processing,Filtered).
    Any help would be appreciated.
    Thanks

    Hi,
    Please check on event sender setup.
    Have you click on "Create Complete Journal Entry Events" on 4th step of Event sender in Event Filter option ?
    Thanks,
    Tushar

  • When I sync my iPod to my MacBook through iTunes new events do not show up and old events are not deleted. I am using Snow Leopard  and not iSync.

    I am using Snow Leopard on a MacBook. I have an iPod touch 3G. I do not use iSync it Mobile Me. When I sync my iPod through iTunes new events on my iPod do not show up on my Mac and old events do not delete. I have read help instructions that include deleting the data on the iPod. The iPod has the correct data and the Mac does not so I have not followed those instructions. I need help as the only reason I bought the Mac was to be able to sync, back up, view and print my calendar. Currently it is useless. If only Apple could have learned from the elegance of the Palm software.

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • Get All Values From NewForm.aspx using Event Receiver Item Adding

    HI All,
             I have conditions to check before the insertion of "Calendar Event".For this I am using Item Adding Event Receiver ,When Click on Save button I need to get all the values of Items filled in NewForm.aspx and check
    the condition,If condition satisfies make them insert else show alert info  as"Not Valid",Below is code and error message
    public override void ItemAdding(SPItemEventProperties properties)
                base.ItemAdding(properties);
               string StartTime = properties.AfterProperties["Start Time"].ToString();
               string EndTime = properties.AfterProperties["End Time"].ToString();
    Error
    Object reference not set to an instance of an object.
    Use the New "Keyword to create an object instance
    Can any one help me how can I do it.
    Thanks,
    Quality Communication Provides
    Quality Work.
    http://siddiq-sharepoint2010.blogspot.in/
    Siddiqali Mohammad .

    Hi,
          Have you tried with the code snippet as mentioned below
    string EndDate = Convert.ToString(properties.AfterProperties["EndDate"]);
    string StartDate = Convert.ToString(properties.AfterProperties["EventDate"]);
    If my post is helpful - please click on the green arrow to mark it as answer

Maybe you are looking for