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

[Forums] Padding numbers for Custom Serial Number

$
0
0

Hi,


To achieve that, you need to first set the starting value to some place. 


I.e. in database, or in function, or in site properties etc..  

Once you have that, you can custom logic to generate your particular next serial number. 

Now you need to again save that number so that you can get it next time when you will again increment it with one and use it. And this cycle continues each time you create new serial number. 


Please check attached OML file which is generating exactly same thing which you required. 


It will generate something like this.

Regards,

Palak Patel


[Forums] New EncryptPassword is using salt, any way to validate current password?

$
0
0

Oh, sorry about that. Kind of my fault and it was a followup of this thread.


The change only affects personal cloud environments and removes the legacy hashing melhod from being used on new/modified passwords to increase the security on the personals.


This configuration was not supported in enterprise environments and this breaking change (of not being possible to compare password hashes) was already listed on the breaking changes document for version 9.1, so it was not included again in the breaking changes and side effects document for 11.


Regards,

João Rosado

[Forums] Outsystems automatically do uppercase to particular text in advanced query

$
0
0

Hi Hui,

SQL Server is, by default, case insensitive

Thanks!

[Forums] Where to post for Outsystems skills for remote contract work?

[Forums] Padding numbers for Custom Serial Number

$
0
0

Hi qwerty,

You can do one thing create your own user Action and generate this number based on your logic and assign it to that record or other way is First create the record after creating that record use the output id and append custom serial number into it and call Update entity action to update that record. Because same i did for one of my project.




-Hitesh

[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

Calvin Adi wrote:

when I tried to assign the attribute Id, I only got nullidentifier() as a suggestions.


Yes, you don't even need that assign and if condition. Please check my previous reply. You just need a CreateOrUpdate and assign source as GetUsers.Response.Data.Current

[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

One more thing Calvin,

By looking into your logic I think that you don't even need assign variable and if condition.

Just use like below and assign GetUsers.Response.Data.Current in Source of CreateOrUpdatedataUsers directly. You don't need a separate variable. It will automatically check if user is there in database or not. If not it will insert directly.

[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

Palak Patel wrote:

Yes Calvin,

Its wrong. Because in database if you want to update a record, you must provide ID. Then only it will update the record.
For your case, you have used CreateOrUpdate function. In this function, If you will not provide ID it will take it as NullIdentifier() and it will simply create a new row. 


when I tried to assign the attribute Id, I only got nullidentifier() as a suggestions.


[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

Yes Calvin,

Its wrong. Because in database if you want to update a record, you must provide ID. Then only it will update the record.
For your case, you have used CreateOrUpdate function. In this function, If you will not provide ID it will take it as NullIdentifier() and it will simply create a new row. 

[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

Palak Patel wrote:

Hi Calvin,


Yes the issue is in your Preparation.

You will not have any value in dataUsers when you are going inside the tampungUsers method. 

So you can not check dataUsers.First_name=GetUsers.Re... Because it will simply give you false and your data will be inseted again and again on Preparation. 

Also check whether you are passing uniqueID in CreateOrUpdate method, as if the ID is different or 0 it will simply create new DataRow everytime.

Regards,

Palak

Im not assigning attribute Id because Im using auto number , is it wrong?

[Forums] Outsystems 11 Integration Studio issue

$
0
0

Hi Andrè,


The version of Integration Studio is 11.0.109.0 and the platform is 11.0.108.0 this is a personal environment.


Best Regards, 

John van Schaik

ADA ICT 

[Forums] Where to post for Outsystems skills for remote contract work?

[Forums] How To Execute Stored Procedures

$
0
0

I am opening a new tread for this.

[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

Palak Patel wrote:

Calvin Adi wrote:

what should I do to the attribute Id

You are not getting UserId from your web service?  In your GetUsers.Response.Data.Current?

If not, you should not compare and use directly from the web service.
Instead, check everytime whether it is available in your database or not.
Using an aggregate, check user with the same first_name and last_name exists or not.
If not, then only insert inside your database table. 


the datatype for Id from the API is longinteger and because I change the Id to identifier, it need identifier datatype. LongIntegerToIdentifier(Id) looks correct I think, but it makes my data can't be updated or changed.


[Forums] Tip: performance of query in OutSystems Platform slower than running in database

$
0
0

This will convert the original query into (almost) the equivalent execute, you then just need to edit the params at the end and you're good to go :-)

SELECT CONCAT('EXEC SP_EXECUTESQL
N''',
REPLACE(SUBSTRING(t, CHARINDEX('SELECT',t),LEN(t)),'''',''''''),
''',
N''',
SUBSTRING(t, 2, CHARINDEX('SELECT',t)-3),
''',
',
REPLACE(REPLACE(REPLACE(REPLACE(SUBSTRING(t, 2, CHARINDEX('SELECT',t)-3),' int','=0'),' nvarchar','='''''),' datetime','=''1900-01-01 00:00:00'''),',',',
')
) FROM
(SELECT [st].[text] AS t
FROM sys.dm_exec_cached_plans cp
CROSS APPLY sys.dm_exec_sql_text ( cp.plan_handle ) st
CROSS APPLY sys.dm_exec_query_plan ( cp.plan_handle ) qp
where st.text not like '%do not remove this comment%'
 
/* add your search condition below */
and st.text like '%SEARCH%'
/* add your search condition above */
) p


[Forums] Can't see preparation in screen action of a web block

$
0
0

Hi,

I created a web block and added a preparation and a screen action to it. Now when I'm trying to access preparation(list returned by using aggregate) in my web block, I'm not able to do so. Preparation folder is not present in the scope o of my screen action. But When I'm using Webscreen in place of web block I can access preparation. Any solution?

[Forums] Outsystems automatically do uppercase to particular text in advanced query

$
0
0

Hi,

Looks like its confusing that with part of the string with an attribute name due to the [ ] characters.

How are you passing that value? Written directly on the query or with an expand inline?

Would be nice if you submitted that as an issue via Submit Feedback (or Support channels) if you didn't already.

As a fix/workaround for it, if you pass that as a normal text parameter (similar to your quotation id) it should work fine.

Don't understand why 3 of your parameters look hardcoded/expanded. Is it really like that or is it the Test Query output that make them look like that?


Regards,

João Rosado

[Forums] How to compare two lists

$
0
0

Hi, I'm making a mobile app. I would like to compare two lists with identical structure, with one particular list having all of the records and more than the other one, and somehow obtain a new list with the additional records that the smaller list does not have. How might I go about doing that, without using any forge component?

[Forums] Customized Export To Excel

$
0
0

It is possible to do this with the Advanced Excel component. The component does expose functions to select specific rows-cell combinations. If you apply the correct logic, you should be able to build a generic action to achieve this. 

I have built something similar but will need to anonymize it before I can share it.

[Forums] everytime I'm doing open browser, my data got duplicate

$
0
0

Calvin Adi wrote:

what should I do to the attribute Id

You are not getting UserId from your web service?  In your GetUsers.Response.Data.Current?

If not, you should not compare and use directly from the web service.
Instead, check everytime whether it is available in your database or not.
Using an aggregate, check user with the same first_name and last_name exists or not.
If not, then only insert inside your database table. 


Viewing all 1476385 articles
Browse latest View live


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