Trying to save report entitie's 1st and 2nd column on 1st block.Trying to save report entitie's 3rd column on 3rd block.It should create 1 record not 2 different records (Creating 1st record having Information 1&5, creating 2nd record having Information 13)Thanks.
Hi @Arshad N ,
I’m not sure how your UI flow is set up, maybe you could share your OML or a screenshot. In any case, if you’re working with two blocks, you’ll need to pass the Id of the report created in the first block to the second one through an input parameter. Then, in the second block, use the Update or CreateOrUpdate event of that entity to save Information13.
On 1st block I am saving list of records. not single record. is my DB structure correct?I want to display list of records coming from 2 tables
At 1st block I am saving 2 cols of 3 rows in 1st TableAt 2nd Block saving 1colm of 3 rows in 2nd Table
Could you clarify where the save logic actually runs? Your screenshots show the reports table screen, but not the action that performs the save. If possible, please share the OM, for a small sample OML that reproduces the issue, so we can inspect the exact flow.
Hi @Arshad N,1. You can save the record in the 1st block using Create / CreateOrUpdate CRUD operations of the entity. And it will return the Id of the newly created Record.2. Then, you can pass the returned Id as an input parameter to the next blocks for updating the same Record using Update / CreateOrUpdate CRUD operations of the entities (pass the input parameter value to the CRUD operation for mapping the same record created in the first save).If this is not the scenario that you are looking for, please elaborate on the scenario.Thanks
I have steps to fill information document. after filling 1st section and saved then only 2nd step will display then 3rd and so on.I am saving list of records at both the blocks. how to map Ids?
On this, I suggest you add the SubDocInfo1Id & SubDocInfo2Id attributes in the Report table instead of adding the Information1, 5, and 13 attributes. Through this, you can map each Report record with the SubDoc table also(as you are having the SubDocId in both SubDocInfo1 & SubDocInfo2 tables. And I don't think you need MainDocId in the SubDocInfo1 & SubDocInfo2 tables because you have that in your SubDoc table.)For implementing the Save & Update actions in different blocks, we need more information on how you are planning to do it. Thanks