I'm researching the ...RBServer\Demos\Web Tier\Custom Parameters demo and noticed that the ValidateSessionParameters event is firing twice after I hit the submit button. Does that make sense?
I checked this out by running the Custom parameters client application against the custom parameters server. An explicit ClientReport.ValidateSessionParameters call to the server will trigger the event on the server, but will not spawn a new session, thus ClientReport.SessionID will be unassigned. When a request to retrieve volume names from the server or run a report is made, then the server will spawn a new session and will validate the session parameters again at this time. If the session times out on the server and the server receives another request, the session parameters will again be validated and new session will again be allocated.
All of the server side event-handlers should be coded to execute quickly because they will be called often.
I ran the custom parameters web tier agains the custom parameters server. Unless I modify the autosearch parameters, the BeforePublishReport event is fired only one time for each report that I select. If I change the autosearch parameter values, the BeforePublishReport is fired again.
Comments
I checked this out by running the Custom parameters client application
against the custom parameters server. An explicit
ClientReport.ValidateSessionParameters call to the server will trigger the
event on the server, but will not spawn a new session, thus
ClientReport.SessionID will be unassigned. When a request to retrieve volume
names from the server or run a report is made, then the server will spawn a
new session and will validate the session parameters again at this time. If
the session times out on the server and the server receives another request,
the session parameters will again be validated and new session will again be
allocated.
All of the server side event-handlers should be coded to execute quickly
because they will be called often.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I ran the custom parameters web tier agains the custom parameters server.
Unless I modify the autosearch parameters, the BeforePublishReport event is
fired only one time for each report that I select. If I change the
autosearch parameter values, the BeforePublishReport is fired again.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com