Setting Site Level Variables

I am creating a SharePoint site collection that will house sites for customer portals (one site per customer). What I would like to do is create a template site that has a couple of key variables (i.e. a customer ID, customer name, etc) that can be accessed
from apps and webparts. Some examples would include:
1. Search list from another site collection using the content search web part
2. Display the customer name on InfoPath forms
3. Set the default value of a list column
When I create a new site from the template for a new customer, I would then update the site-specific variables in the site to reflect that customer without having to change individual web parts or apps within the site.
Is there a recommended way to do something like this?
In other posts, I have seen reference to the Property Bag and managing it in the Central Administration -- is this functionality available in SharePoint Online?

Hi,
In SharePoint Online, we can’t create a farm solution to achieve managing site variables in the Central Administration.
We can use Client Object Model to set property bags.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/af0772ce-c326-44f6-a60a-9760564c78fc/setting-property-bags-using-client-object-model-persistence-problem?forum=sharepointgeneralprevious
We can also use a list to store some variables and read data using REST API or Client Object Model in SharePoint Online.
http://msdn.microsoft.com/en-us/library/office/jj164022(v=office.15).aspx
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Site level variables

    I am creating a SharePoint site collection that will house sites for client portals (one site per client). What I would like to do is create a template site that has a couple of key variables (i.e. a client ID, client name, etc) that can be accessed from
    apps and webparts. Some examples would include:
    1. Search list from another site collection using the content search web part
    2. Display the client name on InfoPath forms
    3. Set the default value of a list column
    When I create a new site from the template for a new client, I would then update the site-specific variables in the site to reflect that client without having to change individual web parts or apps within the site.
    Is there a recommended way to do something like this?
    In other posts, I have seen reference to the Property Bag and managing it in the Central Administration -- is this functionality available in SharePoint Online?

    Hi,
    According to your post, my understanding is that you wanted to get client name.
    You  can use JavaCcript to dynamic assign InfoPath. For more information, please refer to:
    Get the computer name to pre-populate a field on a form
    You  can also get client’s machine name using smartpart user control in SharePoint. Please refer to:
    Code Snippet: How to get client machine name?
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Best Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Questions on XML Publisher/Site Level Configuration

    We are using BI Publisher 5.6.3 in EBS 11i. I am looking for guidance on setting the FO Processing properties.
    On the Administration/Configuration Tab there are no values visible for a number of the FO Processing properties including:
    Use XML Publisher's XSLT processor
    Enable Scalable feature of XSLT processor
    Enable XSLT runtime optimization
    Also, there are no entries in xdo_config_values table. Does this mean that site values are set to default? And if so, are these the correct values for the defaults?
    Use XML Publisher's XSLT processor - TRUE
    Enable Scalable feature of XSLT processor - FALSE
    Enable XSLT runtime optimization - TRUE
    If these are in fact the defaults, I have read in numerous threads that setting 'Enable Scalable feature of XSLT processor' to TRUE can help with performance. Does this only work if the XML is large, or will it also help if you have very complex .rtf templates (multiple levels of dynamic grouping, pagebreaks, nested tables, sums, etc.)? If the complexity is in the .rtf template itself, is it best to set this property 'Enable Scalable feature of XSLT processor' at the template level? When would it be best to set at the site level? At the data definition level?
    I've tried changing this property on a few templates and the outcome doesn't seem predictable. In some cases it seems to improve performance and in other cases there is a decrease in performance. I can't seem to pinpoint why it works in some cases and not others.
    Any additional information would be appreciated.
    Thank you for your help,
    Tam.
    Edited by: Tam_11 on May 11, 2010 3:09 PM

    Hi Nabendu.
    BI publisher does have the option of showing a running total in PDF format usign a RTF template. If you look up the advanced rtf samples provided with the BI publisher plugin there is one example to show running totals, with the previous page total at the top.
    you can find this located on your PC where the Word Plugin is installed. C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\samples\RTF templates
    replace C:\ with the drive leeter of the drive where your desktop plugin is installed
    Hope this Helps,
    Domnic

  • Issue with the site level access in the trial ac

    I am following the given video to get an understanding of site level access.
    SAP HANA Cloud Portal Setting Access Levels in the Site - YouTube
    I could not find the option of setting the site level access to either public, restricted or private in my trial ac. in the site settings as per the given video above. Could this be some authorization issue or some settings that needs to be done.

    Hello,
    The site access level configuration is now under the Access Managment entry in the side panel.
    Please follow the documentation in the link below.
    SAP HANA Cloud Portal Documentation
    Regards,
    Eliel.

  • Setting the value of an Application Item (setting a global variable);

    In APEX 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable for testing to see if anything on the page has changed. Will update to 1 when certain select lists on the page are changed. Have read through some similar questions and replies within the forum as well as other blogs and sites. So, I believe what I am doing is the way to go about this. Unfortunately, my initialization of an application item/global isn't happening yet. here's a rundown of what has been implemented:
    1) created an application item, G_CLASSIFICATION_ID_NEW in the shared components;
    2) created Javascript (JS) function called by addLoadEvent in the page html header region so when the page loads, the G_CLASSIFICATION_ID_NEW global/application item should get set to 0 with the following JS and using AJAX and htmldb_GET:
    <script type="text/javascript">
    function initVars()
    alert("before get initvars");
    var get = new htmldb_Get(null,$x('pFlowId').value,null,22);
    get.add('G_CLASSIFICATION_ID_NEW', 0);
    gReturn = get.get();
    if(gReturn){
    alert(gReturn.value);
    get = null;
    alert("after get initvars");
    alert("before call to initpage");
    addLoadEvent(initVars());
    </script>
    I've used the htmldb_Get with success for populating other global variables and running On Demand Processes with onchange JS calls in the html form element attributes within select lists on the page. Afterwards, I can check the globals via the Session window and searching on Application Items. Unfortunately, I'm missing something because my G_CLASSIFICATION_ID_NEW never gets populated when I load the page. The alerts all popup when the page is loaded, so I know the script is being executed when the page loads. the alert(gReturn.value) comes back undefined. And, needless to say, the G_CLASSIFICATION_ID_NEW to 0 is not occurring.
    I've tried the htmldb_Get with it calling an application process and without (set to null). From what I've read, you shouldn't need to call an on demand process to have the get.add set the global variable. Then again, this could be where I'm going wrong. however, as I've mentioned, this works for other functions called from an onchange to populate an application item, but the page has already loaded when the onchange(s) get executed. They may work because the page is already loaded when the onchange is called. My point here is that my other On demand processes are NOT setting or changing the global variables at all. The globals are getting set with the get.add(<app item>, <value>) portion of my other JS functions within the HTML Header region. So, I'm inclined to believe that I don't need the 'application_process=<some_odp>' parameter set, but if that's not true, please let me know. if so, what would need to be in the on demand process--ie, what would be the purpose of the get.add(<application item>, <value>) if I set the global variable in the on demand process because that's the only thing I could think of doing within an on demand process for this?
    If somebody can point out what I'm not understanding or failing to do here, that would be great. I'm doing fine with APEX, but wouldn't consider myself a guru with it just yet. I'm definitely not a JS/AJAX guru, and when things like this go astray, I get bogged down because I'm not sure of the problem. So, I'm hoping you gurus who monitor this forum can get me going in the right direction.
    thanks,
    bob

    Hi Jari,
    Does that javascript work if you place it some of region footer on page 22 ?Yes. I cut it out of the html header of the page, and put it in the footer of the first region on the page. It initializes the variable. Putting it into the footer of the first region on the page should work for me instead of having an extra region on the page that's being picked up from page 0.
    Is your page 22 authentication public ?No. This particular page is set for an ADMINISTRATOR only. That said, I am logged in as an administrator. So, I cannot see why setting authentication should make a difference as long as I have that authentication/authorization. Also, there will be other pages where I want to use this script or a similar script, but again, those pages will not be open to the public. the authentication will be "role" based where a user will not necessarily have to be an administrator, but they will have to have a certain role to access the page. Is there a known problem or something that precludes a html header JS script from doing an addloadevent when authentication is NOT public?
    thank you,
    bob

  • Using a business rule to set the substitution variables

    Hi All,
    I am having issues with setting the value of Substitution variable from a Business rule.
    Any help would be appreciated.
    Thanks,
    Shakil

    Thanks for your response, John.
    I am trying to set the Substitution variable through a data form on which the Business rule is attached.
    The admin guide for Planning states that "You can set substitution variables on the Essbase server,
    application, or database level. The same substitution variable can exist on multiple levels;
    Planning uses the first one it finds as it searches in this order: 1) database 2) application 3)
    server." So I believe that it should be possible.
    Regards,
    Shakil

  • Setting Item level access rights on sharepoint list item in ItemAdding event handler

    Hi ,
    I am using sharepoint 2013. I am trying to set item level access rights when a list item is added using the following code snippet,
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    ConfigureItemSecurity(properties);
    private void ConfigureItemSecurity(SPItemEventProperties properties)
    var item=properties.ListItem;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(properties.SiteId))
    using (SPWeb oWeb = site.OpenWeb())
    item.ParentList.BreakRoleInheritance(true);
    oWeb.AllowUnsafeUpdates = true;
    var guestRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Reader);
    var editRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Editor);
    SPGroup HRGroup = oWeb.SiteGroups.Cast<SPGroup>().AsQueryable().FirstOrDefault(g => g.LoginName=="HR Team");
    SPRoleAssignment groupRoleAssignment = new SPRoleAssignment(HRGroup);
    groupRoleAssignment.RoleDefinitionBindings.Add(guestRole);
    SPUserCollection users = oWeb.Users;
    SPFieldUserValueCollection hm = (SPFieldUserValueCollection)item["HiringManager"];
    SPFieldUserValueCollection pm = (SPFieldUserValueCollection)item["ProjectManager"];
    SPFieldUserValueCollection pmChiefs = (SPFieldUserValueCollection)item["ProjectManagerChief"];
    item.BreakRoleInheritance(true);
    item.RoleAssignments.Add(groupRoleAssignment);
    foreach (SPFieldUserValue staffMember in hm)
    SetRightsOnItem(item, staffMember, editRole);
    foreach (SPFieldUserValue staffMember in pm)
    SetRightsOnItem(item, staffMember, guestRole);
    foreach (SPFieldUserValue staffMember in pmChiefs)
    SetRightsOnItem(item, staffMember, guestRole);
    item.Update();
    private void SetRightsOnItem(SPListItem item, SPFieldUserValue staffMember, SPRoleDefinition role)
    SPUser employeeUser = staffMember.User;
    var userRoleAssignment = new SPRoleAssignment(employeeUser);
    userRoleAssignment.RoleDefinitionBindings.Add(role);
    item.RoleAssignments.Add(userRoleAssignment);
    Nothing is happening though... Is the event handler the right place to do this?
    thank you

    Hi ,
    You can refer to the code working in my environment:
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace ItemLevelSecurity.ItemSecurity
    /// <summary>
    /// List Item Events
    /// </summary>
    public class ItemSecurity : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    try
    using (SPSite oSPSite = new SPSite(properties.SiteId))
    using (SPWeb oSPWeb = oSPSite.OpenWeb(properties.RelativeWebUrl))
    //get the list item that was created
    SPListItem item = oSPWeb.Lists[properties.ListId].GetItemById(properties.ListItem.ID);
    //get the author user who created the item
    SPFieldUserValue valAuthor = new SPFieldUserValue(properties.Web, item["Created By"].ToString());
    SPUser oAuthor = valAuthor.User;
    //assign read permission to item author
    AssignPermissionsToItem(item,oAuthor,SPRoleType.Reader);
    //update the item
    item.Update();
    base.ItemAdded(properties);
    catch (Exception ex)
    properties.ErrorMessage = ex.Message; properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.Cancel = true;
    public static void AssignPermissionsToItem(SPListItem item, SPPrincipal obj, SPRoleType roleType)
    if (!item.HasUniqueRoleAssignments)
    item.BreakRoleInheritance(false, true);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(obj);
    SPRoleDefinition roleDefinition = item.Web.RoleDefinitions.GetByType(roleType);
    roleAssignment.RoleDefinitionBindings.Add(roleDefinition);
    item.RoleAssignments.Add(roleAssignment);
    Thanks,
    Eric
    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].
    Eric Tao
    TechNet Community Support

  • Setting system level deployment.user.cachedir in deployment.config

    G'day,
    I've been experimenting with JRE 1.5.0_04 on Windows XP.
    By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
    I have managed this as follows.
    C:\Windows\Sun\Java\Deployment\deployment.config contains:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
    deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
    Thanks,
    Chris.

    G'day,
    Open the Java Console and execute "dump system and
    deployment properties" which shows property values,
    and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
    I did try using ${user.home} but that doesn't work.
    So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
    More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thanks,
    Chris.

  • Non-admin user cannot access Essbase server level variables

    Version 11.1.1.3
    Essbase Substitution variables are created at server level. Users are getting error in FR report that uses the Subsitution Variable -- Essbase Error(1051085): You do not have sufficient access to get this substitution variable. Also, users cannot access Substitution variable in SmartView. However, users can access variables created at database level. Users are provisioned as "Server Access" to Essbase and filter access to ASO application "MGTRPTG", where MGTRPTG is an ASO essbase application for reporting. We tried the same provisioning in two other environments and it seems to be working fine.
    User is type "Essbase and Planning" provisioned with essbase "server access", application mgtrptg "filter", Reporting and Analysis "analyst", "dynamic viewer" and "Explorer". In addition, it is given a filter "REP_DME_GALB" which restricts 2 dimensions (Division and Geography).
    Steps taken to resolve:
    1. Existing users were deprovisioned and reprovisioned with no effect.
    2. Created brand new identically provisioned users in Prod and QA. QA user can access the server level var and Prod user cannot
    3. Created a brand new server level variable in Prod and this cannot be accessed.
    4. All services have already been restarted several times.
    5. SR has been opened.
    Temporary workaround:
    By creating a duplicate of the same set of variables at the database level, the reports work. This can only be a temporary workaround as the client cannot be expected to maintain two sets of substitution variables since there are 3 applications using these server level variables.
    Thank you for any ideas!
    Jennifer

    You have stumbled on a defect which is resolved in the Hyperion Planning 9.3.1 patch 6 and above. If you have your planning preferences set to indent members it will cause forms which have page selections to show as invalid in SmartView.
    You can either patch Planning or turn off the preference. The patches are available from http://metalink3.oracle.com and require account which has been associated with your client ID.
    P.S. Usually it's not a good practice to use the admin id.
    Regards,
    -John
    Edited by: Jbooth on Nov 3, 2008 2:12 PM

  • Batch Management at Site level

    Hi All,
    We are planning to implement Batch Management for certain product ranges in our Organization. We prefer to activate Batches at site level. I mean at certain sites Batch need to exist and at others they need not.
    I have checked the configurations but they all pertain to the configuration of Batch setting at Plant, Material and Client level in terms of Batch ID being unique or not.
    Is there any configuration possible so at to facilitate this requirement ?
    Thanks in advance.
    Regards
    Govind

    Dear Jurgen,
    You are right.
    I checked MMRV and the current status is as shown below.
    Current period            06 2011
    Previous period           05 2011
    Last period in prev.year  12 2010
    No I check in MBEWH and for the plant 2010 and article 381180 we have the folowwing entries.
    YEAR          CURR PERIOD      STOCK QTY
    2009            12                        68.000
    2010            12                        68.000
    2011            04                        68.000
    I try to do MB1A with movement type 551 for plant 2010 and article 381180 for the posting period 31.05.2011 with 68 Ea.
    Batch chosen was 7000000001 as this was the batch shown while I tried to archive:
    " MCHB: 000000000000381180 2010 0002 7000000001 unrestricted-use stock exists for previous period"
    While I try to execute the transaction it gives me an error...
    "Deficit of BA Unrestr. prev. 68 EA : 381180 2010 0002 7000000001"
    Do you have any clue why is this error coming ?
    I have done a stock replenishment to the batch 7000000001 in storage location 0002 for site 2010 on article 381180
    Regards
    Govind
    Edited by: Nivin Joseph Varkey on Jun 6, 2011 9:43 AM

  • Setting field level security

    I have created a form in LiveCycle in which two fields (Header and an Image block) need to be editable by one user type (e.g. power user), but should not be changeable by the end users.  They will only be able to fill in other fields in the form.  So far I have only been able to set form level security.  Is there a way to apply security to just these two fields, perhaps requiring a password, so that the power user can update these two fields as needed?
    Thanks for any ideas you might have!

    Hi Diego,
    Thanks for responding.  We aren't using the LC PM module, so that takes one suggestion out of the running.
    We tried some Javascript we found on the Acrobat forum (see below for what we used) - using it as an action with a bookmark, but it didn't work.  The guy who wrote the script on that forum looked at our file and thought that the problem was likely because the form was developed in LiveCycle.  We are not Java experts (or even close!), so we have no clue where to start.  And unfortunately if we cannot find a solution for this dilemma, we will have to decline a project from a client. 
    So again, any thoughts or suggestions on where to go from here are greatly appreciated!
    (function () {
        // Get one of the fields in the group
        var f = getField("private.name");
        // Determine new readonly state, which
        // is the opposite of the current state
        var readonly = !f.readonly;
        var readonly_desc = readonly ? "deactivate" : "activate";
        // Ask user for password
        var resp = app.response({
            cQuestion: "To " + readonly_desc + " the fields, enter the password:",
            cTitle: "Enter password",
            bPassword: true,
            cLabel: "Password"
        switch (resp) {
        case "your_password": // Your password goes here
            getField("private").readonly = readonly;
            app.alert("The fields are now " + readonly_desc + "d.", 3);
            break;
        case null : // User pressed Cancel button
            break;
        default : // Incorrect password
            app.alert("Incorrect password.", 1);
            break;
    In this example, the fields that are controlled by this all have a field name prefix of "private", for example "private.name", "private.address", etc. This makes it easier to control the fields as a group, as I do in the line of code that begins: getField("private").readonly  If you don't use such a field naming convention, you'd have to have a separate such line for each field in the group.
    Replace "your_password" above with one of your own. The first and last lines are not necessary, but do prevent the needless creation of document-global variables, which is a good thing.

  • How to set users level security profiles and auditing?

    hi,
    We are using EBS 12( 12.0.6 ) with database 10g (10.2.0.3) on Linux redhat 4.
    I want to set the all user level and site level security profiles like user login attempts, password attempts, case sensitivity, and all these
    infos and attempts should be audit.
    Please also explain the empact of audit on running system?
    Thx

    I want to set the all user level and site level security profiles like user login attempts, password attempts, case sensitivity, and all these
    infos and attempts should be audit. https://forums.oracle.com/forums/search.jspa?threadID=&q=Profile+AND+Option+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Profile+AND+Option+AND+Audit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Please also explain the empact of audit on running system?https://forums.oracle.com/forums/search.jspa?threadID=&q=Auditing+AND+FND+AND+Profile+AND+Option&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Try this in a TEST instance before you promote it to Production.
    You will need to bounce the application services and enforce the users to sign off/on after setting those profile options.
    Thanks,
    Hussein

  • Personalization - Site level, and not able to see it a resp level

    I have added 2 new fields i.e. Field A and Field B to an Oracle seeded page at Site Level using Personalization. Based on the type of responsibility, I want to render one field at a time. I wanted to do this using responsibility level personalizations. However, I do not see these 2 fields when I try to personalize at responsibility level. What could be the issue?
    EBS version 12.1.2
    Thanks.

    Hi ,
    Fields will be created at site level through personalization ,it will appear for all the responsibility ,once u will go to a page using a particular responsibility ,again you personalize the field and can set the rendered property false for all level except that particular responsibility .
    Thnax
    Pratap

  • Setting Linux environment variable

    Is there other web site which talks about how to set the environment variable of J2EE for Linux?
    I followed this web site
    http://www.dougsparling.com/comp/howto/linux_java.html
    but after all
    when I tired to compile a servlet program... it couldn't be complied. I think the case is that the compiler couldn't find servlet.jar ...
    why is that?

    You have to verify that your CLASSPATH environment variable is set in your account's profile. I use the
    bash shell therefore my variables are set in .bashrc
    for example my CLASSPATH is set to :
    CLASSPATH=.:$J2EE_HOME/lib/j2ee.jar:$J2EE_HOME/lib/locale

  • Upload single level variable cost in SNP PPM in mass by MASSD

    Hi experts,
    I am trying to upload single level variable cost in SNP PPM in mass by MASSD by following selections:-
    Selection
    Object Type:- PPM
    Selction Criteria:-
    Component:- Plan        Attrib:- Use of Plan
    Component:- Plan        Attrib:- Plan
    Components & Attributes to be Maintained
    Component:- Plan        Attrib:- Var.Sing.Lvl Costs
    While maintaining the cost, under selection criteria, compoment: PLAN and attribute: PLAN I am unable to maintain multiple plan names.
    The single level variable cost that I have to maintain for all these plans is the same and therefore was trying to use transaction MASSD
    Can you please throw some light on how multiple PLAN selections can be done?
    Regards
    Chetan

    DEAR GURUS,
    *There is a question regarding the resoucre  consumptions  relevant to PDS in SNP,*
    ****The inputs are:****
    ****1) Base Qty= 7700 TH****
    ****2) Set Up =45 MIN****
    ****Resource consumed by operation activity is 112 207 seconds = 31,17 hours.****
    ****Unfortunately we didnu2019t understand how this figure is calculated.****
    ****Can you please help us in this****

Maybe you are looking for