Editing/adding conditional script in a nested detail table

Hi - I have successfully created a (nested) dynamic table using the wizard. I think it is working good. I actually have three levels. On the third level I want to add some text. For example - my data looks like this - 0.6400

I would like to add text so that it looks like this - Net Expense Ratio: 0.6400. I added a conditional script and it works fine. However, I have another field I need to add a conditional script to - same row different cell. I need it to say - 'Restricted trading policy of ’ {data}. I added this and it does now work. I am getting a blank cell. I disabled the condition and the data shows up. I have double checked the script and the identifier. It is identical to the one that works.

Does anyone have an idea why one script would work but a second would not?

Thank you

How about sharing both scripts and DOM?

I figured this out. I found the documentation to help me out with adding text to the table. It now works as it should without adding the scripts.

Thanks you

Out of curiosity, how did you solve things?

I would prob solve this by adding the β€œNet Expense Ratio:” text to the cell, subsequently wrap the placeholder in a span and add the data-field attribute to that span element. This would not require a script.

<tbody>
    <tr data-repeat="detail">
        <td>Net Expense Ratio: <span data-field="ratio">@ratio@</span></td>
    </tr>
</tbody>

This approach also allows you to add multiple data values to a single field.

1 Like