Quantcast
Channel: OutSystems Community
Viewing all 1476385 articles
Browse latest View live

[Forums] From Record Lists to Lists

$
0
0

Hi Tiago,

Iirc automatic conversion of Record Lists to simple Lists and vice versa was introduced in 10, together with nifty features like mapping of structure Attributes. The downside of this is that it's less clear that the list is copied, instead of just assigned by reference, so there's a slight performance penalty.


[Forums] How to change site property value in UI

$
0
0

Added to that, the reason why it's considered bad practice is that site properties are cached (so when using them the Platform doesn't need to fetch them from the database each time), but when you assign them a new value, they are written to the database and the cache is refreshed, which gives a (relatively) huge performance penalty.

[Forums] Could not create foreign key constraint.

$
0
0

Tim Le wrote:

Hi Rafael,

I'm getting the same error as you described here. I have tried to delete the column in Service Center, published, then added back in but it still gives me the Foreign Key error as I publish with the new column. 

I looked at your solution and I am not sure how to use SQL to access the tables created by using Service Center. I thought these objects were created in OutSystems cloud. And we can't use Management Studio to manipulate these objects.

I'm confused.

Thanks



Hello Tim,


By the time i was having this trouble i wasn't working with the Outsystems cloud. I had a proper server for the application and a different server for the database. This was the reason why i could access the database through SSMS. 

When you refer to "Service Center", what you mean is "Service Studio" right?

You can manipulate your database through SQL widget and run all SQL scripts like you were in SSMS. Unfortunately, i'm not in this project anymore. Therefore, i don't have access to the script i used to unblock this problem.


Best regards,

Rafael Valente

[Forums] user table in database

$
0
0

Hi Barong,

Since User is a system table, it is prefixed with ossys_ (so ossys_user).

[Forums] AmazonS3 List Bucket

$
0
0

Hi Colin,

For questions about a specific Forge component, you can best add a new topic to that component, instead of asking a question in another forum.

I don't know the AdvancedAmazonS3 component, but I assume it's all REST calls? You can add a REST call then?

[Forums] user table in database

[Forums] user table in database

[Forums] SAP REST Mobile local storage advice needed on refreshing data

$
0
0

Hi Rookie,

First, it seems you have a misunderstanding about how mobile apps and AJAX work. A mobile app runs client side - all variables, and screens, live on your mobile device. AJAX is a way to refresh partial screen content via a submit to the server. This means that there's never any AJAX on mobile (and it shows, the AJAX Refresh is not available for a mobile app).

That said, the way screen refresh is triggered on a mobile app is by changing the variables that are bound to the screen. So if you have an Expression that says something like "Total foobars" + IntegerToText(TotalFooBars), the moment you change TotalFooBars in a screen action, the expression is updated.

With Blocks, it's slightly more complicated. Blocks (called Web Blocks for web apps, just Blocks for mobile apps) have input parameters. If an input parameter is used inside an expression on the Block, and you change the value of the variable that is input to the Block in a Screen, the input parameter is automatically updated. If you have that input parameter as an Expression, the Expression is therefore updated as well. However, if the Block needs to perform some calculations or fetch data based on the input parameter (which is e.g. handled in the OnInitialize), that calculation or data may need to be refreshed. That's where the Block's On Parameters Changed Event comes into play. You can specify a Screen Action that will be executed when one of the Input Parameters is changed. If you have more than one Input Parameter, and each triggers a different calculation or fetch, you may want to distinguish by checking which one changed (e.g. by copying it to a local variable, comparing, etc.).

In your scenario, you do a page transition to the same page. That's almost never what you want in mobile. With the above, check your screen logic and update it accordingly. Not having your source code at hand I can't give any more specific advice. If you have further questions, please let me know.


[Forums] Charts Mobile onClick

$
0
0

Hi Aart,

