Friday, March 23, 2012

[sharepointdiscussions] Digest Number 4416

Messages In This Digest (10 Messages)

Messages

1a.

Re: Creating sites from custom template via powershell

Posted by: "Paul Stork" pstork@att.net   pstorkoh

Thu Mar 22, 2012 5:10 am (PDT)



The problem with your code is that to apply a template to a site you have to
create it as an empty site without a template. You can only apply a
template once. So here's the code that should work for you:

#Here is my site-creation code:
$webTemplate = Get-SPWebTemplate | where { $_.Title -eq 'STS#1' }
$currentWeb = New-SPWeb `
-Url $SiteUrl `
-Name $SiteTitle `
-AddToTopNav:$true `
-UniquePermissions:$true `
-language 1033 `
-Description $SiteDescription

#Now I try to apply the template.
$currentWeb.ApplyWebTemplate('{F29E085-7F4D-444F-9AF0-981C67A3F073}#chapelsi
te')
$currentweb.update()

Paul Papanek Stork

Chief Architect . ShareSquared, Inc. . <http://www.sharesquared.com/>
http://www.ShareSquared.com

The SharePoint Solution Experts!

<https://mvp.support.microsoft.com/profile=6D05CC8D-32ED-4626-A29E-142DC7A68
0E0> SharePoint MVP, MBA, MCT, MCSE+I, MCSA, MCSD, MCDBA, MCITP, MCPD

<mailto:Paul.Stork@ShareSquared.com> Paul.Stork@ShareSquared.com .
800.445.1279 x404

blog: <http://dontpapanic.com/blog> http://dontpapanic.com/blog . twitter:
<http://twitter.com/pstork> @pstork

The information contained in this e-mail message may be privileged,
confidential, and protected from disclosure. If you are not the intended
recipient, any further disclosure or use, dissemination, distribution, or
copying of this message or any attachment is strictly prohibited. If you
think that you have received this e-mail message in error, please delete it
and notify the sender.

From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of brother.gabriel
Sent: Wednesday, March 21, 2012 5:51 PM
To: sharepointdiscussions@yahoogroups.com
Subject: [sharepointdiscussions] Re: Creating sites from custom template via
powershell

Okay, but how can I use the custom template to create the site with? I've
tried everything and am about to do all 200 sites manually.

--- In sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> , "Daniel A. Galant"
<daniel@...> wrote:
>
> You can't change the template of a site after it has been created.
>
>
>
> Daniel A. Galant | 636-448-3240
>
> MCITP - Enterprise Administrator | MCTS - SharePoint | MCTS - WSS v3 |
MCTS
> - OCS | MCSE+Messaging | MCSE+Security | MCT
>
>
>
> daniel@...
>
> Imagine what we could be... if we could just imagine.
>
>
>
> From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
> [mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of
brother.gabriel
> Sent: Wednesday, March 21, 2012 1:16 PM
> To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
> Subject: [sharepointdiscussions] Creating sites from custom template via
> powershell
>
>
>
>
>
> Salvete! I have spent three days of coding and scouring the net, trying to
> get this to work.
>
> I have to build 200 subsites based on a custom site template.
>
> From my research, I have seen that you can't use powershell to create the
> subsite initially with a custom site-template, but that you can apply the
> site-template after it is created.
>
> #Here is my site-creation code:
> $webTemplate = Get-SPWebTemplate | where { $_.Title -eq 'STS#1' }
> $currentWeb = New-SPWeb `
> -Url $SiteUrl `
> -Name $SiteTitle `
> -AddToTopNav:$true `
> -UniquePermissions:$true `
> -template $webTemplate `
> -language 1033
> -Description $SiteDescription
>
> #Now I try to apply the template.
>
$currentWeb.ApplyWebTemplate('{F29E085-7F4D-444F-9AF0-981C67A3F073}#chapelsi
> te')
> $currentweb.update()
>
> It gets hung up here - giving me this error:
> There was a problem creating the site
> https://rch.sspxusa.org/chapels/chapel5 - Exception calling
> "ApplyWebTemplate" with "1" argument(s): "File or arguments not valid for
> site template '{F29E085-7F4D
> -444F-9AF0-981C67A3F073}#chapelsite'.
> Parameter name: WebTemplate"
>
> Please help! I am supposed to have finished this project by this past
> Monday.
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

1b.

Re: Creating sites from custom template via powershell

Posted by: "Tony Yin" xinqing_yin@yahoo.com   xinqing_yin

Thu Mar 22, 2012 10:03 am (PDT)



Can you deploy the wsp to central admin? I created a site template using UI, then imported the wsp to Visual Studio, then deployed to CA. I am able to create new site collection using powershell with no problem.

[Non-text portions of this message have been removed]

2a.

Re: New Site Column Term Set Settings Shows Term Twice

Posted by: "mkhartson" mhartson@ema-inc.com   mkhartson

Thu Mar 22, 2012 3:51 pm (PDT)



This was too easy. Instead of typing in the term name, I clicked on the term group. Then I was able to see a list of my terms, and choose the one I wanted.

I had two terms that were similar: Term1 and Term1XX. When I searched for Term1, it showed twice. But if I display the list of terms, the proper list showed, and I was able to easily grab the term I wanted. Sweet.

Thanks!

--- In sharepointdiscussions@yahoogroups.com, "mkhartson" <mhartson@...> wrote:
>
> Hello. This is my first post.
>
> I have created several terms and associated term sets.
> I went to my Site Settings and created a Site Column mapped to the first Term. No problem.
> Then I started to create a second column mapped to a second Term. I type in my Term, and the lookup box comes back with my term -- twice. They both have the same Term Set underneath.
>
> I went back into Managed Metadata and deleted the Term and Set. I came back into Site Columns, typed in my Term, it found nothing. Seems good.
>
> I went back into Managed Metadata and imported my term/term set. It shows once and looks fine.
>
> I went back into Site Columns, and searched again -- my Term shows twice.
>
> Any ideas?
>

3.

Access Services and SharePoint 2010

Posted by: "Tammy Barbee" tgmiller5@yahoo.com   tgmiller5

Thu Mar 22, 2012 3:51 pm (PDT)



Currently, we are working on converting an access database to access services through SharePoint. There are a couple of questions to come to mind which are:
Once the database has been converted to SharePoint, does the database reside on the SharePoint site?
What happens if you want to make changes on the SharePoint side? Does this mean you have to refresh the database?

Where are some resources regarding Access services and SharePoint 2010 benefits and disadvantages?

Thanks, 

 
Tammy Barbee

[Non-text portions of this message have been removed]

4a.

Disable Submnit Button after Document Creation

Posted by: "dfife_01" david@fife.cc   dfife_01

Thu Mar 22, 2012 3:51 pm (PDT)



Greetings,

I have implemented a vacation request form that emails requests to the appropriate manager. My issue is after the initial creation by the end user and subsequent opening of the form by the manager, the submit button on the ribbon stays active.

The problem with this is selecting submit, creates a whole new form and kicks off a new work flow. Now, the save button updates the current form and allows the workflow to continue properly.

Is there any way to disable/hide the submit button after creation?

I have Sharepoint 2010 Enterprise, Infopath, and Sharepoint Designer. I did see a method for this that involved coding and appeared beyond my skill level. I also saw another method that involved editing an .XOML file, but I can't find the file mentioned.

Thanks All,
David

4b.

Re: Disable Submnit Button after Document Creation

Posted by: "Deanna Schneider" deanna.schneider@gmail.com   schneider_scholz

Thu Mar 22, 2012 5:12 pm (PDT)



Yep. You can get rid of all the built-in buttons.It's under file - advanced
submit options. Then, you just need to create your own submit routine to
put a button in the form itself. Create a different view for the managers.
The managers should have a different submit option that doesn't kick off
the routine. Make sense?

On Thu, Mar 22, 2012 at 4:49 AM, dfife_01 <david@fife.cc> wrote:

> **
>
>
> Greetings,
>
> I have implemented a vacation request form that emails requests to the
> appropriate manager. My issue is after the initial creation by the end user
> and subsequent opening of the form by the manager, the submit button on the
> ribbon stays active.
>
> The problem with this is selecting submit, creates a whole new form and
> kicks off a new work flow. Now, the save button updates the current form
> and allows the workflow to continue properly.
>
> Is there any way to disable/hide the submit button after creation?
>
> I have Sharepoint 2010 Enterprise, Infopath, and Sharepoint Designer. I
> did see a method for this that involved coding and appeared beyond my skill
> level. I also saw another method that involved editing an .XOML file, but I
> can't find the file mentioned.
>
> Thanks All,
> David
>
>
>

[Non-text portions of this message have been removed]

5a.

Selection Field in Infopath Form

Posted by: "dfife_01" david@fife.cc   dfife_01

Thu Mar 22, 2012 3:51 pm (PDT)



Greetings,

I have a vacation request form and in it I have a drop down for the status 9 Approved, denied, pending). It defaults to pending. My question is, can I lock this field to pending during the form creation process, OR set the field to pending at the start of the workflow?

Thanks,
David

5b.

Re: Selection Field in Infopath Form

Posted by: "Deanna Schneider" deanna.schneider@gmail.com   schneider_scholz

Thu Mar 22, 2012 5:09 pm (PDT)



Sure. Disable it on the Infopath form. It will still be there, It will
still show pending. But, the user won't be able to change it.

Alternatively, you can set field's values during workflow quite easily. Or,
if you're using Infopath to do your workflow, you can do it there, too.

On Thu, Mar 22, 2012 at 10:23 AM, dfife_01 <david@fife.cc> wrote:

> **
>
>
> Greetings,
>
> I have a vacation request form and in it I have a drop down for the status
> 9 Approved, denied, pending). It defaults to pending. My question is, can I
> lock this field to pending during the form creation process, OR set the
> field to pending at the start of the workflow?
>
> Thanks,
> David
>
>
>

