Instantiate choice subsets on run-time

Hello everyone.
I have an XSD like the following:
<xs:sequence maxOccurs="unbounded">
  <xs:choice>
    <xs:element name="Item1" type="xs:string" />
    <xs:element name="Item2" type="xs:string"/>
  </xs:choice>
</xs:sequence>
and I want to use a choice subset to represent this. For now I have something like the following:
MyForm (Subform)
  ItemsSubForm (Subform, repeated for many items)
    ItemChoice (ChoiceSubset)
      Item1Wrapper (Subform)
        Item1 (TextField)
      Item2Wrapper (Subform)
        Item2 (TextField)
  AddItemsButtonsSubForm
    AddItem1Button (Button)
    AddItem2Button (Button)
Everything is working fine, but I also want to give the opportunity to the user to manually create his own items. So, by pressing AddItem1Button, I want to create a new Item1Wrapper, and similarly with Item2Wrapper and AddItem2Button.
Now I have the following javascript line for AddItem1Button:
this.parent.parent._ItemsSubForm.addInstance();
which creates a new ItemsSubForm, but how can I create a new Item1Wrapper? In other words, how can I instantiate a child of a choice subset in run-time?
Thank you.

I would think you could use run-time styles for this. XML and
css could provide configuration information, which could be loaded
at run-time.

Similar Messages

  • How to instantiate classes at run time with constructors having arguments?

    I have to instantiate some classes in the run-time because they are plugins. The name of the plugin (pluginClassName) comes from a configuration file.
    Currently I am doing this to achieve it:-
    UIPlugin plugin = (UIPlugin)Class.forName(pluginClassName).newInstance();However, there is a disadvantage. I can not pass arguments to the constructor of the plugin.
    public class RainyTheme extends UIPlugin {
      public RainyTheme() {
       // bla bla
      public RainyTheme(int x, int y , int width, int height) {
       // set co-ordinates
       // bla bla
      // bla bla bla bla
    }Now if I want to instantiate this plugin at runtime and at the same time I want to pass the 4 arguments as shown in the second constructor, how can I achieve this?

    I have no experience with JME and the limitations of its API, but looking at the API docs ( http://java.sun.com/javame/reference/apis.jsp ) it seems that there are two main versions, CLDC and CDC, of which CLDC is more limited in its API.
    The Class class does not contain the methods getConstructor(Object[]) or getConstructors() in this version ( http://java.sun.com/javame/reference/apis/jsr139/java/lang/Class.html ), so it seems that if you are using CLDC then there is no way to reflectively call a constructor with parameters. You'd have to find another way to do what you want, such as use the noarg constructor then initialise the instance after construction.

  • Run-time app initialization?

    We have a fairly complex Flash application which I want to
    migrate to Flex. Its a real-time trading system consisting of a
    couple of hundred classes. It is Flex-like in many ways... there is
    nothing on the stage apart from the Main() class, the library is
    nothing but components, almost all graphics skins are
    programatically generated, we have always used an event dispatching
    architecture, MVC and a layered approach to comms classes, which
    means the design will translate well to Flex. One of the nice
    things about it is the entire screen layout is defined through XML,
    much like MXML.. Our screen building class goes through the XML and
    instantiates all the classes it finds using the settings we define
    through the XML. This means we can generate various versions of the
    application, including localised, simply by getting the web team to
    edit XML files. At runtime we pass a parameter to the app allowing
    it to select the correct XML files and paint itself accordingly.
    So to Flex... as I understand it, if we wanted to be able to
    get initialization values at run time, we'd have to use the Flex
    server, which generates the swf from the MXML and AS files on the
    fly? (There may be resistance in the company to introducing another
    technology on our servers, we have many servers in several
    datacentres.) As far as I can see, the other choice is every time a
    minor change is made in the XML, in terms of colours, sizes,
    positions, etc, the app would have to be recompiled in Flex?
    We would have to have a very simple MXML file which just
    kicked off our screenbuilding class which would then read the XML
    and instantiate classes, exactly how our current Flash app works.
    Or is there a better way? It would feel a bit like re-inventing the
    wheel. It would be great to know how others have approached this
    issue.

    I would think you could use run-time styles for this. XML and
    css could provide configuration information, which could be loaded
    at run-time.

  • How to choose RT System at Run Time

    Variations of this question have been asked, but I'm not sure if they've been answered.
    We use LabVIEW RT to do a variety of behavior tests.  We have multiple experimenters using the same hardware, and each has his/her own set of "What I want to do" requirements.
    Originally, we used LabVIEW 7.0 (i.e. Before Project) to develop a Host and Remote (PXI) application.  The Host application was built as an .EXE, while the Remote was saved as an .LLB, copied to the PXI, and "invoked" at Run Time by calls to VI Server.  Note that this means that the code on the Remote might (is?) not be as compact, efficient, or optimized as if we had built an .EXE.  But we definitely can have Bob's Experiment, Jane's Experiment, and Joe's Experiment on the PC (as separate executables), and each could respectively call Bob's RT, Jane's RT, or Joe's RT on the PXI at run time.  No need to have LabVIEW (or LabVIEW expertise) on this system, and Bob, Jane, and Joe can be "ordinary users".
    "Modern LabVIEW" takes a slightly different (and probably better) view towards Real-Time -- both the Host and Remote programs are built as Executables (the RT is built as an .RTEXE).  We can "pre-deploy" the RT code to the PXI, and set it to run at Startup.  This makes getting the RT side "running" semi-automatic -- all you need to do (if it isn't running) is reboot the PXI.
    But what if you want Bob, Jane, and Joe's version, selectable by running (on the Host) Bob, Jane, or Joe's Host application?
    I'm playing with the following algorithm, which seems to work.  I'm presenting it here to get feedback, especially if there is a "better way" to do this.
    The key to this method is that there is an .INI file on the Remote, C:\ni-rt.ini, that contains, among other things, the RT Target's Startup Application path (by default, this is C:\ni-rt\startup\startup.rtexe).
    Consider three Projects, Project Bob, Project Jane, and Project Joe.  Within each Project, a Host executable is built having a name like "UI Bob" (or "Jane" or "Joe"), while the Target executable is given the name "RT Bob" (or "Jane" or "Joe").  The three .RTEXE files are copied to the Target and placed in the Startup folder, C:\ni-rt\startup.
    Now run one of the Host executables.  It does the following:
    FTP a copy of C:\ni-rt.ini from the Target to itself.
    Get the name of the Startup .RTEXE.
    If it is the "appropriate" name (i.e. if the Host program is UI Bob.exe, the Remote should be RT Bob.rtexe), do nothing, as the Target is already running the right code.
    Otherwise, we need to force the Target to run the correct Target code.  We can do this by changing the Startup entry in the .INI file to the Remote code we need (for example, RT Bob.rtexe), then tell the Remote to Reboot.  When it comes back, it will be running the appropriate RT code.
    The Host now goes ahead and tries to connect to the Remote.  If a connection cannot be established (for example, the Remote code might have stopped), a Reboot of the Remote might fix things up.
    Short of trying to write a single enormous program that encompasses every experimental scenario and situation (i.e. have a big Case Statement with a Bob, Jane, or Joe "choice", and a single executable that had everyone's code in it), this seemed to be a fairly simple way to have the robustness of compiled executables on both the Host and Remote machines, yet maintain the flexibility to let the (non-LabVIEW-guru) User choose which executable to run.
    I haven't fully deployed this system -- I'm currently at "Proof-of-Concept" stage, but I've got the various "pieces" working.  Does this seem like a sensible appropach?  Are there other, simpler, ways to accomplish this?
    Bob Schor

    Hey Bob.
    So I assume you're -completely- working with built executables?  You're not going to work in the editor environment to modify your projects at all?
    If this is the case, then having a generic deployment phase at the beginning of the executable (with a "setting up hardware for your app" splash screen) isn't a bad idea -
    Check the binary on the target, ensure it matches the binary you have on the host machine (in case you ever decide to update).
    If they don't match, FTP the new file down to replace the old one.
    FTP the ni-rt.ini file, ensure the startup exe is enabled and is pointing to the correct location.  
    If it's not enabled or not pointing to the correct startup file, modify the .INI file and FTP back to the target.
    If you had to update the INI file, ask target to reboot itself.  Wait 30 seconds, and wait for target to become available again.
    Connect to the target. If you cannot connect, reboot target.  If the target comes back and you still cannot connect to the app, notify user.
    That's almost exactly how we handle installation and deployment via MAX.  
    The big assumption here is that the built executables were all built with the same version of LabVIEW Real-Time.  If not, you'd need a system replication step in there to make sure the proper version of LabVIEW is on the target before launching the built .rtexe.  
    -Danny

  • Loading an "MXML Component" at run-time creates a null object.

    Hello!
    I have a simple Flex 3 project with an MXML application file (the parent) and an MXML component file (the child).
    At run-time I create childs of this component, and I add it to the stage using a simple "this.addChild()" call.
    Now, besides that, in the creation loop, after every
      newChild = new mcComp();
    I want to setup a few more custom parameters which belongs to this class. For example, now I want to set a label's text, this label is at the child.
    The issue is that the label isn't created until I exit the creation function, and actually, until my code returns control to the Flash Player.
    See my problem here?
    With custom classes which resides at .AS files, when I instantiate them with the "new" operator, they run their constructure's code and eveything is fine.
    But, when I do the same with those MXML components (which by the way are based over the Canvas class), their constructure do not execute and actually no other child of them is created.
    Can anyone please advise? I must be missing some keyword here.. hopefully.

    Hi Natasha thanks,
    The issue is that the creationComplete event doesn't dispatch even when I addChild() the object.
    var child:mcChild = null;
    for(var i:int; i < 3; i++)
         child = new mcChild();
         // setting some properties, labels' text etc'
         this.addChild(child);
    Try this and you'll see - the event doesn't dispatch until you got out of the code flow.
    Anyway after looking at Flex's documentation I solved it differently;
    After the addChild() call the child receives an "initialize" event. After that I could modify my label.
    Thank you though!

  • How do I fix this run time error crash on start up?

    Whe I start Elements 10, it stops and waits at the "Organize" or "Edit" choice. (normal operation.) I chose edit and it crashes with a C++ run time error.

    See if this Adobe troubleshooting document helps:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-c-runtime-errors-products.html
    Ken

  • Run-time mapping exception in JDBC Scenario

    Hello There,
                We are working on a "Communication between IDOC and JDBC" Scenario where in the IDOC is successfully getting called in SAP XI from an SAP R/3 system. But!, when we try to map the IDOC structure with a JDBC Database structure through a manually created XSD, it gives the following run-time mapping exception :
    "During the application mapping com/sap/xi/tf/_RequestMapping_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformation"
    The following is the XSD that we have created manually for the Target JDBC database table structure which shows the parent-child relationship of the database and is causing the above stated exception :  
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by sekhar (MSS) -->
    <!W3C Schema generated by XMLSPY v2004 rel. 4 U (http://www.xmlspy.com)>
    <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="ACCOUNT_GROUP" type="xs:byte"/>
         <xs:element name="AUTHORIZATION_GROUP" type="xs:byte"/>
         <xs:element name="CITY" type="xs:string"/>
         <xs:element name="CITY_CODE" type="xs:short"/>
         <xs:element name="COMPANY_CODE" type="xs:short"/>
         <xs:element name="COUNTRY_CODE" type="xs:byte"/>
         <xs:element name="COUNTRY_KEY" type="xs:byte"/>
         <xs:element name="CREATED_DATE" type="xs:short"/>
         <xs:element name="CUSTOMER_CLASSIFICATION" type="xs:boolean"/>
         <xs:element name="CUSTOMER_NUMBER" type="xs:short"/>
         <xs:element name="DISTRICT" type="xs:string"/>
         <xs:element name="FAX_NUMBER" type="xs:int"/>
         <xs:element name="FIRST_NAME" type="xs:string"/>
         <xs:element name="GROUP_KEY" type="xs:byte"/>
         <xs:element name="HOUSE_NUMBER" type="xs:date"/>
         <xs:element name="INDUSTRY_KEY" type="xs:byte"/>
         <xs:element name="INTIAL_CONTACT" type="xs:byte"/>
         <xs:element name="LAST_NAME" type="xs:string"/>
         <xs:element name="LOCATION_NUMBER" type="xs:string"/>
         <xs:element name="NAME_PERSON" type="xs:string"/>
         <xs:element name="POSTAL_CODE" type="xs:int"/>
         <xs:element name="REGION" type="xs:string"/>
         <xs:element name="REGIONAL_MARKET" type="xs:byte"/>
         <xs:element name="TELEPHONE_NUMBER" type="xs:long"/>
         <xs:element name="VENDOR_ACCOUNT" type="xs:byte"/>
         <xs:element name="resultset">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="row"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="row">
              <xs:complexType>
                   <xs:choice maxOccurs="unbounded">
                        <xs:element ref="CUSTOMER_NUMBER"/>
                        <xs:element ref="COUNTRY_KEY"/>
                        <xs:element ref="FIRST_NAME"/>
                        <xs:element ref="LAST_NAME"/>
                        <xs:element ref="LOCATION_NUMBER"/>
                        <xs:element ref="AUTHORIZATION_GROUP"/>
                        <xs:element ref="INDUSTRY_KEY"/>
                        <xs:element ref="GROUP_KEY"/>
                        <xs:element ref="ACCOUNT_GROUP"/>
                        <xs:element ref="CUSTOMER_CLASSIFICATION"/>
                        <xs:element ref="VENDOR_ACCOUNT"/>
                        <xs:element ref="REGIONAL_MARKET"/>
                        <xs:element ref="INTIAL_CONTACT"/>
                        <xs:element ref="COMPANY_CODE"/>
                        <xs:element ref="CREATED_DATE"/>
                        <xs:element ref="NAME_PERSON"/>
                        <xs:element ref="CITY"/>
                        <xs:element ref="CITY_CODE"/>
                        <xs:element ref="COUNTRY_CODE"/>
                        <xs:element ref="DISTRICT"/>
                        <xs:element ref="FAX_NUMBER"/>
                        <xs:element ref="HOUSE_NUMBER"/>
                        <xs:element ref="POSTAL_CODE"/>
                        <xs:element ref="REGION"/>
                        <xs:element ref="TELEPHONE_NUMBER"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    IS THERE ANY OTHER WAY OF ACHIEVING THE ABOVE TASK OF AUTOMATICALLY GENERATING THE REQUIRED DESTINATION STRUCTURE ON THE JDBC TARGET SYSTEM SIDE ?. PLEASE ADVICE ASAP.
    REGARDS ......
    K. Venkat!.

    Try setting the classpath properly. It seems the runtime evironment is unable to find the compiled class files. Nothing else is wrong.
    --Anil                                                                                                                                                                                                                                                                                           

  • Run time binding of textfields and the like

    Hi,
    I am working on a dynamic form,which will instantiate questions based on some instructions specified in XML when the form loads up, much like John Brinkman's example
    http://blogs.adobe.com/formfeed/2009/03/a_form_to_design_a_form.html
    At design time, it is not know which node in the data dom the field should be bound to, so I would like to be able to simulate a match="dataRef" ref="$.myNode" statement at run-time.
    However, my recollection is that the binding reference can't be changed at run time. Does anyone know if it can be done, and how to do it?
    John

    Hi Jason,
    Good to hear from you. In our case : "Validate Product data from SAP Enterprise Buyer " has been selected , but Cross -catalog Search is not selected. Though in our case we are dealing with Description Based Item (text item not product item)
    We are communicating to catalog company  about the validity method to support run time validation of price and items from catalog during creation of SC from template.
    So correct my understanding if catalog support validity
    1. Existing item new price in catalog:it will bring new price from catalog while creation of SC from template
    2. Item has blcked for new purchase in catalog: it will shows error in SC like "incomplete items in catalog   or   item doesnt valid"
    3.My default region is X but template for SC region is Y: While creation of SC from template with region Y it will show error that your default region is X  or    create SC w.r.t region Y with validation of Y region based catalogs item and price.
    Regards
    Dayal

  • Setting bind references at run-time

    Hi,
    I am working on a dynamic form,which will instantiate questions based on some instructions specified in XML when the form loads up, much like John Brinkman's example
    http://blogs.adobe.com/formfeed/2009/03/a_form_to_design_a_form.html
    At design time, it is not know which node in the data dom the field should be bound to, so I would like to be able to simulate a match="dataRef" ref="$.myNode" statement at run-time.
    However, my recollection is that the binding reference can't be changed at run time. Does anyone know if it can be done, and how to do it?
    John

    Hi,
    Thanks for the quick response. Your suggestion works almost
    perfectly. I can now change the flv to any flv I want, and it plays
    the video I want. However, even though I am specifying
    autoPlay=false, it still plays automatically when the page loads.
    Here is my actionscript:
    flvPlayback.playPauseButton = myplayPause;
    flvPlayback.seekBar = mySeek;
    flvPlayback.muteButton = myMute;
    flvPlayback.contentPath = newPath;
    flvPlayback.autoPlay = autoStart;
    and here is my html:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="326" height="266" id="xxx" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="pokflvplayer.swf">
    <param name="FlashVars"
    value="autoStart=false&newPath=holiday_message_2007.flv" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <embed src="pokflvplayer.swf"
    FlashVars="newPath=holiday_message_2007.flv&autoStart=false"
    quality="high" bgcolor="#666666" width="326" height="266"
    name="medical_imaging" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>
    Any idea why it will not recognize the autoStart paramenter?
    By the way, I had to change your myFLV.autoStart - autoS to
    flvPlayback.autoPlay=autoStart. The actual name of the parmameter
    is autoPlay, not autoStart. My guess is that was just a typo on
    your part. Thanks again for your help.
    Bob

  • Modifying a Application Substitution String in Run-time

    Hello all,
    I have a substitution string defined in an application (under application definition) that needs to be different based on whether the application is on a development server or a test server. Is there a way that I can alter the value of that subsitution string on my test run-time instance after I've brought the application in from development? Perhaps an API call? APEX_INSTANCE_ADMIN doesn't appear to have anything for this.
    Or do I have to either do a test in code and set an application item when the application starts up, or pull it from a database table or constant?
    Thanks!
    John

    Shane,
    SubVersion works with files, so everything you do has to be a file, including all of your PL/SQL procs / functions / packages. If you have "cowboy coders" editing packages in the database with SQL Developer or TOAD, that's the first thing that needs to change. I regularly export my APEX apps and check them in. I also make a DDL-only backup of any schemas I'm working on at major mile-stones or before upgrades.
    There's a server and client component. The sever houses the repository and everyone checks projects out from and commits projects to the server. On the client-side, the TortoiseSVN client is by far the most popular Windows client. It perfectly integrates with Windows so you can right-click a file and lock, update, commit it.
    To work on a project, you:
    - check it out from the repository. you typically only do this once as you keep a working copy on your client pc.
    - get a lock on a file you want to edit. This is optional, but it's my preferred method. Now you are the only one that can commit the file back to the repository.
    - make your changes to the file, once you are happy, simply right-click and select commit. you can then enter comments on the file.
    - now, anyone else who wants to edit that file will see your changes when they request a lock or issue the "update" command.
    You can review every version of the file, diff versions, "Tag" a version of your code, and the list goes on.
    After a few hours you'll be comfortable with the client process. I think the server component of it deters most people as you have a number of choices to make and it can be slightly complicated to install. For this reason, I STRONGLY recommend trying one of the hosting providers as then all you have to worry about is the client-side. Additionally, your code is now backed-up off-site.
    I don't have any personal experience with these services, but here are a few reasonably priced ones. The first one has a free option which is where I would start with a test project just to get a feel for it.:
    - https://www.projectlocker.com
    - http://svnrepository.com/
    For what it's worth, the APEX team uses SubVersion, as do many dev teams inside Oracle (not the DB dev team though). Also, the new https://samplecode.oracle.com uses Subversion as part of an offering from CollabNet. My 1st project hosted there is called logger . You can brows the logger subversion repository here: https://logger.samplecode.oracle.com/source/browse/logger/
    Links:
    - [TortoiseSVN Client|http://tortoisesvn.tigris.org/]
    - [SubVersion Server|http://subversion.tigris.org/]
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]
    Edited by: Tyler on Nov 17, 2009 2:57 PM

  • Run compiled application (LV 8.6) without run-time engine

    Hi,
    I just recently wrote a small 200KB program that performs simple calculations that I'd like to use on several different computers.  The application works perfectly, but the problem is that I really don't want to go through the download/install/reboot process of installing the LabVIEW Run-time 8.6 software on every single computer (especially since downloading a 100MB file to run a 200KB program seems counter-intuitive).   Is there a way to get the application to run without the engine?  Previous searches resulted in old posts of people simply copying the engine files from the shared folder into the application directory, but that did not work when I tried it.  Is this no longer possible on LV 8.6?   I'll have no choice but to rewrite the application in a different programming language if LabVIEW isn't capable of running standalone compiled applications.
    Thanks,
    Anthony 

    I made the test with LV 8.6 on Windows.
    I used a VI which does not need any drivers neither serial nor any other hardware execpt the graphics card.
    I made an application from this VI on my normal development machine and checked that it will start and work as expected.
    I setup a NI free partition with Win XP Prof. SP2. I have some non NI programs installed like a virus scanner, defragmentation tool, Adobe Reader, a drive imageing tool and WLAN drivers. The .NET Framework 2.0 is installed.
    I copied the application and all files under National Instruments\shared\LabVIEW Run-Time\8.6 to the machine in a temporary folder.
    I booted the machine into this partition. The application will start and work as expected. You do not need to make a complete runtime installation until you do not need any drivers.
    The above mentioned folder has a size of about 64 MByte. Dependent on the application and desired languages you can remove parts of it.
    Dennis,
    during the various LV 8.x versions it was possible to do it as described above exepct one version, 8.2 I think, which needed an ini-File in the Windows folder.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Can i change the running time of an itunes song?

    I have made a slideshow that incorporates several vacations running in a continuous loop.  I used different songs from itunes for each individual vacation, i.e., Mexico, Bermuda, etc..  The timing of the slideshow segments(vacations) do not match the running time of the songs. (close but not quite)  The songs are all in the order needed, on the same itunes playlist.  I need to change either the running time of the music or maybe as a last choice, delete or add more photos. Can the running time for a song be condensed or expanded ?

    John,
    The use of the "Stop" time in iTunes gives you an abrupt end, not a fade-out.  If you play back with "Cross-Fade" turned on, you will not notice it.  Cross-Fade can be turned on in Edit > Preferences > Playback.
    Note that Cross-Fade causes overlap, so will affect the timings.
    If you actually want to edit the file to have a fade-out, you will need 3rd party software such as MP3 Trim, or Audacity, and then put the editied file into iTunes.

  • Time running time of applications in windows??

    How do I time the running time of applications in windows?? 
    in linux its quite easy : time ./a.out
    but how in windows??

    jinn wrote:
    How do I time the running time of applications in windows?? 
    in linux its quite easy : time ./a.out
    but how in windows??
    You can use TimeIt.exe from MS's Windows Server 2003 Resource Kit Tools:
    http://www.microsoft.com/downloads/deta … layLang=en
    The whole kit has to be downloaded (~ 12 MB), but you can extract the rktools.exe file and then extract the rktools.msi file contained therein to get at the individual tools without having to install everything if you desire.
    From the extracted readme file:
    Timeit.exe
    TimeIt is a command-line tool that records the time a specified command takes to run.
    File Required
        * Timeit.exe
    TimeIt Syntax
    timeit [-f FileName] [-a] [-c] [-i] [-d] [-s] [-t] [-k KeyName | -r KeyName] [-m Mask] [Command]
    -f FileName
        Specifies the name of the database file where TimeIt keeps a history of previous timings. The default file name is .\Timeit.dat
    -k KeyName
        Specifies the keyname to use for this timing run.
    -r KeyName
        Specifies the key name to remove from the database. If the key name is followed by a comma and a number, the slowest time (positive number) or the fastest time (negative number) for that key name will be removed.
    -a
        Specifies that TimeIt should display average of all timings for the specified key name.
    -i
        Ignores nonzero return codes from the program run by TimeIt.
    -d
        Shows detail for average.
    -s
        Suppresses systemwide counters.
    -t
        Specifies tabular output.
    -c
        Forces a re-sort of the database.
    -m Mask
        Specifies the processor affinity mask.
    Command
        Specifies the command to time.
    Note
    TimeIt accepts only parameters preceded with a dash (-).
    Though I believe TimeIt is a good choice based on your post, alternatively you could install Cygwin or use the various timer modules / classes / functions available in a variety of different programming languages depending on which one(s) you may use.

  • Difference between Design Time & Run Time in JavaBean.

    Please tell me that what is the difference between the dsign time and run time in Java Beans.

    This is most important when it comes to reflection.
    In design time, when not using reflection, you can
    include and instantiate classes by importing them and
    then calling a constructor:
    import java.util.*;
    List list = new LinkedList() ;... but when using reflection:
    List list = (List)
    Class.forName("java.util.LinkedList").newInstance()
    ;this will compile ("design time") no matter whether
    this assignment is valid or not.
    A completely wrong statement that will compile
    (design time) but not run (run time):
    Object o =
    Class.forName("ACompletelyInvalidClassName").newInstan
    ce() ;I love reflection. Its magic.Design time != compile time/

  • Creating dashboard prompts at run time.

    We have a requirement of creating dashboard prompts at runtime. Our scenario is as follows:
    We would like to create trend charts with multiple trend lines. We are planning to use the Line Graph view to achieve this. However, the number of trend lines and the columns of a table to be used as trend lines will be input at run time. As an example, users will be prompted to enter the number of trend lines they wish to plot in the chart. Depending on the input, we need to dynamically create those number of prompts. The prompts will be a choice list of columns that can be used as trend lines. For the following table structure:
    table: table1
    column1: quantity
    column2: quantity_accepted
    column3: quantity_rejected
    the dashboard prompt 'Select number of Trend Lines' will ask users for a number. Let's say the user enters 2. We need to dynamically create 2 prompts based on column1, column2 and column3.
    Is there a way of implementing this requirement?

    I think you need to look at the JAXB capabilities
    Try using JAXB & JSTL to dynamically build your faces-config.xml
    For Runtime Java bean Classes
    IF you have an XML schema/DTD you can use JAXB to generate Java Bean Source code
    Obviously you are going to have to build into your application the ability to invoke the JAXB & Java Compilers

Maybe you are looking for

  • Help with c:forEach Tag (it is driving me insane)

    I keep getting this error (Don't know how to iterate over supplied "items" in <forEach>) whenever i run my jsp page. JSP Code: <c:set var="page_action" value="${sessionScope.httpData.find_Fix}" />                     <c:set var="LoadedUpdates" value=

  • How can I deactivate an Ipod touch without using it? (Broken screen)

    I was given the new Ipod Touch 4th gen for Christmas and my 2yr old daughter threw it in the dogs water dish. It was completely covered with water, and the screen would no longer light up but I could see it was still working.. So I left it out to dry

  • Explaining the explain plan

    Hi all, 10.2.0.1 I have this explain plan: PLAN_TABLE_OUTPUT Plan hash value: 1154125190 | Id  | Operation                      | Name       | Rows  | Bytes | Cost (%CPU)| Time     | |   0 | SELECT STATEMENT               |            |     7 |   959

  • Basic Configuration of SUS

    Dear Experts, We are in the process of setting up system for SUS with SRM 5.0. Need the following clariffications 1 We are in the process of using Classic scenario in SRM 5.0. Please suggest which method of SUS is preferred (MM-SUS or SRM-SUS) for cl

  • My samsung printer ml 1665 doesn't work with mountain lion

    since i've updated, my smansun printer doesn't work anymore, i've tried reinstalled drivers, etc.