Export txt file with all parameter values during the report execution

Hello,
I've developed one report in Report Builder 3.0 , report server being  SRSS 2008 R2. This report has one report parameter named id_product. There are two data sets available. One data set  is for populating the report table.  In the second
data set I'm trying to export the id_product. The below query works fine only for single valued parameter id_product, this query being used in the second data set   Report pops-up an error when trying to run the report for multiple products at the same
time. I looked in SQL Profiler and it seems like inserting the parameter values in the global temporary table is not possible using the current code.
I'm aware of the VB Expression named Join but in such case I'm not sure if I can use it. It would be great if I can use this kind of expression. This way I would not create the data set anymore.  
Current query:
drop table ##SelectedValuescreate table ##SelectedValues(id_product nvarchar(max))insert into ##SelectedValues(@id_product) exec xp_cmdshell 'bcp "select ''id_product'' union all select * from ##SelectedValues" queryout "G:\Report\sqloutput.csv" -c -T -t'
Input: ProductId parameter values : 12, 16, 20
Desired output in csv:
id_product
12
16
20

Hi chopstix21,
Just as you thought, we can use join function to insert the values from a multiple value parameter to a temp table with VB Expression. After testing it in my own environment, we can refer to the following steps:
Create the second dataset using the query below:
drop table ##SelectedValues
create table ##SelectedValues(id_product nvarchar(max))
insert into ##SelectedValues(‘1’)
exec xp_cmdshell 'bcp "select ''id_product''
union all select * from ##SelectedValues" queryout "G:\Report\sqloutput.csv" -c -T -t'
Change the dataset using the expression like below:
="drop table ##SelectedValues"&
"create table ##SelectedValues(id_product nvarchar(max))" &
"insert into ##SelectedValues values (" & Join(Parameters! id_product.Value,"),(") &")" &
"select * from ##SelectedValues"
When we select 12, 16, 20 from parameter id_product, the second dataset will return 12, 16, 20 values as id_product field.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • CRVS2010 Beta - Export rpt file with missing parameter

    Hello,
    for my application I have some parameters that I use to filter my data. The thing is, some of these parameters I want to define in my application but others I want to be inputed by the user every time he loads the report.
    For this I just didn't assign values for these parameters, but when I try to export the report to rpt format I get an exception of missing parameters.
    If I try the same using the Save method, when I load the report it asks me for all the parameter values, including the ones I assigned before.
    Can someone tell me if it is possible to do this thing (leave some blank parameters to be assigned at load time)?
    Thank you very much
    Modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Jul 19, 2010 8:02 AM

    Hello,
    Try creating the sample application with fewer parameters in the report.
    While passing the parameter values from code use :
    crReportDocument.SetParameterValue("ParameterName", "Value");
    Sample applications are available here:
    [https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDKSamples|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDKSamples]
    Hope it helps!
    Thanks,
    Bhushan.

  • Displaying parameter value in the report output

    Hi,
    I have a requirement to display the value 'All' in the report when the user selects 'All' from the list box. Can anyone suggest a way?
    E.g.
    My LOV input to the report has following values, 'A', 'B', 'C', 'All'.
    If I select 'All', all the values A, B, C go into the query . But I need to display this I/P parameter as a field in the RTF showing 'All' in it.

    u can try like this
    if they select all u will have 'a,'b','c' as value in the xml tag right so always the string length of that xml field will be same when you select all . SAY STRING LENGTH WILL be 10 when user select ALL
    ( check the string how much is the value when you select ALL and implement this)
    we can try using string length
    <?xdoxslt:ifelse(number(string-length(XML_FIELD_TAG))>=10,'ALL',XML_FIELD_TAG)?>
    or
    <?xdoxslt:ifelse(number(string-length(//XML_FIELD_TAG))>=10,'ALL',//XML_FIELD_TAG)?>
    So it will display ALL when user selects ALL else the selected value.
    if you are not having parameter values as xml tag then you have use like this
    <?xdoxslt:ifelse(number(string-length($XML_FIELD_TAG))>=10,'ALL',$XML_FIELD_TAG)?>
    assign some points if helpful.

  • Export QuickTime file with new audio and maintain the file size and quality as the original.

    I shot some footage for a client yesterday and ran into an issue. To make a long story short I have QuickTime mov files shot with my Panasonic GH4 that have a buzzing sound in the audio track. I have clean audio from a recorder that can be sync'd. Is there a way for me to do this for the client and deliver them as the same QuickTime file but with the clean audio and keep the file size close to the original and not have quality loss in the image?
    If so I will probably put all of the spanned clips together from each interview and sync the audio before delivery. I am just not sure which codec will give the client the same quality footage compared to the originals and not have a massive difference in the overall file size. They did request that they be Quicktime MOV files though so that is a must.
    I don't see this as an option in the codecs in the export settings in PP, but is there a way to export as ProRes or another MAC native codec that will save them from having to convert it on their end? I am on a PC with Adobe CS5.5 so I am not too familiar with MACs, but from what I understand they would need to convert the files if I sent them straight out of the camera.
    I found some related search results for this but they pertained to "Best quality" for export. I am not sure how the varying options work but I don't want to create files that are considerably larger, just not less quality.
    If anyone has experience with this it would be greatly appreciated.
    Thanks,
    Cole

    Here's the workflow: I imported the video footage into iMovie '08 and did my edits. Then I exported it (share) to my desktop with compression set @ 740 X 480. Then I used QuickTime Pro to fix the audio track. The file plays perfectly with both audio tracks working. It's a QuickTime file (.mov).
    I hope this jars any replies as to why the file when uploaded to my iWeb gallery drops the second audio track.
    Hmm,
    Jack

  • Printing parameter values in xml report, and displaying it in header of the

    Hi All,
    Can anybody give me an idea to print the parameter values in the xml report.
    My requirement is like, I have 10 parameters in report builder, I have generated the xml file and created the .rtf template and finally registerted in oracle apps. But now, the requirement is to print the parameter values in the report output.I don't see any xml tags in the xml output.
    Any suggestion will be appreciated.
    Thanks in advance.

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

  • How to pass parameter values to a report befor schedule it?

    I tried to use Business Objects web service to schedule a report. But I failed to pass in any parameter values. The report was able to run successfully. But check all history from Infoview, all parameter are with NULL value. Does anybody encounter the same problem and has good resolution for this? Many thanks.
    Here's my code:
    // Logon Crystal Report Server
    LogonCrystalServer();
    // Find Report
    GetOptions oGetOptions = new GetOptions();
    oGetOptions.IncludeSecurity = false;
    ResponseHolder rh = _bipService.Get("cuid://<" + reportCuid + ">@SI_SCHEDULEINFO, SI_PROCESSINFO", oGetOptions);
    InfoObjects oInfoObjects = rh.InfoObjects;
    if (oInfoObjects == null || oInfoObjects.InfoObject == null) return;
    // Set Scheduling Info
    CrystalReport oReport = (CrystalReport)oInfoObjects.InfoObject[0];
    oReport.Name = oInfoObjects.InfoObject[0].Name;
    SchedulingInfo oSchedulingInfo = oReport.SchedulingInfo;
    oSchedulingInfo.RightNow = true;
    oSchedulingInfo.ScheduleType = (ScheduleTypeEnum.ONCE);
    oReport.SchedulingInfo = oSchedulingInfo; 
    // Set Format Info.
    ReportProcessingInfo procInfo = oReport.PluginProcessingInterface;
    CrystalReportFormatOptions repFormat = new CrystalReportFormatOptions();
    repFormat.Format = ReportFormatEnum.EXCEL;
    repFormat.FormatSpecified = true;
    repFormat.UseExportOptionsInReport = true;
    repFormat.UseExportOptionsInReportSpecified = true;
    procInfo.ReportFormatOptions = repFormat;
    // Get Report Parameters and Set their values
    // I don't know if the step has any problem. I copied from wssdk sample.
    ReportParameter[] repParams = procInfo.ReportParameters;           
    for (int i = 0; i < repParams.Length; i++)
        CurrentValues oCurrentValues = new CurrentValues();
        BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue[] oPromptValue = new BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue[1];
        oPromptValue[0] = new BusinessObjects.DSWS.BIPlatform.Desktop.PromptValue();
        oPromptValue[0].Data = "Test";
        oCurrentValues.CurrentValue = oPromptValue;
        repParams<i>.CurrentValues = oCurrentValues;
    procInfo.ReportParameters = repParams;       
    oReport.PluginProcessingInterface = procInfo;
    // Schedule run the report   
    InfoObjects infoObjects = _bipService.Schedule(oInfoObjects);
    //Get new instance id
    string instanceCuid = infoObjects.InfoObject[0].NewJobID;
    Edited by: Shao Zelian on Jan 19, 2010 11:51 AM

    Can you clarify your scenario? Which is the case you're talking about?
    1) You want to pass a parameter from OmniPortlet to a PL/SQL procedure.
    2) You want to pass a parameter from a PL/SQL procedure to OmniPortlet.
    In both cases the most obvious way of doing it is through request (URL) parameters.
    Render a link in your portlet (either in OmniPortlet or using PL/SQL) that invokes a portal page, containing the other portlet.
    Both OmniPortlet and PL/SQL allow you to wire and access page parameters.
    Take a look at the Using Parameter and Events section of the Portal User's Guide and the Parameters and Events section of the Portal Developer's Guide.
    Hope this helps,
    Peter

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • How to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scripting

    how to get all how to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scriptingstyle and their fonts of a  indesign file and write all info with para info into txt file with scripting

    I write the script this one works
              var par=doc.stories.everyItem().paragraphs.everyItem().getElements();
      for(var i=par.length-1;i>=0;i--)
           var font=par[i].appliedParagraphStyle.name;
            var font1=par[i].appliedFont.name;
             var size=par[i].pointSize;
            WriteToFile (par[i].contents  +   "\r" +  "Style  : " + font  + "\r" +  "FONT1  : " + font1  + "\r" +  "Size  : " + size  + "\r", reportFilePath);
                            function WriteToFile(text, reportFilePath) { 
        file = new File(reportFilePath); 
        file.encoding = "UTF-8"; 
        if (file.exists) { 
            file.open("e"); 
            file.seek(0, 2); 
        else { 
            file.open("w"); 
          file.writeln(text);  
        file.close(); 
    Thanks for all your support

  • I am using Windows 7 Home Premium 64-bit OS.  I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installa

    I am using Windows 7 Home Premium 64-bit OS.I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installation process it gave me an error message that said: 
    Runtime error! 
    Program C:\Program Files\iTunes.exe
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I quit the installation, uninstalled iTunes and rebooted my computer.  I now receive a similar message with a slight difference:
    Runtime error! 
    Program C:\Program Files (x86)...
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I did not leave anything out from the error message.  It doesn't point to a specific file, it just ends with "(x86)..."  Every time I boot up my computer, this error message pops up on my desktop.
    How do I repair this issue?  I have found multiple suggested solutions but am unsure which one is the best, and I don't want to try a bunch of different things for fear I may make the problem worse.  I would like to try and fix this myself if possible but I need to know if that is really possible or if I need to take my computer to someone for repairs.  Any suggestions will be greatly appreciated!!

    Hi lustyln,
    I'm having a little trouble understanding all of what you are trying to explain. From what I can tell, it sounds like your PC has a lot of software problems and you want to know what is supposed to be there and what isn't.
    For reference, here are your product specifications:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01893242&lc=en&product=4043282
    To get your PC software back to how it was when it was first purchased, run a system recovery:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01867418&lc=en&product=4043282
    I hope this helps.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • To pass parameter values to the object reference of action step in sequence file of teststand programatically using C#.

    //Initialize the Engine
                EngineClass myEngine = new EngineClass();
                myEngine.LoadTypePaletteFilesEx(TypeConflictHandlerTypes.ConflictHandler_Prompt, 0);
                Step myStep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname,StepTypes.StepType_Action);
                myStep.Name = "object";
                DotNetModule dotnetmodule = myStep.Module as DotNetModule;
                dotnetmodule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File,@"C:sequence.dll");
                dotnetmodule.ClassName = "CN";
                dotnetmodule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
                dotnetmodule.MemberName = "ISI";  
    mySequence.Locals.NewSubProperty("object", PropertyValueTypes.PropValType_Reference, false, "", 0);        
    Sequence mySequence = myEngine.NewSequence();
                mySequence.Locals.NewSubProperty(varName, PropertyValueTypes.PropValType_Reference, false, String.Empty, 0);
    mySequence.InsertStep(myStep, 0, StepGroups.StepGroup_Main);
                SequenceFile seqFile = myEngine.NewSequenceFile();
                seqFile.InsertSequence(mySequence);
    seqFile.Save("C:\\mySeq.seq");
    I have done this,dynamically creating a sequence file in teststand programatically through c#.
    Problem is
    1.I created an action step and object Reference variable for the step, but i am not able to pass  parameter values to the objectReference 
    2.I am not able to load the sequence in to the main Sequence of the sequence file in the teststand. How can I do these two things.

    Hi,
    have you ever followed on my Links ?!?!?
    If not please jump to this one
    http://forums.ni.com/ni/board/message?board.id=330&thread.id=26880 
    and read the the answer from Mannoch
    starting with this words:
    Anthony -
    Currently, functionality for retrieving the Metadata Token for a class constructor or member is not fully provided in the TestStand .NET Adapter API. The DotNetModule.GetConstructorMetadataToken() and DotNetModule.GetMetadataToken() methods only return the correct Metadata Token when the member/constructor prototypes have already been loaded. Thus, in the case of your code, when you call DotNetModule.GetMetadataToken(), the method is returning -1 because the member prototype for the Step you are referring to has not yet been loaded.
    That means have to do a workaround for your stuff.
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • How can I export a file with transparent background?

    Hi all,
    I know InDesign doesn't allow to export a PNG file, but I need my file to be in image file format with transparent background.
    I'm still learning so I am stuck here. How can I export a file with transparent background?

    If you can't get the PNG file export to work, you can export a pdf and open it in Photoshop, from there you can save it as whatever you like.

  • Premiere not exporting audio files with the footage

    Hello All, has anyone had trouble lately with Premiere not exporting audio files with the footage?

    1st, show your export screen so people may see what you are doing
    https://forums.adobe.com/thread/1070933 for screen shot instructions
    2nd, when you ask a question you need to provide more information for anyone to try and help
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • Attempting to delete a .txt file with mixed results

    Hello,
    This is my first post, and im very new to Java programming, so please bear with me.
    Below is the code im having trouble with...
    else if(linescanned.get( 0 ).equals("unreg"))                                                  // IF SWITCH IN UNREG
                                  System.out.println("Client has requested to remove a DNS entry...");
                                  try
                                       BufferedReader fin = new BufferedReader(new FileReader("dnslist.txt"));          // Opens the DNS list for reading
                                       BufferedWriter fout = new BufferedWriter(new FileWriter("tempdnslist.txt"));
                                       String linein = null;
                                       //Read from the original file and write to the new
                                       //unless content matches data to be removed.
                                       while ((linein = fin.readLine()) != null)
                                            int checkforexisting = linein.indexOf(linescanned.get( 1 ));
                                            if (checkforexisting == -1)
                                                 fout.write(linein);
                                                 fout.newLine();
                                                 fout.flush();
                                       fout.close();
                                       fin.close();
                                       System.out.println("Original file deleted: " + new File("dnslist.txt").delete());
    ////////////////////////////////// this line above is what is causing me intermittent problems i think////////////////////////////////////////////////////////
                                       Thread.currentThread().sleep(1 * 1000);
                                       //Rename the new file to the filename the original file had.
                                       File temp = new File("tempdnslist.txt");
                                       Thread.currentThread().sleep(1 * 1000);
                                       temp.renameTo(new File("dnslist.txt"));
                                       Thread.currentThread().sleep(1 * 1000);
                                       out.writeUTF("Entry removed successfully");
                                       System.out.println("Client successfully removed a DNS entry");
                                  catch (FileNotFoundException ex)
                                       ex.printStackTrace();
                                  }What my program ** tries to ** do is send messages from a client to a server with commands to either add, remove or lookup entries in a text file (the purpose in this case is for a DNS list)
    It all seems to work ok, except for this section. To remove an entry, i am writing the current file to a new temporary file and just missing out the line that matches the users request. The original file is then removed, and the temporary file is renamed.
    I am having intermittent results with the removal of the original file (I have commented this section to highlight), sometimes it works great, and others it fails. I have coded the removal of the file in this way for debugging reasons. Is there any obvious reason in my code for this? Any help is great...thank you! :)

    I?d be interested to know what the System.out.println gives you although I have an idea. The reality is that the File.delete function is at the mercy of the system and if the system thinks the file is in use it won?t delete it. It?s a shame that you delete the file with all the important data and then rename a file that has the ?new? data. In my opinion you?re asking for trouble if something goes wrong and the temp file fails to ?rename? or in this case as I suspect, the file can?t be renamed because the file of the same name can?t be deleted. Interesting thought would be to have a dedicated directory and always look for the last mod file with a predetermined name format, and then do whatever you need to do to write the new file and at your convenience, delete all the others. I surely with I were smart enough to solve your problem.
    KR
    Walker
    And what happens if there are multiple requests at the same time? Seems like there would be a better way to do it.
    Edited by: walker8 on Feb 9, 2009 7:36 PM

  • How to read the second line in a .txt file with bufferedReader?

    hi,
    i am not the best in speaking english and programming java :)
    so, just try to make sense of my question:
    Im using a BufferedReader to read a .txt file.
    the .txt file has 5+ different lines, and each line has 6 tokens (separated with ; )
    My java file has 6 textFields and each textfield is filled with one of the 6 different tokens.
    and my problem is:
    I want my buffered reader to read the next line (with 6 new different tokens) by pressing a button.
    if somethings not understandable, just ask :)

    maybe its easier to help me, when i publish my code, so here it is:
    (its my version, without Thof's code. Sorry, but the comments are the most in german)
    /* userdata.java */
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class userdata extends Frame {
    //-----------------------------------KlassenVariablen------------------------------------------------
    private JPanel panel = new JPanel ();
    String tokId = "";
    String tokName= "";
    String tokAge= "";
    String tokTel= "";
    String tokMail= "";
    String tokText= "";
    BufferedReader br;
    String zeile;
    StringTokenizer st;
    String delim = ";";
    //---------Buttons f?r Panel 1-------------------------
    Button first = new Button("|< First");
    Button back = new Button("< Back");
    Button next = new Button("Next >");
    Button last = new Button("Last >|");
    //---------Buttons f?r Panel 3-------------------------
    Button neu = new Button("New");
    Button safe = new Button("Safe");
    Button refresh = new Button("Refresh");
    //--------Labels f?r Panel 2-----------------------------
    Label lid = new Label("ID",Label.LEFT);
    Label lname = new Label("Name",Label.LEFT);
    Label lage = new Label("Age",Label.LEFT);
    Label ltel = new Label("Tel.",Label.LEFT);
    Label lmail = new Label("E-Mail",Label.LEFT);
    Label ltext = new Label("Spruch",Label.LEFT);
    Label lub = new Label("Last Button",Label.LEFT);
    TextField id = new TextField();
    TextField name = new TextField();
    TextField age = new TextField();
    TextField tel = new TextField();
    TextField mail = new TextField();
    TextField text = new TextField();
    TextField usedbutton = new TextField();
    //--------ActionEvent bla sachen eben--------------------
    public static void main (String[] args) throws IOException {
    userdata wnd = new userdata();
    wnd.setVisible(true);
    public userdata() throws IOException {                                                                                                                                                                                                                                                                                
    //--------------------------------Layout mit panel bestimmung--------------------------------------
    setLayout(new BorderLayout());
    JPanel p1 = new JPanel();
    JPanel p2 = new JPanel();
    JPanel p3 = new JPanel();
    add(BorderLayout.NORTH ,p1);
    add(BorderLayout.CENTER , p2);
    add(BorderLayout.SOUTH , p3);
    //-------------------------------Funktionslose Buttons in PANEL 1------------------------------------
    p1.add(first);
    p1.add(back);
    p1.add(next);
    p1.add(last);
    p1.add(usedbutton);
    //--------------------------------Funktionierende Textfelder in PANEL 2------------------------------
    Panel labelpanel = new Panel();
    p2.setLayout(new GridLayout(7,3));
    p2.add(lid);
    p2.add(id);
    p2.add(lname);
    p2.add(name);
    p2.add(lage);
    p2.add(age);
    p2.add(ltel);
    p2.add(tel);
    p2.add(lmail);
    p2.add(mail);
    p2.add(ltext);
    p2.add(text);
    p2.add(lub);
    p2.add(usedbutton);
    //--------------------------------------Buttons in PANEL 3-----------------------------------------
    p3.add(neu);
    p3.add(safe);
    p3.add(refresh);
    //--------------------------------BufferedReader -------------------------------------------------
    readData();
    //--------------------------------Panel 2 TextField-----------------------------------------------
    fillForm();
    //================================ActionPerformed==================================================
    first.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("First");
    usedbutton.setText("First");
    back.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Back");
    usedbutton.setText("Back");
    next.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Next");
    usedbutton.setText("Next");
    last.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Last");
    usedbutton.setText("Last");
    neu.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("New entry");
    usedbutton.setText("New");
    safe.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    System.out.println ("Now Saving, do not turn off!");
    usedbutton.setText("Save");
    //-----------------refresh
    refresh.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    try{
    readData();
    }catch( IOException ioe){
    System.out.println("Fehler beim lesen aus Datei");
    fillForm();
    usedbutton.setText("Refresh");
    //=============================================================================Button Funktionen!!!
    pack();
    //--------------------------------WindowsListener hinzuf?gene--------------------------------------
    addWindowListener(
    new WindowAdapter() {
    public void windowClosing(WindowEvent event)
    setVisible(false);
    dispose();
    System.exit(0);
    //-----------------------------------readData() - > Buffered Reader in aktion! --------------------
    private void readData() throws IOException{
    BufferedReader br = new BufferedReader(new FileReader("My .txt File with path"));
    String zeile;
    StringTokenizer st;
    String delim = ";";
    zeile = br.readLine();
    st = new StringTokenizer(zeile, delim);
    st.hasMoreTokens();
    //System.out.println (st.nextToken());
    tokId = new String(st.nextToken());
    tokName = new String (st.nextToken());
    tokAge = new String (st.nextToken());
    tokTel = new String (st.nextToken());
    tokMail = new String (st.nextToken());
    tokText = new String (st.nextToken());
    //--------------------------fillForm() - > f?llt die TextFelder aus!--------------------------------
    private void fillForm(){
    id.setText(tokId);
    name.setText(tokName);
    age.setText(tokAge);
    tel.setText(tokTel);
    mail.setText(tokMail);
    text.setText(tokText);
    }

  • In Photoshop Elements 12, is there a way to batch process all photos in a file with 'Auto Tone' and save the changes?

    In Photoshop Elements 12, is there a way to batch process all photos in a file with 'Auto Tone' and save the changes?

    Thank you, that was perfect!
    Yoni

Maybe you are looking for

  • Notify via email upon concurrent request failure

    Hi, I would like suggestions on the best way to solve the problem of being able to notify user(s) via email upon the failure of a concurrent request. Apps has the built-in ability to notify upon completion, not just upon failure. I want to limit the

  • Help needed for a Final Cut Express project Compression

    Hi guys, This is my first post as I usually find answers to all my questions reading through the various thread. I just haven't found an answer to my last pb yet hence the new topic. Hope you guys can help. I have got this very simple slideshow that

  • A JAVA PROGRAM TO CONTROL SYSTEM EVENTS OF WIDOWS XP

    Hello everyone. The question is: can I develop a java program that can control system events of a windows environment? For example a program to shut down the computer, log off or open and close windows applications? If so, how can i do that?? please

  • Transfer  mini-dvd's i have to my macbook pro.

    i have A LOT of mini-dvd videos (home movies) that i would like to transfer to my Macbook Pro.  Unfortunately, my camcorder is a Sony DVD92 and does not have a cord that will connect to my laptop to transfer the content to I-Movie.  I thought about u

  • Plugin loses some actions in progress

    Please, help me! I perform certain actions within its handler menu goМenuItem - delete some objects; do other invisible; run through certain actions by PlayActionEvent(), e.t.c. then export the file again through PlayActionEvent("adobe_exportDocument