Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#14710 closed enhancement (wontfix)

Support correlation between attributes

Reported by: Barnes38 Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Hello

I wish we can correlate two attributes, for example (fictitious example)

<item name="Totem" icon="images/Totem.png" type="node">

<label text="Characterize a 'totem'" />
<combo key="size"

text="Size (width*height) without support"
values="1.2*5,1.2*6,1.2*6.5,1*7,1*8"
default="1.2*6.5" />

<combo key="height"

text="height of the highest part (with support)"
values="6,7,8,9,10"
default="8" />

</item>

If ever the user chooses "1.2*5" for 'size', then the 'height' is automatically changed and proposed to "6"
If ever the user chooses "1.2*6" for 'size', then the 'height' is automatically changed and proposed to "7"
If ever the user chooses "1.2*6.5" for 'size', then the 'height' is automatically changed and proposed to "8"
If ever the user chooses "1*7" for 'size', then the 'height' is automatically changed and proposed to "9"
If ever the user chooses "1*8" for 'size', then the 'height' is automatically changed and proposed to "10"

Today the values are proposed to their default, but if the user changes one of teh two values, he has to manually change the second value as well.

Thank you to tell me if this already exists (maybe), or if this is something which is possible!
Thanks a lot!!

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by Don-vip

Milestone: 17.04
Resolution: wontfix
Status: newclosed

Sorry but this sounds way too specific.

comment:2 Changed 6 years ago by Klumbumbus

However you could create a validator rule which checks for combinations of the two keys and corrects one by pressing the fix button..

comment:3 Changed 6 years ago by Barnes38

Hello, Thank you for responding. I m interested by the validator rule. Can you provide minimum documentation how-to and/or samples for that, please ? Thanks in advance !

comment:4 Changed 6 years ago by Klumbumbus

See Help/Validator/MapCSSTagChecker

(However it should be reconsidered if it makes sense to tag two tags if one is derivable from the other.)

Last edited 6 years ago by Klumbumbus (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.