A weird issue of rendering tags I incorrectly was observed while working with xslt with SharePoint 2010 ootb rss viewer webpart.
The xslt sample is
Although the xslt rendered complete content into italic format.
After arealising and searching on net we figured out that thsee tags when rendered as variable gave expected behavior.
The charged xslt looks like
Hope this helps for someone facing similar issues.
Monday, November 5, 2012
Thursday, February 9, 2012
How to avoid checkout and check-in clicks with simple custom button
For one of the clients, we wanted to simplify the process of updating document properties on the document library with Requires Checkout enabled.
The process of checkout, then edit and again check in was little annoying for the end users. The solution developed was having Data view web-part with link button to edit form with check in button.
The first milestone: Get Checkout alert and open edit link
It was done using the js method STSNavigateWithCheckoutAlert. The syntax can be observed using IE developer tool. Please refer this link (Open document in Edit mode) for more insights on different js methods on document name context menu.
The second milestone was to check-in item on saving item in edit form. This was achieved by getting check in button as we get on document upload page with a small trick of having query string as &Mode=Upload. Please refer this link for checkin button on edit form
And the finally the javascript looks like
onclick="STSNavigateWithCheckoutAlert('http://mysite/mylist/Forms/EditForm.aspx?ID=' + {@ID} + '&Mode=Upload', 1,0, 'http://mysite/mylist/' + '{@FileLeafRef}', 'http://mysite’)"
The process of checkout, then edit and again check in was little annoying for the end users. The solution developed was having Data view web-part with link button to edit form with check in button.
The first milestone: Get Checkout alert and open edit link
It was done using the js method STSNavigateWithCheckoutAlert. The syntax can be observed using IE developer tool. Please refer this link (Open document in Edit mode) for more insights on different js methods on document name context menu.
The second milestone was to check-in item on saving item in edit form. This was achieved by getting check in button as we get on document upload page with a small trick of having query string as &Mode=Upload. Please refer this link for checkin button on edit form
And the finally the javascript looks like
onclick="STSNavigateWithCheckoutAlert('http://mysite/mylist/Forms/EditForm.aspx?ID=' + {@ID} + '&Mode=Upload', 1,0, 'http://mysite/mylist/' + '{@FileLeafRef}', 'http://mysite’)"
Saturday, January 14, 2012
SharePoint designer workflow activity: Set content approval status
SharePoint 2007 provides document library with a content approval mechanism, useful for document versioning, approval before publishing content publically. Although lacks in assigning task and sending notifications to approvers. Also defining alerts on the custom views using Approval Status column is not possible here.
The simple alternative was to build a SharePoint Designer workflow. One of the activity needed was to change one of the custom properties and set the Approval status to “Pending” after collection data on completion of task from approver.
And the action activities flow used was
1. Check out current item
2. Set custom properties fields with variables
3. Check in current item with comments
4. Set content approval status to Pending
Although all steps are logically correct, workflow yielded in Error.
After googling for some time, came to forum link providing solution. After adding a delay of 1 minute it started working fine.
New activities flow is
1. Check out current item
2. Set custom properties fields with variables
3. Check in current item with comments
4. Pause for duration 1 minute
5. Set content approval status to Pending
The simple alternative was to build a SharePoint Designer workflow. One of the activity needed was to change one of the custom properties and set the Approval status to “Pending” after collection data on completion of task from approver.
And the action activities flow used was
1. Check out current item
2. Set custom properties fields with variables
3. Check in current item with comments
4. Set content approval status to Pending
Although all steps are logically correct, workflow yielded in Error.
After googling for some time, came to forum link providing solution. After adding a delay of 1 minute it started working fine.
New activities flow is
1. Check out current item
2. Set custom properties fields with variables
3. Check in current item with comments
4. Pause for duration 1 minute
5. Set content approval status to Pending
Workaround: Refinement panel stops working when setting Fixed Keyword Query
Recently when working with SharePoint 2010 Search results customization, I experienced weird behavior “Refinement panel stops working when setting Fixed Keyword Query”.
We had customized refinement panel to display custom metadata columns into search results by adding Custom Filters and wanted to display only documents as results. To filter only documents into search result, Fixed keyword Query isDocument:1 and Cross-Web part ID changed to Query2. And refinement panel stopped working.
After playing around with different options, I figured out that, placing static filter IsDocument:1 into Append Text to Query instead of Fixed keyword query option solved the problem.
Checkpoint for using Fixed Keyword Query:
[If you configure a fixed keyword query, you must change the default Cross-Web Part Query ID setting in the Results Query Options node of this Web Part from the default setting of User Query to another query ID on the list, such as Query 2. If you do not change this value, the filter in the Fixed Keyword Query setting is not added to the search query.]
Reference: http://technet.microsoft.com/en-us/library/gg549987.aspx
We had customized refinement panel to display custom metadata columns into search results by adding Custom Filters and wanted to display only documents as results. To filter only documents into search result, Fixed keyword Query isDocument:1 and Cross-Web part ID changed to Query2. And refinement panel stopped working.
After playing around with different options, I figured out that, placing static filter IsDocument:1 into Append Text to Query instead of Fixed keyword query option solved the problem.
Checkpoint for using Fixed Keyword Query:
[If you configure a fixed keyword query, you must change the default Cross-Web Part Query ID setting in the Results Query Options node of this Web Part from the default setting of User Query to another query ID on the list, such as Query 2. If you do not change this value, the filter in the Fixed Keyword Query setting is not added to the search query.]
Reference: http://technet.microsoft.com/en-us/library/gg549987.aspx
Wednesday, January 4, 2012
SharePoint 2007 and SharePoint 2010 configuration limitations
It had been a very long time writing any blog. I was very busy with the critical project delivery. Now as have some free time, thought will start blogging again in this New Year. Wishing you all a very Happy New Year!!!
Recently I was working on new project based on SharePoint 2007 and we had used most of the OOTB features to implement a collaboration portal for client. While implementing the solution, I rediscovered (being involved in custom solutions most of the time, we tend to never face these issue) few SharePoint 2007 limitations for OOTB configurations on lists and libraries. And later tried same configurations on SharePoint 2010 and concluded that these limitations do persist with newer version of SharePoint (2010).
Things that are not changed in SharePoint 2010 and have same limitations as SharePoint 2007 are:
1. Cannot define Default value for Lookup columns
2. Cannot define list/library view with Grouped by column of Allow Multiple Selection enabled.
3. Cannot set alerts on the custom view for filtering records based on document approval status column.
4. Calculated column has restriction of nested if count as 6/ 1024 characters whichever encounters first.
Recently I was working on new project based on SharePoint 2007 and we had used most of the OOTB features to implement a collaboration portal for client. While implementing the solution, I rediscovered (being involved in custom solutions most of the time, we tend to never face these issue) few SharePoint 2007 limitations for OOTB configurations on lists and libraries. And later tried same configurations on SharePoint 2010 and concluded that these limitations do persist with newer version of SharePoint (2010).
Things that are not changed in SharePoint 2010 and have same limitations as SharePoint 2007 are:
1. Cannot define Default value for Lookup columns
2. Cannot define list/library view with Grouped by column of Allow Multiple Selection enabled.
3. Cannot set alerts on the custom view for filtering records based on document approval status column.
4. Calculated column has restriction of nested if count as 6/ 1024 characters whichever encounters first.
Subscribe to:
Posts (Atom)