Thursday, February 24, 2011

Sharepoint 2010 Secrets

Q: как добавить ссылку на быстрое создание документа в библиотеке основанной на формах InfoPath
A: добавить web part "Content editor" и в него ввести html код наподобие (правильный код нужный вам можно посмотреть в коде страницы библиотеки)


<img alt="" src="/_layouts/images/NewInvest.jpg" />&nbsp; <a href="javascript:CoreInvoke('createNewDocumentWithRedirect2',event,'http:\u002f\u002f'+ window.location.hostname +'\u002fInvestitionsantrag\u002fForms\u002ftemplate.xsn', 'http:\u002f\u002f'+ window.location.hostname +'\u002fInvestitionsantrag', 'SharePoint.OpenXmlDocuments.3', false, 'http:\u002f\u002f'+ window.location.hostname +'\u002f_layouts\u002fFormServer.aspx?XsnLocation=http:\u002f\u002f'+ window.location.hostname +'\u002fInvestitionsantrag\u002fForms\u002ftemplate.xsn', false, 1);">Neuer Investantrag</a>

No comments: