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

webtiers Custom parameters problem

edited March 2003 in Server
Hi

I have download the 7.02 release of Rbserver.
It's seems great, but how can I pass report name and volumename to
Trswebrequest object ?
These properties are in readonly mode.

For sample

My clientside Know the volume name and the reportname to display I want
write code like this :

Var Marequete:Trswebrequest
begin

marequete:=Rswebtier1.CreateWebRequest(Request.QueryFields,Request.Content);
Marequete.SessionParameters ['Accountname'].value:='JP';
Marequete.SessionParameters ['AccountPassword'].value:='ILoveRB';
Marequete.SessionParameters ['Color'].value:='All';
//Marequete.ContentType :='Viewer';

Marequete.ReportName:='Monrapport'; <---- HERE IS THE PROBLEM
Marequete.Volumename:='Monvolume';
Response.Content := rsWebTier1.ProcessWebRequest(MaRequete);
End;


If i write the same code in thin client wit trsclient object it works fine

Have any solution to help me ?

Thank's

Comments

  • edited March 2003

    You can set these values via the WebRequest.ContentParameters as shown
    below. The WebRequest.ReportName and VolumeName are actually stored in the
    content parameters array. We'll have to make these read/write for the next
    release.


    Example:

    myWebRequest.ContentParameters['Name'].Value := 'myReport';
    myWebRequest.ContentParameters['Volume'].Value := 'myVolume';



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2003
    Thank you very much it's seems to work

    Another question :

    I work with websnap and rbserver and I don't know how fixe webcachepath
    property to work
    with the delphi web debugger.
    In this mode i always obtain page not found error on each frame of the
    explorerframeset.

    Have you an idea.

    Thank you



  • edited March 2003

    The RBServer\Demos\Web Tier\Web Debug example shows the settings that we use
    to test with Delphi's WebBroker. The WebModuleURI contains the url used by
    the web debugger. The WebCachePath is the url used by IIS to pull content
    that is referenced by the page frames.


    WebCachePath := http://localhost/rbWebPub/Cache/
    WebModuleURI := http://localhost:8081/rbWebDebug.CoRBWebDebug


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2003
    Thank you for your responses

    Yes I have read the demos and test them, but i have also the problem witth
    demo.

    1. I run custom prameter demo server (it's ok')
    2. In delphi I run rbwebdebug.dpr in web tier\custom parameter directory
    (ok)
    3. I run delphi web debugger and run rbwebdebug.coRbwebdebug (Ok)
    4. Browser show me the login page (with name password color) (ok)
    so the communication between client web tiers and server seems ok

    5. when i submit form I have two frame but there is no volume and no report
    name.
    In the two frame i have error 'Internet explorer can't open the web page.
    Page is perhaps temporarly not disponible.




  • edited March 2003

    This indicates the Internet Explorer is not configured such that it has
    permission to access the directory.

    When I develop WebTier applications, I setup a directory on called
    c:\rbWebPub and configure IIS for a web applicaiton. This is explained in
    the ISAPI tutorial. You should use the same setup for a WebDebugger
    application.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.