Submitted JSON fields populated differently based on number of rows selected for editing

Submitted JSON fields populated differently based on number of rows selected for editing

tknapektknapek Posts: 1Questions: 1Answers: 0

If I select a single row and edit it, the JSON submitted to my processor from editor puts the field value for 'breaker' in double quotes :

Object
action: "edit"
data:
1223:
breaker: "4"
descriptor: "AC-60B (B)"
loadType: "2"
name: "Current CH2 (B)"
panel: "18"
queryLoadType: ""
totalizer: ""
units: "1400"
utility: "4"

If I select multiple rows, the JSON submitted to my processor does not put double quotes around the 'breaker' value. Is there a way I can prevent this behavior?

Object
action: "edit"
data:
1223:
breaker: 4
descriptor: "AC-60B (B)"
loadType: "2"
name: "Current CH2 (B)"
panel: "18"
queryLoadType: ""
totalizer: ""
units: "1400"
utility: "4"
1224:
breaker: 6
descriptor: "AC-60B (C)"
loadType: "2"
name: "Current CH3 (C)"
panel: "18"
queryLoadType: ""
totalizer: ""
units: "1400"
utility: "4"

This seems to be the only field that this is happening with as well. Any reason why?

Answers

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    I'm afraid I don't know why that would be happening. Could you give me a link to a page showing the issue so I can help to debug it please?

    Thanks,
    Allan

This discussion has been closed.