I have created a custom LU and one of fields requires LOV. LOV view is a standard view and I want to pass a WHERE clause. In this case, view is DISCRETE_CHARAC_VALUE and I always want to get records in LOV WHERE CHARACTERISTIC_CODE = ‘ABC’.
How can I get this done?
Appreciate your response.
Thank you.
Best answer by Kasun Balasooriya
Jur wrote:
You can use a saved search to populate a LOV. RMB in the LOV, then click ‘Properties’. There you can select a Saved Search.
This is the answer for your question. I’m attaching the screenshots for you to refer:
Once the above option is set, you should get the LOV filtered with the values for CHARACTERISTIC_CODE = ‘ABC’
Thank you very much for the reply. This is a persistent field, Reference field. Below shows the Reference page of the wizard. No SQL statements used.
Thank you.
The screenshot from the wizard is missing in your reply, but I assume you are replying to the below screen:
If you want to add a where clause to the select statement when running the query ( Can be seen when preview is pressed) as shown below, it can’t be edited.
Do you want to store this value in the database for this particular filed under the Custom LU?
Yes, I want to store value in the database under field TEST in custom LU. LOV should only show values where CHARACTERISTIC_CODE = ‘ABC’. In your screen shot above, it shows values for all characteristic codes.
Thank you Kasun. If it is the only way of achieving it, that's fine.
Could you please let me know how this will affect on user profiles? Should this to be saved into Base Profile for all the users to see only values in saved search?
Thank you Kasun. If it is the only way of achieving it, that's fine.
Could you please let me know how this will affect on user profiles? Should this to be saved into Base Profile for all the users to see only values in saved search?
Yes, the above change can to be propagated to the users by saving this to the base profiles.
Thank you Kasun. If it is the only way of achieving it, that's fine.
Could you please let me know how this will affect on user profiles? Should this to be saved into Base Profile for all the users to see only values in saved search?
Yes, the above change can to be propagated to the users by saving this to the base profiles.
@KasunBalasooriya Thank you very much for your response. Eventhough it is not ideal, saved searches work...
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.