Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
nirav_bhimani
Partner - Specialist
Partner - Specialist

How to show the listbox selected image in the textbox object ?

HI everyone,

If I want to show the listbox selected image in the textbox object then how it is possible?

I have use below code in Edit script.

For Each vImage in FileList('D:\Image\R\*.jpg')

          Let zLabel = SubField(SubField(vImage, '\', -1), '.', 1);

          Images:

          LOAD '$(zLabel)' As DmCd,

                   '$(vImage)' As ImageName

          Autogenerate 1;

  Next

I am writing the following code in text object but it doesnot work.

=if(count(distinct [ImageName]) = 1, info(ImageName), 'Please Select an Image to View')

Here ImageName is absolute path of that image. So please help me for the same.

I have attached the file. So please have a look on that.

Thanks & Regards,

Nirav Bhimani

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You need to do an info load to create an info table. So all you probably need is to add is another load statement:

Info:

INFO LOAD

    DmCd,

    ImageName as info   

RESIDENT Images;


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

try info(DmCD) instead of info(ImageName)


talk is cheap, supply exceeds demand
nirav_bhimani
Partner - Specialist
Partner - Specialist
Author

Hi Gysbert Wassenaar,

I tried that earlier, but its not working with that. According to me that code will work with bundle load which I didnt use in my code.

Gysbert_Wassenaar

You need to do an info load to create an info table. So all you probably need is to add is another load statement:

Info:

INFO LOAD

    DmCd,

    ImageName as info   

RESIDENT Images;


talk is cheap, supply exceeds demand
nirav_bhimani
Partner - Specialist
Partner - Specialist
Author

Hi Gysbert Wassenaar,


Thanks for your help now its working.