Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
nachiket_shinde
Contributor III
Contributor III

Default selection on listbox on selection in other listbox

Hello Experts,

     Suppose I load following table

   

Country Population
India20
China30
UK40
US50
India60

Now I have two list boxes 'Country' and 'Population'.

Requirement:

If I select Country 'India' then two associated values in Population should be green by default.

This should happen to all the values in Country.

How to do this?

Note: I am working on Personal edition so QVWs won't work for me.

Thanks in advance.

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Try this also..

Document Properties -> Field Event Trigger -> Add Actions ->

1. Clear Field - > Population

2. Select Possible -> Population

Capture.JPG

View solution in original post

14 Replies
Anil_Babu_Samineni

Load * Inline [

Country, Population

India, 20

China, 30

UK, 40

US, 50

India, 60

];

Create two list boxes then Select India from Country and see how associative will happen

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

You can use triggers to get this done

Select in field Trigger for Population field with the following search string

'(' & Concat(DISTINCT Chr(34) & Population & Chr(34), '|') & ')'

nachiket_shinde
Contributor III
Contributor III
Author

Hi Sunny,

   I have created the trigger but result is not as expected.

My output should look like

sunny_talwar

1) I don't see the field name you are triggering to -> Population here.

2) I think you are missing an equal sign before the expression I gave you

='(' & Concat(DISTINCT Chr(34) & Population & Chr(34), '|') & ')'

settu_periasamy
Master III
Master III

Try this also..

Document Properties -> Field Event Trigger -> Add Actions ->

1. Clear Field - > Population

2. Select Possible -> Population

Capture.JPG

nachiket_shinde
Contributor III
Contributor III
Author

Its not working

nachiket_shinde
Contributor III
Contributor III
Author

Hi Settu,

   Its not working.

sunny_talwar

Is is possible to share the qvw you are working with?

nachiket_shinde
Contributor III
Contributor III
Author

Hi Sunny,

   Please find file attached.