Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display selected item from search object in a label

Hello every1[:)]

Can some1 please tell me how can i Display selected item from search object in a label.

Please help...[^o)]

2 Replies
Not applicable
Author

Hi,

You could use the follow sentence:

=GetFieldSelections(FieldName)

I hope this help you.

Best regards.

Not applicable
Author

use GetFieldSelections(FieldName) or macro

you could use the follow sentence:

=GetFieldSelections(FieldName)

marco:

function getselectfield
     dim s
     dim mySelections

     set mySelections=ActiveDocument.Fields("目的国").GetselectedValues  '获得字段选择的值,然后付给变量s
     if mySelections.Count<>0 then
        s=s&mySelections.item(0).text
     for i=1 to mySelections.Count-1
        s=s&","&mySelections.item(i).text
      next
    end if
   
     set mytext = ActiveDocument.GetSheetObject("SO05")  '给搜索框里面的文本赋值
         prop = mytext.GetProperties
        
            prop.SearchFieldText.v = s
               
         mytext.SetProperties prop 
        
End function

in the search object properties-->text in search filed 。

in the local is work well,but server is not work.