Customer Attribute restrict issue in BEx

Dear All,
I have added lot of 'Z' attributes to 0Customer and i have loaded the data. Now for queries i have created InfoSet which contains 2 DSOs and 0CUSTOMER.
In a query i need to restrict particular Display attribute but in restrict screen it is not showing any values for this attribute.
So is it mandatory to make this attribute as navigational though i have created InfoSet??
Please help on the issue.
Regards,
Sohil Shah.

Hi Sohil,
If you can drag the char but not able to see any values and that is the reason you are not able to restrict, then you can do two things.
1. If you know the values you want to restrict, directly type it in the restriction window and press Right Arrow Key to add it into restriction.
2. If you want to select from the list only, make sure you have attribute change run executed for 0customer and this particular display attribute. Once you run this, you should be able to see the values in the list.
- Danny

Similar Messages

  • RRI sending restrictions issue in BEx Analyzer - Known SP Issue?

    We have two queries linked through an RRI interface that is designed to "send" a restriction of one characteristic when the user right clicks on the cell containing the value they want to see in the second ("Goto") query and selects "Goto" and the second query's name. This interface works fine on my machine with both my ID and the test ID the users are using to test these reports. My machine is on SP8, Patch 1 Revision 1443. However, when the users execute the same query and try the RRI they see the second query with all of the values in that column, not just the one they "selected". They are on SP7, Patch 1 Revision 1352. Is this a known issue with this version of Analyzer? I have been searching around and can't find any documentation saying so, but something "official" from SAP that documents this would be perfect to recommend and upgrade to SP8 to fix this problem.
    Thanks!

    Hi Somenath,
    Are you sure that all the data in cube is affected? I mean also the data loaded in cube before GUI upgrade?
    I have a feeling that instead of GUI upgrade something happened to the background user that is extracting the data in source system. E.g. this user master data has changed - in decimal format.
    So check the user and check data loaded before/after change of GUI.
    BR
    m./

  • Issue with Sorting by Custom Attributes

    In our custom SES query application, I am trying to implement sorting at the custom attribute level. I am having difficulty in understanding exactly how to set the options on doOracleOrganizedSearch() to achieve the desired result.
    We have a table based content source and allow a user to search via custom search attribute. We are also going to allow them to sort by custom attribute.
    For example, say we have a Project content source and one of the attributes is "Client Name". Users are going to be able to sort by client name (A-Z and Z-A). I have a prototype working but it only seems to work if I set topN to a very high number.
    I want to bring back the first 10 documents sorted by Client Name A - Z and allowing paging to the next set of sorted results. My prototype works if I set topN to 1000 (more than the # of results) but does not work if I set it to 10 (# of results I want to display per page).
    Below if my code. Note I am not setting the group attribute or the cluster list. Perhaps this is the issue?
    Many thanks in advance!
    OracleResultContainer results = service.doOracleOrganizedSearch
    (this.m_query, // query
    this.m_docsRequested, // topN
    this.m_startIndex, // startIndex
    new Integer(10), // docsRequested
    this.m_dupRemoved, // dupRemoved
    this.m_dupMarked, // dupMarked
    this.m_searchDataGroup, // groups
    this.m_queryLang, // queryLang
    this.m_docLang, // docLang
    this.m_returnCount, // returnCount
    this.m_filterConnector, // filterConnector
    filters, // filters
    this.m_fetchAttributeNames, // fetchAttributeNames
    null, // searchControls
    null, // groupAttr
    this.m_sortAttributes, // sortAttrList
    null); // clusterList

    Hi Nikola,
    in 9.0.1 even if you rewrite the web interface you can't sort files by custom attributes setting a SortSpecification to a Folder. You can only sort by base attributes with getItems(). To get item sorted on custom attributes you must perform a search (a lot more codelines).
    Regards, Alessandro

  • Problem with setting custom attribute and it being searchable

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

  • Custom Attributes in Target Group Email Campaign Not Refreshed

    We have a campaign sending emails to a target group of BPs.  To fill our custom attributes with values  we have implemented our code in badi CRM_IM_ADD_DATA_BADI method CRM_IM_BPSELE.  We tested our code using the Test Send feature from the email form and all worked fine.
    But when we ran the campaign in the background for a Target Group with multiple BPs it would not work correctly, our attribute values were incorrect. 
    We discovered while debugging the job, that the badi gets run once for each BP, but the attribute values from the previous BP do NOT get refreshed.  In fact there are 2 entire sets of attribute records in the CT_ATT_VALUES table parameter.  Each time through it multiplies by another set of our attributes.
    I have put code in the badi as a workaround that deletes the previously filled attributes for the previous BP, but I'd like to figure out what is causing this problem.
    Any help would be appreciated.
    thanks,
    Lee

    Hi Lee,
    Is this issue resolved for you now??
    I am facing the similar problem.
    Though the BADi is not used for these two mails (it is used in some other mail forms), it is actually called in 'CRM_ERMS_MAIL_COMPOSE' Function Module and the process is same as u said. There are 2 sets of values.
    I am using a Mail Alert functionality where in a 'Mail Alert ON' is sent to field engineers (FE) and then upon FE accepting the work we will send a 'Mail Alert OFF' to FEs.
    Problem is, we get one or two fields data incorrectly sometimes. I am not able to find out the root cause yet.
    Please let me know if you have had any resolution to this!
    Thanks in advance.
    Chaitanya

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Custom Attribute not available in Available Fields section of Configuration

    Hi Experts,
    My requirement is to add a custom search field in contact search screen. For that i tried various options
    Option1
    Added a model attribute in component/view  BP_CONT SEARCH/Search. The attribute got successfully added. But when i opened the Configuration tab, i could not see the attribute in the available fields.
    Option 2
    In the view CRMVC_SDESIGN, i created a new entry for my attribute in object type: BP_CONTACT and design object . But doing so, i got an error and was not able to add my attribute
    Option3
    Since the View context node 'Search' is bound to the Component Controller Context node 'Search'. I created my custom attribute in compoennt controller also. But this also did not help.
    Option 4
    I deleted the enhancement of the view and created a new enhancement. I created a value node in Search context node. But still the attribute is not available in the Availble Fields in the Configuration of component/view BP_CONT_SEARCH/SEARCH.
    Kindly provide your valuable suggestions to resolve this issue.
    Regards,
    Radhika
    Edited by: Radhika Chuttani on Jan 6, 2012 7:28 AM

    Hi Radhika,
    You need to enhance the search query structure as well in order to get the field in the configuration.
    You can find the BOL structure for the corresponding context node bol model.
    In your case, the BOL model is the search object 'BuilContactAdvancedSearch'.
    The corresponding structure can be found at the BOL Model Browser, under Dynamic Query Objects
    for the search object 'BuilContactAdvancedSearch'. The corresponding structure 'CRMT_BUPA_IL_CONP_SEARCH'
    has to be enhanced with the new custom attribute. Only then, this field would be available in the configuration
    when the following htm code gets executed when you open the configuration tab.
    <thtmlb:advancedSearch id                = "advs0"
                                     fieldMetadata     = "<%= controller->GET_DQUERY_DEFINITIONS( ) %>"
                                     header            = "<%= SEARCH->get_param_struct_name( ) %>"
                                     fieldNames        = "<%= controller->GET_POSSIBLE_FIELDS( ) %>"
                                     values            = "//SEARCH/PARAMETERS"
                                     maxHits           = "//SEARCH/MAX_HITS"
                                     ajaxDeltaHandling = "false"
                                     onEnter           = "search" />
    Here you can see that, it reads the parameter structure using the method SEARCH->get_param_struct_name( ) of
    the context node.This is used for configuration as well.
    Also if you have an F4 help for your custom attribute, you have to add it in the GET_DQUERY_DEFINITIONS( )  of the
    view controller. These additional information will help you to understand better.
    Regards
    Leon
    [SAP Community Network Forums on mobile|https://cw.sdn.sap.com/cw/ideas/7910]

  • Help needed in Inbox search for Custom attribute

    Hi,
    We have  a requirement where in we are having a custom attribute on Service request to store the ECC Order number.
    We have enhanced the Inbox search to retreive all the service requests havig the ECC order number. 
    Here we are encountering a problem. i just created a new crm service request and entered order number 1234. and now when i search for the same in Inbox search giving the criteria order number as 1234. I get no results found. But when i extend the max list to 2000, then i see the service request appearing in the result list. not sure about the algorithm that is designed for inbox search.
    Any pointers on how to resolve this issue would be of great help.
    Thanks,
    Udaya

    Hi,
    I do not have the time to research this completely, but I had a short look into the class you posted.
    In the GET_DYNAMIC_QUERY_RESULT there is a call to CL_CRM_QCOD_HELPER->PREPROCESS( )
    A little bit lower there are blocks marked by comments for the single searches that are handled by this class. I had a look into the campaign_serach() method. There if you scroll a little bit down (around line 123) they set all search parameters to SIGN = 'I' OPTION = 'EQ'. This is done several times below as well.
    Set a breakpoint in the proprocess() method and check which of the blocks is called and how they handle your search criteria.
    Hope it helps.
    cheers Carsten

  • UWL refresh problem for ABAP BOR custom attributes

    Hi all,
    we are facing an issue with an UWL iView. We wanted to display custom attributes from an ABAP Business Object (ABAP_BOR).
    The feature is working but when an end-user receives a new task in his UWL view, he needs to click on the refresh button in order to have all the custom attributes correctly displayed.
    We have only the problem with custom attributes, for the columns containing standard workflow decision task attributes, the data are displayed directly without the need to push the refresh button.
    We are on EP 7 SPS11 and the back-end is an ECC6 version.
    We have followed the methodology described in the How to configure and customize the Universal Worklist pdf document:
    ABAP BOR
    <CustomAttributeSource id="ABAP_BOR"
    objectIdHolder="externalObjectId"
    objectType="FORMABSENC"
    cacheValidity="final">
    <Attribute name="COSTCENTER" type="string"
    displayName="Cost Center"></Attribute>
    <Attribute name="FIRSTDAYOFABSENCE" type="date"
    displayName="First day of absence"></Attribute>
    <Attribute name="LASTDAYOFABSENCE" type="date"
    displayName="Last day of absence"></Attribute>
    </CustomAttributeSource>
    Do you have an idea where this problem come from and how it could be solved?
    Thanks in advance and regards,
    Sébastien BODSON

    Hi Chintan,
    This parameter has no impact on the problem we face. I found an exact description of our problem on SAP Help portal, in the UWL pages:
    CustomAttributes, CustomAttributeSource and Attribute
    Extract from SAP Help portal:
    Every item type can have custom attributes defined, which can be filled from Business Object or Provider Data Containers like the Business Workflow Container or the Alert Container. These attribute sources are defined within the CustomAttributeSourcetag, which contains information on which attribute connector brings the custom attributes, how to identify these custom attributes in the provider system and how long the cache is valid.
    Note that once an item arrives, these custom attributes are retrieved in additional calls to the backend. For performance reasons, in order to minimize responses times to the end user, this may happen while the item is displayed to the end user - causing such attributes to be empty initially and only to appear in subsequent requests.
    The display names of the attributes for column headers and labels are defined in the display attributes of the default view of the item type.
    Does anyone know a workaround in order to have directly the complete information displayed?
    Sébastien BODSON

  • Help required in additing custom attribute to Item list view

    Hi Experts,
      I need to add custom attribute(defined in Customer_i) to BTADMIN_I (list type) context node. I have tried adding the attribute using the 'Create Attribute' wizard in the work bench making use of the BOL Model relationship. The attribute is added but it is always display only. Could any one guide me in resolving the issue?
    I am using the component ICCMP_BTITEM & view Itemlist.
    Thanks & Regards,
    Raj

    Hello Rajkumar, i h ave the  same problem , with other attribute that i have created with the wizard. but the problem is that this attribute always is only display. Did you resolve the problem?
    Greetings.

  • How to add a custom attribute to an entry?

    I need to store a person's social security number in the directory.
    I haven't found any appropriate standard attribute for such purpose (is there any?), so I decided to create a new one.
    I've written a method:
    public void setAttribute(String entryDN, String attrName, String attrValue)
    throws LDAPException, UnsupportedEncodingException
    LDAPConnection lc = new LDAPConnection();
    lc.connect(ldapHost, ldapPort);
    lc.bind(ldapVersion, loginDN, password.getBytes("UTF8"));
    LDAPAttribute attribute = new LDAPAttribute(attrName, attrValue);
    LDAPModification modification
    = new LDAPModification(LDAPModification.ADD, attribute);
    lc.modify(entryDN, modification);
    lc.disconnect();
    When the method is called
    ldapManager.setAttribute("cn=TheUserName,cn=Users,dc=server,dc=domain,dc=com", "_custom", "TEST");
    the following exception is thrown:
    LDAPException: Undefined Attribute Type (17) Undefined Attribute Type
    LDAPException: Server Message: Attribute _custom is not supported in schema.
    LDAPException: Matched DN:
         at com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
         at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
         at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source)
         at com.novell.ldap.LDAPConnection.modify(Unknown Source)
         at com.novell.ldap.LDAPConnection.modify(Unknown Source)
         at com.novell.ldap.LDAPConnection.modify(Unknown Source)
         at lv.alise.eliepaja.ldap.LdapManager.setAttribute(LdapManager.java:156)
         at lv.alise.eliepaja.ldap.LdapManager.main(LdapManager.java:178)
    Exception in thread "main" Process exited with exit code 1.
    How could I solve the issue?

    Hi,
    You need to check for a few things in your OID :
    1. Your custom attribute should be present in the Schema.
    2. The attribute should be grouped in an ObjectClass.
    3. The ObjectClass should be put in the Entry you wish to modify.
    4. You can then store a value ( or values ) against the attribute.
    You can do steps 1, 2 & 3 either programatically or manually.
    I hope this helps.
    Regards,
    Sandeep

  • Profile customized attribute is not working?

    Hi,
    I downloaded ‘WCSpacesExtensions’ project from Oracle because I want to add some customize attributes to Profile. I added ‘project’ to ExtendedProfileAttributes.java, and created getter and setter methods. In a jsff, this is my EL #{wcProfileCustomAttribute['securityContext.userName'].project}. The setProject() sets up the attribute, but when getProject() is invoked, ‘project’ is returned as NULL.
    Every time the jsff page references the attributes via EL, it creates a new instance ExtendedProfileAttributes obj. because you can see it calls the constructor over and over. It saves value of ‘sip’ (=> setSip():12345), but when trying to read its value, it's NULL (=> getSip():null). So, I can't read and save the attribute per user.
    Any feedback is greatly appreciated.
    .jsff page
    <mds:insert after="oliplam3" parent="olipfl1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:panelLabelAndMessage xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    label="*Sip" id="splam2">
    <af:inputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="sit1"
    value="#{wcProfileCustomAttribute[(pageFlowScope.userId == null ? securityContext.userName : pageFlowScope.userId)].sip}"/>
    </af:panelLabelAndMessage>
    </mds:insert>
    <mds:insert after="splam2" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:panelLabelAndMessage xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    label="*Proj" id="splam3">
    <af:inputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="sit2"
    value="#{wcProfileCustomAttribute[(pageFlowScope.userId == null ? securityContext.userName : pageFlowScope.userId)].project}"/>
    </af:panelLabelAndMessage>
    </mds:insert>
    ExtendedProfileAttributes.java
    package custom.webcenter.spaces;
    import oracle.adf.share.logging.ADFLogger;
    * This is a sample class for profile extension
    * Add getter (and setter if you need to save)
    * for any new custom attribute.
    * New attriutes defined here can be acessed
    * via EL like
    * #{wcProfileCustomAttribute['smith'].sip}
    * in the jspx/jsff.
    public class ExtendedProfileAttributes
    private String sip;
    private String project;
    public ExtendedProfileAttributes(String profileID)
    // Query from custom attribute source and cache them
    //project = profileID + "'s Project";
    //mSIP = profileID + "'s SIP address!!!***";
    //mStreetAddress = profileID + "'s street address";
    System.out.println("ExtendedProfileAttributes(). user:" + profileID);
    System.out.println("ExtendedProfileAttributes(). sip:" + sip + " project:" + project);
    public void setSip(String s) {
    this.sip = s;
    System.out.println("=> setSip():" + this.sip);
    public String getSip() {
    System.out.println("=> getSip():" + this.sip);
    return this.sip;
    private static String CLASS_NAME = ExtendedProfileAttributes.class.getName();
    public void setProject(String project) {
    this.project = project;
    System.out.println("=> setProject():" + this.project);
    public String getProject() {
    System.out.println("=> getProject():" + this.project);
    return project;
    DEBUGGING:
    ===========
    ExtendedProfileAttributes(). user:securityContext.userName
    ExtendedProfileAttributes(). sip:null project:null
    => setSip():12345
    ExtendedProfileAttributes(). user:weblogic
    ExtendedProfileAttributes(). sip:null project:null
    => setProject():333
    <Feb 24, 2012 11:24:57 AM EST> <Warning> <oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer> <ADF_FACES-60099> <The region component with id: T:wcCmdLinkGSSwit:spaceSwitcherComp:crtGS has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.>
    <Feb 24, 2012 11:24:57 AM EST> <Warning> <oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer> <ADF_FACES-60099> <The region component with id: T:spcNavPanel:dc_r3 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.>
    ExtendedProfileAttributes(). user:weblogic
    ExtendedProfileAttributes(). sip:null project:null
    ExtendedProfileAttributes(). user:weblogic
    ExtendedProfileAttributes(). sip:null project:null
    ExtendedProfileAttributes(). user:weblogic
    ExtendedProfileAttributes(). sip:null project:null
    => getSip():null
    Thanks a lot.

    Hi,
    if this is a WebCenter specific issue, they do have their own forum on OTN: WebCenter Portal
    Frank

  • Remove custom attribute labels

    Hi.
    Does anybody know how remove the custom attribute labels on a page.
    Thanks
    Portal version 9.0.2.6.18 and 9.0.4.0 (10g)

    Try below:
    http://www.harbar.net/archive/2012/07/23/sp13adi.aspx
    http://social.technet.microsoft.com/Forums/office/en-US/d183d133-7fdd-4053-a2ef-dd09b892bf33/error-when-i-get-the-custom-property-an-administrator-must-create-this-property-in-the-profile?forum=sharepointdevelopmentprevious
     This error indicated that the property is not exist in the UserProfile properties. I think you need first to check out the "ZipCode" has been created in your default user profile.
    Create custom profile property:
    http://technet.microsoft.com/en-us/library/cc262327.aspx#create
    In code, it is a good practice to make sure the specific property whether it exists or not.
    SPSite site = new SPSite(SPApplicationRootUrl);
    SPServiceContext serviceContext = SPServiceContext.GetContext(site);
    UserProfileConfigManager profileConfigManager = new UserProfileConfigManager(serviceContext);
    ProfilePropertyManager profilePropertyManager = profileConfigManager.ProfilePropertyManager;
    CorePropertyManager corePropertyManager = profilePropertyManager.GetCoreProperties();
    CoreProperty coreProperty = corePropertyManager.GetPropertyByName("ZipCode");
    if (coreProperty != null)
    Also you can try to create your custom property in code behind:
    http://www.sharemuch.com/2010/03/30/how-to-create-custom-sharepoint-2010-user-profile-properties-programatically/
    Hope this can help. 
    If this helped you resolve your issue, please mark it Answered

  • Custom Attributes, Fields in Folders

    Hi,
    I have a Folder where I am uploading documents etc. I need to capture additional fields - 'Speaker' etc. when I upload the document. Is there any way of doing this?
    Thanks.

    yep, at item level though... Create a custom item type based on File and add your custom attributes such as Speaker there. it should work fine, but you must remember to use the new item type to upload the docs.
    To minimise confusion you can restrict the list of available item types at the content area level in its edit properties, i.e, get rid of File but keep your new ones based on File.

  • Powershell script to set custom attribute on mailuser returns WARNING: The command completed successfully but no settings of user have been modified.

    I am trying to write a script to enable a mailuser (I do know the difference between mailuser and mailbox) and set a custom attribute for that mailuser.  Every time I run the script I get "WARNING: The command completed successfully but no settings
    of <User DN> have been modified."  Both commands being invoked work when typed manually into the exchange management shell on the exchange server itself.  I am using the same administrator account in the script, and when I login to the
    exchange server to manually run the commands, so it shouldn't be a permission issue.  Here is my script so far.  If anyone can shed some light on what I'm doing wrong, I'd appreciate it.
    $excel = new-object -com excel.application
    $wb = $excel.workbooks.open("c:\temp\testmail8.xlsx")
    $ws = $wb.Worksheets.Item(1)
    $row = 1
    $s = New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri http://<Exchange Server Name>/powershell -Credential [email protected]
    Do {
    $Email = $ws.Cells.Item($row, 1).Value()
    $Cat = $ws.Cells.Item($row, 2).Value()
    invoke-command -Session $s -ScriptBlock {Enable-MailUser -ExternalEmailAddress $($args[0][0] + "@domain.com") -Identity $($args[0][0])} -ArgumentList (,$Email, $Cat)
    invoke-command -Session $s -ScriptBlock {Set-MailUser -Identity $($args[0][0]) -CustomAttribute1 $($args[0][1])} -ArgumentList (,$Email, $Cat)
    $row++
         } While ($ws.Cells.Item($row,1).Value() -ne $null)
    $excel.quit    
    Exit-PSSession

    Hi,
    I'm not sure where is wrong in your script. If you want to get more help about the script troubleshooting, I recommand you to ask a question in Script Center forum for more professional answers:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    As a workaround, please directly create a mail user in EAC and set related custom attribute to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for

  • Error in the configuration for sap logon tickets

    Hi Forum, I use Tcode crmd_order_bp to see the BP cockpit and the error message displays as <b>Error in the configuration for SAP logon tickets</b> But if I click "Yes", system displays cockpit. How can I avoid this error. Thanks in advance Regards S

  • Directory structure in XI

    does anyone have the doc for Directory structure like how the URI are stored in XI server? for an ex: for Adapter Status -http://<host>:<J2EEport >/AdapterFramework I just need the URI's for all the pages.. Thanks-Gopal

  • Unescape HTML using ABAP

    Hi ,    I have a function module which retrieves HTML code. I need to unescape that code using ABAP in BSP to show to the user in a pdf. Any ideas? Many thanks.

  • How do I take a screenshot? (PC or Mac)

    QuestionHow do I take a screenshot? (PC or Mac) Answer Question How do I take a screenshot with a PC? (Scroll down for Mac instructions) Answer If you are experiencing an issue at home that we can't recreate here at Tagged, we often ask that you send

  • Auto Number in Forms

    Hi, I have a multiple line block [grid type] in tabular format in which the first column would be the serial number. The first value should display as '1' and once the user entered the records the focus goes to new next record the sequence should be