Nice catch. Unfortunately, the ChartsMobile component is a bit of a mess in places (I've ran into various serious problems in the past). I think the only way to "work around" the bug is to patch the JavaScript.

[Forums] Discussion: Casting Storm

$
0
0

Hi Mauricio,

Personally, I think it's bad already to have automatic casting from Integer to Text, as it leads to sloppy programming putting numeric values into text and not noticing. I always cast, even if there's autocasting available. The other way around it's even trickier: if automatically casting text to integer, what do you want to happen if the text doesn't contain an integer value? Assign the default value (0), or an generate an Exception? And what do you want to happen when the program encounters something like myInt + myText? Convert integer to text and the result is a string, or convert text to integer and the result is an integer? Autocasting everything to everything becomes messy very quickly, and I'm glad what you suggest is not possible!

[Forums] How to create a clientside Action that makes a rest call in mobile app?

$
0
0

Kilian Hekhuis wrote:

That said, I think it's pretty nonsensical to not want to connect to the OutSystems server, but assume everything else is up. Leo, what exactly is your usecase for this?

I totally agree with you, nevertheless, there are, for instance, scenarios where invoking REST services on the server side may incur in a hefty extra network latency penalty (Device->OutSystems Server->REST Server->OutSystems Server->Device), in which case direct REST calls from a device (Device->REST Server->Device) might be a better option.

@Leo, the scenario described above doesn't make much sense... if the application is "offline(Completely )" then it cannot make any REST calls. Can you better explain what is your intention?

[Forums] Charts Mobile onClick

$
0
0

Kilian Hekhuis wrote:

Hi Aart,

Nice catch. Unfortunately, the ChartsMobile component is a bit of a mess in places (I've ran into various serious problems in the past). I think the only way to "work around" the bug is to patch the JavaScript.

Hey Kilian,


I worked around it now by setting the data type as text and adding unix datetimestamps to the labels. I translate the Unix datetimestamp in the label formatter. This way I control how the data is displayed and saved. I do hope Outsystems will improve the ChartsMobile component in the future.


[Forums] What if we want the scroll option on top of the table like it has at bottom?

$
0
0

Oh man...

I even didn't noticed that I provided the wrong link (Ctrl+C  Ctrl+V problem).

Here is the link I intended to put is this one: http://aburt.com/topscrollbar/

I also did a small example here, adapting to use jQuery: https://eduardojauch.outsystemscloud.com/ScrollBarTopAndBottom/Home.aspx?_ts=636391644021802422

The OML is attached.

NOTICE: I forgot to mention before, this only works if you fix the width of both internal DIVs, or if you put the same content inside both div's. I used a jQuery approach, so, when the document is ready, I set the width of the inner div (fake) with the width of the real inner div.

Cheers,
Eduardo Jauch

[Forums] Error "Binary"

$
0
0

Bom dia,

Eu tenho um programa que usa BPM, e as vezes da-me o seguinte erro:



Alguém poderia me ajudar?

[Forums] What if we want the scroll option on top of the table like it has at bottom?

$
0
0

Eduardo Jauch wrote:

Oh man...

I even didn't noticed that I provided the wrong link (Ctrl+C  Ctrl+V problem).

Here is the link I intended to put is this one: http://aburt.com/topscrollbar/

I also did a small example here, adapting to use jQuery: https://eduardojauch.outsystemscloud.com/ScrollBarTopAndBottom/Home.aspx?_ts=636391644021802422

The OML is attached.

NOTICE: I forgot to mention before, this only works if you fix the width of both internal DIVs, or if you put the same content inside both div's. I used a jQuery approach, so, when the document is ready, I set the width of the inner div (fake) with the width of the real inner div.

Cheers,
Eduardo Jauch

Thank you Eduardo Jauch,

I will implement this solution in my project.. 

Thanks for your support...




[Forums] Multi-Tenant Site Properties not available in Service Center

$
0
0

Hi Ricardo,

This is the kind of topic I like, because a simple question can lead to a nice discussion. :)

Yes, here we also use Single Tenant modules in Multi-Tenant applications. The documentations is misleading there.
And yes, here we also use Single Tenant User Provider modules to isolate applications. But in our case, those applications are not Multi-Tenant. 

In your scenario, Norris_UserProvider being Single Tenant seems to not have any impact, as all the Applications the customer uses are also Single Tenant (missing the Tenant tab will not have impact).

But in the case of the Chuck customer, as he is using a Multi-Tenant application (App1), using a Multi-Tenant User Provider is the way to go (in my opinion). And there is no reason to be different, as the isolation and single sign-on will still be there, because you are using different User Providers.

What I didn't understand of the scenario is why App1 is multi-tenant. You want to use this app with other future customers? 

And why the App2 is Single Tenant. Is it a back office for the customer or for the company? In any case, and here I'm speculating because I never used a single tenant module in a multi-tenant application (and didn't tested it), I think it wont matter, as the tenant is bound to the user, not the app/module, and when the user creates data in local entities, the visibility will depend on the entity tenant status (is it single tenant as in the module it is or it is marked as multi-tenant?).

Well, thanks for the discussion. :)
Multi-Tenancy is not wide spread used and I think the reason is exactly because it is not easy to fully grasp its concept. 

Cheers,
Eduardo Jauch


[Forums] ToDo Mobile App (OS Course) Error when creating new ToDo even with QuickStart Module

$
0
0

Thanks guys! thanks Jorge for the explanation. Right---- it's mandatory! 

Question: if PriorityId is Mandatory, then why isn't the platform defining the  Mandatory property of the Priority ButtonGroup as TRUE automatically, considering the Variable property is PriorityId ?

thanks! 

[Forums] What if we want the scroll option on top of the table like it has at bottom?

$
0
0

Eduardo Jauch wrote:

Oh man...

I even didn't noticed that I provided the wrong link (Ctrl+C  Ctrl+V problem).

Here is the link I intended to put is this one: http://aburt.com/topscrollbar/

I also did a small example here, adapting to use jQuery: https://eduardojauch.outsystemscloud.com/ScrollBarTopAndBottom/Home.aspx?_ts=636391644021802422

The OML is attached.

NOTICE: I forgot to mention before, this only works if you fix the width of both internal DIVs, or if you put the same content inside both div's. I used a jQuery approach, so, when the document is ready, I set the width of the inner div (fake) with the width of the real inner div.

Cheers,
Eduardo Jauch

Nice Solution !! :)


[Forums] Multi-Tenant Site Properties not available in Service Center

[Forums] What if we want the scroll option on top of the table like it has at bottom?

$
0
0

As already noticed the solution is great.


But I notice that the scrollbars have different sizes. Can that be solved?



Viewing all 1476385 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>