Absent Member.. ScottCp1 Absent Member..
Absent Member..
88 views

9.31 - Adding a Relative Date as a Default value for search

Jump to solution

On the Incident Search page, is there a way to set a relative Open date (>60 days prior to today) as the default?  Users don't want to default to true-search, they want to only see recently logged incidents.

Thanks

0 Likes
1 Solution

Accepted Solutions
JD_Jinesta Outstanding Contributor.
Outstanding Contributor.

Re: 9.31 - Adding a Relative Date as a Default value for search

Jump to solution

Hi ScottCp1,

You can do it using display screen and setting a value to the variable $adv.open.start

if you go to the incidents search screen using windows client, on the right bottom corner there is the name of the current display screen inside parenthesis () like FilterAdvFind(apm.search.problem.display). Then you go to Display Application Screen Definition (type ds in SM command line or go to Database Manager and search for displayscreen table), search for the value apm.search.problem.display and at the end of initializations add this expression:

$adv.open.start=tod() - '60 00:00:00'

Save changes and try again. Opened must be prepopulated. Hope this helps.

Finally for other search screen on different modules, check display screen name and opened variable (press ctrl+h) or use forms designer to check the name of the variable and use similar logic.

Good luck!

 

 

Regards,

SM Support Engineer

Thank you for using the Micro Focus Community. If you find that this or any post resolves your issue, please be sure to mark it as an "accept as solution".
3 Replies
Carlos_V_SM Acclaimed Contributor.
Acclaimed Contributor.

Re: 9.31 - Adding a Relative Date as a Default value for search

Jump to solution

Hello Scott,

hope you are doing fine,

Due search incidents, interactions, changes, etc... service manager has a functionallity to search for start date and end date also, as I know there is the only option SM can offers to filter per dates, I am sure that the true-search is not possible to configure since it is a global functionallity.

Carlos Villalobos R
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Absent Member.. ScottCp1 Absent Member..
Absent Member..

Re: 9.31 - Adding a Relative Date as a Default value for search

Jump to solution

So, there's no type of value I can enter as default into the Open Date field that will give me a date >60 days prior to today?

0 Likes
JD_Jinesta Outstanding Contributor.
Outstanding Contributor.

Re: 9.31 - Adding a Relative Date as a Default value for search

Jump to solution

Hi ScottCp1,

You can do it using display screen and setting a value to the variable $adv.open.start

if you go to the incidents search screen using windows client, on the right bottom corner there is the name of the current display screen inside parenthesis () like FilterAdvFind(apm.search.problem.display). Then you go to Display Application Screen Definition (type ds in SM command line or go to Database Manager and search for displayscreen table), search for the value apm.search.problem.display and at the end of initializations add this expression:

$adv.open.start=tod() - '60 00:00:00'

Save changes and try again. Opened must be prepopulated. Hope this helps.

Finally for other search screen on different modules, check display screen name and opened variable (press ctrl+h) or use forms designer to check the name of the variable and use similar logic.

Good luck!

 

 

Regards,

SM Support Engineer

Thank you for using the Micro Focus Community. If you find that this or any post resolves your issue, please be sure to mark it as an "accept as solution".
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.