Cartlanna míosúla: Iúil 2010

SP 2010 CQWP, Leabharlanna Doiciméad agus Úsáideoirí Anonymous

Nuashonrú tábhachtach: Waldek Mastykarz has posted a workaround here: http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/.
</deireadh nuashonrú>

An tseachtain seo, my team and I were upgrading a customer’s public internet site from MOSS to SP 2010. The MOSS site uses the CQWP in several places.

Chuaigh muid trí nós imeachta an-mhionsonraithe chun cruinneas a chinntiú, quality and all that good stuff. Despite that, we ran into a problem in the 11th hour that we didn’t expect or uncover until very late. Go sonrach, our CQWP wouldn’t render for anonymous users. It rendered find for the authors (Bhí logáilte atá i), ach ní bheadh ​​sé a thaispeáint ar an ábhar le haghaidh úsáideoirí gan ainm.

Rinne muid a lán de taighde agus iad seo na paraiméadair agus na gníomhartha thóg muid chun isolate an iompar:

  • Bheadh ​​CQWP a sholáthar fíneáil nuair a bhí sé ag tarraingt ábhar ó liosta saincheaptha.
  • Bheadh ​​CQWP gcóir chun ábhar ón leabharlann / Leathanaigh.
  • Ní bheadh ​​sé a fhágáil ábhar ó / SiteCollectionImages
  • We created a new document library and uploaded a few docs to it. We did not add any content types to the library – this was a simple out of the box doc lib with no customization. Existing CQWP could not read from it.
  • We created a new page and added a CQWP to it using all default values. it would not render for anonymous.
  • Táimid (beagán hastily) ar bun SP nua 2010 timpeallacht, díreach amach as an bhosca arís agus arís leis an iompar sin.

Bottom line, it appears that CQWP in SP2010 can’t render content for anonymous users when the data source is a document library. Can this be true?

Is é seo an earráid a chonaic muid sa logs:

Teideal Cuid Gréasáin: Ábhar Iarratas Gréasáin Cuid 653d91fb-2f83-4e6a-83af-1f39e8939f0a
07/30/2010 12:03:56.90 w3wp.exe (0x0F30) 0x1540 SharePoint Foundation Web Parts 89a1 High Error while executing web part: System.NullReferenceException: Cuspóir tagartha nach leagtar ar shampla de rud. at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb gréasáin, DataRow chéile, Teaghrán strDefaultItemOpen, Boolean fSetDocIcon, Boole fSetOnClick, Teaghrán fileRefColumnRef, Teaghrán progIdColumnRef, Teaghrán fsobjTypeColumnRef, Teaghrán permMaskColumnRef) at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.PreProcessForDocumentIconAndOnClickAttribute() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.AddContentQueryData() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(Teaghrán viewPath) at Microsoft.SharePoint.WebPartPages.DataFormWebPart…. 653d91fb-2f83-4e6a-83ú-1f39e8939f0a

It just seems kind of impossible that CQWP wouldn’t work for anonymous users. If you know any more about this, le do thoil post a comment.

</deireadh>

Liostáil le mo bhlag.

Lean mé ar Twitter ag http://www.twitter.com/pagalvin

Tóg Rialú do OK agus Cealaigh Buttons

Scríobh mé airteagal seo ar ais agus, ach tá sé cosúil nach raibh mé nasc a chur air ó mo bhlag ag an am, mar sin téann anseo:

image

Cur síos ar an tAirteagal seo conas chun bhfeidhm newform.aspx a atreorú chuig leathanach amháin nuair a cad a tharlaíonn nuair an t-úsáideoir OK agus ar leathanach eile nuair a cad a tharlaíonn nuair sí ar ceal.

</deireadh>

Liostáil le mo bhlag.

Lean mé ar Twitter ag http://www.twitter.com/pagalvin

Cruthaigh, Nuashonraigh agus Scrios Patrúin le SPD Sreabhadh Oibre

Scríobh mé le déanaí alt do na daoine go maith ag ShaerPointBriefing.com ar phatrún ginearálta le haghaidh chur i bhfeidhm CRUD i Dearthóir SharePoint.  Seo a teaser:

image

Alt iomlán anseo:  http://sharepointbriefing.com/features/article.php/3889486/Create-Update-Delete-Patterns-with-SharePoint-Designer-Workflow.htm

Seiceáil sé amach!

</deireadh>

Liostáil le mo bhlag.

Lean mé ar Twitter ag http://www.twitter.com/pagalvin