Blueforcer Well-Known Member Licensed User Longtime User Mar 28, 2025 #1 I want to change the value of the action property on the fly without rebuilding the mainpage. For a switch i found this way B4X: Copy AS_Settings1.MainPage.GetProperty("mqttclient").View.As(B4XSwitch).Value=False can someone help me to do this with the action property, lable doenst seem to be the right view? thanks in advise
I want to change the value of the action property on the fly without rebuilding the mainpage. For a switch i found this way B4X: Copy AS_Settings1.MainPage.GetProperty("mqttclient").View.As(B4XSwitch).Value=False can someone help me to do this with the action property, lable doenst seem to be the right view? thanks in advise
Alexander Stolte Expert Licensed User Longtime User Mar 29, 2025 #2 The right way is this: B4X: Copy AS_Properties.PutProperty("PropertyName_5","Test") AS_Settings1.MainPage.Refresh But you can do this way with the attached b4xlib. B4X: Copy AS_Settings1.MainPage.GetProperty("PropertyName_5").View.As(B4XView).Text = "Test2" Attachments AS_Settings.b4xlib AS_Settings.b4xlib 26.2 KB · Views: 190 Upvote 0
The right way is this: B4X: Copy AS_Properties.PutProperty("PropertyName_5","Test") AS_Settings1.MainPage.Refresh But you can do this way with the attached b4xlib. B4X: Copy AS_Settings1.MainPage.GetProperty("PropertyName_5").View.As(B4XView).Text = "Test2"