Is it possible to add path to .property files at runtime?

I have 3rd party jars that require access to property files. I won't know the path to these property files until I execute some discovery code at runtime. Is there some mechanism to add these directories to the path at runtime?

Hi Marco,
I assume your requirement is :
At design time bind Inuputfield IP1 to ATTR1 and at runtime bind IP1 to ATTR2 on some condition.
Instead of changing the binding you can have two input fields IP1 and IP2 bound to ATTR1 and ATTR2  .
Hide IP2 initially ( Bind attributes of type WDUI_VISIBILITY to the 'Visible' property of IP2 and IP1 )
On the event or condition you want it to change , hide IP1 and unhide IP2.
I hope it helps.
Please revert in case of issues.
Regards,
Sumit

Similar Messages

  • Possible to add comments to a file?

    Is it possible to add a comment to a File?
    I need to be able to add comments (short sentence) to some archives (TAR and ZIP) that I'm creating, but I don't see any native way of doing this. The best I can think of is to create a log that lists all of the archives in the directory, and records the comments associated with each.
    Anyone have a better idea?
    Thanks!

    Thanks for the reply!
    Won't that just set a comment for each entry? I need to be able to tag each archive (both ZIP and TAR) with a comment.

  • Is it possible to add groups in RDP file without opening it?

    We are using row-wise initalization in OBIEE 10.1.3.4. Are customers would like to add custom groups for diffenrent people so they can share dashboards. The problem is that we don't want them to touch RDP file manually. And in my knowledge the groups has to be in RDP to work. So is there any way to do this without opening the RDP file?

    Hi,
    And in my knowledge the groups has to be in RDP to workYes you need them in rpd
    So is there any way to do this without opening the RDP file? No as its 10g you need to add them manually
    Regards,
    Srikanth

  • Execution path of an  file at runtime

    I have dir stucture like this
    D:\first;
    D:\first\second;
    both of these are included in my classpath.
    I have a package structre as
    com.myName.MyPack
    The above package is stored in both the structures mentioned above.
    FileName.class is a file inside the package, and hence can have two absolute paths
    D:\first\com\myName\MyPack\FileName.class
    D:\first\second\com\myName\MyPack\FileName.class
    The Command
    java com.myName.MyPack.FileName
    is given form the D: itself.
    Now I need to know which class is called (it might be any of the two as the classpath is set in the users system).
    I need to get the absolute path of the class which is loaded by the classLoader how do I do it.
    Is there any api or method to know the above

    Double-posted here: http://forum.java.sun.com/thread.jsp?thread=416540&forum=31&message=1840525

  • How can you change property files of a EJB at Runtime?

    Hi,
    I have got an ejb and want to change my variables which I stored in property file at Runtime.
    But the property file isn´t in the jar-file of my ejb...
    How can I add it.
    Or How can I change the property file without new compilation.
    Thanks
    Uli

    Hi Uli,
    the previous post is generally correct, but without taking any part in the sensibility of this (there are valid reasons why you would not store the values in a DB) it would be necessary for you to be a bit more specific.
    Is your problem that you can not see the file from your EJB or that you don't know how to change a property file entry in general?
    Cheers,
    Kalle

  • Possible to add cue points to a FLV recorded by webcam?

    Hello,
    I am wondering if it is possible to add/inject a cue point to an FLV server-side that has been recorded/published from a users webcam using FMS3.5.
    Thank you

    Sure, you can do that on the server side. Assume you have a stream named foo that is recording, you can do something like:
    var s = Stream.get("foo");
    s.send("myCuepointFunction", var1, var2, var3);
    When played back, the client side function "myCuepointFunction" will be invoked on the stream's client property (or, in AS2, you'd need a function on the netstream object named myCuepointFunction).

  • Is it possible to add an all time member to the time dimension

    We are on BPC 7.  Our time dimension has the normal Year, Quarter, Month rollup. 
    Is it possible to add an "All_time" member to the time dimension that would have all years rolling up to it or are our only choices Year, Halfyear, Quarter, Month, Week, or Day?

    TOTAL is not a valid selection for LEVEL.  Did you create this "TOTAL" manually some how?  I have seen "TOTAL" as a period but never a level.  Do you have a dimension file that you can get to work with this example in APPSHELL that you could share?
    According to the BPC Admin documentation it only comes with YEAR, HALFYEAR, QUARTER, MONTH, WEEK, DAY as valid options.  How do you get the TOTAL member added as a valid option for the LEVEL property:
    BPC Documentation Reference below:
    LEVEL
    Time can be a year, quarter, month, week or day. As described above, the PARENTH1 property is used to define the aggregation of the time periods.
    The LEVEL property is also very important in defining your time periods. You must have the correct Level (Year, quarter, month, etc.) for each member. You must follow the chronological format throughout the Time dimension. The correct format is:
    ·        YEAR
    ·        HALFYEAR
    ·        QUARTER
    ·        MONTH
    ·        WEEK
    ·        DAY

  • Is it possible to add a new note on stickies.app by terminal/unix shell scripts ?

    is it possible to add a new note on stickies.app by terminal/unix shell scripts ?

    1. If i uninstall GNU Classpath, Does it cause system not to work properly? Not in my experience. I have encountered dozens of cases where it cured problems like this immediately. Alternatively adjust your PATH so that it finds the JDK before it finds GNU CLASSPATH.
    (Now i am using that java on my server with a certificate , I dont want to risk the system. )GNU CLASSPATH is the risk here.
    2. I have searched about your advice, this link tells classpath causes: "certificate insert problems"
    http://builder.classpath.org/japi/jdk15-classpath.html is this what you mean ?
    I can't find that statement on that page, but it does show compliance problems of up to 20% in the security area (and *40%* in LDAP, the area I'm working in at the moment).
    Basically GNU CLASSPATH is not Java and cannot be expected to behave like it. In this case it doesn't even understand the format of a Java keystore. QED.
    Note that they don't call it 'Java', because it isn't. I quote:
    GNU Classpath 1.0 will be fully compatible with the 1.1 and 1.2 API specifications, in addition to having significant (>95%) compatability with the 1.3, 1.4, 1.5 and 1.6 APIs.In other words they haven't even finished JDK 1.1 yet, let alone all the other stuff. At the present rate of progress they never will. That statement is the latest, it is dated 7 July 2009, and the latest actual software is dated 5 February 2009. And there is clearly no intention of ever submitting it to the Java Compatibility Tests as real Java implementors do.
    3. How can i uninstall GNU Class Path without causing any problems to my working server?No idea, can't help you. Ask a Liinux expert.
    4. Is there any way to add the certificate without removing GNU CLASSPATH ?Yes, see above, but I still strongly recommend removal.

  • [svn:fx-3.x] 7495: BLZ-233 - Add a heartbeatInterval property to channelset

    Revision: 7495
    Author:   [email protected]
    Date:     2009-06-02 13:22:15 -0700 (Tue, 02 Jun 2009)
    Log Message:
    BLZ-233 - Add a heartbeatInterval property to channelset
    QA: Yes
    Doc: Yes (review ASDoc for the new property on ChannelSet)
    Checkintests Pass: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-233
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/Channel.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/messages/CommandMessage.as

    Revision: 7495
    Author:   [email protected]
    Date:     2009-06-02 13:22:15 -0700 (Tue, 02 Jun 2009)
    Log Message:
    BLZ-233 - Add a heartbeatInterval property to channelset
    QA: Yes
    Doc: Yes (review ASDoc for the new property on ChannelSet)
    Checkintests Pass: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-233
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/Channel.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/messages/CommandMessage.as

  • [svn:bz-trunk] 7497: BLZ-233 - Add a heartbeatInterval property to channelset

    Revision: 7497
    Author:   [email protected]
    Date:     2009-06-02 13:25:23 -0700 (Tue, 02 Jun 2009)
    Log Message:
    BLZ-233 - Add a heartbeatInterval property to channelset
    QA: Yes
    Doc: Yes (review documentation for <heartbeat-interval-millis> in /resources/services-config.xml)
    Checkintests Pass: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-233
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/ClientConfigurationParser.java
        blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
        blazeds/trunk/modules/common/src/flex/messaging/config/FlexClientSettings.java
        blazeds/trunk/modules/common/src/flex/messaging/config/ServicesDependencies.java
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/messages/CommandMessage.java
        blazeds/trunk/resources/config/services-config.xml

  • Is possible to separate path using script....?

    Hi Everyone,
    I have one overall path and two outer edge path.
    use overall path to separate each like pant and tops.
    Is possible to separate path using script. I have also tried script but is not working on second separation.
    can any rectify that script is possible...?
    -yajiv
    #target Photoshop
    app.bringToFront;
    var docRef = app.activeDocument;
    var myDocname=app.activeDocument.name
    var e=0
    try {
        var ecp=docRef.colorProfileName;
         var n=docRef.pathItems.length;
                        if(n>0){
                if(docRef.pathItems[0].name=="Path 1"){
                  var pathRef = docRef.pathItems[0].duplicate(); 
                  var path1=docRef.pathItems.getByName("1");   
                  //path1.duplicate();         
                  path1.select();
                  Path_copy();
                  var pathitem=docRef.pathItems.getByName("Path 1 copy");
                   pathitem.select();
                   Path_Paste();
                   pathitem.operation = ShapeOperation.SHAPEINTERSECT;
                   Path_Combine();
                   var path1=docRef.pathItems.getByName("1");  
                   var pathRef1 = path1.duplicate();
                   path1.select();
                   path1.remove();
                    var pathitem=docRef.pathItems.getByName("Path 1 copy");
                    pathitem.select();
                    pathitem.name="1";
                    var pathitem=docRef.pathItems.getByName("Box");
                    pathitem.select();
                    Path_copy();
                   var path1=docRef.pathItems.getByName("1 copy");  
                    path1.select();
                    path1.name="OL"
                    Path_Paste();
                    path1.operation = ShapeOperation.SHAPEXOR;
                    Path_Combine();
                   var pathRef = docRef.pathItems[0].duplicate(); 
                   var pathitem=docRef.pathItems.getByName("Path 1 copy");
                   pathitem.select();
                   Path_copy();
                   var path2=docRef.pathItems.getByName("OL");  
                   path2.select();
                   Path_Paste();
                   path2.operation = ShapeOperation.SHAPEINTERSECT;
                   alert(path2.operation);
                   Path_Combine();
    catch (e) {
       alert(e);
    //alert ("PSR_LWC_PLUS_V2_PT - Color Profile not Embedded...\n Check it out...!!!")
    function Path_copy(){
        var id200 = charIDToTypeID( "copy" );
        executeAction( id200, undefined, DialogModes.NO );
    function Path_Paste(){
        var id204 = charIDToTypeID( "past" );
        executeAction( id204, undefined, DialogModes.NO );
    function Path_Combine(){
                var idcombine = stringIDToTypeID( "combine" );
                    var desc26 = new ActionDescriptor();
                    var idnull = charIDToTypeID( "null" );
                        var ref25 = new ActionReference();
                        var idPath = charIDToTypeID( "Path" );
                        var idOrdn = charIDToTypeID( "Ordn" );
                        var idTrgt = charIDToTypeID( "Trgt" );
                        ref25.putEnumerated( idPath, idOrdn, idTrgt );
                    desc26.putReference( idnull, ref25 );
                executeAction( idcombine, desc26, DialogModes.NO );

    Hi c.pfaffenbichler,
    Finally with your guidance I rectify the script error.
    Thank you for your time and knowledge, I really do appreciate it.
    Once again Thanks for your continue support.
    "Wish you Happy successful New Year - 2012...!!!"
    Regards
    -yajiv....
    Here is the Code.....!
    // create path intersections;
    // 2011; use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.POINTS;
    var theArray = new Array;
    var theNumber = myDocument.pathItems.length;
    // »simplify« paths and collect components;
    for (var m = 0; m < theNumber; m++) {
              myDocument.pathItems[m].select();
              combinePath();
              theArray.push(collectPathComponents(myDocument, myDocument.pathItems[m]));
          var OV_Path=myDocument.pathItems[0]
        // create intersections;
        for (var n = 1; n < theNumber; n++) {
            //alert(OV_Path);
              var theFirst = collectPathComponents(myDocument,OV_Path );
              var theSecond = theArray[n];
              for (var a = 0; a < theSecond.length; a++) {
                        theFirst.push(theSecond[a]);
              var thePath = createPathFromPathComponentActionDesc(theFirst, "intersect",0);
              makePath(myDocument.pathItems[0].name+" intersected with "+myDocument.pathItems[n].name);
              combinePath();
    // create subtraction;
        var theFirst = collectPathComponents(myDocument, myDocument.pathItems[0]);
        for (var o = 1; o < theNumber; o++) {
                  var theSecond = theArray[o];
                  for (var a = 0; a < theSecond.length; a++) {
                            theFirst.push(theSecond[a])
        var thePath = createPathFromPathComponentActionDesc(theFirst, "subtract",1); // Modify the parameter, add flag for function
        //subtract
        makePath("all others subtracted from "+myDocument.pathItems[0].name);
        combinePath();
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;
        function combinePath () {
        // =======================================================
        var idcombine = stringIDToTypeID( "combine" );
            var desc4 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref3 = new ActionReference();
                var idPath = charIDToTypeID( "Path" );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idTrgt = charIDToTypeID( "Trgt" );
                ref3.putEnumerated( idPath, idOrdn, idTrgt );
            desc4.putReference( idnull, ref3 );
        executeAction( idcombine, desc4, DialogModes.NO );
        //components correspond to subPathItems,  subpathList contains the actual paths than can make up one subPathItem ;
        ////// collect path infor from actiondescriptor //////
        function collectPathComponents (myDocument, thePath) {
            //var myDocument = app.activeDocument;
            var originalRulerUnits = app.preferences.rulerUnits;
            app.preferences.rulerUnits = Units.POINTS;
            // based of functions from xbytor’s stdlib;
            var ref = new ActionReference();
            for (var l = 0; l < myDocument.pathItems.length; l++) {
                      var thisPath = myDocument.pathItems[l];
                      if (thisPath == thePath && thisPath.name == "Work Path") {
                                ref.putProperty(cTID("Path"), cTID("WrPt"));
                      if (thisPath == thePath && thisPath.name != "Work Path" && thisPath.kind != PathKind.VECTORMASK) {
                                ref.putIndex(cTID("Path"), l + 1);
                      if (thisPath == thePath && thisPath.kind == PathKind.VECTORMASK) {
                   // var idPath = charIDToTypeID( "Path" );
                    var idPath = charIDToTypeID( "Path" );
                    var idvectorMask = stringIDToTypeID( "vectorMask" );
                    ref.putEnumerated( idPath, idPath, idvectorMask );
             var desc = app.executeActionGet(ref);
            var pname = desc.getString(cTID('PthN'));
            // create new array;
            var theArray = new Array;
            var pathContents = desc.getObjectValue(cTID("PthC"));
            var pathComponents = pathContents.getList(sTID('pathComponents'));
            for (var m = 0; m < pathComponents.count; m++) {
            var comp = pathComponents.getObjectValue(m);
            var subPathList = comp.getList(sTID("subpathListKey"));
            var shapeOp = comp.getEnumerationType(sTID("shapeOperation"));
            //alert("shapeOp - "+shapeOp);    q
            theArray.push([comp, subPathList, shapeOp]);
            // by xbytor, thanks to him;
            function cTID (s) { return cTID[s] || cTID[s] = app.charIDToTypeID(s); };
            function sTID (s) { return sTID[s] || sTID[s] = app.stringIDToTypeID(s); };
            // reset;
            app.preferences.rulerUnits = originalRulerUnits;
            return theArray;
        ////// create a path from an array of pathcomponents //////
        function createPathFromPathComponentActionDesc (theArray, shapeOperation,flag) {
        cTID = function(s) { return app.charIDToTypeID(s); };
        sTID = function(s) { return app.stringIDToTypeID(s); };
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putProperty(cTID('Path'), cTID('WrPt'));
        desc1.putReference(sTID('null'), ref1);
        var list1 = new ActionList();
        for (var m = 0; m < theArray.length; m++) {
                  var desc37 = new ActionDescriptor();
                  if (m == 0 && flag=0) {
                            desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), cTID('Intr'));
                  else  if (m == 0 && flag=1) {//Modify mode to exclude.....!
                             desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), theArray[m][2]);
                  else {
                            switch (shapeOperation) {
                                      case "intersect":
                                      desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), cTID('Intr'));
                                      break;
                                      case "subtract":
                                      desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), cTID('Sbtr'));
                                      break;
                                      case "exclude":
                                      desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), 696);
                                      default:
                                      desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), theArray[m][2]);
                                      break;
                  var list5 = new ActionList();
                  desc37.putList(cTID('SbpL'), theArray[m][1]);
                  list1.putObject(cTID('PaCm'), desc37);
        desc1.putList(cTID('T   '), list1);
        executeAction(cTID('setd'), desc1, DialogModes.NO);
        ////// make work path regular path //////
        function makePath (aName) {
        // =======================================================
        var idMk = charIDToTypeID( "Mk  " );
            var desc4 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref2 = new ActionReference();
                var idPath = charIDToTypeID( "Path" );
                ref2.putClass( idPath );
            desc4.putReference( idnull, ref2 );
            var idFrom = charIDToTypeID( "From" );
                var ref3 = new ActionReference();
                var idPath = charIDToTypeID( "Path" );
                var idWrPt = charIDToTypeID( "WrPt" );
                ref3.putProperty( idPath, idWrPt );
            desc4.putReference( idFrom, ref3 );
            var idNm = charIDToTypeID( "Nm  " );
            desc4.putString( idNm, aName );
        executeAction( idMk, desc4, DialogModes.NO );

  • If is possible to add new local var to sequence from the outside?

    If is possible to add new local var to sequence from the outside?
    I mean insert a new local variable to Sequence.Locals list or via expression, or by LabView VI (Sequence Context). or any another way.
    Thanks.

    Hi,
    The simplest way would be to use the API TS method PropertyObject.SetValBoolean, PropertyObject.SetValNumber or PropertyObject.Set ValString. With the SequenceContext you create a PropertyObject using the method SequenceContext.AsPropertyObject, which you use as the reference for the the SetVal method.
    For the SetVal method, pass the full lookup string of your variable eg "Locals.MyString" and set the option parameter to 0x01 (insert if missing).
    If you are calling this from LabVIEW, then use the SetVal property VI.
    This will insert a varable into the Locals that is "in scope" of the step that is performing the task. 
    In the TestStand Help - "Using the API in Different Programming Languages" and in the TestStand User manuals there is more information to help you.
    This will only make a runtime version of your Local. ie when your sequencefile stop executing your Local will not exist in the Static version of the Sequence File.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • [svn:fx-trunk] 5295: -add property file that will have the TLF build number in it

    Revision: 5295
    Author: [email protected]
    Date: 2009-03-13 08:50:57 -0700 (Fri, 13 Mar 2009)
    Log Message:
    -add property file that will have the TLF build number in it
    Added Paths:
    flex/sdk/trunk/in/tlf/tlf.properties

    Thats good news.

  • How to add a custom property to the user's master record?

    Hello,
    I would like to add a custom property to the user's master record which is unique to our company (User's region).
    Is that possible? and if yes, how?
    I'm a bit new to BW so a step-by-step procedure will help
    Roy

    The user names are stored in table USR01. IN that table see if you can add a field to have region. Extract this table and store it in User info object in BW.
    You will need a ABAP person to do this, if you are new to SAP.
    Ravi Thothadri

  • Is it possible to add markups to a PDF that I am not the author of

    Most of the PDFs I generate are from other applications (like Autocad) where I "print to PDF" to create the file.   Most of the PDFs I recevie are generated the same way.   Prior to Acrobat Reader 8, it was simple for me and my collueges to exchange information on these PDFs by using markup tools and resending them with markups.   Since Acrobat 8 has come along, I now find it impossible to markup a drawing (no matter if I have created it using Print to PDF or if someone has sent it to me).  I went to the knowledge base and see that the drawing has to be enabled for markup in one of 2 ways
    In an open PDF, choose Comments > Enable For Commenting In Adobe Reader, and then save the PDF.  
    Start the wizard to initiate a shared review or an email-based review and follow the on-screen instructions. When you’re finished, commenting is enabled in the PDF that you specify for the review. 
    Well, there is no Comments selection in my toolbar.   Second method is given by
    Quickstart: Start an email review
    An email-based review lets you track review status and merge received comments into the PDF.
    Click Review & Comment and choose Attach For Email Review.
    If prompted, enter your identity information to create a reviewer profile.
    Follow the on-screen instructions to select the PDF, invite reviewers, and send the email invitation.
      If your email application doesn’t send email automatically, you may need to answer alert messages and switch to your email application to finish sending the message
    But there is no Review & Comment button to click.
    So, can someone tell me, can I still do a simple markup of any PDF?   Even if I have to jump through hoops can I?    I guess I can understand Why Adobe has done away with this feature in their free tool, as they were not getting any revenue off of it, but it greatly diminishes the usefulness of Acrobat Reader and therefore all PDFs for me.
    Thanks in advance for your response.

    To enable this right you need Acrobat, not the free Reader.
    However, starting from Reader X it is possible to add simple markups to any file, unless it has been specifically disallowed by the creator of the file.

Maybe you are looking for