Hi,
I am trying to create a custom Space Planner App using ReactJS and JavaScript API of Esri's ArcGIS, I have created a web map for the use of in Indoors Space Planner app and it runs perfectly with the Space Planner App. Now when i am trying to use the same web map in my custom application, i am able to access it with no problems. Now in my use case if i want to Un assign a person occupied to an unit, i modified the popup and added a button called Unassign so when the user clicks on the button the Person allocated should be unassigned (You can see that in the first image). Now the issue i am facing is that what i have done is that on the click of the unassign button, i have extracted the unit for which the popup was opened and toggled its ASSIGNMENT_TYPE value from office to none.
In this the update on the ASSIGNMENT_TYPE is happening with no issues (as the symbology is changing which is based on the ASSIGNMENT_TYPE value if its office then lines are shown on the unit or else no symbol is there) but the labelling is not changing, it should change from the occupants name who has been removed back to the units name.
Can someone please help me in rectifying this issue. Am I following the correct procedure for unassigning that is i am just switching the value of assignment type from "office" to "none" for the unit or am i supposed to follow any other procedure or change?
Regards