Maximo last entered value for startdate and enddate parameter - eclipse

Is it possible to store the last entered value for the startdate and enddate parameter?
If I'm running the same report for different application e.g. first time entering date values for the report on WOTRACK application, then I move on to the SR application to run the same report in hope to select stored values from the last entering in WOTRACK application.

Related

How to add the date in JMeter from date picker?

Date picker used in our application has 2 dropdowns in it (list of months and years) in UI. Manual input is disabled for some reason and hence it's getting difficult for us to handle it in jmeter.
Scenario is:
User will select Year first > then month > then date in FROM dropdown and TO dropdown will contain any date (select Year first>then month> then date) which is greater than date selected in FROM but wil be less or equal to today's date.
How can I achieve the same on jmeter? thanks in advance.
Usually, the date value is being send to the server in one parameter, or in three, for example
date = "12/01/2019"
day = 01
month = 12
year = 2019
You need to record your scenario of choosing and submiting a date by using the HTTP(S) Test Script Recorder and to see how it sends in the request.

The group options for a date, time or date-time condition field must be a date group

I'm using VS2017 and trying to convert my reports from Delphi to Asp.Net, but the problem with some until this point that My users can change their sort from the GUI and I need to dynamically adjust the sort in code to match their selection.
To do this I use the following code:
ReportDocument.DataDefinition.Groups[i].ConditionField = ReportDocument.Database.Tables[CrystalReportDatasource].Fields[cField];
However if cField is aDateField and the original is a StringField group I receive the following exception:
The group options for a date, time or date-time condition field must be a date
group options object crystal reports" when I try and excute the above
statement.
Any idea how to fix that?
When you group on a date, Crystal needs to know what type of date grouping you wish to apply (e.g. Every Day, week, or Month...).
You need to take care of that aspect in code or simply create a String formula to convert the date column to a string and Group on that formula instead of on the raw date column.

Month filter to be defaulted to current month whenever user opens the report

I have a month column in the data and I am adding this as a filter so that user can filter whichever month he wants.
I want the month filter to be defaulted to current month whenever user opens the report and then he can change the month based on his needs. Is this possible in spotfire?
You can create the calculated column with the following definition and pick current month as a filter.
If(Month([Date])=Month(DateTimeNow()),"Current month",String([Date]))

Values For Parameters In SSRS

I am using Visual Studio 2012 and SQL Server 2012.
I have created two parameters, StartDate and EndDate, which are both Date/Time parameters.
In my EndDate parameter, I have set the Default Value to Today() in order to get today's date.
For my StartDate parameter, I want it to be based off the EndDate parameter in the following way. Whatever date the user selects as End Date, StartDate will be the date 24 months/2 years prior. (For example, if EndDate was Today (1/11/2017)...then StartDate would be 1/11/2015.)
In the expressions box, this is what I have so far for my default value for StartDate. =DateAdd(DateInterval.Year,-2,Today())
How do I get it, so that every time I change the EndDate, the StartDate updates accordingly to be 2 years prior?
Try this expression it will return 1/22/2015
=Date.Now.Date.AddYears(-2).AddDays(10)

Crystal Reports default value for parameter

I'm attempting to make the parameters for a Crystal Report more user-friendly for a client, who has requested that they be able to have the default values for a Start and End date parameter be the first and last day of the previous month.
I know how to use either a formula in CR or a stored procedure to produce these values, but I want to know if a variable can be used in the 'Default Value' setting for a parameter, or if it only allows for static entries. Does anyone know? Right now the user can set the date parameters to null and the stored procedure generates the data for the previous month on its own, but I thought it'd be nice if the date parameters actually displayed the dates that were being used as defaults. Thanks in advance!
You can do it, Try below process:
Create a parameter ?date with String datatype and take static and write two default strings as below:
First day of previous month
Last day of Previous month
Now go to record selection formula and write below code:
if ({?date}="First day of previous month") then
table.date=DateSerial(year(currentdate),Month(Currentdate)-1,1)
else if ({?date}="Last day of previous month")
then
table.date=Cdate(DateAdd("d",-1,DateSerial(year(currentdate),Month(Currentdate),1)))