Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
J.
MVP
237
Views
4
Comments
OnBeginWebRequest question
Question
Hello,
I have 2 espaces (BaseTheme and Consumer)
1. Both have the system-action OnBeginWebRequest
2. Basetheme has the layout_normal with a preparation.
3. Consumer has got 2 pages (listpage and detailpage) with a preparation.
all "actions" have a simple audit to log if it's being executed.
according to service-studio help:
Use the
OnBeginWebRequest
action to handle the
System event
that occurs on each
web request
: this action is executed before the execution of a
Preparation
action or
Screen
actions of
Web Screens
. This action is only executed when the request is initiated by an end-user
so why does the logging only show:
27-03-2013 14:34:49
Consumer
(BeginWebRequestIssue)
7
Layout_Normal preparation
BaseTheme
27-03-2013 14:34:49
Consumer
(BeginWebRequestIssue)
7
ListPage preparation
Consumer
27-03-2013 14:34:49
Consumer
(BeginWebRequestIssue)
7
OnBeginWebRequest Consumer
Consumer
27-03-2013 14:34:48
Consumer
(BeginWebRequestIssue)
7
Layout_Normal preparation
BaseTheme
27-03-2013 14:34:48
Consumer
(BeginWebRequestIssue)
7
DetailPage preparation
Consumer
27-03-2013 14:34:48
Consumer
(BeginWebRequestIssue)
7
OnBeginWebRequest Consumer
Consumer
27-03-2013 14:34:36
Consumer
(BeginWebRequestIssue)
7
Layout_Normal preparation
BaseTheme
27-03-2013 14:34:36
Consumer
(BeginWebRequestIssue)
7
ListPage preparation
Consumer
27-03-2013 14:34:36
Consumer
(BeginWebRequestIssue)
7
OnBeginWebRequest Consumer
Consumer
27-03-2013 14:34:21
(System)
1
Espace 'Consumer' (version 1) ready to finalize deploy (user: 'jlandgraf')
ServiceCenter
27-03-2013 14:34:19
(System)
1
Espace 'Consumer' (version 1) compiled (user: 'jlandgraf')
ServiceCenter
27-03-2013 14:33:57
(System)
1
Espace 'Consumer' (version 1) uploaded (user: 'jlandgraf')
ServiceCenter
27-03-2013 14:32:12
(System)
1
Espace 'BaseTheme' (version 1) ready to finalize deploy (user: 'jlandgraf')
ServiceCenter
27-03-2013 14:32:05
(System)
1
Espace 'BaseTheme' (version 1) compiled (user: 'jlandgraf')
ServiceCenter
27-03-2013 14:31:39
(System)
1
Espace 'BaseTheme' (version 1) uploaded (user: 'jlandgraf')
ServiceCenter
I do not understand why the basetheme-onbeginwebrequest is not firing even through the preparation of the layout-normal is firing.
It does get fired when you, for example, click on the logo...
If it's by design, the help should be fixed and explained why it's not beging fired.
otherwise, what am I missing?? :)
I am using
platform-server 7.0.5.2
java (weblogic) stack
(attached is the basic example, you need to ipp if you want to test it, sorry, bit lazy in that department)
HttpWebRequest_v[Running_27_March_2013_14_46_01].osp
João Rosado
Staff
Hi,
The
OnBeginWebRequest
that executes is only the one in the eSpace that owns the WebScreen
.
The behavior looks ok on your logs.
Regards,
João Rosado
J.
MVP
so, if I understand you correctly, if you have a consumer and producer espace which both have the system action OnBeginWebRequest, only the consumer-espace one is being called?
I expected the OnBeginWebRequest "Producer" also being executed... (since the layout_normal preparation is being executed as well)
João Rosado
Staff
The documentarion could be a little more explicit, but it os still correct. The mentioning of the preparation is just to give a timeline on when it is executed.
Only the top consumer espace action is called.
Regards,
João Rosado
J.
MVP
Ok thanks.
Interesting fact.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...