Reading custom OID Attributes

We have a dev and a test portal server, and we have been successfully using the following code to read custom OID atributes. ie We have created our own LDAP schema/class with some of our own attributes. Then doing the following:
     PortletRenderRequest pReq = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
     String flag = pReq.getUser().getPropertyValue("myflag");
This is working quite fine in our dev server, but does not work in our test server. The "flag" variable comes out as null in the test environment.
As far as I can tell everything is configured and setup exactly the same. As this is someone else's code that I am maintaining I am not quite sure where to start looking. Can someone point me in the right direction on where to look to work out how this "getPropertyValue" is supposed to work?

Hello Amarys,
- In order to add Custom Attributes to Portal Database (default Java), you dont have to do attribute mapping in the XML. It is applicable for LDAP scenarios only.
- You need to define Administrator / Self Managed Custom Attributes based on who views / modifies [UME Custom Attributes|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/44/0316d50bbe025ce10000000a1553f7/frameset.htm]
- You can use the UME API to read the custom attribute value set during the registration process  -
static final String CUSTOMER_NAMESPACE = "com.customer.usermanagement";
IUser user = . . .;
String org[] = user.getAttribute(CUSTOMER_NAMESPACE,"hr_org");
if (org != null) {
for (int i=0; i< org.length(); i++) {
response.write("Org: " + i + " = " + org<i>);
} else {
response.write("No orgs found for this user.");
-  Extremely good reference (make sure you dont use any depricated API) -
[UME API|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3641e490-0201-0010-c68f-e51221925714?QuickLink=events&overridelayout=true]
Hope this helps ! ~ Dhanz

Similar Messages

  • Function modules in CRM (read Business Partner attributes)

    Hi,
    I would like to print a document in wich will be Business Partner attributes and other crmdata. Does anybody know how I can read the Business Partner marketing attributes. Can I use for this some function modules or else?
    Are there some documentations about all Function modules in CRM and what they do?
    Thanks,
    Malnor

    Hi Malnor,
    Marketing attributes of a BP can be found in table AUSP.
    You can build your own custom function module to read marketing attributes.
    Refer to the link below for sample code of a FM to read BP marketing attributes -
    [Custom Function module to read BP marketing attributes|http://divulgesap.com/blog.php?p=NDg=]
    Hope it helps.
    Regards,
    Ravi

  • How to read context node/attribute data of diff UI component of same screen

    Hi,
    I am new to CRM and as well as BSP, Now the requirement is, at the time of Lead creation, when the end user enters customer code and sales area i need to fetch and display the customer group 1 value( VIP,KAM etc) based on the customer's sales area, ( these are sales area specific values).
    but the problem is Customer code is in diff UI component and sales area data is in diff UI component .
    1) customer code attribute is in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTPARTNERPROSPECT.
    2) sales area fields are in the UI component BTORGSET, View BTORGSET\OrgSetData, Context node is BTORGSET.
    3) I have created new field(customer type to display the customer group 1 value "VIP") in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTLEADH.    
    To display the value in the context node BTLEADH, i need to know the sales area data which is entered in BTORGSET.
    Kindly let me know how to read the data which is in diff UI component of the same Lead creation screen.
    i written following code in context node BTLEADH, atttribute New Zfield, in get method, but not able solve, please guide me.
      DATA: LR_ENT TYPE REF TO CL_CRM_BOL_ENTITY,
                 LR_COL TYPE REF TO IF_BOL_ENTITY_COL.
      LR_ENT ?= ME->TYPED_CONTEXT->BuilHeader->COLLECTION_WRAPPER->GET_CURRENT( ).
      LR_COL = LR_ENT->GET_RELATED_ENTITIES( IV_RELATION_NAME = 'BuilSalesArrangementRel' ).
      LR_ENT ?= LR_COL->GET_FIRST( ).
      IF LR_ENT IS BOUND.
        LR_ENT->GET_PROPERTY_AS_VALUE( EXPORTING IV_ATTR_NAME = 'DIVISION'  IMPORTING EV_RESULT =  LV_DIVISION  ).
      ENDIF.
    I'll appreciate if you can provide me some documents to refer.
    awaiting for your responses.
    Thanks
    Bhanu

    Hi Gangadhar,
    I think i have not clearly explained my requirement, let me put it once again. My requirement is, I have to read two UI component data, validate and display some value in one new zfield which is in one of the UI components.
    I need to display customer's sales area specific data like customer group 1 value in that new zfield. for that i need Customer code and as well as sales area data from the screen.
    1) customer code attribute is in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTPARTNERPROSPECT.
    2) sales area fields are in the UI component BTORGSET, View BTORGSET\OrgSetData, Context node is BTORGSET.
    3) I have created new field(customer type to display the customer group 1 value "VIP") in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTLEADH.
    As per my understanding, in the context node BTLEADH, GET_METHOD of atttribute New Zfield, i have to read customer code from UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTPARTNERPROSPECT and Sales area data from UI component BTORGSET, View BTORGSET\OrgSetData, Context node is BTORGSET based on the values, validate and display the data.
    But as per your recent reply you are asking me to write the code in get_property_attribute---division. so i didnt understand.
    Kindly clarify if i am wrong.
    awaiting for your response.
    Thanks
    BHanu

  • Rich Text Editor with Custom Text Attribute

    Hello All,
    We are using the latest version of Oracle Portal 10G. I have a need to create custom Attributes of the type text to let people enter a lot of text. But when User are in edit mode of an item where this custom attribute is used, the Rich Text Editor is not shown for entering the Text for the Custom Text Attribute. It shows a normal html text area. Has anyone ever used RTE with Custom Attribute?
    I request you guys for help.
    Thanks.

    The Problem with the Custom Attribute is not solved, but I have now compromised with the Situation and now I am not using a Custom attribute.
    Rather, Now I am creating a Custom Item Type using Base Text Type (earlier i wanted to create custom item type at my own without any base item type). In this case now I will not be able to change the Lable of the RTE (that is "Text", when the Custom Item is in Edit Mode), but I hope that my users can understand that much.
    I have created a template for portal pages. In the Template I can edit the Region Properties. When I edit the Region property of the region where I want to display my Custom Items. I get two Tabs on the top, Main and Attributes/Style. ON the main tab I can tell what type of region it should be, width etc, in my case it is item type region. And on the Attributes/Style tab, I can select from the availabe Attributes as which all Attributes I want to display. Here if i select only "Associated Functions" Attribute then normally portal should not render anything by default on the Page. It should rather make a call to the procedure which is associated with the Custom Item and as when I was creating the custom item type, I had clicked on "Display Procedure Results With Item", so portal should now display the result of my Procedure. So far it works without problem.
    But the problem is that the Portal displays the text at its own also. As i have written that Portal should not display anything at its own, this doesn't work in this version of Portal for a Custom Item Type that is made using Base Text Item Type. For all others it has worked till now (I have create 50s of Custom item types).
    You can better understand by going to the following URL. Just have a look between the two dotted lines (Dotted line is also a seperate Custom Item Type). Between the two Dotted Lines is a custom item, in general it would be a Custom News Item having title, image and so on.
    http://sunnode1.edvz.sbg.ac.at:7778/portal/page?_pageid=79,56047&_dad=portal&_schema=PORTAL
    I have really programmed a lot with portal but now at this stage where I am near to end, I am getting problems which are coming from Product. I request you for help.

  • Custom Dynamic Attributes

    Hello Experts:
    Does anyone knows if it is possible to create a Custom Dynamic Attribute for Bid Comparison where this custom Attribute can be automatically filled through a function module or program with some calculated value?
    My requirement is to provide an automatic supplier qualification which can be used as a comparison attribute, the qualification could be calculated using supplier information from previous POs, Confirmations, etc.
    Hope you can help me out
    Hugo

    Hi,
      Dynamic Attributes for Bid Invitation can be created using customization.
    SPRO-> SRM Server->Bid Invidation - > Dynamic Attributes.
    Generally the response to  the dynamic attributes are given by Bidder when submitting the Bid.
    For automaic population of response to the bidder do you want to do through report ?
    you can implement "BBP_DOC_CHANGE" BADI metod "BBP_QUOT_CHANGE" for pupulating the response of dynamic attribute while submitting BId.
    Regards
    Kalandi
    PS : Reward points if it helps you.

  • Custom tag attribute calculated by scriptlet expression

    Hi,
              If I set the rtexprvalue subelement of the attribute element in my tld to
              "true", should I be able to dynamically determine the value of my custom tag
              attribute using a scriptlet expression?
              When I include the custom tag reference:
              <prod:getCategory id="category"
              categoryID="<%=request.getParameter("catID")%>" scope="page"/>
              it actually gets written to the html as:
              <prod:getCategory id="category" categoryID="2133" scope="page"/>
              and is not recognized as a jsp tag.
              I am using weblogic 6.0 sp1.
              Thanks in advance!
              daniel
              

    I had the same problem in a design a couple of months ago and could not get around it so I switched the functionality into code and out of the tag lib.
    I take it you are trying to do something like this?
    <%
    String value="hiworld";
    %>
    <mytaglib:saysomething value="<%=value%>"/>

  • Custom tag attribute question

    How to assign value of expression or variable to custom tag attribute in jsp?

    I had the same problem in a design a couple of months ago and could not get around it so I switched the functionality into code and out of the tag lib.
    I take it you are trying to do something like this?
    <%
    String value="hiworld";
    %>
    <mytaglib:saysomething value="<%=value%>"/>

  • Customer-specific attributes (properties) for processes?

    Hello community,
    I already know how to define customer-specific attributes (properties) for documents stored in Solution Manager using the Document Modelling Workbench. For documents, everything works fine, so far.
    But: I also want to define customer-specific properties for processes. Is this possible? If yes, how do I do that? I cannot find any related configuration options -- neither in SPRO nor in Solution Manager's own project configuration area.
    Thanks in advance,
    Thomas

    Hi,
    In SPRO, naviagete to SAP Solution Manager Implementation Guide -> SAP Solution Manager -> Scenario-Specific Settings -> Implementation/Upgrade -> Blueprint and Configuration -> Object Attributes -> Definition of Customer Attributes for Object Types
    Best regards,
    Jacques.

  • CUP Custom Role Attributes

    All -
    My question is about creating custom role attributes in CUP. I read in the "SAPu2122 GRC Access Control 5.3 Document Version 3.10 u2013 December 2009" on page 245 that "You can also define your own attributes to support your needs by adding custom fields." I have two questions:
    1) Can I defined custom role attributes outside of the delivered ones (Company, Functional Area, Application Area, Business Process, Business Sub-Process, and Functional Area & Company)?
    2) If "yes", where do I do this in CUP?
    I'm running AC 5.3 SP10.
    Any help would be appreciated.
    Thanks,
    Daniel

    Hi Daniel,
       Yes , you can define your own attributes as many as you want
    Configuration --> Custom Fields --> Field Label
    All these Field Labels will be shown as separate tab (Tab Name : Custom Attribute) , so in this tab you will get all the attributes which you have creates manually .( You can check this in configuration guide CUP)
    Hope this will help you
    Thanks
    Uma Shankar Tekumudi

  • Custom user attribute from ABAP to Portal UME

    Hi All,
    We have choose the ABAP as the data source for portal UME. We have a custom user attribute in the abap. Now i want to bring that custom user attribute from abap to custom user attribute in the UME.
    Any help will be rewarded.
    Thanks
    Sarang.

    Any resolution to this issue?

  • Custom META attribute

    Hi,
    I've looked at HTML source of a Standard Portal page and I saw that some META tags describing current page are present:
    <META name="title" content="News">
    <META name="description" content="News page of my Website">
    <META name="keywords" content="">
    <META name="author" content="WERYSA">
    For my current project, I need to add more description META tags, such as a reference code, a classification code. This feature is now mandatory for any European Union Official site. I tried to add custom attributes to a custom page, but these custom attributes do not appear as a META tag.
    I am looking for a solution to my problem without using UI templates. Any idea ? Too bad custom META tags are not mapped on custom page attributes.
    Many thanks.
    Samuel Wery.
    Note: I currently use Portal 9.0.2.6.18 until 9.0.4 is released on Linux.

    Thanks a lot for your response, and first of all Happy New Year.
    I tried to use a template based on a UI template, but I still have problems:
    1. The header defined in the UI template is visible on the template based on this UI template,
    but when I look at the header of a page based on this template which is itself based on the UI template, it is not the header I defined in that UI template.
    I'm not sure to be clear so here are the headers of these pages/templates:
    UI Template header:
    <HTML dir=#DIRECTION#>
    <HEAD>
    <TITLE>#TITLE#</TITLE>
    #PAGE.STYLE#
    #PAGE.BASE#
    <ORACLE>DDIS.UI_TAGS.DISPLAY_METATAGS(p_data=>'TEST');</ORACLE>
    </HEAD>
    Resulting template header based on this UI template:
    <HTML dir=LTR>
    <HEAD>
    <TITLE>Eurostat Home Page Template</TITLE>
    <LINK REL=Stylesheet TYPE="text/css" HREF="http://ddisportal.lux.cronos-technologies.com:7777/pls/portal/PORTAL.wwv_setting.render_css?p_lang_type=NOBIDI&p_subscriberid=1&p_styleid=32423&p_siteid=0&p_rctx=R&p_styleid=32424&p_siteid=0&p_rctx=R&p_styleid=32479&p_siteid=0&p_rctx=R&p_styleid=33385&p_siteid=0&p_rctx=P">
    <base href="http://ddisportal.lux.cronos-technologies.com:7777/pls/portal/">
    <META name="pageid" content="TEST">
    </HEAD>
    Resulting page header based on this template:
    <HTML>
    <HEAD>
    <TITLE>Eurostat Site 3</TITLE>
    <LINK REL=Stylesheet TYPE="text/css" HREF="http://ddisportal.lux.cronos-technologies.com:7777/pls/portal/PORTAL.wwv_setting.render_css?p_lang_type=NOBIDI&p_subscriberid=1&p_styleid=32423&p_siteid=0&p_rctx=R&p_styleid=32424&p_siteid=0&p_rctx=R&p_styleid=32479&p_siteid=0&p_rctx=R&p_styleid=33385&p_siteid=0&p_rctx=P">
    <base href="http://ddisportal.lux.cronos-technologies.com:7777/pls/portal/">
    <META name="title" content="Eurostat Site 3">
    <META name="description" content="">
    <META name="keywords" content="">
    <META name="author" content="WERYSA">
    </HEAD>
    Where is my metatag ? This is not my UI header.
    Is it a normal behaviour ???
    2. to be able to query attributes from the content repository views, I need the page id. Without this information, how can I select a custom attribute from the current page to put in the META tag ?
    I tried the tag #PAGE.ID# but this is not a valid one.
    It should be very nice of you if you could help me.
    Many thanks.
    Samuel W�ry.

  • Read Context  Node/Attribute option in webdynpro code wizard not available

    Hi Expets,
    I am new to webdynpro Abap, i have developed a small application to set default values for two fields. i want to use code wizard to implement the code. When i click on code wizard icon  in application tool bar, i have found lot of option like Method call in current controller, method call in used controller, Instantiate used component ... etc. But i didn't find the option Read Context Node/Attribute. Do i need to do any settings to get that. Kindly suggest. Your help will be greatly appreciated.
    Venkat

    Hi,
    Check the NW release,
    I checked with NW 7.02 - 2 tabs were available.
    with NW 7 - only 1 tab was available which you mentioned.
    Additional tab (Context ) might have been added after NW release 7.0.
    Regards
    Manas Dua

  • Function module to read 'Customer Material InfoRecords'?

    Is there a function module to read customer material inforecords?
    Transaction code VD53 is the display screen for Customer Material INforecords. I have a requirement to read this data in user exit.
    Thanks
    Gova

    I found one FM. RV_CUSTOMER_MATERIAL_READ
    But it won't serve my purpose as I need to find customer material number for a given material number.
    But, I found the table where this information is stored. KNMT. I'm going to create a custom FM to serve my purpose.

  • Display custom hosts attributes in Internal Identity Store

    Any one know how to Display custom attributes to the Internal Identity Store
    I have created several attributes, but can't seem to find anyway to add them to the display window.
    Cheers

    They are displayed by default and there's no actual way to hide them.
    Are you sure that you didn't create a customer HOST attribute and are looking in the internal user table or vice-versa ? Host and users have different custom attributes page. That's the only explanation I See

  • Updating custom boolean attribute in Active Directory via OIM

    The adapters delivered with the AD connector support updating standard attributes (string) and multi-value attributes, but I can't seem to figure out how to update a custom Boolean attribute in AD via OIM. The delivered Boolean fields all appear to have custom adapters (ie Account Locked, Password Never Expires, etc.)
    I've tried using the delievered adpADCSCHANGEATTRIBUTE adapter, but it fails (as expected) with:
    +com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks : updateDetails : Attributes cannot update:[LDAP: error code 21 - 00000057: LdapErr: DSID-0C090B73, comment: Error in attribute conversion operation, data 0, v1772 ]+
    Suggestions?

    No I don't have custom boolean attributes in AD. But I added custom attributes of other types.
    When you say custom, do you mean it did not come with the out of the box AD connector, but exists in the Active Directory of your organization?
    There are a few attributes in AD which look like they are boolean when you see the AD console but are actually different. Look at the link for details.
    [http://support.microsoft.com/kb/305144]
    Look at this post for context.
    AD Provisioning - Password never expires & User must chg pwd at next logon
    Thanks,
    M

Maybe you are looking for

  • Only sending the first 16 pages of spool out of full 145

    Hi gurus,     We got problem with sending e mail (spool recipients). After completion of a back ground job, the job should send the a pdf report to the mail address specified. But out of 145 pages it is sending only 16 pages (2MB) of data. Can any on

  • Panic(cpu 2 caller 0x001A4A55): Unresolved kernel trap (CPU 2, Type 14=page

    Hi I'm getting the following error when I reboot my computer and have to manually hold down the restart key. Does anyone know what this means? Here is the error: panic(cpu 2 caller 0x001A4A55): Unresolved kernel trap (CPU 2, Type 14=page fault), regi

  • MSS - Compensation Planning and Approval Issues

    Hi Experts, We are implementing MSS for one of our clients (only MSS) and face a few issues. 1. The Submitter is able to view and approve the Compensation plan for his reportee........instead it should be the submitters manager who should only be abl

  • Can you restrict some applications access to camera?

    The new version of Facebook allows direct access to camera from Chat and Message. In restrictions we have locked down photos on facebook but now this doesn't stop daughter sending photos to other people. For the time being we've turned off the camera

  • What is Work Folders?

    I was reading the information about the BI Contents especially for the Financial.   One part that got my attention and it is Work Folders.  I don't have a clue what is Work Folders.  I found it in Fund Management BI Content.