---
title: "Comment by Sandeep on \"Popup LOV custom template\" | Hashnode"
description: "Hey Louis, This is great. I have another requirement where in i want to restrict the query in the shared component LOV at run time. For example there is an item"
url: "https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237"
---

[Discussion](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274)

Comment [Popup LOV custom template](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274)

[Sandeep](https://hashnode.com/@sandeep06)

[Jul 18, 2023](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237)

Hey Louis, This is great. I have another requirement where in i want to restrict the query in the shared component LOV at run time. For example there is an item :p100\_Customer

my shared component LOV is SELECT order\_number, shipment\_date, shipped\_qty FROM table;

When my LOV is parsed i want to restrict it like below SELECT order\_number, shipment\_date, shipped\_qty FROM table WHERE customer = :p100\_customer;

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Jul 20, 2023](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237#reply-64b8dee7949854cfb93f9867)

Hi [Sandeep](https://hashnode.com/@sandeep06),

Thank you for the comment, I am glad you like it!

You can use the bind variable in your shared LOV but don't forget to pass the item value in your page under Cascading List of Values attributes.

[Sandeep](https://hashnode.com/@sandeep06)

[Jul 20, 2023](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237#reply-64b938e7af9957de87410c2c)

[Louis Moreaux](https://hashnode.com/@lmoreaux) Thanks so much for the reply. I have tried this already, I was unable to see any cascading LOV attributes but still i went ahead and updated it, it did not work

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Jul 20, 2023](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237#reply-64b93a16a884f3de56a26925)

[Sandeep](https://hashnode.com/@sandeep06) You should do what is explained in this video [youtu.be/80GCL9lm4ZE](https://youtu.be/80GCL9lm4ZE)

[Sandeep](https://hashnode.com/@sandeep06)

[Jul 20, 2023](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237#reply-64b952c9a884f3de56a26c5c)

Great.. [Louis Moreaux](https://hashnode.com/@lmoreaux) Thanks so much. that helps

If you don't mind can i ask one more help, Iam trying to bring the interactive grid records (in a popup modal) to lines table. User will be selecting records with check boxes in the popup. If you have done any videos in the past please help with the reference.

[Sandeep](https://hashnode.com/@sandeep06)

[Jul 21, 2023](https://hashnode.com/posts/popup-lov-custom-template/616d5c72441bd36daa958274/comment/64b7170af9bd04bf67800237#reply-64ba03649574a8e2c70c68f9)

[Louis Moreaux](https://hashnode.com/@lmoreaux) Hey Louis, There is a concern here, Actually i am not using the shared component LOV from the page item. The shared component LOV is on one of the columns in interactive grid at the lines level and i am unable to pass the value from the header level which is needed to restrict the LOV.
