Facility Control

 View Only
  • 1.  Preview Widget Clear

    Posted 01-09-2020 01:42

    Hi all,

    How do you clear the loaded image in the XPresion Desktop Preview 1.0 widget in dashboard?



  • 2.  RE: Preview Widget Clear

    Posted 01-09-2020 22:17

    Hi Israel,

     

    Thanks for your query.

    Here is what I found for you.

     

    There are two ways to clear the images

    XPression Desktop Preview widget in the DashBoard is makes local directory on your desktop where the grid file is saved and then it places the XPression preview client as an image. You can delete the image from your local directory to clear the loaded image in the widget.

    Example : if I make a custom panel under C:// DashBoard/Grids  then image will be saved under C://DashBoard/Grids/preview-images/ 

    So delete the image file from it to clear your desktop preview widget on DashBoard.

     

    Another way is,

    You can clear the image with ogScript in the custom panel .

    Example: Try creating a button that remove this loaded image.

    Add a task to that button and probably a ogScript. 

          var channelNum = 1;
          ogscript.setStyle('PREVIEW_WIDGET_' + channelNum, 'bgremove:none'); 

    Note: in my case, I was using Xpression channel 1 , hence channelNum was specified by 1. you can change it based on your chanel number. 

    Once you press the button, you can clear the loaded image.

    Let me know if you need any further information on this.

    I am happy to help you.

     

    Regards

    Anand


    #DashBoard


  • 3.  RE: Preview Widget Clear

    Posted 01-10-2020 18:20

    Hi Anand,

    Thank you for your quick response. The second ogscript worked great.

     

    Thanks again,

    Israel


    #DashBoard