Dynamic Detail Table in Snippet

When I convert a dynamic detail table to a snippet and then load the snippet dynamically the table only returns the first record. Is there something I need to do differently?

To help you properly we would need to see the Template and reproduce the issue. I suggest you open a technical support call at 1-866-348-5863 or through our website.

This appears to work, where converting to a snippet does not.

  1. Create new snippet
    exampleCreateSnippet

  2. Create the detail table in the new snippet
    Example_DetailTable

  3. Drag and Drop the new snippet (as Shared Content) on to the section
    example_SharedContent

  4. Select the Article that is added and make it conditional
    Example_Article
    example_Conditional

I just created a dynamic detail table, right-clicked on the table from the Outline tab, ->snippet-> Create Shared content, and it works for me.

1 Like

Yes, it does. I didn’t notice the Create Shared Content there before.

Example_ConvertShared

It converts the HTML, saves the snippet and replaces it with an Article which can be then conditioned.

ExampleArticle

It seems that key item to remember is for a dynamic detail table in a snippet it has to be saved as Shared Content regardless of how you get it there.

Not to prove you wrong but I just tested as well adding it not as shared content, just Create….

Then I added it both as shared content and not, and they all works…If you can still reproduce your issue, you definitely should open a ticket with support so we can look into it. There might be other factors we simply don’t think of here and that I don’t have in my test.

The difference might be that I’m using a script to control what snippets are used. This is a small example, there are really over a dozen snippets.

ExampleUpdata

Did you drag and drop to create an article? If I create it as an article then Create works.

I modified the script to this so it clones the base row to create the repeats. It works with snippets that are created using Shared Content, but not ones that simply use Create.

ExampleLoop

I believe that I have a couple of working solutions.

  • Using Articles with Conditions

  • Using this Script with Shared Content snippets.

Yes…I dragged and dropped.

What is your Selector for your script and what does it apply to? I will attempt the same here with a similar script.

The selector is #here which points to a div.

exampleHere

I have reproduced the behaviour and went into the documentation to see if I could find any info on that. I didn’t. I will report the behaviour to our R&D and inform you on the result.

1 Like