Save values in datasloot from script inside switch

How i can save values in dataslot from script in swith?
the this property is not valid!
regards

Hi, could you paste the script here so we could get better understanding what are you trying to create.

Hi,
simply

this.props.appActions.updateDataSlot(“ds_idtelefono”, “abc”);
this is undefined