Question

How to populate some selected global code values in a drop down fields in web client

  • 21 November 2021
  • 3 replies
  • 74 views

Userlevel 3
Badge +5

Dear All,

 

I need to populate some specific selected global code values in a drop down fields in web client.  

Lets say in Global code I have code values like

Code_Value1,

Code_Value2,

Code_Value3,

Code_Value4

 

Some time I need to display  Code_Value1, Code_Value2  and some time Code_Value2, Code_Value3,Code_Value4. 

 

Can anybody help me on this to achieve the same. 

In Mobile there is a populatelistQuery  function . Same Functionality we need to achieve in Web client. 

 

Thanks & Regards

Rajat


3 replies

Userlevel 4
Badge +7

Hi @TatRajatM ,

Good day to you!

You could achieve this by configuring a custom screen when Lookup XML for the drop down field is correctly specified. Follow the below steps. For an example, I have taken ‘Task’ screen.

1. Go to UI Designer in Smart client & open ‘Task’ screen

  1. Click on the dropdown field you wish to configure
  2. On the top left corner of the screen, edit the lookup XML as per your need
    1. Select the correct Primary table & click on Add Data Constraints.
    2. Specify the column, constraint & value
      1. Save the screen & ‘Refresh cache(full).
      2. Assign the screen to a Role & then the Role to the person record
      3. Relogin & see for the desired values to popup in the dropdown field

        ​​​​​​​Hope this helps. Thank you very much! :)
Badge +1

Hi @Charith Fernando, Hi @TatRajatM,

 

I had a similar requirement so i set up my custom screen. It seems that it works well in smart client but, in web client, my drop-down fields doesn’t take into account the data constraints..

 

It’s working for you @TatRajatM ?

 

Best regards,

Userlevel 4
Badge +8

Dear All,

 

I need to populate some specific selected global code values in a drop down fields in web client.  

Lets say in Global code I have code values like

Code_Value1,

Code_Value2,

Code_Value3,

Code_Value4

 

Some time I need to display  Code_Value1, Code_Value2  and some time Code_Value2, Code_Value3,Code_Value4. 

 

Can anybody help me on this to achieve the same. 

In Mobile there is a populatelistQuery  function . Same Functionality we need to achieve in Web client. 

 

Thanks & Regards

Rajat

Hi @TatRajatM 

Please see if below conversation helps you. I have given an example client script to filter a dropdown.

/Sanjeewa

Reply