cancel
Showing results for 
Search instead for 
Did you mean: 

SingleLine or SingleSelect auto select

former_member283791
Participant
0 Kudos

Hey guru's,

I'm trying to have a singleLine and/or a singleSelect attribute automatically select the second value it contains when opening a UI task but can't seem to find any relevant information about this.

You guys maybe know about a handy way to do this?

Thanks in advance,

Jonathan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jonathan,

[EDIT: I see I misunderstood the question so my answer below is not really that relevant. The only default value you can set in a dropdown is the one on the task attribute-list definition which only allows you to set a specific value, not the nth value from the resultset]

In its simplest form you create the attribute with the following properties:

Presentation tab - Presentation: Lookup, Number of lines: 1

Attribute values tab - SQL Query and a statement getting some useful information such as:

select mcDisplayName +' ('+mcMSKEYVALUE+')' from idmv_entry_simple where mcmskey = %USERMSKEY%

The Lookup presentation is read only by design and only works with values that are already set on the user. So its not dynamic based on what you enter in the actual form itself. If thats what you're looking for I can try to get back to you on Monday if someone else doesnt answer it by then.

Br,

Chris

Answers (2)

Answers (2)

former_member283791
Participant
0 Kudos

Hey guys, thanks for the answers. So I guess it ain't possible I still need to find a solution to my problem, I'll try some different roads.

thx!

Former Member
0 Kudos

Hi Jonathan

I don't think its possible by configuration. I think even the java class you can trigger won't be able to do it as it only returns the object.  You might be able to reorder the data in the list so that the one you want is on top though.

Peter