Re: Does anyone know the syntax for dynamicForm? (227 Views)
Reply
Valued Contributor
Posts: 399
Registered: ‎07-15-2003
Message 1 of 5 (227 Views)
Accepted Solution

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.
Honored Contributor
Posts: 452
Registered: ‎10-09-2009
Message 2 of 5 (227 Views)

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
Posts: 399
Registered: ‎07-15-2003
Message 3 of 5 (227 Views)

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?
Valued Contributor
Posts: 61
Registered: ‎11-29-2006
Message 4 of 5 (227 Views)

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
Posts: 399
Registered: ‎07-15-2003
Message 5 of 5 (227 Views)

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!!

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.