2 Replies Latest reply on May 31, 2011 9:02 AM by ahmad.hasan

    how to display the remaining time quota in minutes..

      hi..

       

      i tried to display the remaining time quota at the McAfee notification page but it displayed in seconds..

      is there a way to display the number in minutes instead of seconds??

       

      regards.

        • 1. Re: how to display the remaining time quota in minutes..
          asabban

          Hi Ahmad,

           

          this is possible. You need to use a userDefined property. For example I have logged the remaining Quota in the warning page which shows the form to accept the Quota and access the Internet, such as:

           

          Bildschirmfoto-90.png

           

          See the "30" after "Please note". This reflects 30 Minutes, which is the default daily quota. Of course you can place this everywhere on the template and add some noce comments for your users, I just want to demonstrate how this can be done.

           

          In the default Quota Rule Set please edit the "Check If Time Session Has Been Exceeded" rule (the second one). Edit the Rule, go to "Events", click "Add" and choose "Set Propery value". Click "Add" again to add a new userDefined property, which should be configured as below:

           

          Bildschirmfoto-91.png

          Click OK to add the proprety. Now use the "Add numbers" button to configure what our new property should contain. In my examples the Quota.TimeRemainingDay divided by 60, to convert from seconds to minutes:

           

          Bildschirmfoto-92.png

          Hit OK. The Rule Set for Quota should now look similar to this:

           

          Bildschirmfoto-93.png

          Finally modify the template "Time Session Exceeded". Be careful that you do not modify the "Time Quota Exceeded". The "Time Session Exceeded" is the template shown to the user to "push the button", the "Time Quota Exceeded" is the template that tells the User that there is no more Quota left.

           

          Edit the template and click "Add" -> "Property" on the position you want to show the remaining minutes. Choose the following:

           

          Property: Number.ToString (Number)

          Parameters: Property: User-Defined.quotaMinute

           

          This should work.

           

          Best,

          Andre

          • 2. Re: how to display the remaining time quota in minutes..

            many thanks asabban..

            it is working well..

             

            regards.