Hi,
I need to display/edit data that is organized as a record that contains sub records. The outer record is display only, the records contained in the sub array (metafields, see below) need to be editable.
Below is an example record for reference. From a usability perspective, it would be ideal if the editable records are in a ListGrid.
Is there a way to use grouping to display the outer record, with the metafield records in the grid?
I would greatly appreciate any guidance on the correct way to implement this.
Data Record:
I need to display/edit data that is organized as a record that contains sub records. The outer record is display only, the records contained in the sub array (metafields, see below) need to be editable.
Below is an example record for reference. From a usability perspective, it would be ideal if the editable records are in a ListGrid.
Is there a way to use grouping to display the outer record, with the metafield records in the grid?
I would greatly appreciate any guidance on the correct way to implement this.
Data Record:
Code:
{ id: 1757289480226, src: "https://cdn.shopify.com/s/files/1/0049/8358/6850/products/bpa-cereal-soup-bowl-light-blue.png?v=1552283008", title: "BPA Free Cereal / Soup Bowl - Lt. Blue", vid: 16207020490786, vTitle: "Default Title", sku: "HRBOWL_LTBLUE", metaFields: [ { id: 4727600054306, namespace: "case_size_selector", key: "Super-Wholesale", value: 1, value_type: "integer", description: null, owner_id: 4983586850, created_at: "2019-04-12T17:12:09-04:00", updated_at: "2019-04-12T17:12:09-04:00", owner_resource: "shop", admin_graphql_api_id: "gid://shopify/Metafield/4727600054306" }, { id: 4727580753954, namespace: "case_size_selector", key: "VIP", value: 1, value_type: "integer", description: null, owner_id: 4983586850, created_at: "2019-04-12T17:09:44-04:00", updated_at: "2019-04-12T17:09:44-04:00", owner_resource: "shop", admin_graphql_api_id: "gid://shopify/Metafield/4727580753954" }, { id: 4722759073826, namespace: "case_size_selector", key: "Wholesale", value: 1, value_type: "integer", description: null, owner_id: 4983586850, created_at: "2019-04-12T02:17:29-04:00", updated_at: "2019-04-12T02:17:29-04:00", owner_resource: "shop", admin_graphql_api_id: "gid://shopify/Metafield/4722759073826" } ] },
Comment