Skip to Content
author's profile photo Former Member
Former Member

Multi-valuedcustom properties question

Hello all,

I've created some custom properties, added them to a group and am displaying this group as a tab on the resource/details/settings/properties view of a resource.

When the properties are not multi-valued they are drop down menus, when they are multi-valued they are checkboxes. Fine and nice.

Our customer wants to be able to select multiple values for each property but to a given limit, say 3 values per property. So they would still appear as dropdowns, as three dropdowns for each property and the user can select any three values from the dropdowns to assign to the property. Is this possible?

The problem with using the multi-valued param is that all possible values for the property are shown as checkboxes; so if we have three properties each having 40 possible selections then we would have a page with 120 checkboxes (it will be much more than this in actual fact). That's useless as a UI. It also wouldn't limit the selections to the given limit.

Can this be done, how do I go about it, must it be done programaticaly, where do I start?

Hints, tips, thoughts, solutions all greatly appreciated,

Patrick.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Mar 02, 2005 at 02:22 PM

    Hi Patrick,

    I am not sure if this would fit your needs, but it sounds to me very near: Have a look at the metadata extensions of the Property Metadata Service in KM, maybe you have to limit the selection by implementing your own validation class (see SDN Article: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/implementing a metadata extension for kmc properties.article )

    Regards,

    Thilo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 02, 2005 at 09:58 PM

    Hi Patrick,

    > three dropdowns for each property and the user can

    > select any three values from the dropdowns to assign

    > to the property. Is this possible?

    Presenting this definitely would be possible by implementing your own PropertyRenderer. It's just some days ago that I have looked into them, but not that deep. I'm not sure how setting the chosen values in fact works, but decompiling should bring you further quite fast...

    Hope it helps

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2005 at 08:13 AM

    Thankyou for the answers guys. I see that this will not be easy. I've taken on board what you've said and I'll keep looking for more info, have a talk with the boss etc.

    Thanks agian,

    Patrick.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.