Extra "?" in WebModuleURI
We're integrating WebTier into a relatively large, multi-user web site. Our
reports all have several parameters and we only allow users to specify
certain values for the parameters. We don't want to let users simply modify
the URL passed to WebTier, so all access to WebTier goes through a PHP
script that checks the parameter values. So instead of setting WebModuleURI
to something like
http://someserver/webtier
we set it to something like:
http://someserver/somescript.php?op=modload&name=SLReports&file=sl_run
When WebTier creates the buttons in Nav.htm, it tacks on
?content=viewer&volume=SpeedLine%20Reports&name=Subdi...
This is a problem because WebModuleURI already has a ? and already has a
parameter called "name". The only way I can find to fix this is to parse
Nav.htm and fix it every time a report is run. Am I missing something? It
would be nice if WebTier added a "&" instead of a second "?". Or, perhaps
an event in TrsWebTier that fires whenever such a link is created.
--
Nathan Sutcliffe
nsutcliffe at speedlinesolutions period com
reports all have several parameters and we only allow users to specify
certain values for the parameters. We don't want to let users simply modify
the URL passed to WebTier, so all access to WebTier goes through a PHP
script that checks the parameter values. So instead of setting WebModuleURI
to something like
http://someserver/webtier
we set it to something like:
http://someserver/somescript.php?op=modload&name=SLReports&file=sl_run
When WebTier creates the buttons in Nav.htm, it tacks on
?content=viewer&volume=SpeedLine%20Reports&name=Subdi...
This is a problem because WebModuleURI already has a ? and already has a
parameter called "name". The only way I can find to fix this is to parse
Nav.htm and fix it every time a report is run. Am I missing something? It
would be nice if WebTier added a "&" instead of a second "?". Or, perhaps
an event in TrsWebTier that fires whenever such a link is created.
--
Nathan Sutcliffe
nsutcliffe at speedlinesolutions period com
This discussion has been closed.
Comments
Thanks for the feedback.
Currently the WebTier is expecting the WebModuleURI to be a simple URL
containing no params.
We can look into making this more flexible in the future.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
For the record, I was able to fix up the URLs by subclassing
TrsWebViewerFrameNav (as in the Custom Viewer example), overriding
GenerateToolbarControls, and parsing the aJavaScript parameter.
It's coming together!
--
Nathan Sutcliffe
nsutcliffe at speedlinesolutions period com
Excellent - glad to hear you found a workable solution!
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com