Wednesday, December 18, 2013

Feringghi Garden Restaurant, Penang - Christmas Decorations

There are some seriously awesome decorations this year! Let the photos do all of the talking.
  LED reindeers.

 Back entrance.


Thursday, December 12, 2013

Christmas decorations at Queensbay Mall Penang

As we countdown to Christmas here is another random post on Chrismas decorations :P

It's a candy wonderland this year.

Even the trees are full of lollipops.

Wednesday, December 11, 2013

SharePoint DataView web parts: Displaying Items within folders

You have created a Data View webpart which displays items in your document library.
But hold on.... why are items only appearing at the root folder level? All items in subfolders are missing?

Well, either you could use SharePoint designer to change the scope. Personally I would not recommend using this approach as SharePoint Designer is known to corrupt pages with data view web parts once you hit the save button.

Or you could go down to the lowest level, e.g. export out your webpart and altering the code, and then re-upload and add it as a new webpart.
All you need to do is to add one more attribute to the Data Source properties.

Open the .webpart file you downloaded in plain text.
Locate the property called DataSourcesString.
Here you will see the CAML query to retrieve data from your document library.
Locate the sharepoint:SPDataSource node within the property.
It should look similar to this:
<sharepoint:SPDataSource runat="server" DataSourceMode="List" SelectCommand="THE CAML QUERY" UpdateCommand="" InsertCommand="" DeleteCommand="" UseInternalName="True" UseServerDataFormat="True" Scope="Recursive" ID="dataformwebpart3">...some other stuff here...
</sharepoint:SPDataSource>

Add in the highlighted text. Now all items in folders, or at root level will appear in the same flat view.
Related Posts Plugin for WordPress, Blogger...