Metadata Extention for Dynamic Property Values

We need to get dynamic values on XML Form based on the logged in user.  Implemented a Metadata Extension class for this purpose.  Followed the link in SDN to create the service and required classes : http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf
Used the following code to get the user id:
IResourceContext rc = metaContext.getResourceContext();
com.sapportals.portal.security.usermanagement.IUser usr =  rc.getUser();
portalUID = usr.getUMEUser().getUniqueName();
However, portalUID is coming as "CMADMIN_SERVICE"  instead of logged-in userid.  Please note that the property created for this purpose is a Multi-value allowed and displaying the values in a Combo box.
Questions:
How do we get the logged-in user ID
Noticed that this class is getting executed when clicked on Save of XML Form (during runtime); Is there a way to avoid it?
All together, is there any other approach to get dynamic values to be displayed in XML Form?
Any help is greatly appreciated...
Thanks

Hi Ranganath,
I see...
In that case, I can only suggest the direction I would take, since I didn't do it myself:
The above example uses the property renderer 'multi_dependence'.
I would try to find its implementing class, decompile it, and see if it gives any clues rergarding to how to implement your case.
Hope that helps,
Yoav.

Similar Messages

  • Sorting for second property value?

    We have implemented a property read filter to set a value for a property SORT_ID.
    This works fine and the collection list renderer is customized to take the SORT_ID as "property for sorting". As fas as good.
    Our problem:
    In case the SORT_ID is identical, the list is not always sorted by name or ID as we suppose.
    Why? Is there any hint to get that going or is any implementation neccessary?
    Thanks for your help
    Helge

    Hi Helge,
    it's the same as with every other (standard) property - you can only sort by one property. If the sort_id property is not fine grained enough, it's a problem of the implementation of this property that it is able to return the same value for different resources. If you would add the name or the ID of the resource into the sort-id itself, this should do the trick (for example, have resources aaa and bbb; your sort-id calculates "5.5" for both resources; if your sort id would be created like "5.5_aaa" and "5.5_bbb", it would sort in first place for the sort-id, and after that for the name of the resource).
    Also see Collection renderer - Property for sorting (your own thread), Sort Multiple Properties and Sort Multiple Properties
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Set dynamic Property Value

    Hi Expert,
    Can we set Property values dynamicly from BPC excel.
    eg/ Let say we have Dimension called Project which has a ID Proj1 with property FM_AMT.
    Can we set this FM_AMT from the BPC excel ? do we have any Function ?
    Regards
    Gayu

    Hi Gayu,
    You can use EVPRO to get this property in BPC excel. The syntax is =evpro(appname, Member, property). In your case, it is
    =evpro("App","Proj1","FM_AMT")
    Hope this helps.
    Regards,
    Shoba

  • How to add values dynamically for custom property during design time?

    I am trying to create a user control with custom properties. I have a property named Server.
    And Values for this property is system dependent. I have the code that can generate the values and is working fine.
    During the design time, when I include this control in my application, and type the property name, I want Visual Studio to prompt for the values. Like it
    does for Alignment property for some controls shows Left, Right, Center.. during design time.
    If the Values are static, I can use an enum and it works fine. I need help with dynamic values.

    You can't, afaik.
    It's either an enum or you don't get that functionality of values.
    There is no right left centre, "Towards the top right but just off centre" - which I just thought of... option for example.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Is it possible to pass the property value dynamically to composite.xml

    Hi,
    Is it possible to pass the property value dynamically to composite.xml from bpel?
    For ex:
    <property name="bpel.config.auditLevel">$variable</property>
    I will get a different $variable value every time to bpel.
    Also, when I included the following code inside .bpel
    invoke name="InvokeListFileFTPAdapter-ListFiles"
    partnerLink="ListFilesFTPAdapter"
    portType="ns3:FileListing_ptt" operation="FileListing"
    inputVariable="listfilesRequest"
    outputVariable="listfilesResponse" bpelx:invokeAsDetail="no">
    <bpelx:toProperties>
    <bpelx:toProperty name="bpel.auditLevel"
    variable="AuditVariable"/>
    </bpelx:toProperties>
    </invoke>
    where auditvariable='Off'
    I don't see any change in em. The invoke activity is showing full payload, Can't we turn off the audit level from .bpel not from composite.xml

    Hi,
    You can use bpel preferences for that:
    1.
    In the composite add a property, for ex:
    <component name="test">
    <implementation.bpel src="test.bpel"/>
    <property name="bpel.preference.exam">abc</property>
    </component>
    2.
    To get the value within your bpel process use: ora:getPreference(exam)
    3.
    Then, you can change the value in the EM:
    Under Farm_soa_domain>weblogic domain>your_domain>soa_server1
    Right click on menu>system Mbean browser>oracle.soa.config>server:soa_server1>SCAComposite>your project>SCAComposite.SCAComponent>processName>
    Now, click on the properties attribute : you can see the exam property and change the value.
    Arik

  • Multiple TYPEELIM property values for an account

    I am trying to set automatic adjustment business rules and need to assign multiple multiple TYPEELIM property values for an account. Any idea how to achieve this?
    Here is my example. Letu2019s assume there are 2 eliminations I need to do.
    Elimination 1: Account A, B, C going to Account Y
    Elimination 2: Account A, B, D going to Account Z
    For elimination 1, to group source accounts (A,B,C), I want to assign u201CELIM1u201D for TYPEELIM property to all source account (A,B,C).
    For elimination 2, to group source accounts (A,B,D), I want to assign u201CELIM2u201D for TYPEELIM property to all source account (A,B,D).
    As you see, accounts A and B are repeated in both cases. I am not sure how I can assign both ELIM1 and ELIM2 property for these two accounts.
    Options I have thought of:
    1.     Include automatic adjustment line by line:  But since I have many accounts, this will be very lengthy and not good from maintenance point of view.
    2.     Include one ELIM1 in TYPEELIM and ELIM2 in Dimlist: But my real case is more than just two elims as mentioned above. What if there are 4 elim and includes same account?
    Any idea on this?
    Thanks in advance.

    Hi,
    http://help.sap.com/saphelp_bpc75/helpdata/en/5A/69200C88AA40C9B18844A25259F147/frameset.htm
    Administration->Business Calculation->Business Rule Management->Automatic Adjustment->Automatic Adjustment Detail
    This is for 7.5, but majority of contents are not changed from 7.0.
    Regards,
    YH Seo

  • Visual Studio 2012 SharePoint Project Error : The partial project item type does not have a value for this property

    Hi,
    I am getting this error from visual studio 2012 whenever i try to create the following project types:
    - Workflow Custom activity
    - Web parts
    The error is as mentioned below
    "The partial project item type does not have a value for this property"
    Due to this the when I add above type of items in my project, they show a red cross icon against them.
    Please let me know If have you any solution?

    Hi
    I had same issue. Below is the solution
    Installing
    "Visual Studio 2012 Update 3" usually solves this problem. (You can download it through microsoft's official site at
    "http://www.microsoft.com/en-in/download/details.aspx?id=39305")
    Hansraj Rathva

  • Adjusting Portal Pages throws "Specify a value for the property {0}"

    I found (with the help of our friends at OSS) the setting I need to change with to adjust the Runtime frame size for Guided Procedures.
    It's quite logical really, since GP is just a bunch of pages in the portal it would make sense to find them in the Portal Content option ... So there it was.
    Content Administration > Portal Content
    Search for content and go to Process Instance. The following part shows the 3 main content parts of the GP Runtime window. As you can see in the third container are the two elements that contain your content. "Content Area" and "Public Content Area".
    Open those two areas (scroll down in the list in the middle, select one and press open) and change the value of Height Type from "Fixed" to "Automatic" or "Full Page".
    This is where I get my error (see the link below for a screenshot as well): When I try to change a value, any value or just open for modifying and try saving again (without changing anything) I get this error:
    [http://wow.telenet.be/delaware/property0.jpg]
    Specify a value for the property
    Now I don't know if there any portal expert watching this thread, but it seems as though all those pages have been wrongly configured from the start. And until I figure out the right configuration I won't be able to save them either way.
    My question is two-fold:
    1) Can anyone provide me with all the settings he has for this component so I can compare them to mine?
    2) How do I fix this error? I'm assuming every page in the portal gives the same error?
    Thanks in advance,
    Frederik-Jan
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM

    I found (with the help of our friends at OSS) the setting I need to change with to adjust the Runtime frame size for Guided Procedures.
    It's quite logical really, since GP is just a bunch of pages in the portal it would make sense to find them in the Portal Content option ... So there it was.
    Content Administration > Portal Content
    Search for content and go to Process Instance. The following part shows the 3 main content parts of the GP Runtime window. As you can see in the third container are the two elements that contain your content. "Content Area" and "Public Content Area".
    Open those two areas (scroll down in the list in the middle, select one and press open) and change the value of Height Type from "Fixed" to "Automatic" or "Full Page".
    This is where I get my error (see the link below for a screenshot as well): When I try to change a value, any value or just open for modifying and try saving again (without changing anything) I get this error:
    [http://wow.telenet.be/delaware/property0.jpg]
    Specify a value for the property
    Now I don't know if there any portal expert watching this thread, but it seems as though all those pages have been wrongly configured from the start. And until I figure out the right configuration I won't be able to save them either way.
    My question is two-fold:
    1) Can anyone provide me with all the settings he has for this component so I can compare them to mine?
    2) How do I fix this error? I'm assuming every page in the portal gives the same error?
    Thanks in advance,
    Frederik-Jan
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM
    Edited by: Frederik-Jan Roose on Apr 1, 2008 11:33 AM

  • Values for 'Uid' property must be Text_for style on listbox

    <Style x:Name="foo" TargetType="ListBox">
    <Setter Property="Background">
    <Setter.Value>
    <!-- Your resources go here. -->
    <SolidColorBrush x:Uid="{ThemeResource ListBoxFocusBackgroundThemeBrush}" Color="Green"/>
    </Setter.Value>
    </Setter>
    </Style>
    Error Values for 'Uid' property must be Text

    What are you trying to do here?
    As the error states, the x:Uid must be plain text. You cannot bind it to a brush.
    The Uid is used for localization to identify which localized resource to use. It makes no sense in the SolidColorBrush context.

  • Creating cache for multiple property files run time/dynamically.

    Hi,
    I have a requirement, where in I need to create cache for each property file present in a folder at server side or in the lib or resources directory. Please help me how I can do this?
    Thanks.

    ok thank you.
    I follwed this method implementation:
    static HashMap<String, HashMap<Object, String>> cacheHolder = new HashMap<String, HashMap<Object, String>>();
         static HashMap<Object, String>[] cache = new HashMap[2];
         static Integer fileCount = 0;
         static int incrementSize = 2;
    public method1(Map<Object,String>map){
    File file = new File((new StringBuilder(
                             "ABC/XYZ/")).append(value)
                             .toString()); // where value is the file name returned from the external method
                   int newSize = existingMapLength+incrementSize;
                   if (someVal== null) {                    
                        synchronized (fileCount) {
                             int oldSize = cache.length;
                             if(fileCount==cache.length){
                                  HashMap[] oldData = new HashMap[oldSize];
                                  oldData = cache;                              
                                  cache = new HashMap[newSize];
                                  LOGGER.info("New Size added:==>"+cache.length);
                                  for(int i=0;i<oldSize;i++){                                   
                                       cache[i] = oldData;
                                  cache[fileCount] = readExternalPropertiesFile(file); // external method which returns the properties of the file in hashmap
                                  cacheHolder.put(value, cache[fileCount]);                    
                                  keys = cache[fileCount].keySet();
                             else{                         
                             cache[fileCount] = readPropertiesFile(file);
                             cacheHolder.put(value, cache[fileCount]);                    
                             keys = cache[fileCount].keySet();
                             someVal= cache[fileCount];
    fileCount = fileCount + 1;
    Please let me know if any improvemnets are possible.

  • Why do I get this error when running the PID Control-Single Channel.vi: "Requested value is not a supported value for this property."

    Error -200077 occurred at Property Node DAQmx Timing (arg 3) in DAQmx Timing (Sample Clock).vi:1->PID Control-Single Channel.vi
    Requested value is not a supported value for this property.
    Property: SampQuant.SampMode
    You Have Requested: Hardware Timed Single Point
    You Can Select: Finite Samples, Continuous Samples
    Author: Pcorcs
    Attachments:
    PID Control-Single Channel.vi ‏53 KB

    Actually I have already tried a few things you suggested and got as far as the DAQmx Write vi. The error at the DAQmx was a buffer error indicating i needed to set it to 2 instead of the default of 1. Tried using the DAQmx Input and Output Buffer vi to change buffer, with no luck.
    Attachments:
    PID Control-Single Channel.vi ‏53 KB

  • CUIT is not giving name property value for VB combo boxes

    Hi Everyone,
    We are testing simple Vb6 controls using CUIT. Using CUIT we can get name property value of Vb6 button control. But for simple Vb6 combo box, CUIT is not showing name property value.
    I want to add CUIT assertion for combo box name property value. how can I add ?
    For more details please see the image
    Regards,
    Rajendar..

    Hi Rajendar,
    Do you record a coded UI test with the coded UI test builder? If so, which item did you record?
    >>How can I get combobox.SelectedItem without identifying combo box?
    It doesn't mean that we don't identify the control. Generally we use the unique property as the search property to find/capture the control.
    Like this blog here:
    http://blogs.msdn.com/b/visualstudioalm/archive/2012/02/01/guidelines-on-improving-performance-of-coded-ui-test-playback.aspx
    SelectedItems versus
    SelectedIndices property
    For large number of items, it is preferable to use SelectedItems. SelectedIndices essentially does an Instance search internally, which is slower compared to unique automation property based search. Use SelectedIndices only when
    the items don’t have unique Automation properties. And of course exercise caution over changes to the list content.
    I think you could get a useful sample here:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/a32bc4a6-f562-436d-96a4-a3409b1b3e73/codedui-and-combobox-i-want-to-go-to-the-next-nonselected-item-in-combobox?forum=vstest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • DRM Validation for checking existence of nodes in a different Hierarchy as a property value

    Hello Gurus,
    I have two hierarchies named A & B respectively. I need to create a validation for nodes in hierarchy A which checks value of a property such that the node should have property value equal to any node name in Hierarchy B.
    Means the values for that particular property for nodes in hierarchy A should exist as a node in hierarchy B.
    It would be very grateful if some one can provide an idea to achieve this.

    Hi,
    Try this in a formula type validation-
    NodeInHier(PropValue(Custom.PropName),B)
    This would return false if the property value is not a node in Hierarchy B and True if it is.
    So you will get a validation message every time the property is loaded with a value which is not node in Hierarchy B.
    Thanks, Let me know
    Denzz

  • NSInvalidArgumentException : Attempt to set value for immutable property

    I get "An unexpected error has occurred. Please quit and reopen Keynote." EVERY time I try to copy a slide and change the master that controls it. Console says "Exception caught by top level: NSInvalidArgumentException : Attempt to set value for immutable property moviePoster." I'm not using any 3rd party themes. Advice from anyone?

    You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
    Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
    For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
    Also, you can try navigating to different train stops programmatically.
    Check: 082.      How-to programmatically navigate ADF train models
    in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Class ID Property value is always 18 - Digital for numeric controls of a cluster

    Why does the Class ID Property Value always return the value of 18 (Digital) for any type of numeric control of a cluster, whether it is a DBL. U32, I8 etc. The Class Value never come backs as 17 (Numeric). Why? What does 17 (Numeric) pertain to?
    Solved!
    Go to Solution.

    This thread really belongs in the LabVIEW forum. In the future,
    please post there, as you posted in the forum that discusses the forum
    software and the forums in general.
    As to your question:
    JayB wrote:
    Is there any way to determine programmatically if the control is a DBL or a I32 besides using the Class ID property?
    See here.

Maybe you are looking for

  • 30EA1: Database mounted, can't get rows with DATEs

    I'm starting to use SQL Developer 3.0.02 build MAIN-02.37. I tried to use it with a 10g standby database that is only mounted, to check on its recovery progress, and it appears to NOT return rows with DATE columns in them. I've tried this with both a

  • Error in Runtime Workbench, Component Monitoring, Proxy Runtime

    Hi, I have the following error in the Runtime Workbench, under Component Monitoring->Integration Engines->Proxy Runtime. The error message is Ping Status: “Unable to logon to system xxx in language EN with user XIRWBUSER”. However, I am unable to fin

  • Internal table on Start Routine

    Hello I have 5 key figures. They have an standard routine with a select statement. Basically they have to read an external DSO and get some fields values. As all of them have the same SELECT statement I think it would be better to replace this with a

  • Why does my password keep getting reset?

    I find that about 2-3 times a week, my password to my account stops working. I have to regularly reset it. Has that happened to anyone else, and any idea as to why that would occur?

  • Transfering plug ins from AE CS5.5 to 6

    Can anybody show me the way?