323
Views
4
Comments
Solved
How to insert data into database from button
Question

Hello guys i have this web application, and i need which the user can write in the fields and insert the data to the datatable, how i do?

2022-07-12 16-41-57
Pedro Costa
Solution

Hi Francisco, how are you ?


Do this short training, and you will learn how to create entities and create records

https://www.outsystems.com/learn/courses/123/modeling-data/?LearningPathId=18


Then I can suggest some improvements in your code, for example, instead of having several local variables, you can have a single local variable of type "Record" of your entity that you created or will create


Thanks !


Edit 1.
See the gif below how to create a screen with recording operation with a few clicks


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Francisco,

Not sure if I understand your question right, are you asking how to known the current logged in User?

You can use the buildin function GetUserId() for that.

Regards,

Daniel

2022-09-10 22-09-09
Francisco Brito

Daniël Kuhlmann wrote:

Hi Francisco,

Not sure if I understand your question right, are you asking how to known the current logged in User?

You can use the buildin function GetUserId() for that.

Regards,

Daniel

 I resolved, one more thing i need to insert data to database with button, how i do? 

 

2022-07-12 16-41-57
Pedro Costa
Solution

Hi Francisco, how are you ?


Do this short training, and you will learn how to create entities and create records

https://www.outsystems.com/learn/courses/123/modeling-data/?LearningPathId=18


Then I can suggest some improvements in your code, for example, instead of having several local variables, you can have a single local variable of type "Record" of your entity that you created or will create


Thanks !


Edit 1.
See the gif below how to create a screen with recording operation with a few clicks


2020-11-23 05-30-56
Angel Saxena

Hi Francisco, 

Can you please share the oml?


Thanks

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