Reading global attributes from implementation class

Hi,
How to access
                global attributes of implementation class
                         from getter method of context node class.
Thanks in advance,
Srinivas.

Hi Srinivasa,
Access the view controller using attribute
owner
, Then you can access the global attributes.
Regards,
Masood Imrani S.

Similar Messages

  • Read attribute of implementation class from context node

    hi experts,
    I need to access the implementation class from the context node,in component seged_tg/eltargetgroupitem. Node is targetgroupitem.
    Also if I can either access the component controller from the context node,I need to know how to instantiate the class.
    please help.
    regards
    Anu

    hi ,
    I discovered that we cannot access the child nodes from parent class,so instead I am using custom controllers

  • Access Global attribute from with the BSP code.

    I have an attribute created within the View controller implementation class. The attribute is called GV_COUNT.
    Within my BSP  code I want to access this global variable, but I'm getting an error when activating the code, having statements like CLEAR GV_COUNT. in my code.
    Is there a format that is required. At the moment I just receive an error saying that field GV_COUNT is unknown.
    I thought that anything defined in the controller class was available for anything below.
    Jason

    Thanks Christian.
    Of course the attribute has been made public, and now that you've mentioned 'CONTROLLER' I feel rather foolish, as I should have known this.
    Many thanks to yourself and others for the replies.
    Regards
    Jason

  • Read Navigational Attribute from Mulitprovider

    Hi Gurus,
    I need to read a navigational attribute from the Multiprovider in the user exit.  Could you please tell me in detail with coding how to do this ?

    Hi,
    Navigation attributes data exists in master data and not in multiprovider. If you want to use navigation attribute value in EXIT then check which is the base Infoobject and read the Infoobject table, from there you can read the value of required attribute.
    Regards,
    Durgesh.

  • Modify a global attribute from a Resource Adapter

    I need to modify a global attribute (e.g.: firstname) from a Resource Adapter (e.g.: realCreate method).
    When I try to get the context (this.getContext()) it is always null.
    Any ideas please?
    Thx

    I get the context:
    LighthouseContext lighthouseContext = SessionFactory.getServerInternalContext();and modify a other user:
    WSUser wsUser = (WSUser)lighthouseContext.checkoutObject(Type.USER, "otherUser", null);
    wsUser.setAttribute("globalAttribute","myValue");
    lighthouseContext.checkinObject(wsUser, null);but I need to modify the current user, and he is locked by 'Configurator'.
    Any ideas?
    Thx

  • Using UME to read binary attribute from LDAP (objectSID)

    Hi,
    I am trying to read the ObjectSID of an LDAP user (from MS Active directory) from an IUser object. This attribute is binary retrieved from the LDAP and if I defined a normal extra attribute in the datasourceconfiguration file and retrieve it as a String the value is wrong.
    So my question is how can I define this as a binary attribute?
    From the file C:\usr\sap\EWD\JC00\j2ee\configtool\dataSourceConfiguration.dtd you get the specification of the xml format for the datasourceconfiguration.
    The Attribute element  has the following specification:
    <!ATTLIST attribute name CDATA #REQUIRED          populateInitially (true|false) #IMPLIED
    readonly (true|false) #IMPLIED
    type (string|blob) #IMPLIED
    cacheTime CDATA #IMPLIED>
    Since you have type here, I tried setting it to blob under the user object as such:
    For user:
    <attribute name="guid" type="blob" populateInitially="true"/>
    For attribute mapping:
    <attribute name="guid">
    <physicalAttribute name="objectSid"/>                    </attribute>     
    However, I still get the following error when calling
    iuser.getBinaryAttribute(UME_NAMESPACE,UME_GUID_NAME ):
    Caused by: com.sap.security.api.UMRuntimeException: String attribute "com.sap.security.core.usermanagement"-->"guid" must be read using IPrincipal.getAttribute(com.sap.security.core.usermanagement,guid)
         at com.sap.security.core.imp.AbstractPrincipal.getBinaryAttribute(AbstractPrincipal.java:300)
         at com.sap.security.core.imp.UserWrapper.getBinaryAttribute(UserWrapper.java:261)
         at com.bouvet.portal.login.UserIntegrityLoginModule.getStatoilUser(UserIntegrityLoginModule.java:430)
         at com.bouvet.portal.login.UserIntegrityLoginModule.login(UserIntegrityLoginModule.java:255)
         at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:69)
         ... 41 more
    This error indicates that the attributes is a string and not a binary attribute.
    Anyone?

    Create OSS and initial message is that this is not supported eventhough some of the configuration files point that direction. It's really easy to implement so maybe if I am lucky I'll get a hotfix.
    Dagfinn
    btw the field was objectGUID not objectSID

  • Reading UME attributes from Webdynpro ABAP code

    Hi,
    We have a requirement in our project where we need to read the UME attributes for a logged in user in the webdynpro ABAP code. The attribute in question is "SAP Vendor Number" which is maintained as UME attribute for each user.
    Is there any standard FM or BAPI or webservice which we can leverage for this requirement?
    Else, any pointers regarding how to achieve this functionality would be helpful.
    Thanks.

    Hi kartik,
    BAPI_USER_GET_DETAIL Function module to get all the required details of the system user in one go. Here you need to give the SAP Logon Name (USerID) of the person to the function module.
    Or check if this are helpful.
    BBP_PARTNER_GET_DATA
    BAPI_PARTNER_GET_BY_IDNUMBER
    BUPA_PARTNER_GET_BY_IDNUMBER 
    BBP_PDH_GET_PARTNERS_FROM_USER

  • A little help in AWT.. (reading a textfield from another class)

    I got this Panel with a varying number of TextFields (to input a matrix).
    so i did (in the Panel sub-class)
    TextField Determinant[] = new TextField[l*l];
              for (int i = 0; i < l*l; i++)
                   add(Determinant[i] = new TextField(""+i));
    then i want to read them into a 2 dimensional array after pressing a button (in the Button subclass)
    for (int i = 0; i < det.length; i++)
                   for (int j = 0; j < det.length; j++)
                        det[i][j] = (double)Panel1.Determinant[k].getText();
                        k += 1;
    but then the compiler complains:
    C:\java projects\GoButton.java:30: cannot resolve symbol
    symbol : variable Panel1
    location: class GoButton
    det[i][j] = (double)Panel1.Determinant[k].getText();
    how do i get the Button-subclass to "know" the Textfields in the Panel subclass?
    (they're both public)
    help please! :)

    Is "Panel1" a class name or a variable or field name?
    If the latter, you ought to use Java naming conventions: only class names and constants start with upper-case letters. So "Determinant" in your code is also poorly named.
    Also I'd strong advise against using "l" (a single lower-case ell) as an identifier. It's really hard to read.
    Also when you post code, please wrap it in &#91;code]&#91;/code] tags, so we can read it.
    Assuming that "Panel1" is a field or variable -- then you need to either make it accessible by the other classes that need to access it, or better yet pass its value as an argument to those things that need it.
    Or maybe restructure your code so that the things that need to use it are in the same class as Panel1, possibly as member classes.

  • Read XML attributes from RSS internet link

    I am very new to LabVIEW, and I am trying to determine the best way to read information an RSS link. Specfically, I would like to read data from a Yahoo! Weather RSS like http://weather.yahooapis.com/forecastrss?w=2502265. I would like to extract the temperature from <yweather: condition temp="[##]>, the wind speed from <yweather:wind speed="[##]">, and the text description from <yweather:condition text="[text]".
    I have looked into some XML parsing solutions like EasyXML, but I wonder if they are too much for what may be a simple task. I would appreciate any input on my current problem. Thanks.

    Howdy,
    It looks like EasyXML would make you life a little easier. You can search the LabVIEW Example Finder (Help menu->Find Examples) for XML examples. Other than that you would have to navigate to the website and parse the website source and use the LabVIW String Functions.
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • How to read classification value from batch class

    Hi Gurus,
    In our material master we maintain Batch class (023) from all RM where 2 characteristics value is very important one is std.moisture and another is actual moisture.Now Std moisture value is fixed and we maintain this value in material master.Actual moisture is variable batchwise and thats why we maintain it by using MSC2N.Here the problem is the std moisture is not coming in classification data autometically from Material Master but we already maintain it.It shows in Material Data tab.But I need that it will come in Classification data tab autometically as we use this in report.I use VB_BATCH_VALUES_FOR_OUTPUT Function for classification value fetching from material and batch.Now as this value is not coming automatically coming user again put this data.I want to know how can it come autometically?If it is not possible please tell me how I can get this data from material and batch as the above function is not working.
    Please help me out.
    Regards
    Nirmal

    check your customizing in IMG > Logistics general > Batch Management > Batch Valuation > Valuation for Goods Movement in Inventory Management > Activate Batch Classification for Goods Movements in IM

  • Retrieve used interface from implementation class

    Hi to everyboby
    I have a remoteObject that implement 2 interface (I1, I2). These interfaces are child of common father interface (I0).
    This remote object is received unmarshalled and casted to one of the to directly implemented interface I1 or I2,
    After that I want to execute a method declared into the interface I0 on the server side, that prints out the name of the interface used during casting after the unmarshall operation on the client side.
    How can I retrieve the name of the current interface used to refer the object into the client side, from the server side?
    Anyone as suggestions?
    thank you very much
    Edited by: dj3mb3 on Jun 10, 2010 5:49 AM

    I'll try to explain in a better way ...
    I have a server with 2 different client and each client communicate to the server with a different interface.
    My needs are to recognize from the server, the type of the client that are operating, and to do this I was thinking to recognize the interface used from the client to interact with the server
    An other option is that, from the client, after retrieving the server and it's cast, a can call a method to pass to the server object, the type of the interface actually used.
    But I think this makes a bit of nonsense because When I receive the marshalled object in my opinion doesn't make sense that i have to say the object it's type (the interface used).
    the object is already alive and I think it has to know the interface used to refer it even if is on another VM
    The cast operation doesn't store nothing into the current object instance?
    local code example (I don't know if with JRMI the situation is different because the different JVM)
    Map foo = new HashTable();
    I need a method like
    foo.curretUsedInterface() ... that return "Map"
    instead of
    foo.getClass().getName() that return "HashMap"
    It's possible to obtain this information or I have to try another idea to make the server distinguish the client type?
    thank you very much for your comprehension

  • Get information about business object from view implementation class

    Hi,
    i´d like to develop some button behavior in a view. How can i get the information of the related business object like the order or the position. I like to disable buttons if specific status are set.
    Bye Richard

    hi,
    Is needed field available in context nodes or not?
    for example:
    If you want to read STATUS_DESCR attribute from the context node SELECTEDDOC , then code like this
    lr_selected ?=  me->typed_context->SELECTEDDOC->collection_wrapper->get_current( ).
    if lr_selected is bound.
      lv_status = lr_selected->get_property_as_string( 'STATUS_DESCR' ).
    endif.
    activtae the debugging in IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS method and check the values for context nodes and attributes.
    I mean debugging for:
    me->typed_context
    me->typed_context->SELECTEDDOC
    comp_controller
    regards
    ismail

  • Using reflection api to copy like named attributes of a class

    Hi guys,
    I have been hearing about this for a long time now. How can one copy like named attributes from one class to another using the reflection api??
    Can anyone provide a small example, with code??
    Thanks.

    maxim.veksler wrote:
    I think that a chronological order of events should describe what happened :
    Issue #1 10:55 15/09/2008 - I try to find a solution to retrieving annotations of a field http://forums.sun.com/thread.jspa?threadID=5331440
    Issue #211:13 15/09/2008 - I learn that this can be done using the Field class, so I got looking for a way to getting all the fields http://forums.sun.com/thread.jspa?threadID=5331441
    Issue #3 13:15 15/09/2008 - I find a solution which is nearly working and post the last issue I have. http://forums.sun.com/thread.jspa?threadID=5331475
    Issue #313:26 15/09/2008 - thomas.behr helps me with the issue mentioned from thread 5331475 http://forums.sun.com/thread.jspa?messageID=10424090#10424090
    Issue #2 14:32 15/09/2008 - You (kajbj) comment that I need to use suggested solution. Please note that when I posted this I didn't know about the "right" solution.
    Issue #2 15:01 15/09/2008 - I thank you and link to an example where I implemented the search. I still don't know if the solution I found was the correct one.
    Please understand that I had no intention to create unnecessary hassle.kaj post above came at 11:32 (according to the time display here), and your post, in the other thread, acknowledging that you now had a solution was at 10:37. So how did you "not know" at that time, that you had a solution.
    But nevermind, dead conversation anyway, the post would not have been made under any other circumstances than the present (if then) anyway, and we both know it.
    Edit: And I didn't say you had any intention of purposely wasting people's time, but I don't believe that you had any intentions of not doing so, either (i.e. as in trying to prevent it).

  • Read application item from LDAP

    We are using OpenLDAP authorization. The configuration data resides in the APEX authorization definition.
    Now my question: should it be feasible to read further attributes from the user logging in, without the need to redundantly define host, base dn etc. on page level?
    I imagine a LDAP authorization that gives me back more than only the APP_USER.
    Comments welcome.
    Tom

    The user and password are still available in the post-authentication part of the authentication. You could fetch more values here into application items without having to prompt the user for credentials again. If you do need to connect at a later point then you're out of luck really, since the password is blanked out after the authentication.
    I implemented a solution before where i connected to the ldap directory in post-authentication to retrieve the user's groups: {message:id=10197833}
    I'm also not sure since i haven't tried yet, but you could probably use the apex_ldap package to reduce the amount of code

  • How to remove "Read Only" attribute on folders

    Hi
    I am logged in with my User account which has full control over my folders.<o:p></o:p>
    I have a folder that I tried to add modifications to, however i could not do so because the folder was classified as read only. I have full permissions to this folder. Previously the app that
    uses this folder could write to it quite happily, but today it fails. <o:p></o:p>
    The 'attributes' for the folder shows a solid square in the read-only box. If I 'un-box' the read-only and apply > ok, when I look at the attributes again the box is still checked.<o:p></o:p>
    So my question is, if it's not (which it shouldn't be) some sort of protected Windows folder, and I have full permissions on the folder (supposedly), why does Windows not respect my wishes,
    get out of the way, and let me set it to what I want it to be?<o:p></o:p>
    I have tried the following methods to fix this issue, but none of them work:<o:p></o:p>
    -Adjusting permissions and control, and changing security options<o:p></o:p>
    -Using a third party application such as "clear read only" to remove the check on the box<o:p></o:p>
    -Using the "attrib" function on the CMD prompt<o:p></o:p>
    -Boot Scan for virus/malware that is affecting folder attributes<o:p></o:p>
    -Running applications and CMD as administrator<o:p></o:p>
    I have heard that if using a NTFS harddrive, then all folders will be automatically “Read Only” and that it is impossible to change that attribute. I find this hard to believe, as all folders
    should have some way of being modified, regardless of what HDD I’m using. I obviously cannot change to FAT32, so how else can I get my folders to get rid of this ridiculous error!
    <o:p>I have also noticed that this problem is very common amongst Windows users. If this problem has been around for a while, how is it possible that no solution has presented itself.
    Regardless, we need a solution to it, because i can't do the things i need to while the Read Only attribute remains a constant on my folders. I thought it may be a virus, but my avast anti-virus did not pick up any infected areas when the scan was done. I
    have searched the internet, and no "fix" has solved this issue. The only fix i have not found is a reg edit that could completely remove this read only attribute from all folders. Though i feel this is not neccesary, as i only need the attribute
    to be removed from certain folders. Please kindly assist me with this issue, hopefully it will help many others too...</o:p>
    Many thanks.

    Have you taken ownership of the folder? Please first take ownership of the folder, then change the security options
    Take Ownership of a File or Folder
    http://technet.microsoft.com/en-us/library/cc753659.aspx
    If you have already did this, then run a scan with this tool,
    Malicious Software Removal Tool
    http://www.microsoft.com/en-in/download/malicious-software-removal-tool-details.aspx
    or copy this folder to another location, test again.
    Regards
    Yolanda
    TechNet Community Support

Maybe you are looking for