Filter a Lookup field rendered as a picklist - 4.0.4. - Forum - Rollbase - Progress Community

Filter a Lookup field rendered as a picklist - 4.0.4.

 Forum

Filter a Lookup field rendered as a picklist - 4.0.4.

This question is not answered

Hello,

I have a lookup field that has been rendered as a picklist. I have in the past used the rbf_setViewSelector function to set the appropriate view that filters the values based on a filter of a lookup field. However could someone point me in the right direction as to how I can set a view for a lookup that has been rendered as a picklist please?

Cheers.

Iram

All Replies
  • Picklist_ViewSetting.png

    Hi Iram,

    As per documentation, rbf_setViewSelector is not applicable for lookup field which is rendered as picklist.

    Doc Info: "This function sets the view ID used by a lookup field for both auto-complete and pop-up selectors.

    Important: This function cannot be used on dependent lookups. This function only apply for "Selector" style lookup fields."

    But, we have a way to set a view for lookup field of type picklist.

    > Go to design this page.

    > Open properties of lookup field.

    > Select the view that you want and save it.

    > Now the picklist will show the records which are part of that view only.

    Hope this helps.

    Find attached screen shot.

    Thanks and Regards,

    Chandu.

  • Hello Chandu,

    Many thanks for your reply.

    Cheers.

    Iram