Platform
Learn
Community
Support
Sign up
or
Log in
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Beta
Learn
Training
Documentation
Evaluation Guide
Community
Jobs
Home
Forums
Forge
Ideas
Badges
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Pre Sales Demos
Sign up
or
Log in
Home
Jobs
Forums
Forge
Ideas
Members
Badges
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Usability
Weird Web Block behaviour with notify and notifyGetMessage
webblock
Notify
list
webblock
Notify
list
New Post
New Post
Jean Mercier
Posted on 2016-04-06
Jean Mercier
Rank: #11710
Posted on 2016-04-06
Hi fellow Outsystems'er
Got an interesting problem.
A Parent window has a child WebBlock.
On that webblock there are a list of questions, and you can click on any of the questions to select or unselect that question.
Each time a question is clicked, a method is triggered via Ajax Submit.
The method resolves the question id and posts it via notify.
The parent web screen has an OnNotify method that gets trigered/called takes the id from the NotifyGetMessage creates a row with the data and then appends it to a list using "ListAppend"
All works perfectly, in debug mode I see the event posted, the event caught, the row created and then appended with data properly.
However, I notice when a second question finds its way to the on notify and also gets added to my list that the rows are all there but that the data from the previous add is empty.
I'm pretty sure the logic is sound because when I use a session list instead of a web page local variable I can see all the data properly after multiple ListAppends
Is there a limitation I don't know about?
Any help would be great.
Regards,
Jean
João Rosado
Posted on 2016-04-06
João Rosado
Rank: #23
Posted on 2016-04-06
Solution
Hi Jean,
Are you using that information anywhere else after it's been inserted? Or just checking the values on the debugger?
The debugger can trick you when the optimizer decides that the information is never used (read). Any information that the optimizer decides that is never used is not kept (since it's not needed anyway) and gets "lost" between requests.
So the question is: do you atually can see it causing a problem anythere apart from on the debugger?
Regards,
João Rosado
Solution
Jean Mercier
Posted on 2016-04-07
Jean Mercier
Rank: #11710
Posted on 2016-04-07
Solution
João,
The optimizer is a little too clever, I added a save to loop through my list and voila all the data is there :-)
Thanks,
Jean.
Solution
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Hints and How-To Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...
(hidden) New Badge Popup