workweek = Substr( Char( year ), 3, 2 ) || Char( week ); // workweek = 1852 (52nd week of 2018)
hlb1 = H list Box(
tb1 = Text Box("*** Click Here for Teapot Yield Details -----> "),
teapot_link = "http://teapots.com/user/ltreider/ww/ww" || workweek || "/teapot.html"; // teapot_link = "http://teapots.com/user/ltreider/ww/ww1852/teapot.html"
Button Box("Teapot Yield", Web( teapot_link ), <<underlinestyle) // *** can put in variable or manually type out string on this line *** <-----
);
Overview_Report << append(hlb1);
overview_fname = "\\teapot_server\ltreider\public_html\ww\ww" || workweek || "\yield.html" ; // place to save overview file
Overview_Report << SaveHTML(overview_fname); // This line chokes if marked line above is fed a string variable inside web( ) <-----I have an report that needs to generate each work week, so to automate it, I'm trying to create a link that includes the work week.When I try Button Box( "Yield", Web("Type out the whole path in here"), <<underlinestyle) it works fine, but when I assign that path string to a variable and plug the variable in there, there's a problem converting the JMP report to HTML.
There are no problems with the JMP report inside JMP. In fact, whether I use a manually typed path string or a variable containing the path string, the Overview_Report that I view in JMP is identical and all the links work as intended.
The problem is using SaveHTML. If I try to use a variable instead of typing out the string in the button box, the log gives me Unknown{205} and it won't put that link on the HTML report. The HTML report stops before the link, and nothing else that is appended on the JMP report ends up on the HTML report.
I'm using JMP 13 still. Is there some work around I can use to generate new links every week?