32
Views
6
Comments
Solved
When reload browzer, the data registered in duplicate
Application Type
Traditional Web

Hi, All

I am new to Outsystems.
please help me.

When you enter your name and birthday in the form, the data will be registered in the table below.

When I press the refresh button on my browser, the same data registered again.

How can I implement it to prevent this?


Regards,

Asami


2025-04-17 05-42-16
Ajit Kurane
Solution

Hello Asami,

Have a great weekend!!

Please find the below oml file to resolve your issue.

I hope this helps you out.

Regards,

Ajit kurane.

forumquestion.oml
UserImage.jpg
asami uchida

Hi Ajit

Thank you for your reply and thank you for sending me the file.

I modified module while looking at your file.

I was setting the data type of the input parameter to an entity instead of a static entity.

Why is this not good for entities?

I would be happy if you could tell me.

Regards,

Asami

2025-04-17 05-42-16
Ajit Kurane

If I understand your query well then I would like to tell you that we use static entity to store only static records that can't be changed at run time.

2020-09-01 10-42-42
Stefano Valente
Solution

Having looked at your oml, i would recommend to take some online courses.


The thing is that you are trying to have a list and a detail record in 1 screen i would not recommend that.

- Your form.valid check if connectors are wrong (true/false)

Your inputparameter is always empty, so it has no purpose.

And you do a listremove in your delete action, where you should only need to refreshdata.

2020-09-01 10-42-42
Stefano Valente

Hi Asami, 

Welcome to the community!


Let me start with  a tip for when you ask the community for help:

always, when possible, add the oap file of your project so we can see where you went wrong. If that is not possible, you need to post screenshots of all relevant code. In this case the Save button and the preparation.



UserImage.jpg
asami uchida

Hi Stefano

Thank you for your replay and thank you for letting me know.

I attached oml file.

After trying various things, only one data can be registered.

Where I went wrong?

Regards,
Asami



mytest.oml
2020-09-01 10-42-42
Stefano Valente
Solution

Having looked at your oml, i would recommend to take some online courses.


The thing is that you are trying to have a list and a detail record in 1 screen i would not recommend that.

- Your form.valid check if connectors are wrong (true/false)

Your inputparameter is always empty, so it has no purpose.

And you do a listremove in your delete action, where you should only need to refreshdata.

2025-04-17 05-42-16
Ajit Kurane
Solution

Hello Asami,

Have a great weekend!!

Please find the below oml file to resolve your issue.

I hope this helps you out.

Regards,

Ajit kurane.

forumquestion.oml
UserImage.jpg
asami uchida

Hi Ajit

Thank you for your reply and thank you for sending me the file.

I modified module while looking at your file.

I was setting the data type of the input parameter to an entity instead of a static entity.

Why is this not good for entities?

I would be happy if you could tell me.

Regards,

Asami

2025-04-17 05-42-16
Ajit Kurane

If I understand your query well then I would like to tell you that we use static entity to store only static records that can't be changed at run time.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.