lilysecret

Make an Image in a Relative Path Open in Browswer

Oct 25th, 2021
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Transfer the zip file to a directory of your choosing.
  2. Unzip all files into that directory. Do not move or rename any of the image directories or image files. Keep the JMP file in the same directory it was unzipped into. This will preserve the file struture.
  3. Open the JMP file. The Q21_1_1 column contains links to the images in the directories.
  4. Click on an image link to open the image in a browser window.
  5.  
  6. Change the column type to "Expression"
  7. Change the function to this:
  8.  
  9. Function( {thisTable, thisColumn, iRow}, // 3 parameters
  10. { /* list of local variables, if needed */ },
  11. // begin your code here
  12. // this example is for URLs like https://www.jmp.com .
  13. // You could build the URL from other columns and show
  14. // a simpler ID in this column. You could also run a JMP
  15. // platform instead of using the web() function.
  16. //Web( Char( thisTable:thisColumn[ iRow ] ) ); // open a web page
  17. Web(Substitute(thisTable << get path, thisTable << get name || ".jmp", Char(thisTable:thisColumn[iRow]))); // open a web page
  18. // end your code here
  19. );
  20.  
  21. Edit the value names to reflect the relative pathway
Advertisement
Add Comment
Please, Sign In to add comment