[Non-text portions of this message have been removed]

6a.

Add users to a group when they click on alert me

Posted by: "Dzifa Amenya" giffaa@yahoo.co.uk   giffaa

Thu Mar 22, 2012 3:51 pm (PDT)



Dear all Jquery & Sharepoint Experts,

I need to help. 

I want ideas on how I can use jquery to add users who click on alert me in a SharePoint blog to a Sharepoint Group.

Thanks
Dzifa

[Non-text portions of this message have been removed]

6b.

Re: Add users to a group when they click on alert me

Posted by: "Peter Brunone" peter.brunone@gmail.com   peter_brunone

Thu Mar 22, 2012 7:58 pm (PDT)



Which version of SharePoint?

Sent from space.

On Mar 22, 2012, at 11:12 AM, Dzifa Amenya <giffaa@yahoo.co.uk> wrote:

> Dear all Jquery & Sharepoint Experts,
>
> I need to help.
>
> I want ideas on how I can use jquery to add users who click on alert me in a SharePoint blog to a Sharepoint Group.
>
> Thanks
> Dzifa
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Recent Activity
Visit Your Group
Yahoo! Groups

Small Business Group

Share experiences

with owners like you

New business?

Get new customers.

List your web site

in Yahoo! Search.

Yahoo! Groups

Parenting Zone

Community resources

for parents

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web

No comments: