Author Topic: Select editor does not update mapped field when drag or paste  (Read 1800 times)

vsa

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 12
    • View Profile
Select editor does not update mapped field when drag or paste
« on: January 19, 2021, 09:52:29 pm »
Hello,

You can see in the animated GIF behavior of the editor and its mapped field:
Code: [Select]
mapIndices: { "text": "ShipVia", "value": "ShipViaId" },


This is easily reproductible on the original page: https://paramquery.com/pro/demos/editing_custom
Please make mapped field visible:
Code: [Select]
{ dataIndx: 'ShipViaId', hidden: false} , //hidden column to store ShipVia Id.
Thank you in advance


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Select editor does not update mapped field when drag or paste
« Reply #1 on: January 20, 2021, 09:49:16 pm »
This is not a bug. mapIndices is a property of editor and hence work only with inline editing.

formulas can be used instead of mapIndices to map the key value pairs always.

Example: https://paramquery.com/pro/demos/datamap

vsa

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Select editor does not update mapped field when drag or paste
« Reply #2 on: January 22, 2021, 03:17:48 pm »
Neither it's a feature ;) Using formulas looks like workaround while having such a good idea to use mapIndices.

Thanks a lot for reply! Please add information about this limitation to documentation, because that was not obvious and could lead to invisible errors (like in example with a hidden field).