Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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;
try info(DmCD) instead of info(ImageName)
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.
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;
Hi Gysbert Wassenaar,
Thanks for your help now its working.