Modify

Opened 2 weeks ago

Last modified 9 days ago

#15007 new enhancement

Question: check and set key/value for more then one kv. Possible?

Reported by: Allroads Owned by: team
Priority: normal Milestone:
Component: External preset Version:
Keywords: checkbox Cc:

Description (last modified by Don-vip)

We have a traffic_sign C12

https://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Nederlands_verkeersbord_C12.svg/60px-Nederlands_verkeersbord_C12.svg.png

Because this sign works from one side. Their could be no sign on the other side.
Other side, it is possible to enter and turn on road or visit a house/field. And go back.
The way must set to forward or backward on a small section. Where you do not turn anymore.

For the traffic_sign, mofa, moped and motor_vehicle

Can this be done with one checkbox? forward or backward.

And not with multiple checkboxes.

<item name="C12 " icon="traffic_signs/NL/NL_C12.png" type="node,way">
        <key key="traffic_sign"value="NL:C12" />
        <key key="motor_vehicle" value="no" />
        <key key="mofa" value="yes" />
        <key key="moped" value="yes" />

        <space />
        <check key="traffic_sign:forward" text="Forward motor_vehicle" default="off" value_off="" value_on="NL:C12" />
        <check key="traffic_sign:backward" text="Backward motor_vehicle" default="off" value_off="" value_on="NL:C12" />
        <check key="motor_vehicle:forward" text="Forward motor_vehicle" default="off" value_off="" value_on="no" />
        <check key="motor_vehicle:backward" text="Backward motor_vehicle" default="off" value_off="" value_on="no" />
        <check key="mofa:forward" text="Forward motor_vehicle" default="off" value_off="" value_on="yes" />
        <check key="mofa:backward" text="Backward motor_vehicle" default="off" value_off="" value_on="yes" />
        <check key="moped:forward" text="Forward motor_vehicle" default="off" value_off="" value_on="yes" />
        <check key="moped:backward" text="Backward motor_vehicle" default="off" value_off="" value_on="yes" />
</item>

Off course in above example the original k/v must be replace by *:forward= or *:backward=

Attachments (0)

Change History (4)

comment:1 Changed 2 weeks ago by Allroads

Description: modified (diff)

comment:2 Changed 13 days ago by Don-vip

Description: modified (diff)
Keywords: Question preset removed

comment:3 Changed 13 days ago by Don-vip

Description: modified (diff)

comment:4 Changed 9 days ago by Allroads

Thanks for cleaning up, hope someone have a solution.
I tried to search in other presets if this is done, but could not find a example.

For setting traffic_sign this is important to be solved.

When all check boxes must be set, people make easier a mistake by not setting one.
Not easy to validate afterwards.

I like to make it easier, just check forward or backward and all the key/value are set right according to the traffic_sign.

Last edited 9 days ago by Allroads (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user. Next status will be 'new'.
Next status will be 'needinfo'.The owner will change to Allroads
as duplicate The resolution will be set to duplicate. Next status will be 'closed'.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.