Skip to Content

SingleLine or SingleSelect auto select

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 08, 2013 at 02:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 10, 2013 at 08:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 14, 2013 at 08:05 AM

    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!

    Add comment
    10|10000 characters needed characters exceeded