#2 VL Web app inside
#3 Running Code like this...
#sys_Web.Navigate Url(#wNewUrl) Target(New)
After a lot of debugging, it appears that this fails with any url that includes an &
Originally running this on Mobile Android and it was not working, could not figure out why, so moved to something a little more debug-able, LANSA Mobile on Windows.
On Windows I got the error, but instead of doing nothing it crashes LANSA Mobile Completely.
I did a bunch of tests to get the error and it looks like any URL sending parms (&p1=value&p2=value)
You get an error like so in the LANSA Mobile log file...
Windows::UI::Xaml::Controls::WebViewNavigationStartingEventArgs ^)
Exception: lacks ending quotation before the end of string[ pos = 49 ]
By tweaking the url length you can work out that it doesn't like the &
You can no longer use + in url as that is used to replace a space.
And the LANSA Mobile app is doing some stuff behind the scenes, so if you try to replace the url with %26 it just interprets that as a regular &.
Tried \x26 as well but that just gets interpreted as &...
Some of the other urls tried as extracted from the logs....
Windows::UI::Xaml::Controls::WebViewNavigationStartingEventArgs ^)
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?about","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&r=1","target":"_blank"} 98
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033s&r=Get","target":"_blank"} 53
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?about&r=1","target":"_blank"} 49
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033s","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033s","target":"_blank"}
?t=0&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033s","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&r=1","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+r=1","target":"_blank"}
?t=1&imb=1&data=@runCommand%20{"cmd":"openwindow","url":"/cgi-bin/lansaweb?w=ccx033sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+r=1","target":"_blank"}
I was going to report this, but everyone gone in US at the moment.
Can I get any idea if anyone knows how to make this work. I need to be able to open a url and pass parameters...
Thanks,
Paul