Opened 13 years ago

Closed 13 years ago

#641 closed enhancement (fixed)

Editor / helper allows to update a related attribute

Reported by: Fxp Owned by: fxp
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

#459 allows to update a related element using :

  <element name="gmd:nameOfMeasure" id="100.0">
    <label>Nom du test</label>
    <helper rel="gmd:measureDescription">
       <option value="Excess item" title="Indication that an item is incorrectly present in the data" id="ISO19138:2006:measure:1">Excess item</option>
      

this options allows to also update an attribute using :

  <element name="gmd:distance" id="61.0">
    <label>Distance au sol</label>
    <helper relAtt="uom">
	  <option value="0.10" title="cm">10 cm</option>

Main use case : update UOM when setting distance.

Change History (3)

by Fxp, 13 years ago

Attachment: 641.patch added

comment:1 by Fxp, 13 years ago

  • relAtt="uom" indicates it's an attribute which is identified by XSL template with ELEMENT_ID_uom. Then the JS check that element exists and put the value in the field
  • rel="gmd:measureDescription" indicates it's an element and the XSL create the JS call to set the value of the related element.

Does not support to set multiple sibblings.

comment:2 by Fxp, 13 years ago

Resolution: fixed
Status: newclosed

Committed revision 8325.

Note: See TracTickets for help on using tickets.