Dynamic Properties

Is there a way to programatically set the properties of a Context node?
I want to be able to change the "selection" property of a node from "0..1" to "1..1" programatically.  Is there a way?

To my knowledge this can only be defined when the node is created, see
https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html
Armin

Similar Messages

  • Using dynamic properties in an Instance property

    Is there a way to take the output of a dynamic properties variable (from PROP_LIST) and use that variable in an InstanceProperty tag so that the InstanceProperty is pre-filled out on the display? The idea would be to have a dynamic properties variable be set to "sometext" and then have an InstanceProperty tag be pre-filled out in the UI with "sometext". That way users adding a target get a suggested default value for the InstanceProperty but can still modify it if needed.

    If I understood your requirement correctly, you want some default value to be displayed for a Instance Property, on the Add Target page. If my understanding of your requirement is right, please read on...
    This is very much possible. All you have to do is...
    <InstanceProperty NAME="snmpOSPort" OPTIONAL="TRUE">
    <Display>
    <Label NLSID="tgt_type_port">SNMP Port (Default :161)</Label>
    </Display>161
    </InstanceProperty>
    The "161" besides the "</Display> is the default value which you have defined in your metadata XML file. This value would be picked up automatically on the Add Target page.

  • Error editing task sequence: Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" From XML into WMI

    I've started getting an intermittent error editing my Windows 7 OSD task sequence.  Sometimes I can open the TS to edit, but when I try to apply changes I get the error.  Other times I get the error when trying to open the TS.  If I try again
    right away, I still get the error, but if I wait a few minutes and try again sometimes it will open the TS. 
    The error reads:
    ConfigMgr Error Object:instance of SMS_Extended Status{Description = "Failed to load dynamic properties for class \"SMS_TaskSequence_ApplyWindowsSettingsAction\" from XML into WMI";Error Code = 2147943746;File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";Line = 3454;Operation = "ExecMethod";ParameterInfo = "SMS_TaskSequencePackage";ProviderName = "WinMgmt";StatusCode = 2147749889;}
    Coinciding with this error, I show the following entries in the TaskSequenceProvider.log file: 
    [PID: 7608] Invoking method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Failed to protect memory buffer, hr=0x80070542
    TaskSequenceProvider
    Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load node Apply Windows Settings from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "PostInstall" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "Execute Task Sequence" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load XML for the task sequence into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    [PID: 7608] Done with method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Setting status complete:  status code = 0x80070542; Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI
    TaskSequenceProvider
    I exported the task sequence and checked in "object.xml" for the "ApplyWindowsSettingsAction", to see if there was something odd in the xml, but I don't find anything that jumps out as being wrong.  Here's the section of XML for
    that step.  I've removed identifying info, and replaced it with a generic term in bold.
    <step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="" runIn="WinPE" successCodeList="0" runFromNet="false"><action>osdwinsettings.exe /config</action><defaultVarList><variable name="OSDLocalAdminPassword" property="AdminPassword"></variable><variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable><variable name="OSDProductKey" property="ProductKey"></variable><variable name="OSDRandomAdminPassword" property="RandomAdminPassword">false</variable><variable name="OSDRegisteredOrgName" property="RegisteredOrgName">COMPANY NAME</variable><variable name="OSDRegisteredUserName" property="RegisteredUserName">COMPANY NAME</variable><variable name="OSDServerLicenseConnectionLimit" property="ServerLicenseConnectionLimit">5</variable><variable name="OSDTimeZone" property="TimeZone">Central Standard Time</variable></defaultVarList></step><step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="" runIn="WinPEandFullOS" successCodeList="0" runFromNet="false"><action>osdnetsettings.exe configure</action><defaultVarList><variable name="OSDDomainName" property="DomainName">DOMAIN.COM</variable><variable name="OSDJoinPassword" property="DomainPassword"></variable><variable name="OSDJoinAccount" property="DomainUsername">DOMAIN ACCOUNT</variable><variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable><variable name="OSDNetworkJoinType" property="NetworkJoinType">0</variable><variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable></defaultVarList></step>
    Is there any other log I should check for a clue on this issue?  What could be causing this error?

    Thanks for sharing that!  I tend to save contacting MS support until after I've exhausted other options.  I'm always afraid that I'll spend the $500 to open a case and then it turns out to be something simple that I would have found if I had just
    kept working on it myself a little longer.
    It looks like that link is for an update released in February as KB3023562.  I downloaded and installed it. I'll try opening/editing/saving the task sequence a few times today to see if the issue is resolved.  
    After I had already installed it, I thought to look up that update in configmgr.  The update is listed as superseded by 2 other updates.  The newest of those is KB3046049, which just installed last night with the other March patches, so it's possible
    that I didn't need to install KB3023562 after all.  

  • Dynamic properties in a process

    Hi everyone,
    I am trying to find a solution to create some dynamic properties in my process.
    JPD are good but too many things are hard-coded and changing them needs the project
    to be recompiled :(
    My aim is to remove most of the hardcoded values and let the administrator set
    them later at the deployment time.
    Do you have any idea if it is possible to add custom dynamic properties that could
    be edited in the same way as the service broker control ?
    Moreover some of the process settings are in the javadoc (such as the delay for
    a timer path, the amount of retry for an exception etc..)
    Is there any solution to set them at the runtime ?
    Thanks for any help/idea you could provide,
    Mael

    You can get the task infromation by calling the task control method TeskInfo getTaskInfo()
    "raja v" <[email protected]> wrote:
    >
    Iam using WebLogic8.1 Integration BPM feature. I've designed a Worklist
    based application.
    In the business process, i've to call a java class method from the business
    process
    which takes the process instance and task related properties (viz. the
    task id,
    task name, the current actor etc.). How could i supply these values from
    within
    a business process.
    Regards
    Raja V.

  • How can i set dynamic properties in HTTP Binding adapter  at run time

    Hi,
    I am trying to put dynamic properties in HTTP Binding adapter at run time. I am able to Set endpointURI, UserName and Password dynamically using below code.
    Is it possible to set Version , Retry Count, timeout, authentication type at run time.
    below is code for setting endpointURI, UserName and Password dynamically.
    <invoke name="HttpInvoke" bpelx:invokeAsDetail="no"
    partnerLink="SACS_Http_Adapter"
    portType="ns1:Request_Response_ptt" operation="Request-Response"
    inputVariable="HttpInvoke_Request-Response_InputVariable"
    outputVariable="HttpInvoke_Request-Response_OutputVariable">
    <bpelx:toProperties>
    <bpelx:toProperty name="endpointURI" variable="inputVariable"
    part="payload" query="@endpoint"/>
    <bpelx:toProperty name="javax.xml.ws.security.auth.username"
    variable="inputVariable" part="payload"
    query="@username"/>
    <bpelx:toProperty name="javax.xml.ws.security.auth.password"
    variable="inputVariable" part="payload"
    query="@password"/>
    </bpelx:toProperties>
    </invoke>
    Thanks,
    Siva
    Edited by: 929920 on Apr 25, 2012 7:45 AM

    Hi Bastain,
    Assuming your using the Batch Process Model, you can programatically insert a new SN into the correct parameter in the postUUT callback sequence.
    This sequence has access to the UUT.SerialNumber parameter so you can use a File Global to pass the SN from the main sequence to the postUUT callback. 
    Here is an example of what I mean. 
    Adam
    Attachments:
    set SN within Main Sequence.seq ‏80 KB

  • Dynamic properties working in "normal KM" but not in XML forms

    Hi all,
    (EP 6.0 SP13)
    I've implemented a Metadata Extension that returns a list of properties. The list is dynamically generated based on the folder the document is located in. I've tested the Metada Extension on both existing documents and new documents and it works fine in "normal" KM scenarios ( Word documents, file uploads, etc.).
    The problem arises when I want to use these Dynamic properties in XML forms. I've added my property to a combox  in the XML Forms project. When accessing the Metadata Extension from XML forms the resource path is always null. Since all my business logic is based on knowing where in the KM structure the document is, I have a small problem...
    If I go to Details->Properties on the xml forms document and accesses my property there, the path is correct..
    To get the resource path I use these two methods:
    folder = metaContext.getResourcePath();
    (for newly created documents)
    folder = metaContext.getResource().getParentCollection().getRID().getPath();
    (for existing documents)
    these are null when calling my Metadata Extension from a XML Form.
    Any ideas?
    Vegard

    Hi Vegard,
    Could you post the code that loads/create the property objects dynamically?
    Maybe you can post it at this forum Dynamic properties working in "normal KM" but not in XML forms
    so I can award you some points.
    Thanks in advanced,
    André

  • Export/Report on dynamic properties in SQL Data Modeler

    I'm thinking of using dynamic properties to hold meta-data in SQl Data Modeler, but I can't find a way of exporting or reporting on this info once I have created it.
    Am I missing something?
    Regards,
    John

    John,
    you can download DM 4.0.1 - dynamic properties can be included in custom report templates and into generated reports.
    Philip

  • Finding dynamic properties

    Hi all,
    I have a relatively simple question but couldn't seem to find
    an answer online. I'd like to know how you can determine what
    dynamic properties are contained in an object. For example, if I
    had an Object and did something like obj["foo"] = "bar" and
    obj["bar"] = "foo", what would I need to do to know this object
    contains the properties "foo" and "bar"? I know the for ... each
    loop constructs do this but I don't know how to do this myself.
    Thanks in advance.

    If you take this code and run it through the debugger you can
    see that it will return the properties of the obj Object and
    dynamically create and assign the values to the new Object newObj.
    Hope this helps.
    var obj : Object = new Object();
    obj.itemOne = "Boston Celtics";
    obj.itemTwo = "Boston Redsox";
    obj.status = "Champions";
    var newObj : Object = new Object();
    var objInfo1 : Object =
    ObjectUtil.getClassInfo(obj).properties;
    for each( var obj1:Object in
    ObjectUtil.getClassInfo(obj).properties ) {
    var item : Object = obj[obj1] ;
    newObj[obj1] = item;
    }

  • Change dynamic propertie with MBean

    Hello,
    I have implemented a MBean config instead of using properties file as It allows me to change the value during runtime, without restarting the server.
    For that, i used the org.springframework.jmx.export.MBeanExporter and register this bean into my spring config file.
    <bean id="ConfigJMX" class="xyz.mbean.ConfigImpl">
    <property name="fileName" value="/tmp/toto.txt"/>
    </bean>
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
    <property name="beans">
    <map>
    <entry key="xyz:name=MyConfig" value-ref="ConfigJMX"/>
    </map>
    </property>
    </bean>
    I have added the following library In the MANIFEST under runtime classpath.
    I have added the following JARs to satisfy classpath issue (I don't know if it is the right way of doing with CEP ?)
    - lib/org.springframework.spring-context_2.5.6.jar
    - lib/org.springframework.spring-core_2.5.6.jar
    - lib/org.springframework.spring-aop_2.5.6.jar
    Compilation is fine, but during the deployment, i have the following exception:
    Caused By: org.springframework.beans.FatalBeanException: Could not create service reference; nested exception is java.lang.IllegalArgumentException: interface org.springframework.aop.IntroductionInfo is not visible from class loader
         at com.bea.wlevs.spring.support.ServiceInjectionBeanPostProcessor.postProcessPropertyValues(ServiceInjectionBeanPostProcessor.java:128)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:998)
    Seems that cep engine refuse to 'register' thoses libraries.
    Could you provide the right way of dealing with this issue ?
    Or
    Do we have a better mecanism to implement what i'm trying to do in CEP (loading and changing properties value during runtime without restarting the server)?
    Regards,
    chenda

    Hello,
    I managed to made it works.
    1/ Remove the jars in the lib folders
    *lib/org.springframework.spring-context_2.5.6.jar
    *lib/org.springframework.spring-core_2.5.6.jar
    *lib/org.springframework.spring-aop_2.5.6.jar
    Theses exist from CEP installation.
    2/ Open META-INF, dependencies tabs, and add the complaining missing package during deployment
    org.springframework.jmx.export;version="2.5.6"
    ... (more)
    3/ Reference the EPN.xml, as following
         <wlevs:adapter id="FileReaderAdapter"
              class="com.oracle.fr.ocs.cep.filereaderconfigdyn.adapter.FileReaderAdapter">
              <wlevs:instance-property name="configMBean" ref="configJMX"/>
              <wlevs:listener ref="inputFileReaderChannel" />          
         </wlevs:adapter>
    Then you are able to change dynamically through JConsole, the value define in your MBean and it works like a charm.
    We can probably use "ConfigurationPropertyPlaceholderConfigurer" class to achive the same goal and this is probably a better integration with CEP mecanism (if properties are writable at runtime).
    http://docs.oracle.com/cd/E23943_01/dev.1111/e14301/overview.htm#CEGGDFEI
    For the moment, i'm not able to made it work (yet) ;-)
    Regards,
    chenda

  • Dynamic properties problem

    Dear friends,
    I am trying to create an application form, where i have a
    tabNavigator, which being rendered based on number of items set in
    textInput:
    private function addCars(event:Event):void{
    var car_number:int=int(number_of_cars.text);
    for(var i:int = 1; i <= car_number; i++){
    var new_car:car_details=new car_details();
    new_car._car_id=i;
    car_navigator.addChild(new_car);
    where car_details is class defined in MXML, and sets some
    properties for car:
    <mx:HBox width="100%">
    <mx:Label text="Date of creation"/>
    <mx:DateField id="car_creation_date"/>
    <mx:Label text="Model"/>
    <mx:TextInput id="car_model"/>
    </mx:HBox>
    It works fine. Now i want to be able to set id's for this
    properties in a run-time so i can later get an information from
    fields and pass it to ColdFusion.
    Can you explain how to do this? We've try many things - none
    works.
    Thanks,
    Mika

    I'm not exactly sure what you mean, so what I'm going to say next might have nothing to do with what you want.
    Since you are obviously dynamically generating the JSP, couldn't you also generate some javascript code that before you submit loops through al the form elements and dumps all the data in a single hidden input field? I always use a structure like this:
    1|2|3|4|5
    This would mean that there were 5 form elements with the selected values '1' to '5'. And then when I need to parse the data (fx. in a bean), I split the string on the pipe (|) character. According to what you need to know you might need to encode more information into the string, but for me this has always worked just fine.

  • How to implement Dynamic properties files?

    Hello,
    I use Properties files to display some messages in my jsp but It could be very usefull if someone can tell me a way to reload my properties files when my application server is running.
    Or if Someone can tell me where to find the singleton who manage the map of message it can help me a lot ^_^.
    NB: I use Struts framework to manage properties, but if someone have a solution with JSTL I'm interest too.
    best regards,
    J�r�me

    Hi Jerome, this is something all Java developers have run into at some point I believe. The ResourceBundle in Java reads your .properties file once and cannot be told to re-load. Unless you can do some sort of classloader trick, not sure.... You have a few options otherwise:
    1) Write your own ResourceBundle which either checks a database or re-reads a .properties file on some timely basis.
    2) Use Spring's ReloadableResourceBundleMessageSource (http://www.springframework.org/docs/api/org/springframework/context/support/ReloadableResourceBundleMessageSource.html) The only drawback here being you no longer use the ResourceBundle like you would a normal Java resource bundle (i.e. using ResourceBundle.getBundle()) you now use Spring's MessageSource interface to get at your properties.
    Hope that helps

  • URL Iview - Dynamic properties.

    Hi all,
            I am using iview "Url iview" and I would pass some specific parameters.
    Example: What is the page that directed to her, who was logged, and another dynamics parameters
    And the result is -> http://sapportal/Log/index.asp?User=xxxx?PageID=com.company.xxxxxxx
    Could someone help me?
    Thanks
    Ricardo

    Please read up about the application integrator. This allows the building on dynamic URLs based on things like the user's id etc.
    For example: http://help.sap.com/saphelp_nw04/helpdata/EN/36/5e3842134bad04e10000000a1550b0/frameset.htm

  • Creating dynamic properties

    I have written a script in manuplator to generate a property dynamically. How should i display the same in front end as I will require a dynamic property for mapping as well

    Check out the Forge Guide, Chapter 5. Advanced Mapping Techniques.

  • How to make a custom agent with dynamic properties that can be changed with OMS

    I have made a custom agent where old documents will be purged. We are doing this with a parameter purgeDate. Now we do this from the Oracle9IfsManager.
    So if we want a new date, we have to unload and load the server to use the new date.
    I see that some agents can be changed from the OMS. Than they use the new settings after restart.
    Who can I do this?

    As an FYI: I just solved the problem by going the "low road." I'll be a bit laborious in case someone else wants a solution at a later date (I know I Googled the topic and found nothing). I experimented by simply:
    Opening a new email message
    Selecting my custom template
    Copying the custom signature (Select All)
    Opening another new email message
    Selecting Edit on the Signature pulldown menu
    Hitting the plus symbol to create/add a new signature in the pane
    Pasting into the new signature
    Naming it
    Selecting "Choose signature" at the bottom of the signatures pane
    And violà!!
    It now appears as a possible selection *and* as the default.
    Better yet - it is now my default and will work as a reply to an email.
    I think I got it all right in the list above.
    OK, granted, this is a pretty simply signature - a list of my website, SoundCloud, twitter etc with those names in bold and a graphic of my color logo - but... it works! YMMV.
    Give it to Apple to make it so simple that any fool could do it (that would be me), you wouldn't need a "specialized" app, and - of course - there wouldn't even be instructions on how to do it!
    Best,
    Joel

  • How to create dynamic properties in java

    Hi All
    Let me give a breif intro of what i am tryng to do.......
    I want to write a jsp page where the data would be coming from JDBC.
    I have abt 18 columns in my oracle table.
    Out of which i am only configured 7 fields on my jsp page.
    I want to create a mapping file which would be like this
    field1 = name
    field10= designation
    field2 = company
    field3 = address
    field4 = pincode
    field7 = mobile
    field8 = salaryNow each field has its own validation. Suppose today i want pincodeto be a string and tomarrow i want it to be number
    the validation shd automatically change
    how can i put these values i meant in what data structure shd i store them
    Please give me some ideas
    thanks
    Diana

    how can i put these values i meant in what data structure shd i store themMeta data.
    You create a "structure" of some sort that has data in it like the following. Figure out how to store it (text file, xml, database, whatever) write code to parse the structure and then build an interpreter that constructs the page.
    I am rather certain that frameworks like this already exist, but if you are new to programming then creating your own is instructive.
    --- Definition
    name: <Display name>
    Oracle: <jdbc position> <oracle type> <size>
    Java: <display position> <java type>
    --- Example
    name: name
    Oracle: 1, varchar 10
    Java: 3, String
    name: Salary
    Oracle: 5, numeric 18,2
    Java: 1, double

Maybe you are looking for