Grabbing custom properties of a Portlet

Hello

I defined some custom for all of my portlets properties, and I was wondering if there was a way to retrieve these values using an instance of IPortlet.

Initially, I found this tutorial: http://edocs.bea.com/en/alui/devdoc/docs6x/aluidevguide/tsk_prc_ali_queryingaliobjectproperties.html

But it seemed simply exaggerated. If the mark is the only way to get this information, what is the easiest way to get this IObjectQueryRow using the portletID?

Thank you.

I would first make sure that what you're trying to do can not eb accomplished with preferences instead of the custom properties.

If you stay with the custom properties,

Object IObjectManager = session.getObjectManager (ObjectClass.Portlet);
IObjectQueryRow portletObject = objectManager.querySingleObject (portletRequest () .getPortletID ());
portletObject.getExtendedData () .getStringValue ("my property")

Tags: Fusion Middleware

Similar Questions

  • TDMS write custom properties

    I am writing an application acquires 4 analog channels on demand and the acquisition of writing the data with WO # and the ID of the operator (both come from façade). I'm abele stored all 4 channels with time stamp data, but kind of stuck where you'll store WO # and operator ID. It seems to me "TDMS write custom properties. Please see the attached code and anyone can add this feature? I want to store WO # and operator ID only once.

    Thank you

    ~ Pierre

    I tried it outside of my time loop and it did not work.

  • Add the custom properties to the standard UI element

    Hello

    is it possible to add custom properties similar to id or objectName to a standard user interface elements such as textfield and radiogroup?

    Best regards

    Wildcat

    You can use
    string myValue property: "myValue".
    (or the value later to access it as name.myValue = "123")

  • Dynamic custom properties

    Hi Jas, Frank, and all,

    We have a client where we use the ODS maintenance service and have used properties custom screens to activate the rendering engine from the user interface to apply formatting for screen definitions options.

    < typ:properties >

    < typ:property key 'screen-icon-color' = > Green < / typ:property >

    < / typ:properties >

    It's that everything works fine, except that now it is necessary to dynamically change the value of custom property based on a value of attribute and rule later.

    1. for example

    the screen-icon-color screen1

    'blue '.

    the person is happy

    'red '.

    the person who is not happy

    "green".

    in the opposite case

    How do we set the values of custom properties based on an attribute value?

    I had hoped " " % screen1IconColour % "would that work, but it's not... "

    See you soon,.

    Kris

    Cannot change custom properties. They are designed to be attached to properties of objects such as controls and they do not change based on rules.

    However, you can create attributes that are used to control the Visual display.

    In your case, you could create a "screen-1 color" attribute defined on the color based on the happiness of the individual.

    If you add the attribute to the screen, it will be returned to the screen in the maintenance department, you can even hidden and read-only if you want to do. Then it's just a matter of the use of this attribute from the XML form as an indicator of color rather than an attribute value.

    Hope this helps

    See you soon

    Frank

  • Custom properties to allow the applicant Blueprint set the IP address and select a network

    Hello

    I have a property definition that defines


    VirtualMachine.Network0.Name

    This provides a drop-down list with the preset values, by which an applicant may select a network to which they want to connect their virtual computer. It works perfectly and the VM has asked is connected to the respective vSphere port group.

    I try to combine the above property with the

    VirtualMachine.Network0.IPAddress

    I have this Setup to allow the applicant to specify an IP address. Whatever the applicant put slot shape that is assigned the IP address simply network profile and the specified user address is ignored. This happens if I configure the property above in a group of properties or directly on the plan of action through custom properties.

    Any ideas?

    I think the confusion here is with the objects on network on the design canvas.

    I worked on a similar solution this week. I need the customer to select the network and to set an IP address. Ultimately, this does not work if there is a network object on the canvas of the design. We have to finish with that.

    Second, you can't assign network properties to a component of virtual machine on the EHR Architecture directly. The designer will complain if you try and these values are set directly. The properties must be part of a group of properties.

    So for me, I have a property group with:

    VirtualMachine.network0.Name

    VirtualMachine.network0.Address

    VirtualMachine.network0.SubnetMask

    VirtualMachine.network0.primarydns

    VirtualMachine.network0.Gateway

    Under the definitions of properties, I have a drop-down list of values for virtualmachine.network0.name.

  • ASD ask an element of the catalog and custom properties

    Just curious if anyone else encountered problems with properties custom when you use ASD and demand action from point of catalog.  For example we are defining the name of business group in a custom using {custom.vCAC.BusinessGroup.Name} as the value of a custom property property.  Weventually hen requesting a plan detailed in the traditional way, it is calculated and the name of group in this area.  But when you ask the same through the ASD action plan, it is not evaluated.  I get "{custom.vCAC.BusinessGroup.Name} ' as text in the field."  Someone at - he found a solution to this?  Thank you


    Mike

    Custom properties are not sent by default with ASD... you get 5 "global variables"...

    _asd_tenantRef

    _asd_subtenantRef

    _asd_catalogRequestId

    _asd_requestedFor

    _asd_requestedBy

    _asd_subtenantRef is the id of the business group...

    You could catch the name like that...

    var vCACCAFEBusinessGroupId is System.getContext () .getParameter ('__asd_subtenantRef');.

    var vCACCAFEBusinessGroupObject = vCACCAFEEntitiesFinder.getBusinessGroup (vCACCAFEHost, vCACCAFEBusinessGroupId);

    var businessGroupName = vCACCAFEBusinessGroupObject.name;

    L System.log (businessGroupName)

    To get to the back of the custom properties, you could do that

    customProperties var = new Properties ();

    customProperties = vCACCAFEBusinessGroupObkect.getCustomProperties ();

    This property returns an array of properties...

    You can then loop through each object properties in the table and get the key/value

    Hope that helps somehow!

  • Company group Custom Properties in a dropdownlist

    Hi all

    I'm trying to figure out (im new to vRA and vCO), but Im trying to figure out if it is possible for the following with the following data show:

    BIZ Group A - the user has and user X

    Custom property - Biz.GL - 12345 and 12354

    BIZ, Group B - user B and user X

    Custom property - Biz.GL - 24556 and 29844

    What I hope to accomplish with a drop-down menu on the application for all users attached to all of our plans that does the following:

    If user A sends a request to a virtual machine, they are presented with the standard format with a drop-down menu that displays 12345 or 12354 for selection

    If user B sends a request to a VM, they are presented with the standard format with a drop-down menu that displays 24556 or 29844 for the selection


    If user X sends a request to a virtual machine, they are presented with the standard format with a drop down menu which shows 12345 or 12354 or 24556 or 29844 for the selection


    Can someone tell me is that it's feasible/possible without custom design? Feature OOTB just talking about im...



    Thank you!!!

    No OOTB using nothing else than IaaS... Custom properties are filled according to the group in order to initiate the request, not "this user is in multiple groups of companies, do all the present values. User X, when demand from BG to see 12345 and 12354 and when you ask for BG B, would see 24556 and 29844... It is on the functioning of the product out of the box if you use just blue IaaS.

  • Custom properties of the Group business lost in the plan strategic multi-machine

    I have several custom properties that are defined in my business groups. When I deploy a single machine model these properties are passed in orchestrator where I use them. However, when I add the same plans in a multi machine model, the properties defined in the Group of companies are gone. Everyone knows this or know why these properties would not follow the request in a multi machine scenario?

    Thank you

    This has been fixed with 6.1 and higher

  • Trying to change some custom properties in vCAC when calling a stream of vCO

    I must have vCAC call a vCO stream, run a few commands and use the output to change the custom properties in the vCAC for the current build only.

    I got called vCO for a generation of vCAC flow and serve custom input for my workflow properties. The problem is, I have not been able to put the information in vCAC. I found a stream that will change the properties of the model, but I want to just change the running instance custom properties when the stream is called, then I can use them as inputs for another stream of vCO later during the generation.

    Any help in the right direction would be greatly appreciated!

    If you have the package of extensibility (now included in the vCAC plug-in version), you can use the action "addUpdatePropertyFromVirtualMachineEntity".

    For the entity of the VirtualMachine object just call virtualMachineEntity = vcacVm.getEntity ();

  • Download vCloud VM Custom Properties

    Hello

    I try to get the custom properties (product section) a vCloud VM via the api, I can get the label and description, but the value I receive is not set.

    When you try to retrieve the custom properties via vmtoolsd inside the guest os, I can see the value properly, but I need to get the value of vCo through the vCloud API.

    Thank you.

    Hello

    To get a value I follow these steps:

    if ((!vApp) || !(parameterKey)) {
        return null;
    }
    //System.log(vApp.toXml());
    var productSections = vApp.getProductSections();
    
    for each ( var productSection in productSections) {
        var catList = productSection.categoryOrProperty;
        var elements = catList.find(new VclProductSectionProperty()) ;
        for each ( var cat in elements ) {
            if ( cat.key == parameterKey ) {
                return cat.valueAttrib;
            }
        }
    }
    return null;
    

    It is inside an action of "getVAppCustomParameterValue" with VAPP and parameterKey as a starter and a returned string.

    Christophe.

  • OEM 12 c - add custom properties target - is it possible?

    We use the Oracle 12 c Cloud Control (12.1.0.1 BP).

    Targets have a number of Oracle-supplied properties that can be filled by the end user - comment, Contact, cost center, the identifier of the Customer Support, service, etc. For the purposes of database, these properties are accessible to Oracle Database/target/properties of installation in the GUI of the OEM.

    Is there a reasonably safe way or "Supported by Oracle" to add custom properties? For example, we would add a property of Type "backup" that we can maintain the same page as the Oracle-supplied properties.

    I see that there is a SYSMAN. Package MGMT_PROPERTIES, which seems to provide an API for manipulating the properties, but I found no official documentation for it.

    Thoughts?

    The verb add_target_property to emcli to add a custom target for a target type property.

    Ex:

    $ emcli add_target_property-target_type = "oracle_database" - property = "name of the owner.

    Property 'Owner name' added successfully

    For more information on the emcli verb, please see:

    http://docs.Oracle.com/CD/E24628_01/EM.121/e17786/cli_verb_ref.htm#CACDGGHJ

    Note: Currently target custom properties cannot be used to add targets of administrative groups. There is an improvement for this feature request.

    Kind regards

    Loc Nhan

  • definition of custom properties

    Hello
    I want to set the custom properties on the controls in the OnRenderScreenEvent or OnGetScreenEvent Manager. How can I do?

    Thank you
    Fox

    Adjustable only custom on control in OPM properties. You can not dynamically set them at run time. What you can do is to push additional parameters in the context of the speed through the OnApplyTemplatesEvent.

    Published by: Kristy Van Der Vlist on 13 June 2012 18:03

  • Example of custom properties

    Hello

    is it possible to provide us with an example on how to use the new feature "Custom Properties" Drive 3.0?

    We are unable to find an example in the samples and documentation will not help us get started.

    We must be able to show (and modify) the metadata custom of our database. Any help on what managers we should use, example on how to make the data visible in the custom UI properties would be very useful.

    Thanks in advance.

    Yes. in your case. I think that READ_METADATA and WRITE_METADATA enough.

    You must implement AddPropertiesHandler given that this Manager is responsible for the creation of properties and writing of properties.

    You should use updateReceipe.createVersionPropertyData when the data type is "VERSION_PROPERTY", not "ASSET_PROPERTY", properties of assets no management versions, like the folder properties is not supported, applicable only to the file properties

  • Custom properties are not displayed on the data portal

    In my version of return of DIAdem (2011), there are features to display personalized data portal properties. If selected by right-clicking on the data portal properties would appear under the root, the group or channel where they were stored. So far I have not been able to find this menu in 2014 DIAdem. This feature has been removed?

    Hi DIAdemUser1,

    In fact, this feature has been removed.  R & D wanted caused more confusion than benefit, and I agree.  I'm sorry for you and others who liked the feature that has now disappeared.  When tiara 9.0 released custom in the data portal properties shows their data types, but this feature has been removed in favour of simplicity.  I often miss this feature, but it's for the greater good.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • custom properties search

    On certain types of files (such as. DOC files) there is a tab on the file properties when you right click in Windows Explorer. There, you can add all sorts of tags useful for the info file as a Client, Editor, language, etc etc.

    What I can't understand is how in fact of looking for one of these tags using Windows 7. I tried the customer 'test-customer' field and typing things like Client: test-customer and customer: = 'test-customer' in the search but without success.

    Any ideas?

    Have you tried typing only "customer test" without any description of the tag in the search box?

Maybe you are looking for