X Blogs

who you gonna call?

Cascading Dropdowns in InfoPath 2010

clock December 8, 2010 20:28 by author Robi

During one of my classes I got a question hot to make cascading dropdowns in InfoPath 2010 for SharePoint 2010, so here is a Visual How to:

First, you have to make lists that will hold lookup data. I made a list called KategorjaNapake which is a category list and I made TipNapake list which is a Subcategory list. I made a reference to a category list with a lookup column.

 

SubCategory list with a reference to Category list, made with a lookup column.

Columns in subcategory list:

Create columns in main list for data. First I made a column for entering text data and the second column I made was a lookup column to a category list.

 

Here are the columns I made for a main list...

Next, we will customize a SharePoint list form with InfoPath 2010...

Insert a new line in InfoPath Form

Insert a new dropdown field...

Here, just click OK, we have to go into dropdown field properties to get more choices.

If you want to display column name in SharePoint as TipNapake you have to change it here, so change field1 to name that you want to use.

To create new data source for this field, go to properties

Choose get choices from external data source and click Add.

Pick SharePoint library or list...

Pick List that you want to connect to...

Choose fields that you want to have in your data source. It is very important here to also pick the category field.

To create a cascading dropdowns, prepare yourself for a click fest. So click on the button next to Entries.

Click Filter data

Test the form in InfoPath...

Click the Quick Publish Button...

Test your form in SharePoint List....

 

voilà



SharePoint 2010 Servicve Accounts and Windows Server 2008 R2

clock July 23, 2010 18:16 by author Robi

Yesterday, I was was installing SharePoint Server 2010 at one of our clients and after the install I was getting this errors:

User Profile Service Event ID 1511. It says that account could not log on to the computer and create a profile.

After a little bit of research, I found out that all you have to do is edit a local group policy and than run a cmd and all of these errors are gone.

So run a "gpedit.msc" on your WFE where you are getting these errors and go to Computer Configuration/Windows Settings/Security Settings/Local Policies/User Rights Assigneements and Search for Allow log on Locally

Add the account for which you are getting errors. Then, start command prompt and run a command:

 runas /user:kompas-xnet\sp_apppool cmd

 Type the password and if you go to your users folder you should see a folder with your service account name.

You can now remove Allow log on locally permission for the account. 

Voila.

 



Stop or start all SharePoint 2010 Services

clock July 3, 2010 00:37 by author Robi

During a maintainance of my computer I needed to stop all SharePoint 2010 services. So I was wondering what is the easiest way to do it. In Central Admin, you could do it an click on every service and stop it, but it takes a lot of time. So I was considering some other options and certainly decided that you could do it with a PowerShell script. So here it is:

STOP

$services=Get-SPServiceInstance
foreach ($service in $services) {stop-SPServiceInstance -Identity $service -confirm:$false}

START

$services=Get-SPServiceInstance
foreach ($service in $services) {start-SPServiceInstance -Identity $service}

 



NTK 2010 presentations and workshop

clock June 3, 2010 23:04 by author Uroš

Here are my presentations from NTK.

Zunic_SP2010DevelopmentPresentation.pdf (2,88 mb)

Zunic_SharePointDevelopmentWorkShop.pdf (8,24 mb)



SharePoint 2010 Hočete ga imeti!

clock November 26, 2009 23:35 by author Uroš

Yesterday Robi and I had a talk about new SharePoint 2010. You can find slides here.

You can try it out yoursefl by getting installer here. Also be careful to read installation instructions here.

 



About the author

Rok Bermež is Slovenian Windows Azure MVP, he works as a Software Engineer and Microsoft Certified Trainer at Kompas Xnet. His primary interests include cloud computing and web development. With extensive experience in development and architecture he participated in many projects and since the CTP release of Windows Azure much of those projects are based on Windows Azure platform. Rok has been delivering courses, writing code and speaking at conferences and community events on Microsoft technologies for the last couple of years. You can also find him on Twitter (@Rok_B).

Month List

Sign In