Home Server
New Blog Posts: Merging Reports - Part 1 and Part 2

Extra "?" in WebModuleURI

edited October 2003 in Server
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

Comments

  • edited October 2003

    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
  • edited October 2003
    > Thanks for the feedback.


    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
  • edited October 2003

    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
This discussion has been closed.