Problem refreshing a search screen from code RRS feed

  • Question

  • Hi,

    I have a search screen ("AppointmentsbyDate") with a Date parameter and a Date Picker. The screen Works fine when selecting a different date from the control, but I'd like to add "Previous day" and "Next day" command buttons, and I don't know how to refresh the screen with the new date without opening it in a new tab. It's a LightSwitch Desktop App.

    Any help is appreciated, thank you.


    Sunday, August 25, 2013 6:52 AM


  • I've nailed it, finally. It was easy: In the button's Execute() method, I set the Date parameter to the next or previous day with this.<ParameterName>.Value.AddDays([-,+]1), then refreshing the screen's Visual Collection calling the Refresh() method.

    Tuesday, August 27, 2013 6:45 PM