locked
How to display image in LightSwitch HTML app RRS feed

  • Question

  • 1. I have a created a Sharepoint list "Profile Picture".

    2. Also created a Picture Library "Profile Picture Library".

    3. In SharePoint list "Profile Picture" created one "ProPicture" Column and as a 'Source' copied 'Picture' link from "Profile Picture Library" and paste into  column source.

    4. Now, on html screen named as "Home" i added "Profile Picture" SharePoint list as a data-source.

    What i want is. that image should get rendered on Screen in image control, but it is not getting displayed.

    How could i solve that issue?

    Tuesday, July 30, 2013 6:22 AM

Answers

  • using firebug, 

    i observed that, for image placeholder, src="" is used two times with same location. As i delete one source it shows me the image.

    <img class="msls-image-inner" alt="Invalid image URL." src="https://abc.sharepoint.com/Profile%20Picture/_w/Prasanna%20Belsare_jpg.jpg, https://abc.sharepoint.com/Profile%20Picture/_w/Prasanna%20Belsare_jpg.jpg" style="min-height: 12px; min-width: 12px;">


    Tuesday, July 30, 2013 8:30 AM

All replies

  • Hi,

    Can you investigate the non-displaying image placeholder to confirm that it is the correct URL. There are some security issues regarding SharePoint online and the differing URL stems.

    Get back with the details and we can see where to go from there.

    Cheers

    Dave


    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

    Tuesday, July 30, 2013 7:38 AM
  • using firebug, 

    i observed that, for image placeholder, src="" is used two times with same location. As i delete one source it shows me the image.

    <img class="msls-image-inner" alt="Invalid image URL." src="https://abc.sharepoint.com/Profile%20Picture/_w/Prasanna%20Belsare_jpg.jpg, https://abc.sharepoint.com/Profile%20Picture/_w/Prasanna%20Belsare_jpg.jpg" style="min-height: 12px; min-width: 12px;">


    Tuesday, July 30, 2013 8:30 AM
  • How were you able to delete the other source? I find I'm having the same issue but I'm having trouble resolving it...
    Sunday, April 20, 2014 7:03 AM