Service Manager / Service Center Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Does anyone know the syntax for dynamicForm?

SOLVED
Go to Solution
Valued Contributor

Does anyone know the syntax for dynamicForm?

Hello expert.

Please let me know the syntax of dynamicForm.

What I want is set the default value on seacrhing in "FilterAdvFind"(More Choices tab)
in probsummary.

The value in FilterAdvFind form is $choices.
But it display
.........

I'd like to set assigned to true for default search option.
How to do it?

Regards.
4 REPLIES
Honored Contributor Honored Contributor

Re: Does anyone know the syntax for dynamicForm?

If you are supposed to make any changes in probsummary search form then refer to "advFind.incident.search" format rather then "FilterAdvFind"..

Regards,
Valued Contributor

Re: Does anyone know the syntax for dynamicForm?

Thank you for your reply.

But I think it's impossible to set search condition in advFindincident.search.

For example, status<>open and status<>close.

Do you have anyidea to set such as searchcondition in advFindincident.search?
Highlighted
Valued Contributor Valued Contributor

Re: Does anyone know the syntax for dynamicForm?

Hi uhyo,

I think, it is impossible to do it in advFind.incident.search or in formatCtrl. Any expression, you put in the initial Expressions section will not be shown in screen. i assume, it depends on the dynamical build of Advanced Filter, and the format ctrl will not be used there (or used AFTER initial search).

But I was successfull, by doing it via the init process:
- go to object probsummary
- in field Search state press F8
- In State Definition (im.search) go to field Init Process (cc.search.init) and press F8

Now you are in the process, which is executed first on any incident search.
But keep in mind, that this process is also used for interaction search.

In Section Initial Expressions of cc.search.init I added this expression:
if (filename($L.file)="probsummary") then (flag in $L.file=true)
(flag is the field, which is set by the system, if the Button "Close" has been pressed).

This works fine, but has the side effect, that he is searching always and only open tickets.

To adjust this I added a boolean field "Ticket is open?" to form advFind.incident.search with the input value: flag
Now, if a user searches for incidents, in his search form he will see, that he is is searching for open tickets only.
If he wants to see only (!) closed tickets he has to uncheck this box.

(I did not find any way, to default the flags in the "More" Tab of FilterAdvFind. This would be a more comfortable way).

HOpe, it helps
Wilfried
Valued Contributor

Re: Does anyone know the syntax for dynamicForm?

Hi wilfried.

Thank you for your detail reply.
I can catch your word and I'll try it later!!