driverUniqeId in Position's attribute

Hamza Javed6 years ago

HI
i want to save driverUniqeId in attributes of every position. can i achieve this with computed attributes ...?
i have assign driver to device but it always save driverUniqeId=0 in position's attributes.

ThankYOU.

Anton Tananaev6 years ago

Use attributes copying.

Hamza Javed6 years ago

<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>driverUniqueId</entry>

some thing like this in default.xml or server.xml ?

Hamza Javed6 years ago

By using above mention entries now i'm getting driverUniqueId in position attributes but the problem is this that this "driverUniqueId" not match with any driver's uniqueid.
i.e. in position's attributes i'm getting "driverUniqueId":"429636698" but in database i have only these drivers
drivers in database
any idea whats i'm doing wrong or why i'm getting this false value.

Thanks