How can you determine at runtime which libraries are attached?

Hi
I am wondering if there is a way to determine which libraries are currently attached to a form at runtime. My application is in forms 10g.
I am hoping to get the full path so that it is possible to show this in an information type display. I am ideally looking for a solution that works on both Unix and Windows so that it can be used in development and production
thanks in advance
Wayne

I am curious, why you want to know which library is attached and the full path??? You cannot change it at runtime!!
I don't think that's possible at runtime by using Generic Forms built-ins, But as always with Oracle, you can have several solutions.
One solution is to initialize global variables/parameters in PRE-FORM and later you can read them and see the values and do whatever you want accordingly.
When using Global variables, you can test for their DEFAULT_VALUE to check whether the variable exists or not, this will prevent getting an error if the variable hasn't been initialized yet.
Tony

Similar Messages

  • How can you determine the absolute path to a dynamically created NetStream object?

    We are trying to implement video captioning with a freeware component, ccforflash. This requires us to provide an absolute or relative path  to our NetStream object. How can we determine this path in Flash CS5 AS3?
    From the CCforFlashCS5 documentation:
    "2. Object name and path
    Type the name and path.  This is the instance name of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 will query the object with this name for timing information in order to synchronize the captions. The path must also be included; either relative to the CCforFlashAS3 component (i.e. this.parent) or the absolute path from the main level of the movie (root)."

    It would be easier if the NetStream object was created on an easily identifiable place on the timeline. This player has an MVC architecture. The NetStream object is created in a subclass to Model class, which is itself a subclass of the EventDispatcher object. The View class access it via an interface.
    As you can guess, it's not that straightforward to determine where the NetStream object is located on the timeline. This is compounded by the fact that the NetStream object does not have a name property.
    I've tried methods like these, but they only work for the DisplayObject class:
    public static function displayObjectPath( avDisplayObject : DisplayObject ) :String
    var lvPath:String = "";
    do
    if( avDisplayObject.name ) {
    // var obj_name:String = (avDisplayObject.name == 'root1') ? 'root' : avDisplayObject.name;
    if (avDisplayObject.name != 'root1') {
    lvPath = avDisplayObject.name
       + ( lvPath == "" ? "" : "." + lvPath );
    } else {
    trace("displayObjectPath() NO NAME avDisplayObject="+avDisplayObject);
    } while( avDisplayObject = avDisplayObject.parent );
    return lvPath;
    } // displayObjectPath
    private  function showChildren(d:DisplayObjectContainer):void {
    trace("showChildren()");
    if (d.numChildren>0) {
    for (var c:Number = 0; c < d.numChildren; c++) {
    trace("showChildren c=",c," name=",d.getChildAt(c).name);

  • How can you determine a file creation date and know if it's been altered since the creation date

    I need to know how to determine a file creation date on an ipad.  If someone creates a document/note on an ipad how can you tell when it was created and if it has been altered since?

    Unless you are using a third party app that provides that functionality, in iOS the only thing youcan access is the last edit/save date and time, which is fairly evident in the user interface for documents and notes. Some apps that handle MS Office files may provide that, but ican't say first hand.

  • How can you determine what imports to use

    In the examples in the UIX Developers guide, a number of pieces of Java code are given but without the necessary import statements. When I copy them into JDeveloper and try and compile, a number of compilation errors are given becuase some of the classes can not be found. I presume I need some import statements in the Java code. How can I find out where the class is located to know what import statement to use ?
    eg...MyClass.handleStoreNameEvent - cannot find class StateManager; cannot find class MutableState
    Thanks
    Brent

    Brent -
    I'm not sure whether this is the most convenient solution, but I usually look up classes in the JavaDoc reference to find their packages. In JDev 9.0.3, you can find the JavaDoc documentation for the UIX classes in the help system under the Reference -> UIX Reference. Click on the "FRAMES" link to see a list of all classes - and from there you should be able to find the JavaDoc for each class, which includes the package name.
    Andy

  • How can i measure BAPI runtime which has called from JAVA

    Hi abapers
    how can i get run time for BAPI called from JAVA through JCO.
    i know that i can use SE30 from ABAP by executing from SAP.
    may be ST05 useful for me i did it but when display trace
    i am getting big list by seeing this list i am not able to find the runtime for that BAPI.
    please any one can explain
    reagdrs
    ramesh

    Hi Ramesh,
       Irrespective of whether the call is from an external system or within sap, the bapi will be executed in R/3 only.
    So, you can safely measure the runtime using se30 only.
    If it is taking more time when called from JCo , then you can be sure that the problem is not with SAP and is actually due to the JCo connectivity with R/3.
    Regards,
    Ravi

  • How can you determine which pages are using a specific symbol?

    I want to find all the pages that are using a specific symbol, but I don't know how.  I can't simply switch symbols because some have specific text & want to switch them with more generic smart buttons.  I'll have to find every instance to update the text.
    thanks!

    me too, my file has 39 pages with many unuse symbols, now I want to delete those unuse.
    I found that after deleteing those unuse in Page 1, actually they are being used in other page,
    I can't find the way to delete them all at one time for all pages.
    and I am using CS3

  • How can I determine programmat​ically which plot the cursor is snapped to?

    The waveform graph cursor legend shows name of plot currently snapped to (in snap to any plot mode), even as user moves cursor to different plot.  But there is no property to read this plot name!  Active Plot and Plot Name do not update as user drags cursor to different plots.  I'll try to cast the cursor reference to something useful while I wait for a response.

    You cannot move the cursor from one plot to another unless it's single-plot (free and multiplot are the only other choices, and if it's free it doesn't snap, right?) mode AND the plot property is a "-1".  Try it.  I'm using probes and an event case in a while loop (but without a stop button and wait "statement"/primitive ).  That's how I know it's "-1", until I implemented the solution I mentioned above.
    I reproduced your test code (complete with stop button and wait) and got the same results you did, as expected.  The problem with test code is it rarely does anything useful.  Try reproducing my case by putting a case structure in your test code wired to a "free" boolean; in the false case put a "1" wired out to a Cursor.CursorMode property and a "0" wired out to a Cursor.Plot property; in the true case put a "0" wired out to the Cursor.CursorMode prop and a "-1" wired out to the Cursor.Plot prop.  With "free" = False you won't be able to snap to any other plot; with "free" = True Cursor.Plot will, of course be a "-1", no matter where it is, since it is "free".  Bear in mind that I need to give the user the ability to select a plot, click a button, then change that plot's data by clicking and dragging the cursor (the data at the cursor's x coord changes to the the value of the cursor's y coord); when the user clicks the button to change back to the "don't change data, just select a plot" mode, the cursor needs to snap to its current location, which is the last changed data point of the plot that he just changed the data of.  If you can come up with an alternative solution to mine, I'd love to hear/see it!
    But my real point, since I found a viable solution to the immediate problem, is that there is cursor information presented to the user in the cursor list box that I can't get at programmatically!  And this is info I could have used to solve my original problem!  I don't understand why NI wouldn't have made a property for it like they have for other, much less useful, bits of info.

  • How can you determine if a character in a string is numeric or alphabetic?

    Hello all,
    I've been trying this one for awhile now, and can't find any way to do it.
    I am reading a character string out of a text file. The string is a number. I need to convert that number to it's decimal equivalent -- this is not a problem, I can do this easily.
    The problem comes in when I'm reading the string from the text file. I want to be able to be sure that they didn't have a typo and insert an alphabetic character into the number. For example, typing 50o instead of 500. If I convert this example, I will read 50. I want it to flag an error instead, but I cannot figure out how to read the string and determine if there are alphabetic and numeric characters in the string I'm
    reading.
    Any help would be greatly appreciated.
    Dave Neumann
    [email protected]

    You can also use the "Scan from String" function. If the "remaining string" output is not a null string, or the error output is reporting an error, something went wrong with the conversion.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How can I determine at runtime the type and specs of the DAQ card a computer has installed?

    I am creating a voltmeter with a record button for use in systems without LabView installed (stand alone exe's are used). My program allows users to select the scan rate on channels they have selected to view. I want to be able to determine the capabilities of the card (max sampling rate, # of channels avaliable, etc...) within LabView at runtime. Any help would be appriciated.
    Thanks...

    Is there a similar type of function for NI-DAQmx? I'm trying to figure out how to programmatically query a card's number of AI channels, AO channels, CTRS's etc, without having to build up my own hard-coded table.

  • How can I determine at runtime if a class implements a specified interface?

    subj.

    isAssignableFrom(Class cls)
    Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified Class parameter.

  • How Can You Tell if the URLRequest Variables Are Posted?

    Hi,
    This sounds really odd, because I happen to have three variables I am supposed to pass to an httpservice and have the results output to my Flex app.
    The problem is, I don't know how I can tell if a variable has been posted or not, because no matter what I do, it looks like my trace statement is accurate, but there is nothing shown on the screen.
    I tried changing it to GET, and then I get this IO Event Handler error, because my variables are so long.
    var loader:URLLoader = new URLLoader();
            var url:String = "http://localhost/generic.php";
            var variables:URLVariables = new URLVariables();
                variables.from= from_string;
                variables.state_colors = state_colors_string;
                variables.change = change_string;                       
            var encode:String= encodeURI(url);
            var pattern:RegExp = /#/g;
            var decode:String = encode.replace(pattern,"%23");
            var request:URLRequest = new URLRequest(decode);           
            request.method = URLRequestMethod.POST;          
    I am wondering if my variables have been passed correctly. Is there some other way other than using trace statements?
    Thanks for your help.

    Hi,
    Thanks for the tip, and I have just done that with my php code end. It turns out that the file was generated, and the file is blank after the code has finalized execution.
      So, I guess that my POST variables is definitely not posted.
    By the way, I have added a couple of lines for security and IO checks, like you suggested, and here is the almost complete code:
    public function changeMap():void{                        
            var url:String = "http://localhost/generic.php";
            var variables:URLVariables = new URLVariables();
                variables.from= from_string;
                variables.state_colors = state_colors_string;
                variables.change = change_string;
            var encode:String= encodeURI(url);
            var pattern:RegExp = /#/g;
            var decode:String = encode.replace(pattern,"%23");
            var request:URLRequest = new URLRequest(decode);           
            request.method = URLRequestMethod.POST;       
            var loader:URLLoader = new URLLoader();
            loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
            loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
            loader.addEventListener(Event.COMPLETE, onLoadComplete);   
            loader.load(request);                    
             private function onSecurityError(event:SecurityErrorEvent):void {
                trace("securityErrorHandler: " + event);
             private function onIOError(event:IOErrorEvent):void {
                trace("ioErrorHandler: " + event);
            public function onLoadComplete(event:Event):void {             //event output                             
    From the console, the error events returned nothing from the addEventListeners.
    When I used GET before, they worked with two passing variables, but since my variables are now more than 512 characters, I cannot put this on the url, which is why I am insisting on using POST here.
    Have I done anything else wrong here?
    Thanks for your help.

  • How can you create a new category list and attach it to a new incident template

    We intend to create helpdesks for various teams e.g. Facilities, IT, HR etc and allow staff to email separate email addresses via the exchange connector.  So incidents get assigned to separate queues categorised via the support group set in the
    assigned template used by the connector.  I want separate category lists for each template so IT staff don't see Facilities categories etc. This all works apart from having separate Incident classification lists attached to the appropriate template. 
    Thanks
    David

    So I suppose I have to do something similar to the blog post below.  I assume that if I create a new 'facilities incident' class I can create a distinct category list and attach that to a template without showing the default category list?
    Thanks
    David
    http://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-6241-00-00-03-47-72-46/SCSM-Creating-a-user-classification-field-using-the-Authoring-Tool.docx

  • How can I determine what internal DVD drives are compatible w/ my G5?

    I'd like to put a new DVD drive in my G5. It's one of the original 1.8 dual machines, with some extra RAM. I'm having trouble with the drive these days, and I'd like to figure out what drives are compatible. Thoughts?

    I cannot speak for all drives but today I installed a Pioneer 710 ( same drive as 111 ) in place of the original Pioneer 106.
    I have only tested it with Toast to burn a DVD-R and playing a CD and all is well.

  • How can you tell if a process step is already being processed?

    Further to my last note regarding assigned a process step to multiple users, how can you determine if the step is currently being processed by another user?  When opening a task which has already been opened by another user, the message "The following action has been opened by another 1 user(s)...."
    I would like to prevent the second user from making any changes to the object if it's already been opened by another user, hence this request.
    Thx!

    Top Right hand corner of the Safari window you will see a padlock. This shows it's secure.
    Otherwise, you are pretty much working on trust. If you want to purchase something online and the site takes you through a paypal based checkout, it's fairly standard practice.

  • How do you determine remaining capacity on ipod shuffle

    How can you determine remaining capacity on ipod shuffle?

    I tried this and did not see anything in iTunes. I'm not the smartest guy on the block when it deals with computers. Hey i'm 73 years young!! Thanks for your help anyway.

Maybe you are looking for