can we rebuild/dynamically change a settings page based on user input? for example, after a user enters a value, and clicks save, rebuild the page, and redisplay
Announcement
Collapse
No announcement yet.
can we dynamically change a SettingsPage using CreateSettingsPage
Collapse
X
-
can we dynamically change a SettingsPage using CreateSettingsPage
Mark
HS3 Pro 3.0.0.534
Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memoryTags: None
-
I wanted something similar early on, but in the brief time I fooled with SettingsPage, there's just limited functionality.
For example, I wanted the user to enter something like an IP, username, and password. From there, I wanted the page to validate that info and return something back. I could not figure it out.
Subscribing to see if this is possible...HS4Pro Running on a Raspberry Pi4
67 Z-Wave Nodes, 111 Events, 422 Devices
Z-Wave, UPB, WiFi
Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
HSTouch Clients: 3 Android, 1 Joggler
-
within the OnSettingChange, based on my logic, i called Settings.RemoveAll() and then called my routine to rebuild the Settings page. Based on the new logic the settings page are changed and registered to the plugin menu.
i don't know if this is a good idea or supported, but at first glance it seems to work.Mark
HS3 Pro 3.0.0.534
Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory
Comment
-
Thats good info... Are you able to rearrange anything on the SettingsPage when you rebuild it?HS4Pro Running on a Raspberry Pi4
67 Z-Wave Nodes, 111 Events, 422 Devices
Z-Wave, UPB, WiFi
Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
HSTouch Clients: 3 Android, 1 Joggler
Comment
-
Originally posted by rmasonjr View PostThats good info... Are you able to rearrange anything on the SettingsPage when you rebuild it?
i have two setting pages (basic & advanced): on the basic page, i add a username/pswd field based on the input value of the first field and Save. on the advanced. i completely change a few settings on the advanced page as well.
Mark
HS3 Pro 3.0.0.534
Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory
- Likes 1
Comment
Comment