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
Martijn Habraken
90
Views
4
Comments
Solved
Why can a List only be a Input parameter on a screen if the screen is Non-Public?
Question
Hi All,
When you want a Input parameter of the type (Integer, Text, Boolean etc) List on a screen that has Public = Yes this error occourse:
Invalid Public Screen
Screen 'HomePage' cannot be public because 'In1' input parameter type is RecordList.
Why is this? I can't find any documentation why this is not allowed.
Kind regards,
Martijn Habraken
Miguel Domingues
Staff
Solution
Hi Martijn,
When a screen is set as public, other eSpaces can use it and pass input parameters.
However, lists, objects and binary data are always passed by reference.
A reference is only valid in the eSpace were it was created.
In your case, you are trying to pass parameters by reference between eSpaces.
For more information about input parameters see: https://www.outsystems.com/help/servicestudio/9.1/index.htm#t=Designing_Actions%2FAbout_Input_Parameters.htm
Regards,
Miguel Domingues
Kilian Hekhuis
MVP
Hi Miguel,
Is that page fully correct though? I've experienced passing by value in case the consumer of an actions isn't in the same eSpace as the action. I think that was confirmed by OS as well.
Miguel Domingues
Staff
Hi Kilian,
You are correct, between actions in different eSpaces parameters are passed by value (even lists).
However, the original question from
Martijn
was about web screens set as public with a list as parameter, and in that case (web screen) that is not possible.
Regards,
Miguel Domingues
Kilian Hekhuis
MVP
Hi Miguel,
I understand that (I was even surprised that it's possible within the same eSpace, as parameters to screens are passed as HTML parameters), but my question was about that page. Reading it again, it
is
correct though, it says "
when the action called is
from the same module
there are data types that are passed by reference"
(emph. mine). So no problem there :).
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...