DataTables - Add new record from a Master List

DataTables - Add new record from a Master List

NTT Dev NTT Dev Posts: 2Questions: 0Answers: 0
edited November 20 in Free community support

Hello,
I am looking to see if the following feature is available in Data Tables. I would like to be able to when adding a new item, have the user select from a predefined list of standards or a master list of items. Once selected either a single item or multiple items from the master list, those items would be added to the table.

Look forward to any suggestions or feature that might make this possible.

Replies

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    I'm not clear on how you want this to work and what your solution is.

    Are you using Editor?

    Are these select inputs one of the fields in the table or are they outside the table?

    Does this Editor example do what you want? Maybe one of these Editor Embeded Datatable examples will do what you want.

    Are you updating the client side table only? Without Editor you can use row.add().

    Or are you wanting to update the backend data source?

    Please provide more details. You should be able to do what you want. Datatables/Editor might not have built in features for what you are trying to accomplish but some custom coding should allow you to do what you want.

    Kevin

  • NTT Dev NTT Dev Posts: 2Questions: 0Answers: 0
    edited November 21

    Thanks Kevin for the response.

    I will look more in into the Embeded Datatable option.

    My goal is to have a master table which would consist of standard configured selection. (each configuration would be one row in table but multiple column, no selection changes in the row itself).
    I am using editor and wanted to be able to when adding new row, be able to choose one of the rows from the master list, and all columns aligned data would copy over. I see how this can be done with a single dropdown and embeded tables. I was looking to see if it had been done with a complete row from a table not one column at a time.

    So when new is selected , I would need to be able to see all the rows in the master list, not a dropdown by column to be more specific.

    Thanks again and i will research this suggestion in more detail.

    Greg

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    Maybe dependent() would work along with the embedded Datatable. Possibly you can set the fields to default values based on the row selected in the embedded Datatablle.

    Perhaps using create() and populating the fields using field().set() based on the row selected in another Datatable containing the master list.

    Kevin

Sign In or Register to comment.