question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Iholder master-detail type of data

See original GitHub issue

Edit to the original:

If I split things up in different item types / viewholders its easy to display, but i wonder how I could show and handle it as one single entity later. e.g. If possible I would like to have 1 cardview type of presentation whet the main alarm info is visible with all its alarms conditions. when i select the alarm it should visually select the whole cardview (although the items are currenctly managed in better viewholders in conjunction with Iholder. Any ideas to make this happen?

---- original

Hi, is was wondering if there was a “native” way of supporting Parent-child type of data directly via the IHolder interface or do we need to split up the data in the correct type before we feed it to the adapter, in order for every item to get its correct type etc.

Small example: IHolder<Alarm> with Alarm holding general data as well as a List<AlarmConditions> of which Alarmconditions could be different types.

Thanks for your library and efforts.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jcuyperscommented, Feb 1, 2018

Ok going over everything and re-reading I see your point. I will try to implement. Thank you.

0reactions
davideascommented, Feb 1, 2018

No. documentation and demoApp are clears: 1 layout 1 item type.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Model & Relationships (Lookups and Master-Detail)
Have you wondered about the differences between between Lookup Vs Master - Detail while designing a data model especially which one to pick....
Read more >
Object Relationships Overview - Salesforce Help
Let's review the types of relationships. Master-detail: Closely links objects together such that the master record controls certain behaviors of the detail and ......
Read more >
Salesforce - Master Detail Relationship - Tutorialspoint
The Master Detail relationship is used when we want to control the display of detail records based on the value in the master...
Read more >
Most efficient way to retrieve master/detail (nested) data
I have a typical master/detail relationship in a MS SQL Server ... FOR XML PATH('Detail'), TYPE) FROM MasterTable FOR XML PATH('Master').
Read more >
What Is Master Detail Relationship In Salesforce? - MindMajix
If the master table is deleted then the child record data is also deleted. ... Step1: Choose Field Type (Master Detail Relationship) >>...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found