Block data container inside a block with dynamic list behavior conflict

Hello all

I have a block marked with Dynamic List Behavior (BlockList) and inside I have another block marked with as Data Container (BlockRecipes). Inside the BlockRecipes I have a text which will contain the name of the recipe. When I try to add Content Logic I missed the BlockRecipes Data Block

I try this with the container block, and then I get the block missing in the first method.

I used the first method before because it is easier than the container method for a simple list of names, so I was wondering if this functionality is intentionally deprecated or this is a bug?

Thanks

Where did you learn about Data Containers? I want to understand what they do.

Tim

Hello Tim. Check this Backendless For Developers | Backendless Backend as a Service Platform.

Under Components, the fifth video

Hello @giovanny_padilla

Looks like we really miss a Context Block for Data Container, thank you for informing. We will investigate it.

But you still could get it from left menu
image

Regards, Dima

Hello Dima,

that works, Thanks

The video you mention talks about Layout Containers. I’m asking about setting a Layout Block as a “Data Container”.

Oh, Sorry, in that case see this exemple:

I am developping an app to manage recipes

so I have this block Time with two imputs inside

imagen

one for preparation time and the other for the cooking time but both values are inside an object that I call “time”. In the database I save this in a json column

imagen
imagen

so I set the block Time as a Data Container and I asing to him the property time from my object recipe

imagen

and for the inputs inside I set the value logic as the preparation property from the Time Data Model

imagen

So, in short you can asing any object to a data container.

I hope this help you. I am not an expert so I apologise if I’m not precise.

Regards

That very helpful and interesting. Thank you for taking the time to describe it to me.

What made you put the times into a json column instead of a related “time” table, or three unique time columns in the recipes table?

What advantages is there to lumping then together as json?

Tim

In my opinion Order and Flexibility

Also the json object can be very large and complex and I prefer have the infomeation related in one object.

I did not chose to have it in other table, because it seems to me more dificult work with relations between tables.

But the data container you can use it also for data you get from other services, and normaly that comes as json objects. I use, for exemple, the API for the USDA food data center.

Giovanny

1 Like

Thanks again, @giovanny_padilla. I’ve never worked with json objects in the db, this is making me re-think some of my ideas.

Tim