Friday, 15 July 2016

Cascading Dropdown

Step 1: Create the list of states and cities by creating a custom list. Let’s call it States and in addition to the default column called, "Title", let’s add City as a new text column. Then let’s populate the list with some States and Cities. Below is a screen shot that illustrates the new list. If you are following along, for your convenience I have included an Excel file with some States and Cities:
2011-03-23-BrowserBasedInfopath-02.png
Step 2: So now that you have created the States list, let’s create a new list in which we will give the user a set of cascading drop-down lists. Go ahead and create a custom list and call it List of Accounts, or anything you like. Once you have created the list, you will see that you can launch the InfoPath designer by clicking on the "Customize Form" icon depicted in the screenshot below (marked with a 2 in hand written red ink)
2011-03-23-BrowserBasedInfopath-03.png
Step 3: Once InfoPath designer launches, add a Receive connection to the States SharePoint list.
  1. Click on Manage Data Connections…
  2. Click on Add..
  3. Click on Receive data then on Next
  4. Click on SharePoint Library or list then on Next
  5. Provide the URL of States List then on Next
  6. Pick the States list then on Next
  7. Check off Title and City the click on Next
  8. Then keep going with Next, until you get to Finish.
Click on Manage Data Connections…
2011-03-23-BrowserBasedInfopath-04.png
Click on Add..
2011-03-23-BrowserBasedInfopath-05.png
Click on Receive data
2011-03-23-BrowserBasedInfopath-06.png
Click on SharePoint Library or list
2011-03-23-BrowserBasedInfopath-07.png
Provide the URL of States List
2011-03-23-BrowserBasedInfopath-08.png
Pick the States list
2011-03-23-BrowserBasedInfopath-09.png
Check off Title and City
2011-03-23-BrowserBasedInfopath-10.png
Then keep going with Next, until you get to Finish
2011-03-23-BrowserBasedInfopath-11.png
Now that you have the connection we will create two drop-down lists that leverage this connection.
Step 4: Create two drop-down lists boxes and call the first one State and the other one City. By default InfoPath will call them field 1 and field 2. I renamed them to State and City.
2011-03-23-BrowserBasedInfopath-12.png
NOTE: When you add the drop down list boxes, InfoPath will ask you whether you want to add the choices manually or whether you want to look them up in a list. Pick the Manual Choices. We will set these lists up in a moment.
Step 5: In step 6 we will ensure that the City drop-down lists will work in concert with the State drop-down. In this step we will make sure that the State drop-down gets the list of States.
Right click on the States drop-down, then click on the Drop-Down List Box Properties
2011-03-23-BrowserBasedInfopath-13.png
On the next dialog, make sure your choices look like the ones I have highlighted below. Note that I have checked off the “Show only entries with unique display names.”
2011-03-23-BrowserBasedInfopath-14.png
At this point you can preview the form in InfoPath and see that the first list box is fully operational:
2011-03-23-BrowserBasedInfopath-15.png
Step 6: We are now ready to setup the City drop-down. Bring up the properties dialog for the City drop-down.
2011-03-23-BrowserBasedInfopath-16.png
We will need to make a few adjustments.
Step 6a) For the List Box choices, pick Get choices from an external data source.
Step 6b) For the Data Source, pick States.
Step 6c) Click on the xPath (2011-03-23-BrowserBasedInfopath-17.png) icon to the right of Entries.
Step 6d) Open the dataFields folder and select the item in the folder. Then click on Filter Data…
2011-03-23-BrowserBasedInfopath-18.png
Step 6e) Click on Add
2011-03-23-BrowserBasedInfopath-19.png
Step 6f) make sure Title is selected on the left, then “is equal to”, then pull down the drop-down on the right
2011-03-23-BrowserBasedInfopath-20.png
Step 6g) Pick Select a field or group…
2011-03-23-BrowserBasedInfopath-21.png
Step 6h) On the top, change the drop down from States (Secondary) to Main
2011-03-23-BrowserBasedInfopath-22.png
2011-03-23-BrowserBasedInfopath-23.png
Step 6i) Pick State
2011-03-23-BrowserBasedInfopath-24.png
Click OK, until you are back at the beginning. Now you can preview the form and it works almost perfectly!
2011-03-23-BrowserBasedInfopath-25.png
There is one tiny issue! The city drop down does not clear itself. Therefore if you pick another state, the old city will stay the same as the one you had picked in the earlier pick of the city.
2011-03-23-BrowserBasedInfopath-26.png
We must add a rule to clear the City. This leads us to step 7
Step 7a) Select the City drop-down, and click on the Mange Rules icon in the Home Ribbon
2011-03-23-BrowserBasedInfopath-27.png
Step 7b) Click on the New on the right side
2011-03-23-BrowserBasedInfopath-28.png
Step 7c) Pick Action
2011-03-23-BrowserBasedInfopath-29.png
Step 7d) Click on Set a field’s value
2011-03-23-BrowserBasedInfopath-30.png
Step 7e) Set a field’s value, and then pick City for the field. Leave the Value blank.
2011-03-23-BrowserBasedInfopath-31.png
2011-03-23-BrowserBasedInfopath-32.png
2011-03-23-BrowserBasedInfopath-33.png
Hit OK , and you are done!
You should now have a fully functioning cascading drop-down set of lists.

Monday, 11 July 2016

Cannot Edit Webpart Properties

Dear Frnds,

I ran into a weird issue while working with SharePoint 2013 today.  I wasn’t able to edit the web part properties of any web parts on wiki pages.  When highlighting a web part in Edit mode, the Web Part Properties box was greyed out, and also there was no checkbox in the upper right corner of the web part to select, only a minimize button.  I was also logged in as the admin so I knew it wasn’t a permissions issue.



A colleague mentioned that it might be a browser issue.  I checked and I was using Internet Explorer 11.  I tried the site in Chrome and everything worked fine, I could update my web part properties no problem.
Enabling compatibility mode in IE might fix the issue as well.  I do seem to recall some other issues with SharePoint using IE11.  Have you run across any?  Please share in the comments.

Thursday, 16 June 2016

No item exists at ...... It may have been deleted or renamed by another user.

Symptom:
The Url in the mail triggered by the workflow, is giving an error, when user tries to access the same.
it use to give the following error
 

Cause:
I was using the saved template to create multiple list, and i had added multiple workflows on this list and did not republished my form, which did not publish some component to my workflows.
Resolution
 Republishing my Info path Form for the list, solved the issue.