Create a*.bld file dynamicall​y

Hi,
I'm programing a LabView Application with a lot of Dynamic vi's. The dynamic vi's changing every few days, or new dynamic vi's will be added every few days. So if i want to make an executable i have to change very often the build script.
Additionaly to that i want to use other vi settings in the exe and in the vi.
So it would be very useful to know's the file format of the *.bld file (Script file of the Application builder).
Or to have vi's which are able to generate the *.bld file.
I want to generate the *.bld file dynamicaly depending on vi's name, directory or library.
Does someone know how to realize that?
Thanks for every help
Robert Hecker

Robert,
I would suggest using what is called a "loader" program.
I came up with this solution a long time ago to get over all the many bugs, quirks, and missing features (such as placing items in folders) of the application builder. I also did it because of this very problem. The drawback of a loader is that your application is made up of only one executable (the loader) and all of your VIs as they are. However; the limitations of the app builder make the disadvantages far overshadowed by the advantages.
First, the loader:
A loader is a very simple program which uses VI Server to call your main program. You can even have a "Splash Screen" as your front panel to make it look very professional (the specs for splash screens are online somewhere.) You create this VI, verify it works, build it once, and never again have to deal with or worry about building your application. If you were so inclinded, you could even include a .ini file with it to configure this single program to use a bitmap and filename to make this a universal, build it once per version of LabVIEW and never again Universal Loader...
The target:
The bad news, like I said is that your target program remains in VI form, which means you have to be careful. My first suggestion, to ALL programmers, is that you always program in a target environment. This way, no matter what, you are always sure that your program is organized logically, and that at least your relative paths are correct. However; again, the advantages of this method are far reaching. The greatest advantage is that you never have to rebuild your application again, unless you change the name of your target main VI (which you shouldn't do anyway.) Also, you can add, delete, modify, destroy, create, purge, expunge, compile, redo, make up, revamp, or whatever you want to do to any VI(s) in your hierarchy and still not have to worry about rebuilding your application. I very successfully implemented this methodology in a military field test application with a great deal of success. Sure, we had a heck of a lot of files, but when all was said and done, when we backed up everything, our distribution copy, and development copy were one-in-the-same.
I know its a long answer, but I think you will agree that its a much better solution.
Of course, the alternative is not fun. You would have to be able to first read the contents of the .bld file. Then, you have to understand them. Its pretty much just text, but I can't understand it, much less begin to tell you how to. And don't expect NI to tell you anything, this is protected stuff, and I don't think you will see them publishing the information on how to break down the file, it would mean that just anyone could create a compiler...still, miracles happen. Once you have understood the file contents, you have to create a generator/modifier. Then, you have to read in your project to the generator/modifier, and have it maintain an updated copy of the .bld file at all times. not a fun prospect by any means.

Similar Messages

  • Generally when creating a Word file from either a Mac or Win7 pc and opening it on two different machines (either one first) it always prompts that the file is open and will be opened as read only. However opening a CSS file does not prompt that it is alr

    Generally when creating a Word file from either a Mac or Win7 pc and opening it on two different machines (either one first) it always prompts that the file is open and will be opened as read only.
    However opening a CSS file does not prompt that it is already open on or from any machine which is causing code edits to be lost.
    What we found from out testing:
    - The file can be saved from one user to the server and WILL NOT PROMPT on other machines until the saving machine has the Dreamweaver program closed completely
    - The file can be closed and  Dreamweaver minimised to the launch bar but it still will not register on other machines that it has been changed.
    - Also, until the  Dreamweaver program is closed on the machines, it will continue to open it's saved version of the file. 
    Example Scenario:
    - User 1 opens test.css (which is 2000 lines) and adds some code to the end of the file to bring it up to 2500 lines
    - Meanwhile User 2 opens test.css as well (opens as 2000 lines as User 1’s edits have not yet been saved) and adds in code to bring it to 2300 lines
    - User 1 saves his file and closes it - but  Dreamweaver is still open.
    - User 2 also saves his file and leaves  Dreamweaver  open.
    - The server will report the size and last edit of the file the same as User 2 as he was the last person to save it (and if you open from the Win7 Machine it will show as User 2’s 2300 line version)
    - If User 1 then open's the file again (from either the 'recent' in Dreamweaver OR clicking on the file directly in Finder...which version opens.... The version that User 1 saved! Not the true version on the server, but the version that User 1 edited and saved with 2500 lines in it.
    - Same for User 2, he will open 'his' version with 2300 lines in.
    Other information:
    - Files are opened directly from the server
    - Sometimes the users will save incrementally and re-open
    - Most of the time users will save incrementally and keep the files open
    - The users will never not save incrementally and just save when closing the file once finished
    - The users are usually working on the files all day
    - It is always the bottom lines of code that are lost. It could be a case of the two versions being mixed up and cutting off the newly added lines based on the line count (possibly).
    It is as if Dreamweaver is holding a cache of the version locally and then only properly looking back to the server when it has been completely closed. It is very difficult to see how the server is causing such an impact on these files, there are very few logs which are giving any indication to the root cause of the problems.
    Anyone know if this is a known issue?
    Is there a way that there can be a featured implemented on the server that doesn't allow another user to open a file if it is already open on another machine?
    Thanks

    Your server file handling has nothing, and really nothing to do with Adobe software. If files don't get locked for (over-)writing and/or lose connection to the program opening them, then your server is misconfigured. It's as plain and simple and that. Anything from "known file types"/ file associations not being set correctly, MIME types being botched, crooked user privileges and file permissions, missing Mac server extensions, delayed file writing on the server, generic network timeout issues and what have you. Either way, you have written a longwinded post with no real value since you haven't bothered to provide any proper technical info, most notably about the alleged server. Either way, the only way you can "fix" it is by straightening out your server and network configuration, not some magic switch in Adobe's software.
    Mylenium

  • Error, while creating a control file

    Hi All,
    DB Version :- SQL*Plus: Release 10.2.0.3.0
    I am in process of carrying out full db refresh from cold backup. I came across with following, while creating a contrl file. strange to see two dbf's has same file_id. Please help me to solve this issue.
    ==
    SQL> @a.sql
    CREATE CONTROLFILE SET DATABASE LNRATU2 RESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01167: two files are the same file/group number or the same file
    ORA-01110: data file 6: '/data/oracle/LNRATU2/data02/LNRATU2_audits.dbf'
    ORA-01110: data file 6: '/data/oracle/LNRATU2/data01/LNRATU2_audits_01.dbf'
    ===
    hare krishna

    Thanks.. Find below the a.sql contents.
    CREATE CONTROLFILE SET DATABASE LNRATU2 RESETLOGS NOARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 3
    MAXDATAFILES 300
    MAXINSTANCES 1
    MAXLOGHISTORY 58720
    LOGFILE
    GROUP 2 (
    '/data/oracle/LNRATU2/redo01/LNRATU2_redo02a.dbf',
    '/data/oracle/LNRATU2/redo02/LNRATU2_redo02b.dbf'
    ) SIZE 500M,
    GROUP 3 (
    '/data/oracle/LNRATU2/redo01/LNRATU2_redo03a.dbf',
    '/data/oracle/LNRATU2/redo02/LNRATU2_redo03b.dbf'
    ) SIZE 500M
    DATAFILE
    '/data/oracle/LNRATU2/data01/LNRATU2_audits_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_04.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_05.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_06.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_07.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_08.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_09.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_10.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_11.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_12.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_13.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_14.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_15.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_16.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_17.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_18.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_19.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_20.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_21.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_22.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_23.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_24.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_25.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_26.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_27.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_28.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_29.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_30.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_04.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_05.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_06.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_07.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_08.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_09.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_10.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_11.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_12.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_13.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_14.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_15.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_16.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_19.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_quest_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RATEOD_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_DATA01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_sysaux_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_system01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_tools_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_UNDOTBS101.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_users_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_audits.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_31.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_32.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_33.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_34.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_35.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_36.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_37.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_38.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_39.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_40.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_41.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_17.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_18.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_20.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_21.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_22.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_23.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_24.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_25.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_26.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_27.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_28.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_29.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_30.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_31.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_32.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_33.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_34.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_35.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_36.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_37.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_38.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_quest_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RATEOD_LOB01_02.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_03.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_04.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_05.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_04.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_05.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_06.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_07.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_statpack_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_sysaux_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_system01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_tools_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_UNDOTBS1_02.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_users_01.dbf'
    CHARACTER SET WE8ISO8859P1
    hare krishna

  • Creating an xml file from abap code

    Hello All,
    Please let me know which FM do I need to execute in order to create an XML file from my ABAP code ?
    Thanks in advance,
    Paul.

    This has been discussed before
    XML files from ABAP programs

  • Save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    When I open is adobe acrobat I get this message.
    "This is an Adobe® Illustrator® File that was
    saved without PDF Content.
    To Place or open this  le in other
    applications, it should be re-saved from
    Adobe Illustrator with the "Create PDF
    Compatible File" option turned on. This
    option is in the Illustrator Native Format
    Options dialog box, which appears when
    saving an Adobe Illustrator  le using the
    Save As command."

  • In Sender File Adapter hw to creat a temp file in srce fldr aftr msg proces

    Hi All,
    I have a scenario where I am having sender File Adapter(NFS), the steps are like this
    1. The input file needs to be processed and get archived with the same name in archive folder.
    2. After file get processed I have to generate the blank file with abc.done in source folder
    Kindly help me the configuration steps that needs to be carried out in creating the Sender File channel for creating abc.done file after message processing.
    Thanks in advance
    Harish

    That can be done easily with an OS command.
    When your PI runs on Windows server, you can use:
    cd\ >
    <path> \abc.done

  • I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of A

    I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of Adobe InDesign CC (10.1). You must use that version or later to open the file." AARRGGHH! So how do I access the file?

    Sounds like you opened and saved it in CC, so now you need to go back to CC and either complete the project there, or export to IDML to take it back into CS6.

  • Trying to create a certificate file using keytool -help!

    Hi, I've followed a series of instructions using Terminal to create a certificate. Terminal produced a file and when i open it using Text Edit its about 20 lines long worth of code. I was hoping it would provide a certificate I could use. Maybe it has, I just don't know what I'm looking for!
    Im working in Viewer Builder and I'm in the Provisioning tab trying to enter the "Application ID"
    I'm totally stuck here. Please help!

    I'm using DPS pro. My app is for Android but won't be going as far as Google Play or Amazon. It's for internal use so I want to create an APK file to distribute via email. These are the set of instructions I'm following. I'm struggling to get this to work. What should I see when this has worked? Also what do I need to enter for the Application ID?
    Thanks or your help
    (Mac OS) Create a certificate file using Keytool
    Open Terminal, which is located in the Applications > Utilities folder.
    Type (or paste) the following line (replace “myname.key.p12” with the actual name of your certificate):
    1
    keytool -genkey -v -keystore myname.key.p12 -alias alias_name -keyalg RSA -keysize 2048 -storetype pkcs12 -validity 10000
    Specifying “10000” sets the expiration date after 22 October 2033.
    Enter and reenter a password. Until the Viewer Builder supports the creation of custom Android apps, it's necessary to share this password with Adobe. Create a password that you can share.
    Follow the prompts to specify the certificate information.
    When prompted to confirm choices, enter yes, and then press Return to use the same password.
    A certificate is created in your prompt location, such as your user name folder. Copy this certificate file to a known location. Write down the password as well.

  • Can not see cFP-2220 after creating an exe file

    I am using a cFP-2220 with LabView 2011. I can see the cFP-2220 with Max, the program I created runs in my PC but the data from the cFP-2220 it is slow to up date.
    I access the cFP-2220 thru the network terminal and a net card in my PC.
    I have created an EXE file to run in the PC for that test stand as a stand along program. The program runs but it does not see the cFP-2220 or any of the data been collected. The test stand PC does have MAX install. When I run MAX in the stand PC it sees the cFP-2220 and can read the data from the modules the PC is wire to the cFP-2220 thru a net card.

    Sorry for the delay to respond... I do have installed the minimun files that are available  Field Piont 6.0.10 and LabView RT 11 is part of them.
    I also using share variables. The program VI runs fine in my PC but when I create the exe file and deploy on the test stand it asks fot the location of the FPLV,dll and the NI_TGT.dll and it can not read or write to any of the DAQmx vi's.
    I accidently remove one my FP-SG-140 from the list of inputs, I did put it back but I damage how the share variables weere working I am getting and error -1950679023 and it does not see any of my inputs.
    I have another question how do I down load the variables to the cFP-2220 that is another erros that shows up when I installed other files into the cFP.

  • How do you create an xsd file for an xml schema in BI Publisher?

    Helllo.
    I hope this is a really daft question for somebody..
    How I create an xsd file to be used as an xml schema to attach to a Data Definition that Ive created? I've obv. got the xml and rtf files ready and attached. I've looked through the relevant docs (XML Publisher Report Designer's Guide.pdf & XML Publisher Administration and Developer's Guide.pdf) but can't find where..
    Once this has been done then I can run the template via ORACLE Financials for the reports I've converted.
    many thanks..
    Steven

    I don't think you need to have an XSD it's an optional field. If you really want to create one use this site: http://www.hitsw.com/xml_utilites/
    I believe I answered your question, don't forget to give me the points.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Need help Take out the null values from the ResultSet and Create a XML file

    hi,
    I wrote something which connects to Database and gets the ResultSet. From that ResultSet I am creating
    a XML file. IN my program these are the main two classes Frame1 and ResultSetToXML. ResultSetToXML which
    takes ResultSet & Boolean value in its constructor. I am passing the ResultSet and Boolean value
    from Frame1 class. I am passing the boolean value to get the null values from the ResultSet and then add those
    null values to XML File. When i run the program it works alright and adds the null and not null values to
    the file. But when i pass the boolean value to take out the null values it would not take it out and adds
    the null and not null values.
    Please look at the code i am posing. I am showing step by step where its not adding the null values.
    Any help is always appreciated.
    Thanks in advance.
    ============================================================================
    Frame1 Class
    ============
    public class Frame1 extends JFrame{
    private JPanel contentPane;
    private XQuery xQuery1 = new XQuery();
    private XYLayout xYLayout1 = new XYLayout();
    public Document doc;
    private JButton jButton2 = new JButton();
    private Connection con;
    private Statement stmt;
    private ResultSetToXML rstx;
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    xQuery1.setSql("");
    xQuery1.setUrl("jdbc:odbc:SCANODBC");
    xQuery1.setUserName("SYSDBA");
    xQuery1.setPassword("masterkey");
    xQuery1.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
    contentPane.setLayout(xYLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    xQuery1.setSql("Select * from Pinfo where pid=2 or pid=4");
    jButton2.setText("Get XML from DB");
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(java.lang.ClassNotFoundException ex) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(ex.getMessage());
    try {
    con = DriverManager.getConnection("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
    stmt = con.createStatement();
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    contentPane.add(jButton2, new XYConstraints(126, 113, -1, -1));
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton2_actionPerformed(ActionEvent e) {
    try{
    OutputStream out;
    XMLOutputter outputter;
    Element root;
    org.jdom.Document doc;
    root = new Element("PINFO");
    String query = "SELECT * FROM PINFO WHERE PID=2 OR PID=4";
    ResultSet rs = stmt.executeQuery(query);
    /*===========This is where i am passing the ResultSet and boolean=======
    ===========value to either add the null or not null values in the file======*/
    rstx = new ResultSetToXML(rs,true);
    } //end of try
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    ======================================================================================
    ResultSetToXML class
    ====================
    public class ResultSetToXML {
    private OutputStream out;
    private Element root;
    private XMLOutputter outputter;
    private Document doc;
    // Constructor
    public ResultSetToXML(ResultSet rs, boolean checkifnull){
    try{
    String tagname="";
    String tagvalue="";
    root = new Element("pinfo");
    while (rs.next()){
    Element users = new Element("Record");
    for(int i=1;i<=rs.getMetaData().getColumnCount(); ++i){
    tagname= rs.getMetaData().getColumnName(i);
    tagvalue=rs.getString(i);
    System.out.println(tagname);
    System.out.println(tagvalue);
    /*============if the boolean value is false it adds the null and not
    null value to the file =====================*/
    /*============else it checks if the value is null or the length is
    less than 0 and does the else clause in the if(checkifnull)===*/
    if(checkifnull){ 
    if((tagvalue == null) || tagvalue.length() < 0 ){
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    root.addContent(users);
    out=new FileOutputStream("c:/XMLFile.xml");
    doc = new Document(root);
    outputter = new XMLOutputter();
    outputter.output(doc,out);
    catch(IOException ioe){
    System.out.println(ioe);
    catch(SQLException sqle){

    Can someone please help me with this problem
    Thanks.

  • How do I use copyprofile, image manager and create a wim file to Sysprep a reference Windows 8 computer.

    Im trying to deploy a reference machine (configured) to other machines (exact or close image) with different hardware.
    I have successfully used sysprep in out of the box, generalise, shutdown mode although i havent tried to deploy this to another device.  Unfortunately it doesnt copy the profile to default.
    I understand that I have to create an answer file using image manager based on that image, save it to a usb drive and attach this in the sysprep command line when sysprepping it.
    My problem is I dont know how to easily capture an image of windows 8 into a wim file so that i can add this into image manager to create a answer file.  Im also not sure what I have to do in image manager, is it a simple matter of creating and saving
    the answer file or do i have to configure it to copy the profile specifically (theres only one account anyhow).
    I also want to know if i have to attach the drivers or are all the standard drivers put into the sysprep image as standard.  I would like the machine to be an exactly replica, same as doing a clone (but with the drivers for the new machine installed
    so it will boot) same as doing a clone and then repair? If thats possible.
    Any specific instructions on this would be helpful.  I have read the microsft links but they are somewhat confusing.

    I know this is a very late response but I thought I'd post for others who search.
    The easiest way to create the .wim file is via WinPE, this guy's two YouTube videos explain the entire process in detail - 
    Windows 8 ADK Part 1: Capture an OS image - https://www.youtube.com/watch?v=XJ8zKX_8E9w
    Windows 8 ADK Part 2: Windows Image Deployment - https://www.youtube.com/watch?v=HHIvoqSw_FI
    Here's a quick rundown from my notes:
    WINPE
    Create WinPE via imaging tools command prompt
    copype amd64 c:\winpe
    makewinpemedia /iso "c:\winpe" "c:\winpe\winpe64.iso"
    UNATTEND
    Open Windows System Image Manager
    Configure unattend.xml
    Save unattend.xml to sysprep folder
    Create script and save it to sysprep folder to launch sysprep with unattend
    @echo off
    cd C:\Windows\System32\sysprep
    Sysprep /oob /generalize /unattend:C:\Windows\System32\sysprep\unattend.xml
    SYSPREP
    C:\Windows\System32\Sysprep
    Run as administrator
    OOBE/Generalize
    Shutdown
    CONFIGURATION of WINPE
    Set IP - netsh int ip set address "Local Area Connection" static 192.168.1.2 255.255.255.0 192.168.1.1
    Set DNS - netsh int ip set dns name = "Local Area Connection" source = static addr = 192.168.1.4 validate = no
    Map Network Name - net use z:
    \\WindowsADK\reflex\images password /USER:domain.local\username
    DISKPART
    diskpart
    list disk
    select disk zero
    list partition
    select partition 2 (OS partition #)
    Assign letter=S (assigns drive letter to partition)
    Exit
    DISM
    dism /capture-image /imagefile:z:\image.wim /capturedir:s:\ /name:"Windows 8.1 Custom"
    Verify image is saved in the image share (z:)
    http://www.microsoftfanboys.com

  • I Can't Create my jar File

    I have a package called voiceexpert which contains three classes: Disease, DiagnosingEngine and Symptoms which is a JavaBean. Symptoms makes use of Disease and DiagnosingEngine objects.
    voiceexpert is stored in the directory: c:\diagapp3
    I compiled Symptoms.java as below:
    c:\diagapp3> javac -d . Symptoms.java
    The class files for Disease.java, DiagnosingEngine.java and Symptoms.java are placed in the directory: voiceexpert.
    I created a Manifest.txt file inside c:\diagapp3 containing the following:
    Main-Class:voiceexpert.voiceexpert.Symptoms
    Name:voiceexpert/Symptoms.class
    Java-Bean:True
    I later created the jar file with the command:
    jar cfm jjj.jar Manifest.txt voiceexpert\*.*
    But, I am having the error message: "*invalid header field*".
    What can I do to remove this error?
    Note: I created the Manifest.txt using utf-8 encoding. My code is to be used in a third-party application and that is why it does not contain a main method.
    The link I was referred to could not help me. I need help please!
    Edited by: Adeyi on Feb 24, 2010 2:26 AM
    Edited by: Adeyi on Feb 24, 2010 2:34 AM

    Adeyi wrote:
    ..I created a Manifest.txt file inside c:\diagapp3 containing the following:
    Main-Class:voiceexpert.voiceexpert.Symptoms
    Note: I created the Manifest.txt using utf-8 encoding. My code is to be used in a third-party application and that is why it does not contain a main method.Why are you specifying a main-class when the API has none?
    The link I was referred to..What link? Just imagine for the moment that the Internet is a big place and we are not psychic.

  • How to create the trace file using run_report_object at runtime

    Dear All
    using :
    Oracel Application Server 10g
    Oracle Database 11g
    Windows XP/sp3
    I'm using run_report_object to call a report inside the form. THis report is running OK from reports builder, however it's too slow when run from Application server.
    How Can I create a trace file (at runtime) that contains the time spent in sql and formating the layout of the report ??
    Here is My code :
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'INVOICE.REP');
    v_url :='paramform=no';
    v_url := v_url||' FROM_NO=' || :PRINT_BLOCK.FROM_NO ;
    v_url := v_url ||' TO_NO=' || :PRINT_BLOCK.TO_NO ||' FROM_DATE=' || v_from_date ||' TO_DATE='|| v_to_date ||' NO_DATE=' ;
    v_url := v_url ||:PRINT_BLOCK.NO_DATE||' IDENT=' ||:PRINT_BLOCK.IDENT_NO||' REPORT_HEADING='''||V_REPORT_HEADING||'''' ;
    v_url := v_url||' COMPANY_NO='||:global.company_no;
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,:GLOBAL.INV_REPORT_SERVER_NAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    v_rep := RUN_REPORT_OBJECT(repid);
    IF rep_status = 'FINISHED' THEN
    V1:='/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1);
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||REPORT_SERVER_NAME,'_blank');
    END IF;
    Thanks a lot

    Slow running reports often are not the result of a flawed report, but rather a flawed configuration. For example:
    1. If you call your reports (from Forms) via the default or inProcess Reports Server, often because startup time is slow, it will appear that it took too long for the report to be delievered. Using a stand-alone Rep Server is the preferred way to do this.
    2. If your Forms application makes numerous calls to RRO (RUN_REPORT_OBJECT), this can tend to result in what might appear as a memory leak (although it is not). The result is delayed processing because of the excessive memory use. This problem has been overcome in Forms/Reports 11 by the use of JVM pooling. However in v10 enabling "6i compatibility" mode is the way to overcome the issue. See Note 266073.1
    3. If the report runs fine from the Builder and it is connecting to the same db as when you run it from App Server, the issue is unlikely a db problem. However, if you want to look anyway, enable sqlnet tracing.
    4. To enable Reports tracing and investigate other tuning options, refer to the Reports 10 documentation:
    http://docs.oracle.com/cd/B14099_11/bi.1012/b14048/pbr_tune.htm
    Almost forgot to mentioned this one....
    If you are using a v11 db with App Server 10, you will probably want to consider reviewing Note 1099035.1 as it discusses an issue related to performance with such a configuration.
    Edited by: Michael Ferrante on Apr 10, 2012 8:49 AM

  • Creating crystal report file dynamically.

    Post Author: malcomstewart115
    CA Forum: General
    Hi, everybody.
    I have one problem.
    How to create crystal report file(*.rpt)  in php dynamically.
    I mean, I want to create the "*.rpt" file with php code.
    Please help me. thanks everybody.

    Post Author: PWilkens
    CA Forum: General
    It sounds like you're defeating the power and purpose of Crystal Reports, or replace it with pure PHP (which I suppose could be done... but why?)
    What exactly are you trying to do?
    If you're trying to make certain parts of the report hide or reveal or change depending on variables settings in the PHP file, that's easy enough to accomplish by sending parameters with your PHP values into the report.  But the dynamic actions really need to be done within the report itself, accomplished through ample use of the section and field settings provided within the Report Designer.

Maybe you are looking for

  • Sony HDR-HC1 import fix

    I have a G5 tower (dual 2ghz) and had difficulty importing to iMovie 6 from my Sony HDR-HC1. Like many folks have identified in other posts, I could get iMovie to recogognize the camera and operate the transport but could not import any video or audi

  • Photos no longer sync to iPhone 5s

    Using all latest up to date software iPhone/iTunes/Windows 7 but iTunes is utterly rubbish at sync'ing! I've got a baby to look after than to worry about simple tasks of sync'ing photos of my little one and instead it's a major chore every time with

  • "instead of" trigger on a view with a condition

    I'm trying to create an instead-of trigger on a view but I want it all such that: 1. It fires only for a certain condition. 2. When the condition isn't met, I want the normal DML on the view to continue as it normally would. 3. I want to avoid writin

  • Implement Java Class into Report Builder

    Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. S

  • Photoshop/Lightroom CC

    I just signed up for Ps/Lr.  When I open the CC download page there are a number of software selections available, some with an "install" button, and others with a "try" button.  Which can I install with my subscription?  Also, I  found Ps and pinned