4 Replies Latest reply: Nov 9, 2012 2:57 AM by Nirav Bhimani RSS

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

    Nirav Bhimani

      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