I have a custom object in which I can add a record and it will be shown as a row.
When clicking on New a pop up shows up:
And when this record is saved it is displayed as follow:
Now my requirements are a bit different from what I have been able to achieve.
The program should do something like as shown in the image belove:
Simply when the user click add row a new row is added and the user can fill the data inline instead of having a pop-up opening.
Is it possible to achieve something similar with standard salesforce or is it completely custom?
If it is a completely custom function what is the best approach for doing something similar?
Sorry for opening an open question like this one.
Thanks for your time!
Best Answer
It has to be a custom component.
You can utilize lightning:datatable here. A very basic example here as how you can achieve this is below. You will need to go through further details on the component and how to handle different scenarios, but this should provide you a starting point.
In your component while utilizing a
datatable
, declare a button sayAdd Row
:And in the JS controller for
addRow
, have something as: