Announcement

Collapse
No announcement yet.

can we dynamically change a SettingsPage using CreateSettingsPage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    can we dynamically change a SettingsPage using CreateSettingsPage

    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
    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

    #2
    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
    68 Z-Wave Nodes, 175 Events, 359 Devices
    UPB modules via OMNI plugin/panel
    Plugins: Z-Wave, OMNI, HSTouch, weatherXML, EasyTrigger
    HSTouch Clients: 3 Android, 1 Joggler

    Comment


      #3
      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


        #4
        Thats good info... Are you able to rearrange anything on the SettingsPage when you rebuild it?
        HS4Pro Running on a Raspberry Pi4
        68 Z-Wave Nodes, 175 Events, 359 Devices
        UPB modules via OMNI plugin/panel
        Plugins: Z-Wave, OMNI, HSTouch, weatherXML, EasyTrigger
        HSTouch Clients: 3 Android, 1 Joggler

        Comment


          #5
          Originally posted by rmasonjr View Post
          Thats good info... Are you able to rearrange anything on the SettingsPage when you rebuild it?
          all this requires the users to Save the page before you can change it. rearranging shouldn't be a problem

          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

          Comment

          Working...
          X