Dear All,
I am new here and try to learning this awesome platform and its very interesting. So in my learning I am creating a app using Reactive Web Developer and stuck at data insertion in entity in which few data coming from local variable I mean input field and another on I am getting after a SQL query in the form of structure entity list. So using in built CRUD operation how I insert both the entries in the database. Hope you understand my query.
TIA
Hy Arshad,
You can create a local Variable of the type record from the entity you want. Then before send this variable to your CRUD action, you can assign this local variable record with all the parameters you want.
https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Use_Structures_and_Records_to_Create_Compound_Data_Types
I am using a form and a save button at the end, And in the form there are 8 input fields along with 2 dropdowns. Before the save data I am getting two dropdown field's data from SQL using Entity Structure and don't want to take input (From Both Dropdown). So I need 6 fields from user input and using that input fields SQL will give an specific result for the same and that fetched data along with input data I want to insert into Database and wanted to show at table. Hope you understand my query.
Hi Arshad,
In your CRUD operation entities, you are required to provide parameter for the variable of that entity type.
If you don't have a same variable, you can click on small + icon next to the input parameter. That will expand all the attributes of that entity, where you can provide individual values for each attribute of that property.
Alternatively, you can create a local variable of the entity type, assign each property using the assignment operator, then use the variable as input parameter into the entity's CRUD operation actions.