Hi
Some time not always. b4j give me some message as following picture when i write attribute to session.
WebUtils.bsMessageBox(ws,"PLC參數存檔完成")
Some time not always. b4j give me some message as following picture when i write attribute to session.
WebUtils.bsMessageBox(ws,"PLC參數存檔完成")
B4X:
Devices.plc.ip = ft10.Value
Devices.plc.port = ft11.Value
Devices.plc.address = ft12.Value
Devices.plc.size = ft13.Value
Dim ft As Future=word1.GetProp("checked")
Devices.plc_word1 = ft.Value
For n1=0 To Devices.Size-1
ft8=ws.GetElementById("inp"&(n1+1)).Getval
Devices.Title(n1)=ft8.Value
ft8=ws.GetElementById("used"&n1).GetProp("checked")
Devices.used(n1)=ft8.Value
Next
Devices.save
Log("param/plc save")
WebUtils.bsMessageBox(ws,"PLC參數存檔完成")
B4X:
Sub bsMessageBox(ws As WebSocket,msg As String)
ws.Session.SetAttribute("bsModal",msg)
End Sub