|
cubido > Blogs > Posts > Workaround für die Picture Preview in Forms Services gerendeten Infopathformularen
|
| Das Picture Control lässt sich ja bekanntlich nicht für Forms Server gerenderte Formulare verwenden, jedoch das Rich Text Control. In RichTextControls ist es mit dem HTML bekannten IMG TAG möglich Bilder einzubinden (siehe Code Snippet) und live anzuzeigen (siehe Screenshot):
Voraussetzung ist jedoch, dass das gewünschte Bild mittels URL zugreifbar ist. Demnach ist es notwendig, für neu hinzugefügte Bilder bzw. gelöschte Bilder ein Event bzw. einen Workflow (am besten) beim Speichern aufzurufen, der die etwaigen Bilder in eine eigene Sharepointlibrary exportiert bzw. dort löscht. Im Infopathformular selbst, kann man mittels einer optional wiederholbaren Sektion die Bilderpreviews anzeigen.
|
Compliance Details javascript:commonShowModalDialog('{SiteUrl}/_layouts/itemexpiration.aspx?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/hold.aspx?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/Reporting.aspx?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/expirationconfig.aspx?ID={ItemId}&List={ListId}'); return false;}}, null); return false; 0x0 0x1 ContentType 0x01 898 |
|
Compliance Details javascript:commonShowModalDialog('{SiteUrl}/_layouts/itemexpiration.aspx?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/hold.aspx?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/Reporting.aspx?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/expirationconfig.aspx?ID={ItemId}&List={ListId}'); return false;}}, null); return false; 0x0 0x1 ContentType 0x01 898 |
|
|
|
|