justinmind-logo
 
Upvote 1

Filling data from Data Masters to page element

Solved Green Zhukovsky 5 years ago

Hello,

I have a question regarding data driven development.


I understand how to add new records to Data Masters, how to edit and how to display them in Data Grids. My question is - may I generate custom-looking lists from Data Masters? For example, if I want to create a notification list made of material-style cards and generate their content from Data Master (like {from: string, text: string, seen: boolean}) - how can I achieve that?


I get it that iterating over Data Masters may be too complex, but at least may I somehow relate static elements to certain Data Master values? I saw the Data Field property which can be set for input fields, but could not make a use of it, is it related maybe?


Thank you in advance,

Gregory

Best Answer
photo

You can definitely do this, creating those notifications out of data grids/data lists. Check out this video to learn how: https://youtu.be/oqUQWAzYzvA?t=47 and let me know if you have any questions.

Replies (1)
photo
2

You can definitely do this, creating those notifications out of data grids/data lists. Check out this video to learn how: https://youtu.be/oqUQWAzYzvA?t=47 and let me know if you have any questions.

photo
1

Hi Danielle,

Works like a charm, thank you! One more question regarding it: when I create events on the Data Grid element, can I refer to the current record - change the value of one of the fields on click, for example?


Real life example - Data Grid with notifications, where one of the fields is boolean "isSeen" - which I want to become true onclick event of a notification.

Is it possible?

photo
2

Yes, using a variable, and following a similar process to this example: https://www.justinmind.com/support/editing-data-list-records/

You won't need to use the input fields, rather, just use the Data Master Action-modify event and set the boolean to 'true'.

photo
1

Looks promising, but it's sooooooooo confusing that the article does not fit the screenshots and images :( just makes it really non-understable at some point...especially at the step 7

photo
2

Thanks for letting us know - we'll work on updating this tutorial to be more clear.

photo
1

Correcting the tutorial is good, I'm going to need it in near future. However, for my case I found that I just can add a parameter that I need to change onClick to the Grid Cell and hide it - and just change its value onClick, that would work just fine.


Please, don't close this as Solved until the tutorial is upgraded; I'll need it in near future.

photo
1

@Danielle, any update?

photo
1

Not yet - we're working on updating several tutorials right now. It should be done the next few weeks.

photo
1

Actually, that one was more of a quick fix than we thought. It's updated now.

photo
Leave a Comment
 
Attach a file