List properties of SAPbobCOM

Hello experts.
I making a project with c# 2008. Search in forum i see this [thread|List of properties for objects] and this example in VB solve my problem with some objects. But what is the class o interface name for Items and business partners? and where i can see more information about the names of the assembly?
thanks regards.

Hello
You can download the SDK Help, where all the interfaces, functions, properties and methods are described. Every patch also contains the SDK help and same applications, you can install from there.
in SAPBOBSCOM (DI API)
Object items called Items, and  business partners called BusinessPartners Object
Regards,
J

Similar Messages

  • Wireless Synchroniz​ation in Desktop contact list properties is by default showing "Not Available"​, Not able to change also

    In my Blackberry 8520 - Curve model, Wireless Synchronization in Desktop contact list properties (Go to Contacts, select options, select Desktop) is by default showing "Not Available" and not allowing to change also. My other colleagues are having the options.
    My basic issue is that Outlook contact details are not getting syncronized with Blackberry. I believe this is the root cause for the same. Please guide to resolve the issue.
    with best regards,

    Hey pratiktnm,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Are you setup on a BlackBerry Enterprise Server?  With the Desktop service book appearing it seems you were on one.  If you are still on a BlackBerry Enterprise Server, I would suggest creating a full backup with BlackBerry Desktop Software: www.blackberry.com/btsc/KB33505
    Then proceed with a security wipe by going to Options>Security>Security Wipe and then contact your network service provider to generate a new Enterprise Activation password.  Then proceed with the enterprise activation by going to Options>Advanced Options>Enterprise Activation.
    Once the activation is completed, test out the wireless synchronization of the contacts.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Use of Validation tab in Dropdown list properties

    Hi All,
    I have created input form  with 2 dropdown fields and submit button. While clicking submit button i need a  message if dropdown lists are not selected. So that I have entered one condtion in validation tab in dropdown list properties. But this validation is not working while clicking submit button.
    Can you please guide how to use validation in VC?
    Thanks,
    Venkatesh R

    Hi
    'Validation Tab' is use to validate the values for that UI control. In case of 'Dropdown list' it is used to show invalid values in perticular cases. Example -
    1. You have dropdown list on 'Country' & it is based on fiscal year input.
    then
    If fiscal year is 2008 values should be X, Y & Z. If value apart from this its invalid. You can configure this with the formula in 'Validation Tab' & if user selects the value apart from theses, system will through the error message as you have set.
    Please also look at the link below -
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/7a46502823199ae10000000a42189d/frameset.htm
    I hope this is what you were looking for, if you want anything else please let me know.
    Regards
    Sandeep

  • How can I get list properties using SharePoint CSOM

    Hi Team,
    I am using SharePoint CSOM to read SharePoint Discussion board.I need discussion discription and created by and Discussion list Title etc.
    But I am unable to read those. I saw below message for discussion list in immediate window while debugging.
    DiscussionList
    {Microsoft.SharePoint.Client.List}
    base {Microsoft.SharePoint.Client.SecurableObject}: {Microsoft.SharePoint.Client.List}
    AllowContentTypes: 'DiscussionList.AllowContentTypes' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    BaseTemplate: 'DiscussionList.BaseTemplate' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    BaseType: 'DiscussionList.BaseType' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    BrowserFileHandling: 'DiscussionList.BrowserFileHandling' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    ContentTypes: {Microsoft.SharePoint.Client.ContentTypeCollection}
    ContentTypesEnabled: 'DiscussionList.ContentTypesEnabled' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Created: 'DiscussionList.Created' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DataSource: 'DiscussionList.DataSource' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DefaultContentApprovalWorkflowId: 'DiscussionList.DefaultContentApprovalWorkflowId' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DefaultDisplayFormUrl: 'DiscussionList.DefaultDisplayFormUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DefaultEditFormUrl: 'DiscussionList.DefaultEditFormUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DefaultNewFormUrl: 'DiscussionList.DefaultNewFormUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DefaultViewUrl: 'DiscussionList.DefaultViewUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Description: 'DiscussionList.Description' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Direction: 'DiscussionList.Direction' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DocumentTemplateUrl: 'DiscussionList.DocumentTemplateUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    DraftVersion
    EffectiveBasePermissions: 'DiscussionList.EffectiveBasePermissions' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    EnableAttachments: 'DiscussionList.EnableAttachments' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    EnableFolderCreation: 'DiscussionList.EnableFolderCreation' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    EnableMinorVersions: 'DiscussionList.EnableMinorVersions' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    EnableModeration: 'DiscussionList.EnableModeration' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    EnableVersioning: 'DiscussionList.EnableVersioning' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Fields: {Microsoft.SharePoint.Client.FieldCollection}
    ForceCheckout: 'DiscussionList.ForceCheckout' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Forms: {Microsoft.SharePoint.Client.FormCollection}
    HasExternalDataSource: 'DiscussionList.HasExternalDataSource' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Hidden: 'DiscussionList.Hidden' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Id: 'DiscussionList.Id' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    ImageUrl: 'DiscussionList.ImageUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    IsApplicationList: 'DiscussionList.IsApplicationList' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    IsCatalog: 'DiscussionList.IsCatalog' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    IsSiteAssetsLibrary: 'DiscussionList.IsSiteAssetsLibrary' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    ItemCount: 'DiscussionList.ItemCount' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    LastItemDeletedDate: 'DiscussionList.LastItemDeletedDate' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    LastItemModifiedDate: 'DiscussionList.LastItemModifiedDate' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    MultipleDataList: 'DiscussionList.MultipleDataList' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    NoCrawl: 'DiscussionList.NoCrawl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    OnQuickLaunch: 'DiscussionList.OnQuickLaunch' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    ParentWeb: {Microsoft.SharePoint.Client.Web}
    ParentWebUrl: 'DiscussionList.ParentWebUrl' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    RootFolder: {Microsoft.SharePoint.Client.Folder}
    SchemaXml: 'DiscussionList.SchemaXml' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    ServerTemplateCanCreateFolders: 'DiscussionList.ServerTemplateCanCreateFolders' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    TemplateFeatureId: 'DiscussionList.TemplateFeatureId' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Title: 'DiscussionList.Title' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    UserCustomActions: {Microsoft.SharePoint.Client.UserCustomActionCollection}
    ValidationFormula: 'DiscussionList.ValidationFormula' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    ValidationMessage: 'DiscussionList.ValidationMessage' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'
    Views: {Microsoft.SharePoint.Client.ViewCollection}
    WorkflowAssociations: {Microsoft.SharePoint.Client.Workflow.WorkflowAssociationCollection}
    Please let me know how can I get all discussion Properties.
    Krishnasandeep

    Here is the code snippet which is working
    ClientContext Context = new ClientContext(siteurl);
    Context.AuthenticationMode = ClientAuthenticationMode.Default;
    List DiscussionList = Context.Web.Lists.GetByTitle("4gl-adapter");
    CamlQuery query = CamlQuery.CreateAllFoldersQuery();
    ListItemCollection itemCollection = DiscussionList.GetItems(query);
    Context.Load(itemCollection);
    Context.ExecuteQuery();
    foreach (ListItem thread in itemCollection)
    string threadTitle = thread["Title"].ToString();
    string threadBody = thread["Body"].ToString();
    But if try to below code,
    String DiscussionDesc = DiscussionList.Description;
    I am getting exception.
    Let me know if I am doing wrong anywhere.
    Krishnasandeep

  • Drop down list properties availble for user in card / document

    The need is to define some custom properties for documents in the document directory and to let the user fill up the properties using a drop down list (using the edit option for the card)For example we wuold like to add a properties name departmentwith the following values related to it : Department A , Department B ... so the user should be able to choose from a list. Plumtree offers in the main property setting to define a drop down type for the property and to assign values to it, but from our understanding/findings - these are not accessible to the user but only for admin purposes (defining properties to document types ).Is our understanding correct ?Perhaps someone has already addressed this issue and developed some connection between the drop down values and the edit card page to make the values available to the user ?

    Hello,
    Have you check that user permission on both lists? Also ask him to try in different browser or in different machine.
    It seems problem with user machine or browser or permission. Please check and let us know
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Validate Form List Propert of an Item

    Hi all,
    i have Problem in AR Module , when i Enter the Invoice in AR i Select the Memo Line and then go in an other Line and use the key Shift+F5 on Description Field and enter same Memo Line , but the Problem is it does not enter Memo Line id and Record is Save , i need to Set Validate from List Property on Permently basics True but it does not update the Property Permently.
    Thanks

    Unfortunately, I have no code. But if you search this forum you will find examples of how to loop through the elements in a list item. As each element is retrieved you can execute an update or insert into the desired table. This code can go inside a pre-commit trigger.

  • Unable to view properties of User Informaton List in SharePoint designer

    Hi
    I am not able t view the user information list properties in SharePoint designer. I am able to view the catalogs folder and when I right click the user list to view the properties, I am getting the SharePoint Designer cannot display the item.
    Can someone please assist me ? The sharepoint server is on my machine

    Hello,
    I believe this is default behavior in designer. You can just try with powershell script to see the properties: (see last comment)
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/6504727e-8b8d-403c-81f9-cab4518a8e9d/user-information-list-properties-not-showing?forum=sharepointcustomizationprevious
    Hemendra:Yesterday is just a memory,Tomorrow we may never see&lt;br/&gt; Please remember to mark the replies as answers if they help and unmark them if they provide no help &lt;br/&gt;(On vacation from 16th Oct to 28th Oct 2014)

  • Get Calendar List Item GUID

    I downloaded code for a reservation event receiver from here: 
    http://blog.sharepointsydney.com.au/post/Setting-up-multiple-calendars-for-meeting-room-bookings-prevent-double-booking.aspx
    However, on the ItemUpdating it throws an "Object Reference Not Set to an Instance of an Object" error.  By commenting out parts of the code and re-deploying I have narrowed the issue down to the line that gets the item's GUID:
    string guid_internal = collItems.List.Fields["GUID"].InternalName;
    When I modify it to something like "UniqueId" I get the "Value does not fall within expected range" error.  Is there a better way to obtain the GUID of the calendar list item - or am I missing something?  Full code below:
    using System;
    using Microsoft.SharePoint;
    namespace Webcoda.WSS.Calendar.Events
    class PreventDoubleBooking: SPItemEventReceiver
    /// <summary>
    /// This event is triggered when the user adds a new item
    /// </summary>
    /// <param name="properties"></param>
    public override void ItemAdding(SPItemEventProperties properties)
    //Our query string variable
    string strQuery = null;
    try
    //Get the Sharepoint site instance
    using (SPWeb oWebsite = new SPSite(properties.SiteId).OpenWeb(properties.RelativeWebUrl))
    //Get the collection of properties for the Booking item
    SPListItemCollection collItems = oWebsite.Lists[properties.ListTitle].Items;
    //Get the Calendar List that we will be querying against
    SPList calendar = oWebsite.Lists[properties.ListId];
    //Get the internal name of the fields we are querying.
    //These are required for the CAML query
    string start_internal = collItems.List.Fields["Start Time"].InternalName;
    string end_internal = collItems.List.Fields["End Time"].InternalName;
    string MeetingRoom_Internal = collItems.List.Fields["Meeting Room"].InternalName;
    //Get the query string parameters
    string start_str = properties.AfterProperties[start_internal].ToString();
    string end_str = properties.AfterProperties[end_internal].ToString();
    string MeetingRoom_str = properties.AfterProperties[MeetingRoom_Internal].ToString();
    //Construct a CAML query
    SPQuery query = new SPQuery();
    //Create the CAML query string that checks to see if the booking we are attemping
    //to add will overlap any existing bookings
    strQuery = string.Format(@"
    <Where>
    <And>
    <Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Gt>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Gt>
    </And>
    <And>
    <Lt>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Lt>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    </Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    <And>
    <Geq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Geq>
    <Leq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Leq>
    </And>
    </Or>
    </Or>
    <Eq>
    <FieldRef Name='Meeting_x0020_Room' />
    <Value Type='Choice'>{2}</Value>
    </Eq>
    </And>
    </Where>
    <OrderBy>
    <FieldRef Name='EventDate' />
    </OrderBy>
    ", start_str, end_str, MeetingRoom_str);
    //Set the query string for the SPQuery object
    query.Query = strQuery;
    //Execute the query against the Calendar List
    SPListItemCollection existing_events = calendar.GetItems(query);
    //Check to see if the query returned any overlapping bookings
    if (existing_events.Count > 0)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage += "This booking cannot be made because of one or more bookings in conflict. <BR><BR>";
    //Here you can loop through the results of the query
    //foreach (SPListItem oListItem in existing_events)
    properties.ErrorMessage += "Please go back and schedule a new time.";
    catch (Exception ex)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage = "Error looking for booking conflicts: " + ex.Message;
    /// <summary>
    /// This event is triggered when the user edits an calendar item
    /// </summary>
    /// <param name="properties"></param>
    public override void ItemUpdating(SPItemEventProperties properties) {
    string strQuery = null;
    try {
    //Get the Sharepoint site instance
    using (SPWeb oWebsite = new SPSite(properties.SiteId).OpenWeb(properties.RelativeWebUrl)) {
    //Get the collection of properties for the Booking item
    SPListItemCollection collItems = oWebsite.Lists[properties.ListTitle].Items;
    //Get the Calendar List that we will be querying against
    SPList calendar = oWebsite.Lists[properties.ListId];
    //Get the internal name of the fields we are querying.
    //These are required for the CAML query
    string start_internal = collItems.List.Fields["Start Time"].InternalName;
    string end_internal = collItems.List.Fields["End Time"].InternalName;
    string MeetingRoom_Internal = collItems.List.Fields["Meeting Room"].InternalName;
    string guid_internal = collItems.List.Fields["GUID"].InternalName;
    //Get the query string parameters
    string start_str = properties.AfterProperties[start_internal].ToString();
    string end_str = properties.AfterProperties[end_internal].ToString();
    string MeetingRoom_str = properties.AfterProperties[MeetingRoom_Internal].ToString();
    string guid_str = properties.AfterProperties[guid_internal].ToString();
    //Construct a CAML query
    SPQuery query = new SPQuery();
    //Create the CAML query string that checks to see if the booking we are attemping
    //to change will overlap any existing bookings, OTHER THAN ITSELF
    strQuery = string.Format(@"
    <Where>
    <And>
    <And>
    <Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Gt>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Gt>
    </And>
    <And>
    <Lt>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Lt>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    </Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    <And>
    <Geq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Geq>
    <Leq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Leq>
    </And>
    </Or>
    </Or>
    <Eq>
    <FieldRef Name='Meeting_x0020_Room' />
    <Value Type='Choice'>{2}</Value>
    </Eq>
    </And>
    <Neq>
    <FieldRef Name='GUID' />
    <Value Type='GUID'>{3}</Value>
    </Neq>
    </And>
    </Where>
    <OrderBy>
    <FieldRef Name='EventDate' />
    </OrderBy>
    ", start_str, end_str, MeetingRoom_str, guid_str);
    //Set the query string for the SPQuery object
    query.Query = strQuery;
    //Execute the query against the Calendar List
    SPListItemCollection existing_events = calendar.GetItems(query);
    //Check to see if the query returned any overlapping bookings
    if (existing_events.Count > 0)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage += "This booking cannot be made because of one or more bookings in conflict. <BR><BR>";
    //Here you can loop through the results of the query
    //foreach (SPListItem oListItem in existing_events)
    properties.ErrorMessage += "Please go back and schedule a new time.";
    catch (Exception ex)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage = "Error looking for booking conflicts: " + ex.Message;

    Hi there,
    Please verify the internal name of column which you have hardcoded in the code i.e 
    string start_internal = collItems.List.Fields["Start Time"].InternalName;
    string end_internal = collItems.List.Fields["End Time"].InternalName;
    I have used the Room reservation template from MSDN which has provided by MS under the code name of "Fantastic 40" along with below James Finn article.
    http://www.codeproject.com/Articles/30983/SharePoint-Reservations
    It worked for me for reservation. 

  • Can I include graphics referenced filename in a list of figures

    I am working on a project where I need to replace a large number of graphics in several books. I have created a LOF with hyperlinks to identify them, but it would be really helpful if I could include the referenced file name (from the object properties) in my list.
    I am currently using FrameMaker 7.2 due to help file issues (that's another  topic ). I also have FrameMaker 9, but it appears that the LOF functionality is the same between the versions.
    Any suggestions so that I don't have to open each graphic and manually write down the file names?
    Thanks in advance!
    Debby
    UPDATE:  I found that I can accomplish some of what I was looking for by doing an Index of References, using imported graphics - now if I could just merge the two...

    Thanks - the LOR does contain the filename and path.
    What am looking for is a document that can combine the LOR info with the LOF info, so that I get both the caption and the filename/path for each imported graphic.
    For example, my LOF includes "List Properties window...40" (Caption text and page number)
    The LOR for the same item includes "Graphics/02ListProperties.tif @ 150 dpi 40" (Referenced filename and object properties)
    Is there a way to do boh in the same list or index?

  • Infopath 2013 - Values are not appearing in a drop down field referencing site column which uses lookup in custom list

    I have a master custom list that has a set of site columns. For each site column there is a lookup to a custom list with reference data. When I edit the list in data entry view all values in drop down fields work fine, but when I customize the form for
    the master list, no data appears in the drop down fields. I can change the data binding on the form so it references the the correct data and when I preview the form it works. But when I publish it, no data is available in these drop down fields.

    Hi  shakonarson,
    According to your description, I try to reproduce your scenario but the lookup field works fine.
    When we customize the form for the  list  in the InfoPath 2013 , it is by design that the Drop-Down List Box control cannot  display its value.
    For troubleshooting your issue, please take steps as below:
    Go to lookup List Box on your form in  InfoPath 2013 , right click it and choose “Drop-Down List Properties” from the bottom of your field menu.
    Make Sure you select “Get choices from an external data source” and correct Data source.
    Make Sure the Xpath  of Entries is “d:SharePointListItem_RW” under the dataFields.
    Here is a good blog for sorting lookup column DropDown by customizing your list form with InfoPath you can have a  look:
    Sort SharePoint lookup column Dropdown by customizing your list form
    with InfoPath
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • 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

  • Disable delete option for a list? But where ?

    hi all,
    via Console Application I can hide/disbale the Delete This List option:
    static void Main(string[] args)
    SPSite site = new SPSite("http://localhost");
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["DemoList"];
    list.AllowDeletion = false;
    list.Update();
    My question is, if I want do this in Empty SharePoint Project what I must to do ?
    if any one has a suggestion or ides please tell me.
    thanks in advance
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

    thanks for your answer Mr. Atkinson, that was excatly what I need. This is my code inside the event receiver:
    public override void ListAdded(SPListEventProperties properties)
    SPList list = properties.List;
    list.AllowDeletion = false;
    list.Update();
    but the above code dont have any effect on the list, I have still the Item with DELETE THIS LIST in the listsettings.
    do you know maybe why? or can I also debugg it?
    thanks in advance
    BR
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • An item that already exist in the list

    if someone insert an item that already exist in the list- I want that an email will send to the manager.
    can I do this? how?

    I will write code that send an email, but my question is in which event?
    ItemUpdating event will not help me because the item will not update if the item already exist in the list...
    thank you!
    in item adding get the column value of the item which is getting added
    string value= properties.AfterProperties["ColumnName"].ToString(); OR string name= web.Lists[properties.ListId].Fields["Column Display Name"].InternalName;string value= properties.AfterProperties[name].ToString();
    after getting the value search if the item exists which has the same field value. 
    you can iterate the list for searching but i will recommend you to use CAML query

  • Shared Component - Lists (Solved)

    Hi All,
    I have created List (Shared Component - Lists).
    Now my List has multiple List Items (List Entries).
    I have created that, but my problem is I want each List Entry to appear on a new line.
    I have used Sidebar Region, Alternative 1 as the template for displaying the list on the Page.
    Hoping for a quick solution from some one.
    Thanks in advance.
    Arif
    Message was edited by:
    Arif

    Thanks Everyone,
    My problem is solved.
    For the List Properties select Vertical Unordered List with Bullets.
    Shared Components > Lists > (Select the List Name).
    Click the Edit List Button and then Select the List Template as Vertical Unordered List with Bullets.
    Regards
    Arif

  • Left Justify Wrapping Text Lines in Lists

    I'm using RH9 on Windows XP, fully patched.
    I'm having a problem finalizing a few tweaks with the formatting of lists imported from FM.It took me a while to get the lists from the FM source book to import correctly, but now I have it pretty clean, with the exception of when text in the lists wraps.
    Currently, if there is a second line that wraps, it justifies with the list element (number, letter, bulelt, etc.) on the left. However, I would like it to justify itself on the left with the first sentence.
    I've managed to fix this easily while authoring natively in RH by adjusting the multilevel list styles. But I'm unclear about how to do this with the style mapping from FM>RH.
    I'm mapping the original FM style to a RH paragraph style and indicating in the mapping properties to "Convert Autonumber to RoboHelp List." I see the option to edit the list properties in the RH paragraph style I map to, but it doesn't go as deep in terms of options as the multilevel list style edit dialogue. I know you can associate the paragraph style with a multilevel list, but it was such a nightmare to get this working as it is, I'm remiss to do anything without some direction.
    Thanks in advance,
    Douglas

    Thanks Jeff, I'm not getting the results I want from those selections.  RoboHelp List actually removes my bullets entirely.  HTML list correctly formats the bullets but then places text 1 or 2 lines below instead of aligned with the bullet .  The only way I can get a bullet and text to align is by selecting Convert Autonumber to Text.  Using this selection, RH places a small square bullet, ignoring whatever I set in the CSS (eg. list-style-type: desc;).  The text wrap should be handled by list-style-position: inside; but RH is ignoring W3C conventions and using a default that is not configurable.  I understand RH is not W3C compliant so then what logic is RH using?  Regardless of what setting is selected for lists, RH overrides my custom style sheet settings.
    There is no way to map a style to another style in RH9 as far as I can see. RH9 allows you to make style setting adjustments in the [Source] but those bullets do not format correctly either (formatting-->indents-->bulleted list icon/button).
    I have checked my FrameMaker template source and don't see what could be contributing to the problem.  Those bullet styles are standard for FM, round and with the exact layout I want in my RH output.  RH seems to want to re-adjust that to its own default. 
    Any insights would be appreciated.
    Thanks

Maybe you are looking for

  • How to fill in a PDF form after client fills in HTML form

    i guess i need to try this a second time. i have been to numerous sites where they ask a user to fill in lot of fields with a html web form, and then when all done all that filled in data gets transferred into PDF forms for the client to print out, e

  • About using hibernate with mysql

    hi all, i have used hibernate with hsqldb(database given by default) and it works fine.but when i tried to use it with mysql then i have encountered a problem xception org.hibernate.TransactionException: Transaction not successfully started      org.

  • No picture or sound on downloaded video from iTunes

    I recently purchased a video from the iTunes store and I searched the forums for nearly an hour and couldn't find anything that helped. The file was rather large (2.18 GB). When it had "finished" it had an error mesage next to it "Network Connection

  • Missing Reader, can't import data...

    I'm relatively new to Oracle SQL Developer and this answer is probably obvious but it's managed to elude me. I have an Excel spreadsheet containing data I want to import to an existing table. When I select Import Data, no matter which type of data ty

  • CProjects 4.0 - Project Status Report

    Hi All, I am using cProjects 4.0 Under SPRO, I get to "cProjects > Basic Settings > Forms for Printing and Project Status Report". Please list out the sequence of activities to enable me get and use Project Status Report from the front end. A detaile