How to show property bag values of site collection in web part on landing page in sharepoint online?
How to show property bag values of site collection in web part on landing page in sharepoint online - office 365?
You can use JavaScript Client object model to read the property bag values. Example:
function getWebProperty() {
var ctx = new SP.ClientContext.get_current();
var web = ctx.get_site().get_rootWeb();
this.props = web.get_allProperties();
ctx.load(web);
ctx.load(this.props); //need to load the properties explicitly
ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));
function gotProperty() {
var myPropBag = this.props;
alert(myPropBag.get_fieldValues()["allowdesigner"]); //returns the value of the key allowdesigner
function failedGettingProperty(args, sender)
//handle errors here
Source:
http://sharepoint.stackexchange.com/questions/37198/grab-a-specific-property-bag-using-ecma-script
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field
Similar Messages
-
ProjectCenter Webpart on another Site Collection "This Web Part was unable to load"
Hi,
Project Server 2013 on an url like http://domain.tld/pwa
Trying to use the Project Center Web Part from another site collection, let's say http://domain.tld/sites/siteA
I get the "This Web Part was unable to load" error and in the ULS I get Object Reference not set to an instance of an object classic error
What am i doing wrong?
Thanks!Thank you for the thoughts Michael but none of those worked for me.
What I have done so far is I have added the PWA features to the site which is what has made it work when logged in under the farm account.
So I have 3 account I am testing with
1.) regular account with read only permissions to the Publishing page
2.) Admin account that is in a group that is a site administrator to ALL sites
3.) Farm account
Currently it works for the Farm account and the Admin account but not the regular account. I have added the regular account to the same group as the Admin account and will test when the change updates to see if I can access the information. This
will at least let me know that it is a Permissions issue which is what I think it is I just cant figure out which permission it would need to be. -
"Invalid text value" error when calling a web service from a workflow in SharePoint Online
I'm trying to create a workflow that loops through a list in SharePoint Online using a REST web service call. However, I'm having
some trouble trying to pass the authentication token as described in the following article.
http://www.fabiangwilliams.com/2013/09/03/more-on-sharepoint-2013-r...
Basically, the workflow stops right at the "Call web service" action, and the only error it tells me is the following.
Invalid text value.
A text field contains invalid data. Please check the value and try again
Has anyone had success with web service calls to SharePoint Online?
Dan Kreitz, Solutions Architect, Séafra Inc.Hi DanPoint,
Thank you for your sharing!
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
How to show register attribute value in my register users report in FIM 2010 R2
Hi,
How to show register attribute value in my register users report in FIM 2010 R2?
Please suggest on this.
Regards
Anil Kumarhello,
the only way I know is manage the attribute descriptiona s a property and then enable the pivot table option "Show properties in tooltip".
But I'm interested in what you mean with "using
"OLAP pivot table extension" is an option". How this works?
Thanks
bye
Norman -
SP2013 Search - Query documents only in a library with a specific property bag value
Hi,
I am hoping someone might be able to help me as I am struggling to figure out how to get the following scenario to work using query variables.
I have configured a property bag value against document libraries and made it indexable and turned it into a managed property. I have checked to ensure i can search specifically against this managed property and it works correctly and returns document libraries
which have a property bag key with a value that I specify in a search query e.g. classification:internal.
I have also configured a managed property for a piece of metadata i collect against every document e.g. colour. I can successfully search against this manged property and return documents whereby colour is equal to red e.g. colour:red
What I would like to do is take this one step further and say search across only libraries where the property bag value equals internal and return documents within those libraries which have a metadata value of something e.g. colour = red.
Does anyone have any suggestions on how i can achieve this.
Thanks in advance
MarkThat or in some way get the container metadata to be present in the item itself as well.
Thanks,
Mikael Svenson - Search Enthusiast
SharePoint MVP/MCPD/P-TSP - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of
SharePoint Search Queries Explained and
Working with FAST Search Server 2010 for SharePoint -
How to set version limit for entire site collection
Hi,
We have more than 500 document libraries in one site collection. I see some of them have more than 50 versions & taking lot of storage space. So planning to limit the version's to 3 Major and 3 Minor for entire site collection. How can we do that? I
know we can set to individual library by how can we do that for entire site collection?
Thanks
Rithu.
RithuThe version limit is a library specific setting, so you'll need to use PowerShell to set the property value on each library in every site in the site collection. Here's a sample script that sets if for one library. You'll need to expand the script
to walk the sites recursively and run this for every library.
https://consultantpoint.wordpress.com/2012/06/15/powershell-setconfigure-document-library-with-majorversionlimit-majorwithminorversionslimit-require-to-checkout-before-editing/
Please Note: Changing these settings won't delete old versions. That only happens after each item in the list or library is edited.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
How to retrive latest items from different site collection using content search web part
I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
-http://applicationname/teamsite
-http://applicationname/enterprisewik
Now I need to display the latest 10 wiki pages that are inside the enterprise wiki site collection (according to the modified date) inside the team site. So I read that using Content search web part allows for cross-site content query.
So I added a new content search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's library and to specify that I need to get the latest 10 wiki pages using the
content search web part's query dialog box? Can anyone advice please ?
ThanksEdit the webpart and click change query in search criteria. click on switch to advanced mode and enter your path:
(path:"http://applicationname/teamsite" OR path:"http://applicationname/enterprisewik")
you can specify sorting by created date and click ok. in number of items to show, type 10. this should fulfill your requirement.
For further reading, here are some links:
http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
http://blogs.technet.com/b/tothesharepoint/archive/2013/04/30/stage-9-configure-the-
query-in-a-content-search-web-part-on-a-category-page.aspx
http://blogs.technet.com/b/tothesharepoint/archive/2013/05/23/stage-10-configure-the-query-in-a-content-search-web-part-on-a-catalog-item-page.aspx
kashif -
How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?
Hi,
According to your description, my understanding is that you want to set security group as admin of primary and secondary site collection using PowerShell command in office 365.
I suggest you can use the command below to set the group to site owner, then it will have the site collection admin permission.
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner [email protected] -NoWait
Here are some detailed articles for your reference:
https://technet.microsoft.com/en-us/library/fp161394(v=office.15)
http://blogs.realdolmen.com/experts/2013/08/16/managing-sharepoint-online-with-powershell/
Thanks
Best Regards
Jerry Guo
TechNet Community Support -
How to show the login user Id in the upper right corner of each page?
Hi,
I was wondering how to show the login user Id in the upper right corner of each page?
thanks so much!
cchuCchu,
The easy question first: applying a style to the welcome message. If you look at the page source, you'll see that #WELCOME_USER# is expanded to <div class="app-user">Welcome: DEMO</div> So to change the style of the message, you need to tweak the style of the app-user div in your CSS, or override it in a style block in your HTML header.
Now, the tougher question: why the text is wrapping for you. And, really, without seeing your entire page, I can't give a full answer. But I'd suggest that what's most likely happening is that the table column you're putting it in is too narrow, so it's wrapping; try replacing the td tag with <td nowrap="nowrap"> This will force the column to be wide enough to display the full message, but might result in weird formatting elsewhere on the page (depending on what all is in your table).
-David -
How many Site Collections we can have in each farm in SharePoint?
Hi,
Can anyone please help me out with this that how many Site Collections we can have in each farm in SharePoint?
I cannot able to find the related answers as of now.Hi,
Go through the links below
Software boundaries and limits for SharePoint 2013
SharePoint Terminology – Farms, Web Front Ends, Web Application and Sites
Permissions for site collection administrators
Plan sites and site collections in SharePoint 2013
Indul Hassan
http://www.indulhassan.com
You Snooze.. You Lose !!
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to add a list views web part to a page?
Hello,
I have web parts on a page that are "List Views". The show links as menu from a custom list of links on a page. However, I don't know how the developer added them to page and how they work. I like to add other list views
that list links from lists.
PaulHi,
Your query is to configure a webpart in a page which will display all the links to lists (within the site)? If this is the requirement you can configure a dataformwebpart and configure the Data
Source Mode as CrossList.
Let me know if you have any further questions.
Thanks! -
How to modify title and tooltip text in Content Editor web part
I have inherited a site with a page that includes two Content Editor web parts. The web parts have been left with the default titles (Content Editor [1] and [2]) and mouse-over text.
I want to set these to something more appropriate so I choose the option Edit Page (to edit the web parts on this page). I can move the web parts around (so definitely in Edit mode) but if I click the Edit Web Part Properties the page refreshes but no properties
or options (or errors) appear.
How do I modify these web parts?When you select the edit web part options, the page should reload with the configuration options on the right hand side. This will include several collapsed sections, namely: -
Appearance
Layout
Advanced
If you maximise the appearance one, you'll see a text field for "Title." Edit this to what you want and you'll be able to rename these.
If you can't see the options, make sure to scroll to the far right hand side of the screen. Sometimes on larger resolution monitors, they can appear hidden.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How to redirect a sub domain to a specific page in Sharepoint Online
Hi,
My Organisation has a O365 account, and hoisted the public website on it, now user requests to have a friendly url for a specific page on the public website. I've added a sub domain on O365. but i cant find ways to redirect this domain
to the page. How can i do so?Hi,
If you need to redirect the sub domain to a specific page in SharePoint Online, you need to rename the Public Website with the sub domain.
Then configure the friendly URL for the page in the Public Website.
http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/upgrade-your-public-website-HA102801184.aspx?CTT=5&origin=HA102828142#_Step_5_%E2%80%93
Or you can use the managed metadata navigation for the Public Web site and configure the friendly URL for the page.
http://jeffkelly.com/2014/05/office-365-public-website-what-no-managed-metadata-mms-navigation/
In the meanwhile, you can post your question to the forum for Office 365: http://community.office365.com/en-us/f/default.aspx.
More experts will assist you, then you will get more information relation to SharePoint Online.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to add the Note board web part to a page with powershell
Hi everyone,
I've been looking around everywhere but haven't seen it explicitly mentioned.
Does anyone know how to add the Note Board web part to a Team Site page, e.g. Non-publishing site, Left Zone, First webpart in the zone in powershell?
Examples like this one http://adicodes.com/adding-web-part-to-page-with-powershell/ only talk about custom web parts uploaded from a local drive.
The example here looks good - http://spcrew.com/blogs/lists/posts/post.aspx?id=21 but is it for the Page Viewer Web Part. How would you go about getting the correct name for the note board web part and configuring it?
Many Thanks,
Ashley
function main(){
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$url = "http://sp2010dev1/sites/test1"
$OpenWeb = Get-SPWeb $url
$OpenWeb
$OpenSite = Get-SPSite $url
$file = $OpenWeb.GetFile("http://sp2010dev1/sites/test1/SitePages/test1.aspx")
$WebPartManager = $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
Add-PageViewerWebPart "http://sp2010dev1/sites/test1" "http://sp2010dev1/sites/test1/SitePages/test1.aspx" "Body" 0 "SPCrew Site" "sp2010dev"
$OpenWeb.Dispose()
function Add-PageViewerWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
$site = new-object Microsoft.SharePoint.SPSite($SiteURL)
$web=$site.OpenWeb()
$webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
$webpart = new-object Microsoft.SharePoint.WebPartPages.PageViewerWebPart
$webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::TitleOnly;
$webpart.Title = $title
$webpart.ContentLink = "http://www.spcrew.com";
$webpartmanager.AddWebPart($webpart, $webpartzone, $index);
$web.Close()
$site.Close()
function Get-SPSite([string]$url) {
New-Object Microsoft.SharePoint.SPSite($url)
function Get-SPWeb([string]$url) {
$SPSite = Get-SPSite $url
return $SPSite.OpenWeb()
$SPSite.Dispose()Hi,
According to your post, my understanding is that you wanted to add the Note board web part to a page with PowerShell.
The name of the Note Board web part is SocialCommentWebPart.
I recommend to use the powershell code below:
$pageUrl="http://sitename/SitePages/test.aspx"
$SiteURL="http://sitename"
$site = new-object Microsoft.SharePoint.SPSite($SiteURL)
$web=$site.OpenWeb()
$webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
$webpart = new-object Microsoft.SharePoint.Portal.WebControls.SocialCommentWebPart
$webpart.title="Note Board"
$webpartmanager.AddWebPart($webpart, "MiddleZone", 0);
$web.Close()
Then the Note board web part will be added to the page.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to get safecontrol tag section to a collection from web.config in c#
how to get safecontrol tag section to a collection from web.config in c#
Below is my config file. I need to read the safecontrol tagsection and get all those in to a collection.please help me on this.
<?xml
version="1.0"
encoding="UTF-8"
standalone="yes"?>
<configuration>
<SafeControls>
<SafeControl
Assembly="System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="System.Web.UI.WebControls"
TypeName="*"
Safe="True"
AllowRemoteDesigner="True"
SafeAgainstScript="False"
/>
<SafeControl
Assembly="System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="System.Web.UI.HtmlControls"
TypeName="*"
Safe="True"
AllowRemoteDesigner="True"
SafeAgainstScript="False"
/>
</
SafeControls>
</configuration>
adityadugyalaHere is the way to read and write custom sections programtically in web.config.
http://msdn.microsoft.com/en-us/library/2tw134k3.aspx
Or use the traditional way of reading XML with XMLDocument.
Bala
Maybe you are looking for
-
How do I activate the webcam?
Hi there, usual apologies if I'm repeating a question but I did a quick search and couldn't find anything - which of course is probably normal as Im rubbish on forums! I have a HP Touchsmart 130-1205 (i think) and I can get the built in webcam to wor
-
PSE 11 Organizer - depressingly junky software
After rebuilding all of my 90k pics into a new structure, PSE 11 organizer now comes up, I leave it alone, and it crashes. Over and over again. It covers up its tracks like a little boy stealing in a candy store. Why isn't someone fixing bugs in this
-
How process flow of a foundry industry is mapped in SAP
Hello All, Can anyone please tell me how to map process of foundry industry in sap for PP module.
-
Can't start up after disconnect ethernet network of 2 macs
I tried conecting 2 macs via ethernet. Personal file sharing was turned on with both. Printer sharing seemed not to work, so that was disabled on both. Ethernet cable from systems to router connected to cable modem. Seemed to work well for my purpose
-
Hey, Looking through all the topics I've seen that after creating a partition and removing it, bootcamp won't show up when rebooting but still shows up in my disk utility. I'm willing to put the effort and time to get my bootcamp back up working. My