Skip to main content

system.kanoa.utilities.storeDateRangeSelection

This function requires KanoaCore module

Description

Stores the passed-in date range to make it persistent across views in the current tab (page) (kanoaCore).

Syntax

storeDateRangeSelection(self, startDate, endDate, selectedDateRange)
  • Parameters
      self (Page Object) - The page object.
      startDate (Datetime) - The start date of the range.
      endDate (Datetime) - The end date of the range.
      selectedDateRange (String) - Valid values are 'Today', 'Yesterday', 'This Week', 'Last Week', 'This Month', 'Last Month', 'Year To Date', None.
  • Returns
      None
  • Code Example

    # Example Usage:
    system.kanoa.utilities.storeDateRangeSelection(page_object, start_date, end_date, 'This Week')