139
Views
4
Comments
Solved
Dynamic adding content & scroll automic on specific content when user click from list
Question
Application Type
Reactive

Hi All,

Having one issue not able to find solution please help me out.

1. I have a list screen where 1-n records shows.

2. user can click on particular row and navigate to another list with detail screen.

3. when user click on specific row that row belogns to one master record and and this master record many record which not specific .

4. when user nevigate to list detail screen need to scroll on specific content .

here problem is that when user redirect list show and using block for show detail of submaster record so i can not pass the ID of widget to scroll to element .


Thanks in advance

Piya.

2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi Piya,

You can try this -

1. Pass the masterRecord ID and SubMasterRecordID to navigation screen as input parameter.

2. when you fetch record from aggregate or SQL and bind it with list.

3. create a one class on listItemContent or div where you are used block like below image-

class will be unique like something "Div_"+SubMasterRecordID 


4. From the block return an event and pass the SubMasterRecordID.

5. Add event on screen for handle return event.

6. on this handler add condition the return event SubMasterRecordID   and input SubMasterRecordID  are equal then use javascript widget for fetch the id by class name which you bind on above image. 

7. it will return a ID of this particular block or SubMasterRecordID  HTMl element and pass this ID to scroll to element.


Hope this will help you.

Regards

Rahul

2020-10-10 16-14-30
Piya Singh

will try and update the status here 

2018-06-05 16-54-03
Maria da Graça Peixoto

Hi! 

What information you have about the sub-master record the list should scroll to ? 

You need to use that info to identify the record in the list so you have to pass it to the block

Hope this give you some ideas. 

Graça

2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi Piya,

You can try this -

1. Pass the masterRecord ID and SubMasterRecordID to navigation screen as input parameter.

2. when you fetch record from aggregate or SQL and bind it with list.

3. create a one class on listItemContent or div where you are used block like below image-

class will be unique like something "Div_"+SubMasterRecordID 


4. From the block return an event and pass the SubMasterRecordID.

5. Add event on screen for handle return event.

6. on this handler add condition the return event SubMasterRecordID   and input SubMasterRecordID  are equal then use javascript widget for fetch the id by class name which you bind on above image. 

7. it will return a ID of this particular block or SubMasterRecordID  HTMl element and pass this ID to scroll to element.


Hope this will help you.

Regards

Rahul

2020-10-10 16-14-30
Piya Singh

will try and update the status here 

2020-10-10 16-14-30
Piya Singh

Thank you @Maria da Graça Peixoto  and @Rahul Sahu .

Perfect solution which i was looking @Rahul Sahu 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.