Facility Control

 View Only
  • 1.  Convert Dashboard file picker path for XPression

    Posted 07-19-2019 15:14

    I would like to use the file path I get from the file picker as Datalinq for XPression. But when I browse for a file its path is different. As example:

    Dashboard path: file:/C:/XPression%20Project/Images/Yellow%20Card.png

    XPression path: C:\XPression Project\Images\Yellow Card.png

    Is there a way to convert the path automatically? I have been trying to use the replace block in visual scripting. But it looks like there is a problem with converting a forward slash to a backslash.



  • 2.  RE: Convert Dashboard file picker path for XPression

    Posted 07-22-2019 20:32

    You should be able to use JavaScript's split/join to convert the path from forward-slashes to backslashes.  The only trick should be to escape the backslash as it is a special character in JavaScript:

    valueWithSlashes.split('/').join('\\');

    #DashBoard


  • 3.  RE: Convert Dashboard file picker path for XPression

    Posted 07-26-2019 09:00

    Thanks, that works perfectly.


    #DashBoard