Hi José,
Screen actions run on server. For client side you need to use js.
Regards,
Marcelo
Hi José,
Screen actions run on server. For client side you need to use js.
Regards,
Marcelo
Within OutSystems Cloud, unfortunately, isn't possible to access the IIS directly. Even when you need to change some simple configurations, like adding a specific header to the web.config file or increase the IIS limits to upload files. However, using a powerful tool available for everyone within forge (Factory Configuration) we are allowed to manipulate and include that so much required headers in the web file config.
This example is for CORS headers, please check the step-by-step guide below.
Note: This post is based on the already created article (https://www.outsystems.com/forums/discussion/16964/how-to-add-custom-response-headers/), nevertheless, I'm creating this one to remove the references to IIS and to add a more understandable step-by-step because people have shared that the first steps of the guide were confusing.
---
1 - Download and Install on your environment the Forge component "Factory Configuration" (https://www.outsystems.com/forge/component-overview/25/factory-configuration)
2 - Open the page http://<Environment_URL>/FactoryConfiguration in a browser and log in using Service Center Credentials.
3 - Click on "Shared Configuration" > "Create New Shared Configuration"
4 - Add a meaningful "Name" to the configuration and add the XSLT template to the "Value" input by clicking the button "FILL"
5 - Look for and replace the two following lines:
<xsl:attribute name="executionTimeout">180</xsl:attribute> <xsl:attribute name="maxRequestLength">65536</xsl:attribute>
with:
<add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Methods" value="GET,POST,OPTIONS" /> <add name="Access-Control-Allow-Headers" value="*" />
afterward, search for the following line:
<xsl:template match="/configuration/system.web/httpRuntime">
and replace with:
<xsl:template match="/configuration/system.web/httpProtocol/customHeaders">
6 - Click on tab "eSpaces" > search for the module that you want to change the headers > check the modules you want to add the configuration and click "Associate Shared Configuration"
7 - After finishing the steps above, don't forget to REPUBLISH your module.
8 - After republishing the module you should be able to see the headers within the requests of that module pages or services.
---
Hope this helps our community developments!
Kind Regards.
Hi Jorge Martins,
Thank you for moving the post on the correct category. Do you know what datepicker is the Input_Calendar widget?
Regards,
Hi Erdal,
I think there is no such API method, and agree it would be very nice to have it.
Regards,
Daniel
Hello José,
Just to expand Marcelo's answer.
In a web application, all actions, including Screen Actions, Server Actions and Preparations, run in the server, NOT in the client (browser).
As the server does not keep context between requests (a call to a screen action is a request to the server), when you assign a value to a local variable, the value may or may not be saved automatically in the page's viewstate or database. It will depend if it is a global variable (Session Variables are stored in. DB), a page variable or preparation statement output (will be kept at the Viewstate depending on its use) or a screen/server action local variable (will be discarded).
The less page variables and session variables you use, the better (generically speaking), when we think of application performance.
Hope this helps understand better how things work in OutSystems.
Cheers.
Hello Asha,
It is not possible to transfer applications between a personal environment and any other environment (being personal or not).
The only applications you can install in a Personal environment are those you download from Forge or the applications you share here in the forum, to provide others with your code to help you to solve problems.
Bear in mind that on both locations (Forge and Forum), you are turning your code into public code usable by anyone without owing nothing to the creator.
Cheers
Hello Jonathan,
The Form problem is easy solve if I didn't misunderstand your explanation. The reason is the when a form is build or refreshed, it only copies data from its source if the page is loading. So, if you have a web block with a form that is being rebuild in the page, you need, in the preparation, to explicitly assign the source to the Form Record using an assignment node.
The second problem with the back button I just couldn't understand your explanation, sorry.
About collapsing, I think there is no method (server action) to perform it, but with a small JavaScript you can Open or Close an expandable section...
Cheers
Hi guys,
I downloaded my application from my personal environment, but I want to upload it to my colleagues personal environment. I'm getting an error message regarding licensing and intellectual property. However, I'm surprised I am getting this meesage as I thought it waa possible to transfer application across personal environments.
Can someone advise how I can do this?
Thanks,
Asha
I'm trying to upload a new version of Leaflet for OS10. There currently isn't any version for OS10 so I'm using the OS8 version as base.
After I uploaded the new version and fill in all required details I'm blocked at the end. I get the following errors;
So I first click on the first error but all seems well. The only thing that is not filled in is the demo link. I can't fill this in since I have no public demo link. The only OS10 environment that I have is from my company and I'm not allowed to place any public endpoints on it. And since this version isn't ready for OS11 yet I can't input any. I also can't export my demo app since IPP is blocking me.
As for the new information. I filled in a great amount of details (needed to scrap some even due to the maximum length).
As for the dependencies I get the following "error":
ardoHTTP doens't have a native OS10 component but there is a newer OS11 component so this is probably the trigger. The version (1.2.0) listed is the latest version available for my platform so I don't see an problem. I can solve this by removing the dependency and removing a bit functionality in the legacy part of the application but I would rather not do that.
Does anyone have any solution for both problems? I'm blocked now and I really want to publish my version.
First of all I want to thanks everyone who is creating this videos for the learning section and the effort they put on it, I would never be a good developer without their help. Very good job and thanks again!
But it would be interesting if we could have a new set of videos (special edition) with the voice of Eduardo Rêgo as narrator. I think it could be a good way to watch a vídeo and an entertaining voice at the same time, maybe even easier to remember thinks for certifications.
Here is a link you can check and see if you like.
Eduardo Jauch wrote:
The only applications you can install in a Personal environment are those you download from Forge or the applications you share here in the forum, to provide others with your code to help you to solve problems.
Just a quick side question. Why does this (bold part) work? It isn't simply file attachments, it seems that something happens internally. And why can't this then be a workaround for his situation?
Hi Vincent, the demo link shouldn't be mandatory. It is indeed an weird scenario. I'll try to have some help from the Forge team, and see how they can help on it.
Leandro Correa wrote:
Hi Rajendra,
Did you try Carousel or Gallery widget?
Yes Leandro Correa, but such functionality is not there in Carousel and gallery.
Hi Vincent,
It workd because the IPP code is removed from the file, if it is an OML or an OAP.
The problem of using this as a workaround for passing files from a Personal Environment for other environment or vice-versa is that the code will become available to anyone that wants to see it and use it (you are accepting this when put a file as attachment here).
So, the idea is to use the forum only for the forum's purpose: ask for help. If people abuse this, we are risking OutSystems blocking this option, or reducing the usefulnnes of the Personal Environments, as there are commercial reasons for this rule (this is just my opinion, not an official position of OutSystems).
Cheers.
After upgrading an enterprise environment from version 10 to version 11, I am attempting to clean up all the errors and warnings in my applications. I attempted to upgrade Silk UI to version 11 from the Forge. I'm getting the warning below. Is this normal? Am I safe to proceed.
How are people managing to discern between the Development, Test and Production versions of a mobile application on the device. The applications versions would all have the same logo? Is there a way to alter the logo based on version?
Hello Daryl
As we are talking about Silk UI (that is a System component, that you can't change), and you have upgraded the platform recently, I think this is just a warning that there are some modules in Independent Modules that may break and you will have to manually intervene on them.
I would say that it is pretty safe to do the upgrade, as I think you probably don't have anything important or used by important applications in Independent Modules. But check it anyway.
Usually, we upgrade the DEV environment, fix everything and then when upgrading the other environments we deploy the new versions of everything, that avoids this type of errors in Quality, Production, etc.
Hope this helps you.
Cheers.
Pedro , Thank ,event it hasn`t solved my problem.
Hi
Did you check the Screen templates ( Product Detail). You may have to tweak it a bit.
Hope it helps !!!
HI Eduardo ,
version 11 , it seems only support text which I posted, it can not suport class name .
Many Thanks,
Jack