• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Time periods mixed up

    User help
    2
    12
    5.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craig
      last edited by

      I deleted the webapps/ROOT directory and extracted the 1.4.1 archive and I'm still seeing the same behaviour.

      Could it be caused by an incomplete upgrade?

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        The code in question is in WEB-INF/jsp/dataSourceEdit/editModbus.jsp. Starting at line 124 there is this:

        
                <tr>
                  <td class="formLabelRequired"><fmt:message key="dsEdit.updatePeriod"/></td>
                  <td class="formField">
                    <input type="text" id="updatePeriods" value="${dataSource.updatePeriods}" class="formShort"/>
                    <sst:select id="updatePeriodType" value="${dataSource.updatePeriodType}">
                      <tag:timePeriodOptions sst="true" s="true" min="true" h="true"/>
                    </sst:select>
                  </td>
                </tr>
        
        

        The important part is the sst="true" in line 129. If this is present it should work ok.

        If you find that the code is ok, can you please post or email to me how this code renders in the browser.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • C
          craig
          last edited by

          The sst=true is present in the editModus.jsp file. The select tag in the browser is:

          
                    <td class="formLabelRequired">Update period</td>
                    <td class="formField">
                      <input type="text" id="updatePeriods" value="15" class="formShort"/>
                      <select id="updatePeriodType">
          
                        
            
              <option value="1">second(s)</option>
              <option value="2">minutes(s)</option>
              <option value="3">hours(s)</option>
          
              
              
              
              
            
            
          
                      </select>
                    </td>
          
          

          editModbus.jsp in CVS is different from the commercial version so I don't think there is much debugging I can do short of sending you a copy of the database without any pointdata.

          Thanks for the help,
          craig

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler
            last edited by

            You can do something like this: in the JSP that i mentioned earlier, add the code after the input below: (you can put it into a comment if you like - the forums won't let me do it for some reason)

            
                     &lt;tr&gt;
                       &lt;td class="formLabelRequired"&gt;&lt;fmt:message key="dsEdit.updatePeriod"/&gt;&lt;/td&gt;
                       &lt;td class="formField"&gt;
                         &lt;input type="text" id="updatePeriods" value="${dataSource.updatePeriods}" class="formShort"/&gt;
                         ${dataSource.updatePeriodType}
                         &lt;sst:select id="updatePeriodType" value="${dataSource.updatePeriodType}"&gt;
                           &lt;tag:timePeriodOptions sst="true" s="true" min="true" h="true"/&gt;
                         &lt;/sst:select&gt;
                       &lt;/td&gt;
                     &lt;/tr&gt;
            
            

            Then, again post the rendered html. The JSP will recompile automatically.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • C
              craig
              last edited by

              I added the periods around the 2. When I paste this HTML I am removing many empty lines. I don't know if that is relevant.

               
                       <td class="formLabelRequired">Update period</td>
                        <td class="formField">
                          <input type="text" id="updatePeriods" value="15" class="formShort"/>
              update period type is . 2 .
                          <select id="updatePeriodType">
              
                  <option value="1">second(s)</option>
                  <option value="2">minutes(s)</option>
                  <option value="3">hours(s)</option>
              
                          </select>
              
              
              1 Reply Last reply Reply Quote 0
              • M
                mlohbihler
                last edited by

                Hmm... "2" is certainly not equal to " 2 ". But the value is an integer; i have no explanation why spaces would be showing up.

                Best regards,
                Matthew

                1 Reply Last reply Reply Quote 0
                • C
                  craig
                  last edited by

                  I put the spaces there too! The appropriate value for minutes is in the ${dataSource.updatePeriods} variable. I

                  1 Reply Last reply Reply Quote 0
                  • M
                    mlohbihler
                    last edited by

                    I'm stumped. Do you have an instance available on the internet i can look at?

                    Best regards,
                    Matthew

                    1 Reply Last reply Reply Quote 0
                    • C
                      craig
                      last edited by

                      I upgraded from tomcat 5.5.17 to the latest 6.x and this problem has disappeared.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post