Related List Drawer (B) on Related List Table (A) with A and B same object but different record types

  • 1
  • Question
  • Updated 3 years ago
  • Answered
So I am creating a recipe page with recipe steps on which the ingredients are linked
So:
Recipe
     Recipe Steps
            Ingredients

Recipe Steps and Recipe are the same object but possess different record types.
I followed the Skuid tutorial on related list drawers and it looks fine at first but when I open the drawer, there are no ingredients in the table and when I try and create a new row nothing appears even though it says I have to fill things in to save...

Any help would be appreciated.
Photo of Segolene Nicoloff

Segolene Nicoloff

  • 488 Points 250 badge 2x thumb
  • confused

Posted 3 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
How are recipe steps linked to recipes since they are in the same object? Do you have a look up field?
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
You could try adding context to your table. While in the drawer, click on the table. One of the settings options will be "Context". You should be able to set it so that the Row Id = Recipe ID
Photo of Segolene Nicoloff

Segolene Nicoloff

  • 488 Points 250 badge 2x thumb
that was already done...thanks for your help Raymond otherwise!
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
As I mentioned before, I'vw had trouble with drawer in drawer that a I couldn't figure out. Maybe if you post your page XML someone will be able to spot the issue.
Photo of Segolene Nicoloff

Segolene Nicoloff

  • 488 Points 250 badge 2x thumb
Do you know how I can get the page xml?
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
The very bottom right hand corner of the page builder you will see a little link for "View Page XML"
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Um.  Everything Raymond is pointing out is covered in the tutorial.  All those processes should work in grandchild drawers..

http://help.skuid.com/m/supercharge-your-ui/l/269735-add-nested-rows-to-your-table-with-drawers

Go back and doublecheck... 
Photo of Segolene Nicoloff

Segolene Nicoloff

  • 488 Points 250 badge 2x thumb
...um i wouldn't ask for help if I hadn't triple checked every step of the way against the tutorial already...
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Burn... :)
Photo of Segolene Nicoloff

Segolene Nicoloff

  • 488 Points 250 badge 2x thumb
sorry if that was a bit blunt, but I wouldn't post something, especially as a new user if I hadn't checked, double checked and triple checked against possible tutorials as well as trolling through all the conversations I could find on the community forum. 
Photo of Segolene Nicoloff

Segolene Nicoloff

  • 488 Points 250 badge 2x thumb
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
Hello Segolene -

Displaying grandchildren inside of a drawer inside of a drawer is definitely possible (I'm doing this currently) so no worries there.

It's difficult to get the entire picture of your situation without more details and unfortunately, while Raymond is right that sharing the XML might provide some insight, it's difficult to isolate with just the XML (that said, if you can share, it would be helpful).

I completely agree with you that this appears to be a context and/or condition related issue, just a matter of finding out which one and where now :)

Couple of thoughts:

1) Make sure that in your RecipeIngredientJunction model, you are including Receipe__c & Receipe__r.RecordType.DevelopmentName fields
2) This one is a long shot but .... The name of your condition "Receipe__r.Id" is a little odd and to be honest, I'm not sure what skuid will do with that name.  Try renaming the condition to RecipeId in the model and in your action sequence.  It might be possible that Skuid gets "hung up" when it finds condition names that contains periods, etc.
3) I know you mention this above, but make sure all of the individual components in the drawer (table, field editor, etc.) have their Context Set to "WHERE Receipe__c equals the Id of the row in Context

If none of the above work, if you can post your XML, I'd be happy to take a look.

Keep us posted!
(Edited)