I have an application where I need to scroll to a specific item in the list for mobile optimization reasons. I tried to follow a similar forum but could not get it working. Here is what I have so far:
Hi Matthew Vines,
Understand the requirement but I have question like when you want to scroll down Onclick or On after fetch to last record, because scroll can be done on events but if want to visit at last record that also possible.
Thank you,
Shubham
Hey Matt
I have never used this UI Widget Earlier but looks you have some issues with Element ID. Can you share the minimal OML to look into this?
Or have you tried this component?
https://www.outsystems.com/forge/component-overview/4315/scroll-to
The widget is not the issue, it is the JavaScript. All the context needed to create an oml is in the images. If it helps, the logic happens in the on after fetch of the list data.
Hello @Matthew Vines,
he's just saying cannot reading style properties of null.
I think you are not using a class selector. it should be
$parameters.WidgetId= document.getElementsByClassName(".list-item-custom")[$parameters.Index].id;
Hope this will help you.
Thanks & Regards
Navneet Sharma