I created a table with a RG listing many items and subtables for each item.
Once a RG cell item is clicked, the subtable appears and shows the sub-items.
Once on the subtable, one can add a subitem with a popup according to its own item but I am having difficulties with sending the item data to the subtable and the popup, hence when I create a new thing from the popup, it stores all the fields except the item of the subitem (course in this case).
I saw the vimeo video of @keith which uses RepeatingGroup DataType listof:Item #RepeatingGroupCustomstate as the data source but unfortunately I canât make it work.
I have assumptions of how things are setup, which may be wrong, butâŚ
The repeating group (Main RG) is of type Course.
The nested repeating group (sub-items) is of some other type that is in your database structure related to the Course datatype. DB structure should have a data type of Course and another data type of âSub-ItemââŚthen the Course data type should have a data field that is a list of âSub-Itemsâ and your âSub-Itemâ data type will have a data field of type Course.
The Nested repeating group is of type âSub-Itemsâ and the datasource is 'Current Cellâs Course List of Sub-Items.
The Popup should be of type Course with no datasource.
Workflow when the current cellâs Sub Item is clicked will open the popup in step 1 and in step 2 display data in the popup and it should be âCurrent Cellâs Sub-Itemâs Courseâ.
When you save it make sure to update the popups Course List of Sub-Items and create the Sub-Item and set the Course data field to the popups Course.
I agree but regarding 3/ and 5/ popup opening is done through clicking on a button within a second group element where the second RG is.
I canât find a current cellâs course list in this second group data source, even though I display the data of the current cellâs item to the second group element and to the popup.
That would be because your database structure is probably not set up as I explained I believe it should be. Maybe making the database structure the same as I outlined, you would get that relation and then have the ability to get the data through the dynamic expression.
Send screen shots of the repeating group set up you have on the page, showing the datasource and data type of the main repeating group as well as the nested repeating group you are trying to click from.
When you create the reusable element it should be a group and set the content type to courseâŚthen the repeating group will have type lesson and set source to parent groups courseâs list of lessonsâŚwhen you put that into the repeating group that is of type course with datasource of search for course, you will set the data source of the reusable element to be current cells course.
I thought I had to use URL parameters for showing the list of subitems when clicking on an item. Thatâs why I didnât go that way so thank you for that!
On the other hand, I donât know how to show the nested RG when one item of the RG is clicked.
I donât see any videos or something about nested RG and information about it seems scarce.