Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Driver Configuration w/8 prompts
#1
I have a driver with 8 prompts.  This doesn't work well with the driver configuration window as the 7th option tab appears in the far left position.  The next button does not bring up the 8th option (it moves to Moniker).  Fortunately the upside down triangle in the upper right lets me set all my options and then get to the summary page.


.jpg   Options.jpg (Size: 22.69 KB / Downloads: 9)


--Bob
Reply
#2
There are new prompt types now that generally will allow you to avoid that sort of scheme. There are checkable lists or lists where the user can enter a value for each slot in a list and so forth. These are a lot more convenient for the user and avoids this problem. For what you are doing one of those would be appropriate.

You can check for the new prompt value if present and use that. Else look for the old ones just to support previously installed versions. One gotcha is that when they reconfigure, the old ones will get dropped and they'll have the new one, so they'll have to re-enter the values. But it would be worth it probably long term to switch over to the new prompt type.

The one you want is probably the CfgNMLPrompt. Any slots they don't want to use, leave empty. You get a comma separated list of the values entered, empty values for ones that they left empty. So if you have 8 slots, you'll get 8 values, some possibly empty. So just parse out the values and you have all of the prompts into one.

See the RCS 485 V2 thermostat driver for one example of it. It's used to name the thermostats. The Space value indicates whether the entered values can have spaces in them or not. And you indicate the count of slots you want to provide, 15 in this example.

Code:
<CQCCfg:CfgNMLPrompt CQCCfg:Title="Name Your Thermos"
                     CQCCfg:Count="15"
                     CQCCfg:Spaces="No"
                     CQCCfg:Name="ThermoNames">
    <CQCCfg:PromptText>
        Each entry here represents an RCS thermo address, 1 to 15. Double
        click one to give a name to that thermostat, using only numbers,
        digits, hyphens and underscores, no spaces or other punctuation.
        This will be used to create the fields for each thermo. Any found
        but not named here will have simple Tx type names, where x is
        the thermo address.
    </CQCCfg:PromptText>
</CQCCfg:CfgNMLPrompt>
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ClickPLC driver now failing after upgrade znelbok 2 440 09-21-2020, 10:48 PM
Last Post: znelbok
  Pentair driver tom 5 1,095 08-02-2020, 11:29 PM
Last Post: kblagron
  Marantz receiver driver (IP) dlmorgan999 6 1,108 05-15-2020, 03:32 PM
Last Post: dlmorgan999
  Variables Driver Client gReatAutomation 4 877 04-25-2020, 12:46 PM
Last Post: gReatAutomation
  Reconfig of Driver Causes Built In Triggers to Fire gReatAutomation 2 680 03-25-2020, 04:09 PM
Last Post: gReatAutomation
  Lutron RadioRA2 Driver and Lutron Visor Control gReatAutomation 29 8,068 03-19-2020, 01:03 PM
Last Post: gReatAutomation
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 643 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  Problem with Accesssing Variables Driver Client Interface kblagron 5 1,241 03-05-2020, 02:24 PM
Last Post: kblagron
  ISYv2 Driver - FanLinc simplextech 4 1,340 02-04-2020, 06:55 PM
Last Post: simplextech
  SMS Driver / Sending MMS gReatAutomation 2 966 02-02-2020, 05:57 PM
Last Post: simplextech

Forum Jump:


Users browsing this thread: 1 Guest(s)