Showing posts with label SharePoint. Show all posts
Showing posts with label SharePoint. Show all posts

Friday, February 10, 2012

RENDER FAILED

This problem usually shows up when the view goes wrong in SharePoint 2007, this problem had shown itself on a list and when the view was modified, it worked
If you google <!-- #RENDER FAILED --> , it gives you a number of solutions but all of them describe the problem for a list in which the view needs to be changes and/or modified
I had this problem in every list and library on every site, and SharePoint was not allowing me to create anything.
Then After checking the content database, I found it had been made read-only , therefore, SharePoint cannot work without write permissions one the content DB (obviously)
after changing this everything was back to normal again.
There were no errors in any of the lists/libraries/workflows

Sunday, June 5, 2011

InfoPath for the web

There are some constraints while designing InfoPath forms for the web.
First thing is that it does not support views!
If you wanna make a readonly view, then .... not possible ...
But, you can write a rule for every element by sing the username() function to see who has logged in
like
I wanted to disable a textbox when someone login, other than the administrator (the system account)
so, put a textbox on a form , in its properties window click on the fx button

Select username function as shown above and click ok for every window.
Once you have this text box, it can be used to validate every other control on the form
Suppose I have another txtbox called field2, and I need to enable it only if system logs in then,
Double click the textbox to see its properties (for IP 2010, add a new formatting rule)
then ....


In the display tab click conditional formatting to get the window shown above
Then select field1 (or whatever you called the username textbox) then select no equal to in the second and type system in the third, then check read-only.
Click ok for every window.

After publishing this form, you can only find field2 enabled when you login with the system account.

Another thing in web enabled forms is that they don’t allow a section within a section!
That’s one great feature in InfoPath, maybe you won't require it, but what if you want to hide a datepicker that is in a repeating table?
You need to use a section and put the formatting rules in there.
Like: http://www.infopathdev.com/blogs/shiraz/archive/2006/09/08/Hide-a-Date-Picker-Control.aspx
How can you show this web?
please, tell me if you know....

Friday, May 20, 2011

Create an approval workflow In SharePoint designer

 To create a Workflow in SPD 2010 see this video http://office.microsoft.com/en-us/sharepoint-designer-help/video-create-an-approval-workflow-in-sharepoint-designer-2010-VA101897477.aspx

I used the SPD 2007 to create an approval workflow for an InfoPath form library.
It had to work by sending an email and getting the approve or reject status to a form an approver, then send emails to users, notifying them of their status
The only thing was, that the approvers had to be a list of users who would be selected from the InfoPath form .
I started off from here http://www.u2u.info/Blogs/Kevin/Lists/Posts/Post.aspx?ID=39
Thats a cool post that help to start off (and end ) . Thanks Kevin.
here's a nice post too http://cycogeek.fiesta25.com/blogs/cycogeek/page/Create-Custom-Approval-Workflow-with-SharePoint-Designer.aspx
In the step called 'user' (in the above link) I had to choose a variable from the InfoPath form. please refer to my earlier posthttp://saudkhansblog.blogspot.com/2011/05/send-mail-from-infopath.html form sending mail from InfoPath.
After gathering the approver process and other variables, namely- comments and approve
I had to send two mails at once, ie. one to the creator and a cc to the person holiday is requested for.
If it were the same person, then it should send just one email, else should send two mails .
This can be done by adding 3 else if conditions, (and the first if , so totally 4)

like :
if Holiday Approve equals Approve
and if created by equals accountID
then send one mail to created by(approved mail)
else iff Holiday Approve equals Reject
and if created by equals accountID
then send one mail to created by(reject mail)
else if Holiday Approve equals Approve
and if created by not equals accountID
then send mail to created by with cc to accountID (approve mail)
else if Holiday Approve equals Reject
and if created by not equals accountID
then send mail to created by with cc to accountID (reject mail)

not another thing when you send the mail, you send the URL form current items, dont do that
coz if the url has spaces it won't work
Use EncodedUrl instead, this will have the whole correct path to the document.
If you need any help just ask
Thanks


Sunday, May 15, 2011

send mail from InfoPath

To send mails from InfoPath ,a customized workflow should do

 see here first http://www.youtube.com/watch?v=Xe6b3zegpEU

The SharePoint designer can be used to create custom workflows, and hence send simple emails
The idea is to create a workflow that uses form library in the workflow to use at least one of its column fields (by column field I mean, one that is promoted to be shown on the SharePoint library) .

Once that is defined then use the actions in the workflow settings to send the mail.