The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

UI Rules

Highlighted
Prasanna_M
Super Collector

UI Rules

Hello,

I am using a UI rule that gets triggered when a textfield is modified(while creating a CI) and calls a java program to do some data processing.

Is it possible to return the cursor to the same text field after the validation?

Or is it possible to do some more validation based on the output of the java program and set some field in the new configuration creation form?

Thanks and Regards,
Prasanna.
2 REPLIES
Robert S. Falko
Honored Contributor

Re: UI Rules

Prasanne,

There is no command in OVSD that allows you to change the focus.

Perhaps you could send the value of that text field as a parameter and then have, as the last action, the update of the text field by that same value. I suppose the cursor would be in the text field then.

Or perhaps you could write a VB Script that is executed by the UI rule which returns the focus to the text field.

-Josh
Prasanna_M
Super Collector

Re: UI Rules

Hi, Thanks for your reply.

Is it possible to set the focus on the textfield through the java code that is called by UI rule?

Thanks and regards,
Prasanna
//Add this to "OnDomLoad" event