Skip to main content

I have a requirement where I want to create records of Quoted Solution for each of the picklist value selected in the multiselect picklist field of Quotes. Both of them are Ui Only models. The records get created successfully but when I save changes in both the models, additional rows get created in the Quotes model. If I select two picklist values, two rows get created, if I select one value, one row gets created


I think the issue is with the way I have configured Deck, not able to figure out the correct approach.


Refer to the screenshot below:



The first component is the Table where the user will input Quote. Once ‘Save Quote’ is clicked Quoted Solutions records are created based on the selected picklist values and both Quote and Quoted Solution model is saved.


The second is the Deck which has a Table within it. My Deck is on Quote and the table inside the Deck is on Quoted Solution.


Please note that in order to link Quoted Solution records to Quote, I am populating the Quote Number of the related Quote on the Quoted Solution records and I use that as context condition.


Any hints would be helpful 🙂

It looks like something about your save action is creating a row on your quote model every time a row on your quote solution model is saved. So on page load one blank quote record is automatically created. You enter info in it and when you hit save, two quote solutions are created and two quote records are created in the model. Could be in your action sequence, or a in a model action on the quote solutions model.


@Skuidward_Tentacles Thank you so much, that is exactly what was happening. But I also noticed that the Form within a Deck displays only one card even if two Quoted Solutions were created.


Refer to the screenshot below:



The first is the Table within a Deck, the second is the Form within a Deck. Table shows correct records, it has two because two picklist values were selected in the related Quote. Both Table and Form use the same context condition, but only one card is visible with the Form component. I have observed similar behavior at other places also. Am I doing something wrong here?


You may need a nested deck. The table component is designed to display multiple records. The form component is designed to display 1.

A deck is really a jazzy table component, so put a deck on your quote solutions model inside your existing deck on your quote model. Then put your form inside the nested deck.


@Skuidward_Tentacles That worked, thanks a lot 🙂


Sure thing! Glad I could help.


Reply