Announcement

Collapse
No announcement yet.

HS2 Build 1955 is a no-go with mcs Plugins

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

    HS2 Build 1955 is a no-go with mcs Plugins

    I was not able to access any of the mcsSprinklers web pages with the newly released build 1955 of HS2. Other mcs plugins that have a browser interface will likely exhibit the same problem with the hs.GetPlugins method that now errors-out.

    #2
    According to the current documentation Build 1955), hs.getplugins now returns a collection of objects, each item in the collection being a plugin. Looks like you have to add a for loop (For each item in...) to iterate the objects in the collection comparing item.name to the name of the plugin you want. You can then either do the work needed to be done, or perhaps set a new variable to be the current item (the plugin object) and exit the for loop.

    Comment


      #3
      It was back and forth during the private beta as to which way worked. I submitted a ticket and I will wait for it to be resolved so that it does not need to change with each new build

      Comment


        #4
        This is the mcsSprinklers.asp page that works with latest 1955 build:

        PHP Code:
        <% 
        set col hs.GetPlugins
        for each c in col
        if c.name "mcsSprinklers" then
        response
        .write c.ControlSystemsASP(requestresponse)
        exit for
        end if
        next
        set col 
        Nothing
        %> 

        Comment

        Working...
        X