Block with Dynamic List behavior not working

No Luck. Here’s the new On Click Event block:
image

If the pdMyList wasn’t being updated, then the log should show only the latest entry with each button click. I think there’s an issue with the simple binding (ie: just typing pdMyList in the Dynamic Items Logic). If you look at the text component I added that has the same binding, it doesn’t include any commas, just seems to be a mashed together concatenation of the items.

What does the block that has the Dynamic List Behavior contain in it? Is it empty?

Yes, it’s empty.

Here’s the UI designer screen

Here’s one that shows that Dynamic List Behavior is checked

There is one error when I look at the Developer Tools (I’m using Edge)
image

I just tried in Chrome and got the same behavior and error.

The list is bound to pdMyList. It is a collection of strings (please correct me if I am wrong).

The UI children of the block will be repeated for every object in your list. And the UI children need to have binding on their own. And that’s where the data will be coming from to be rendered. In other words, it is not sufficient to have a data binding for the block, the block itself needs to have UI components which will render data through data binding.

With that being said, if you change the structure of the pdMyList collection to contain objects. And suppose every object has a property called dataToRender with some string value. Then the text component inside of the purple circle can have data binding for the dataToRender property. Then, you will some data on the page.

Hope this helps.

Regards,
Mark

I would assume a collection of strings too since the pdItem property in Page Data is bound the Content of the input box (which should be a string). Here is the binding of the Text object in the internal block (the one that should be repeated).

image

It shows a little differently than the one you show in the video.

As for containing objects instead of strings, I suppose I could figure that out, but I only did exactly what you did in the video. Are strings not objects?

No, you cannot bind a Dynamic List Behavior block to a collection of strings. This is for the reason that the UI children of that block would have no data binding property to reference.

OK. Maybe I missed something earlier in the video. I’ll check again.

Thanks for the quick replies, by the way - it’s really appreciated!

I just reviewed the video and you’re right, it is a list of strings, and instead of data binding, the text component is using logic. I understand what you were referring to here.

Have you confirmed that myPdList contains actual values? Also, try adding the print block in the Content Logic of the text component to print out ListBlock Item Data. You will be able to see the printed value in the browser’s Console tab.

Regards,
Mark

Hi Mark

Yes, there is data in the pdMyList property on PageData. I added a textbox with the same binding as the ListBlock. It shows the items without any delimiters. If I look at the content of the page I see that it’s listing the list of strings in the resulting tags:
image

So there is data there. It’s just not triggering the Dynamic List Behavior for some reason. Notice the <div> above is the ListBlock.

K

What is your application id and the name of the page that has the logic? I will take a look at it.

Regards,
Mark

Application ID: C4AB3C1A-465C-B2BE-FF4A-1FA2CAAB2900
Page is ‘Collections’

Thanks!

Thanks, Kirk. It looks like a regression to me. I have escalated it to the product team.

Regards,
Mark

Thanks for the quick responses Mark!

Hello @Kirk_Teeple

We have fixed the issue and currently this is passed to our QA department, once it’s verified we will release it.
The ticket’s number for reference is BKNDLSS-23144

Regards, Vlad

Hello @Kirk_Teeple

We’ve just updated cloud servers with a fix for the issue you described above. Could you kindly let us know whether fix works for you well?

Regards,
Inna