Help needed with missing data problem in CRVS2010

We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
I think I have identified two potential issues that document the possibility of data not being included in the report.
The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
Is this related to ADAPT01483793? Will it be fixed in service pack 2?
If more details are needed, I would be happy to provide a sample report with stored data.

Hi Don,
Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also. 
There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
Don
Edited by: Don Williams on Oct 26, 2011 7:40 AM

Similar Messages

  • Help needed with passing data between classes, graph building application?

    Good afternoon please could you help me with a problem with my application, my head is starting to hurt?
    I have run into some difficulties when trying to build an application that generates a linegraph?
    Firstly i have a gui that the client will enter the data into a text area call jta; this data is tokenised and placed into a format the application can use, and past to a seperate class that draws the graph?
    I think the problem lies with the way i am trying to put the data into co-ordinate form (x,y) as no line is being generated.
    The following code is from the GUI:
    +public void actionPerformed(ActionEvent e) {+
    +// Takes data and provides program with CoOrdinates+
    int[][]data = createData();
    +// Set the data data to graph for display+
    grph.showGrph(data);
    +// Show the frame+
    grphFrame.setVisible(true);
    +}+
    +/** set the data given to the application */+
    +private int[][] createData() {+
    +     //return data;+
    +     String rawData = jta.getText();+
    +     StringTokenizer tokens = new StringTokenizer(rawData);+
    +     List list = new LinkedList();+
    +     while (tokens.hasMoreElements()){+
    +          String number = "";+
    +          String token = tokens.nextToken();+
    +          for (int i=0; i<token.length(); i++){+
    +               if (Character.isDigit(token.charAt(i))){+
    +                    number += token.substring(i, i+1);+
    +               }+
    +          }     +
    +     }+
    +     int [][]data = new int[list.size()/2][2];+
    +     int index = -2;+
    +     for (int i=0; i<data.length;i++){+
    +               index += 2;+
    +               data[0] = Integer.parseInt(+
    +                         (list.get(index).toString()));+
    +               data[i][1] = Integer.parseInt(+
    +                         (list.get(index +1).toString()));+
    +          }+
    +     return data;+
    The follwing is the coding for drawing the graph?
    +public void showGrph(int[][] data)  {+
    this.data = data;
    repaint();
    +}     +
    +/** Paint the graph */+
    +protected void paintComponent(Graphics g) {+
    +//if (data == null)+
    +     //return; // No display if data is null+
    super.paintComponent(g);
    +// x is the start position for the first point+
    int x = 30;
    int y = 30;
    for (int i = 0; i < data.length; i+) {+
    +g.drawLine(data[i][0],data[i][1],data[i+1][0],data[i+1][1]);+
    +}+
    +}+

    Thanks for that tip!
    package LineGraph;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.List;
    public class GUI extends JFrame
      implements ActionListener {
      private JTextArea Filejta;
      private JTextArea jta;
      private JButton jbtShowGrph = new JButton("Show Chromatogram");
      public JButton jbtExit = new JButton("Exit");
      public JButton jbtGetFile = new JButton("Search File");
      private Grph grph = new Grph();
      private JFrame grphFrame = new JFrame();   // Create a new frame to hold the Graph panel
      public GUI() {
         JScrollPane pane = new JScrollPane(Filejta = new JTextArea("Default file location: - "));
         pane.setPreferredSize(new Dimension(350, 20));
         Filejta.setWrapStyleWord(true);
         Filejta.setLineWrap(true);     
        // Store text area in a scroll pane 
        JScrollPane scrollPane = new JScrollPane(jta = new JTextArea("\n\n Type in file location and name and press 'Search File' button: - "
                  + "\n\n\n Data contained in the file will be diplayed in this Scrollpane "));
        scrollPane.setPreferredSize(new Dimension(425, 300));
        jta.setWrapStyleWord(true);
        jta.setLineWrap(true);
        // Place scroll pane and button in the frame
        JPanel jpButtons = new JPanel();
        jpButtons.setLayout(new FlowLayout());
        jpButtons.add(jbtShowGrph);
        jpButtons.add(jbtExit);
        JPanel searchFile = new JPanel();
        searchFile.setLayout(new FlowLayout());
        searchFile.add(pane);
        searchFile.add(jbtGetFile);
        add (searchFile, BorderLayout.NORTH);
        add(scrollPane, BorderLayout.CENTER);
        add(jpButtons, BorderLayout.SOUTH);
        // Exit Program
        jbtExit.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
             System.exit(0);
        // Read Files data contents
         jbtGetFile.addActionListener(new ActionListener(){
         public void actionPerformed( ActionEvent e) {
                   String FileLoc = Filejta.getText();
                   LocateFile clientsFile;
                   clientsFile = new LocateFile(FileLoc);
                        if (FileLoc != null){
                             String filePath = clientsFile.getFilePath();
                             String filename = clientsFile.getFilename();
                             String DocumentType = clientsFile.getDocumentType();
         public String getFilecontents(){
              String fileString = "\t\tThe file contains the following data:";
         return fileString;
           // Register listener     // Create a new frame to hold the Graph panel
        jbtShowGrph.addActionListener(this);
        grphFrame.add(grph);
        grphFrame.pack();
        grphFrame.setTitle("Chromatogram showing data contained in file \\filename");
      /** Handle the button action */
      public void actionPerformed(ActionEvent e) {
        // Takes data and provides program with CoOrdinates
        int[][]data = createData();
        // Set the data data to graph for display
        grph.showGrph(data);
        // Show the frame
        grphFrame.setVisible(true);
      /** set the data given to the application */
      private int[][] createData() {
           String rawData = jta.getText();
           StringTokenizer tokens = new StringTokenizer(rawData);
           List list = new LinkedList();
           while (tokens.hasMoreElements()){
                String number = "";
                String token = tokens.nextToken();
                for (int i=0; i<token.length(); i++){
                     if (Character.isDigit(token.charAt(i))){
                          number += token.substring(i, i+1);
           int [][]data = new int[list.size()/2][2];
           int index = -2;
           for (int i=0; i<data.length;i++){
                     index += 2;
                     data[0] = Integer.parseInt(
                             (list.get(index).toString()));
                   data[i][1] = Integer.parseInt(
                             (list.get(index +1).toString()));
         return data;
    public static void main(String[] args) {
    GUI frame = new GUI();
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setTitle("Clients Data Retrival GUI");
    frame.pack();
    frame.setVisible(true);
    package LineGraph;
    import javax.swing.*;
    import java.awt.*;
    public class Grph extends JPanel {
         private int[][] data;
    /** Set the data and display Graph */
    public void showGrph(int[][] data) {
    this.data = data;
    repaint();
    /** Paint the graph */
    protected void paintComponent(Graphics g) {
    //if (data == null)
         //return; // No display if data is null
    super.paintComponent(g);
    //Find the panel size and bar width and interval dynamically
    int width = getWidth();
    int height = getHeight();
    //int intervalw = (width - 40) / data.length;
    //int intervalh = (height - 20) / data.length;
    //int individualWidth = (int)(((width - 40) / 24) * 0.60);
    ////int individualHeight = (int)(((height - 40) / 24) * 0.60);
    // Find the maximum data. The maximum data
    //int maxdata = 0;
    //for (int i = 0; i < data.length; i++) {
    //if (maxdata < data[i][0])
    //maxdata = data[i][1];
    // x is the start position for the first point
    int x = 30;
    int y = 30;
    //draw a vertical axis
    g.drawLine(20, height - 45, 20, (height)* -1);
    // Draw a horizontal base line4
    g.drawLine(20, height - 45, width - 20, height - 45);
    for (int i = 0; i < data.length; i++) {
    //int Value = i;      
    // Display a line
    //g.drawLine(x, height - 45 - Value, individualWidth, height - 45);
    g.drawLine(data[i][0],data[i][1],data[i+1][0],data[i+1][1]);
    // Display a number under the x axis
    g.drawString((int)(0 + i) + "", (x), height - 30);
    // Display a number beside the y axis
    g.drawString((int)(0 + i) + "", width - 1277, (y) + 900);
    // Move x for displaying the next character
    //x += (intervalw);
    //y -= (intervalh);
    /** Override getPreferredSize */
    public Dimension getPreferredSize() {
    return new Dimension(1200, 900);

  • Help needed with binary data in xml (dtd,xml inside)

    I am using the java xml sql utility. I am trying to load some info into a table.
    my.dtd:
    <!ELEMENT ROWSET (ROW*)>
    <!ELEMENT ROW (ID,JPEGS?)>
    <!ELEMENT ID (#PCDATA)>
    <!ELEMENT DESCRIPTION EMPTY>
    <!ATTLIST DESCRIPTION file ENTITY #REQUIRED>
    <!NOTATION INFOFILE SYSTEM "Files with binary data inside">
    <!ENTITY file1 SYSTEM "abc.jpg" NDATA INFOFILE>
    xml file:
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE ROWSET SYSTEM "MY.DTD">
    <ROWSET>
    <ROW>
    <ID>1272</ID>
    <DESCRIPTION file="file1"/>
    </ROW>
    </ROWSET>
    I am using the insertXML method to do this. However, the only value that gets loaded is the ID. abc.jpg is in the same directory where I ran the java program.
    Thanks in advance.

    Sorry! wrong dtd. It should read this instead:
    my.dtd:
    <!ELEMENT ROWSET (ROW*)>
    <!ELEMENT ROW (ID,DESCRIPTION?)>
    <!ELEMENT ID (#PCDATA)>
    <!ELEMENT DESCRIPTION EMPTY>
    <!ATTLIST DESCRIPTION file ENTITY #REQUIRED>
    <!NOTATION INFOFILE SYSTEM "Files with binary data inside">
    <!ENTITY file1 SYSTEM "abc.jpg" NDATA INFOFILE>
    null

  • Urgent Help Needed with missing frames

    Hi guys
    I have a student with an urgent problem that I can't seem to fix.
    The student is making a film having shot it on mini DV tape. He has been editing the film in Adobe Premiere Pro CS5.5, editing sections in different sequences.
    The problem he is having is when he moves a selection of clips on his timeline random frames or half frames disappear, leaving a very quick flash to black.
    I cant work out why the frames are disappearing when moving clips up and down the timeline, any suggestions?
    Thanks
    SteveG

    The settings for a sequence cannot be changed once it is created.
    If source footage is being interpreted wrongly, right-click the source file on the project panel and choose Modify > Interpret Footage. You can now create a new sequence that matches the real properties of your footage.
    Dragging one sequence into another won't cure the problem; you have to copy the footage from the timeline into the new sequence so it reverts to the new sequence frame rate (assuming the footage has been defined properly in the project panel it will then be correct).

  • Help needed with wsdl compilation problem

    Hi all,
    I am trying to perform a wsdl2java run on a wsdl, but it keeps failing and I can't work out why.
    Can anyone help me spot the problem?
    Here is the problem I get:
    [WARN] Type {http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com}MntcHistory missing!
    [WARN] Type {http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com}MaintenanceHistory missing!And here is the full wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:tns="http://Master.LeaseBaseGetMntcHistory.Remarketing.gf.com" xmlns:ns0="http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com" xmlns:ns1="http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="LeaseBaseMntcHistory" targetNamespace="http://Master.LeaseBaseGetMntcHistory.Remarketing.gf.com">
        <wsdl:types>
         <xsd:schema xmlns = "http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com"
               targetNamespace = "http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               elementFormDefault="unqualified"
               attributeFormDefault="unqualified">
              <xsd:element name="FleetID" type="xsd:string"/>
              <xsd:element name="CountryID" type="xsd:string"/>
              <xsd:element name="RegID" type="xsd:string"/>
              <xsd:element name="CompanyID" type="xsd:string"/>
              <xsd:element name="ChassisID" type="xsd:string"/>
              <xsd:element name="FleetDetails">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="FleetID"/>
                             <xsd:element ref="CountryID"/>
                             <xsd:element ref="RegID" minOccurs="0"/>
                             <xsd:element ref="CompanyID" minOccurs="0"/>
                             <xsd:element ref="ChassisID"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="MntcHistory">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="FleetDetails"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
         </xsd:schema>
         <xsd:schema xmlns = "http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com"
               targetNamespace = "http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               elementFormDefault="qualified"
               attributeFormDefault="unqualified">
              <xsd:element name="Date" type="xsd:string"/>
              <xsd:element name="Mileage" type="xsd:string"/>
              <xsd:element name="StatusCD" type="xsd:string"/>
              <xsd:element name="Operation" type="xsd:string"/>
              <xsd:element name="Details">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="Detail" maxOccurs="unbounded"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="FleetID" type="xsd:string"/>
              <xsd:element name="RegID" type="xsd:string"/>
              <xsd:element name="MaintenanceHistory">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="FleetID"/>
                             <xsd:element ref="RegID"/>
                             <xsd:element ref="LstUpdateDate"/>
                             <xsd:element ref="MntcWorkHistory"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="LstUpdateDate" type="xsd:string"/>
              <xsd:element name="MntcWorkHistory">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="MntcWork" maxOccurs="unbounded"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="MntcWork">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="Date"/>
                             <xsd:element ref="Mileage"/>
                             <xsd:element ref="StatusCD"/>
                             <xsd:element ref="LineItems"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="LineItems">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="LineItem" maxOccurs="unbounded"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="LineItem">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element ref="Operation"/>
                             <xsd:element ref="Details"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
              <xsd:element name="Detail" type="xsd:string"/>
         </xsd:schema>
        </wsdl:types>
        <wsdl:message name="MntcHistory">
            <wsdl:part name="parameters" type="ns0:MntcHistory"/>
        </wsdl:message>
        <wsdl:message name="MaintenanceHistory">
            <wsdl:part name="parameters" type="ns1:MaintenanceHistory"/>
        </wsdl:message>
        <wsdl:portType name="portType">
            <wsdl:operation name="LeaseBaseClientOp">
                <wsdl:input message="tns:MntcHistory"/>
                <wsdl:output message="tns:MaintenanceHistory"/>
            </wsdl:operation>
        </wsdl:portType>
        <wsdl:binding name="intfwsLeaseBaseClientEndpoint0Binding" type="tns:portType">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <wsdl:operation name="LeaseBaseClientOp">
                <soap:operation style="rpc" soapAction="/Processes/LeaseBaseClientOp"/>
                <wsdl:input>
                    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com" parts="parameters"/>
                </wsdl:input>
                <wsdl:output>
                    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Output.LeaseBaseGetMntcHistory.remarketing.gf.com" parts="parameters"/>
                </wsdl:output>
            </wsdl:operation>
        </wsdl:binding>
        <wsdl:service name="intfLeaseBaseClient-service">
            <wsdl:port name="intfwsLeaseBaseClientEndpoint0" binding="tns:intfwsLeaseBaseClientEndpoint0Binding">
                <soap:address location="http://localhost:8080/Processes/intfwsLeaseBaseClientEndpoint0"/>
            </wsdl:port>
        </wsdl:service>
    </wsdl:definitions>Thanks in advance!

    Hello
    You may try something like the modified code below.
    Noticiable changes :
    #1 - Removed the parentheses. Your original code won't yield alias list but a list of finder objects, which is the reason why Preview opens the image. (The statment 'open finderObject' behaves the same as double clicking it in Finder)
    #2 - Only delete the original jpeg files which are converted to tiff.
    #3 - Build new path for converted image.
    #4 - Save in new path. (When saving image in a format other than its original format, always save the image to a new file and do not attempt to overwrite the source file.)
    cf.
    http://www.macosxautomation.com/applescript/imageevents/08.html
    on run
    tell application "Finder"
    set PicturesFolder to (path to home folder as string) & "Pictures:SenseCam:" as alias
    set Photographs to get entire contents of PicturesFolder as alias list -- #1
    end tell
    set DonePhotos to {} -- #2
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    set Photo to Photo's contents
    set oldPath to Photo as string
    if oldPath ends with ".jpg" then
    set newPath to oldPath's text 1 thru -5 & ".tif" -- #3
    set ImageRef to open Photo
    save ImageRef as TIFF in newPath -- #4
    close ImageRef
    set end of DonePhotos to Photo -- #2
    end if
    end repeat
    end tell
    tell application "Finder"
    delete DonePhotos -- #2
    end tell
    end run
    Hope this may help,
    H

  • Help needed with a layout problem

    I'm trying to build a JTabbedPane where each tab has a grid of buttons. The number of buttons is variable, and I'd like the buttons to flow sort of like with FlowLayout, with four columns. I need all the buttons to be the same size, even across tabs. I tried GridLayout, which doesn't work when I have too few buttons to fill a row. It fails in different ways, depending on how I set things up. If I try to set the layout to GridLayout(0, 4) (four columns), then if one tab has one row and another has two, the buttons on the one-row tab expand vertically to the height of the two-row tab. If I try GridLayout(2,4), then if a tab has only one button, it expands horizontally to the maximum width of any of the tabs. (It also has the further problem that if the maximum number of buttons on any tab is 6, they are placed in a 2x3 array; I'm trying to get them to be 4 buttons on the first row and 2 on the second.)
    I'm hoping there's a standard layout manager that can do the job, but I'm not too familiar with the Swing manager classes. Can I get what I want without writing my own layout manager?
    Thanks,
    Ted Hopp
    [email protected]

    I didn't think it was specifically a Swing question.Well, its either Swing or AWT, people who develop GUIs are the ones who are going to have experience using layout managers.
    but if someone can point the way to how to do this with GridBagLayout, nested containersSince you finished reading the tutorial, what have you tried? You've explained your problems using a single layout manager, so what problems are you having using nested layout managers?
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Help needed with a login problem (1 of 3 posts)

    abc

    I didn't think it was specifically a Swing question.Well, its either Swing or AWT, people who develop GUIs are the ones who are going to have experience using layout managers.
    but if someone can point the way to how to do this with GridBagLayout, nested containersSince you finished reading the tutorial, what have you tried? You've explained your problems using a single layout manager, so what problems are you having using nested layout managers?
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Help needed with past exam problem!! Referencing an array.

    /*Write a segment of code that takes as its input an integer value for a sum of money in cents.
    The program should return a list of notes and coins required to make up the sum of money.
    The following run time display helps explain what is required.
    Amount entered:84
    50 20 10 2 2
    Hint: The following line of code is where you could start.
    int [] d = {5000,2000,1000,500,200,100,50,20,10,5,2,1};
    Explain your reasoning.*/
    package solutions;
    import java.util.Scanner;
    public class FourB {
         public static void main(String[] args) {
              Scanner sc = new Scanner(System.in);
              System.out.print("Please enter an amount of money in cents : ");
              int amount = sc.nextInt();
              int [] d = {5000,2000,1000,500,200,100,50,20,10,5,2,1};
              for(int i = 0; i < d.length; i++)
                   if(amount > amount % d)
                        //System.out.print(amount + " ");
                        amount = amount % d[i];
                        System.out.println(d[i]);
    The code is running ok but will only output array element once..
    For example with amount 444 it outputs 200,20,2 instead of 200,200,20,20,2,2.
    Any help is greatly appreciated. Also this is my first post so if its in the wrong location please advise. Thanks

    The basic flaw in the algo your instructor gave is that a for/next loop is a set number of loops as given. The problem given cannot be fit into a set number of loops... (but alas, it can, but not in my example) do as previously stated in posts: follow the process you would use manually and notice the phrasing you use, actually vocalize it outloud may help, it will give you your approach to the solution.
    here's a solution to your problem, it is not done the way the instructor wanted, nor at any level you can turn in, but you can see what it looks like--Merry Late Christmas:
    public class JMoneyLoops {
      public JMoneyLoops(int iStart){ //constructor
        int[] iMoney={10000, 5000, 2000, 1000, 500, 200, 100, 50, 25, 10, 5, 1}; //denominations array
        int[] iMoneyCount={0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //count of each denomination
        int i=0; //array index--used to select denomination and count elements
        int iWork = Math.abs(iStart);  //retain initial value, but have amount to work, account for negative numbers too
        for(boolean b=false; b!=true;){ //for loop modified to be a while loop
          if(iWork-iMoney>=0){ //is the amount left bigger or equal to the denomination
    iMoneyCount[i]++; //increment the denominstion counter
    iWork-=iMoney[i]; //subtract the amount we just saved (denomination amount)
    }else{ //it's not
    i++; //move to next denomination and count element
    if(i==iMoney.length) b=true; //flagged exit when at the end of the array
    System.out.println("Given Amount: "+iStart); //report what we started with
    for(int j=0;j<iMoney.length;j++){ //iterate through all elements
    System.out.println(Integer.toString(iMoney[j])+" x "+Integer.toString(iMoneyCount[j])); //report our results
    public static void main(String[] args) { //java start--main
    if(args.length<1){ //did we get a value passed in
    System.out.println("Please enter an amount in cents on the command line."); //complain because we did not
    System.out.println(); //give a little space at the bottom between runs
    }else{
    new JMoneyLoops(Integer.parseInt(args[0])); //initialize the Object--entry point

  • Help needed with Image Events problem

    Hi there I'm writing what I thought was a simple script to convert a folder full of images from jpg to tiff. But the script fails when trying to convert the first image in the folder. Instead of converting the image, Preview opens with the image shown and I get this error message: error "The variable ImageRef is not defined." number -2753 from "ImageRef".
    I have seen some posts about other people having the same problem, but I haven't seen any solutions.
    Here's the script.
    on run
    tell application "Finder"
    set PicturesFolder to ((path to home folder) as string) & "Pictures:SenseCam" as alias
    set Photographs to (get entire contents of PicturesFolder) as alias list
    end tell
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    if (Photo as string) ends with "jpg" then
    set ImageRef to open Photo
    save ImageRef in Photographs as TIFF
    close ImageRef
    end if
    end repeat
    end tell
    tell application "Finder"
    repeat with Photo in Photographs
    delete Photo
    end repeat
    end tell
    end run
    Thanks in advance for any help.
    John

    Hello
    You may try something like the modified code below.
    Noticiable changes :
    #1 - Removed the parentheses. Your original code won't yield alias list but a list of finder objects, which is the reason why Preview opens the image. (The statment 'open finderObject' behaves the same as double clicking it in Finder)
    #2 - Only delete the original jpeg files which are converted to tiff.
    #3 - Build new path for converted image.
    #4 - Save in new path. (When saving image in a format other than its original format, always save the image to a new file and do not attempt to overwrite the source file.)
    cf.
    http://www.macosxautomation.com/applescript/imageevents/08.html
    on run
    tell application "Finder"
    set PicturesFolder to (path to home folder as string) & "Pictures:SenseCam:" as alias
    set Photographs to get entire contents of PicturesFolder as alias list -- #1
    end tell
    set DonePhotos to {} -- #2
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    set Photo to Photo's contents
    set oldPath to Photo as string
    if oldPath ends with ".jpg" then
    set newPath to oldPath's text 1 thru -5 & ".tif" -- #3
    set ImageRef to open Photo
    save ImageRef as TIFF in newPath -- #4
    close ImageRef
    set end of DonePhotos to Photo -- #2
    end if
    end repeat
    end tell
    tell application "Finder"
    delete DonePhotos -- #2
    end tell
    end run
    Hope this may help,
    H

  • Help needed with Export Data Pump using API

    Hi All,
    Am trying to do an export data pump feature using the API.
    while the export as well as import works fine from the command line, its failing with the API.
    This is the command line program:
    expdp pxperf/dba@APPN QUERY=dev_pool_data:\"WHERE TIME_NUM > 1204884480100\" DUMPFILE=EXP_DEV.dmp tables=PXPERF.dev_pool_data
    Could you help me how should i achieve the same as above in Oracle Data Pump API
    DECLARE
    h1 NUMBER;
    h1 := dbms_datapump.open('EXPORT','TABLE',NULL,'DP_EXAMPLE10','LATEST');
    dbms_datapump.add_file(h1,'example3.dmp','DATA_PUMP_TEST',NULL,1);
    dbms_datapump.add_file(h1,'example3_dump.log','DATA_PUMP_TEST',NULL,3);
    dbms_datapump.metadata_filter(h1,'NAME_LIST','(''DEV_POOL_DATA'')');
    END;
    Also in the API i want to know how to export and import multiple tables (selective tables only) using one single criteria like "WHERE TIME_NUM > 1204884480100\"

    Yes, I have read the Oracle doc.
    I was able to proceed as below: but it gives error.
    ============================================================
    SQL> SET SERVEROUTPUT ON SIZE 1000000
    SQL> DECLARE
    2 l_dp_handle NUMBER;
    3 l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    4 l_job_state VARCHAR2(30) := 'UNDEFINED';
    5 l_sts KU$_STATUS;
    6 BEGIN
    7 l_dp_handle := DBMS_DATAPUMP.open(
    8 operation => 'EXPORT',
    9 job_mode => 'TABLE',
    10 remote_link => NULL,
    11 job_name => '1835_XP_EXPORT',
    12 version => 'LATEST');
    13
    14 DBMS_DATAPUMP.add_file(
    15 handle => l_dp_handle,
    16 filename => 'x1835_XP_EXPORT.dmp',
    17 directory => 'DATA_PUMP_DIR');
    18
    19 DBMS_DATAPUMP.add_file(
    20 handle => l_dp_handle,
    21 filename => 'x1835_XP_EXPORT.log',
    22 directory => 'DATA_PUMP_DIR',
    23 filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    24
    25 DBMS_DATAPUMP.data_filter(
    26 handle => l_dp_handle,
    27 name => 'SUBQUERY',
    28 value => '(where "XP_TIME_NUM > 1204884480100")',
    29 table_name => 'ldev_perf_data',
    30 schema_name => 'XPSLPERF'
    31 );
    32
    33 DBMS_DATAPUMP.start_job(l_dp_handle);
    34
    35 DBMS_DATAPUMP.detach(l_dp_handle);
    36 END;
    37 /
    DECLARE
    ERROR at line 1:
    ORA-39001: invalid argument value
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3043
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3688
    ORA-06512: at line 25
    ============================================================
    i have a table called LDEV_PERF_DATA and its in schema XPSLPERF.
    value => '(where "XP_TIME_NUM > 1204884480100")',above is the condition i want to filter the data.
    However, the below snippet works fine.
    ============================================================
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    l_dp_handle NUMBER;
    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    l_job_state VARCHAR2(30) := 'UNDEFINED';
    l_sts KU$_STATUS;
    BEGIN
    l_dp_handle := DBMS_DATAPUMP.open(
    operation => 'EXPORT',
    job_mode => 'SCHEMA',
    remote_link => NULL,
    job_name => 'ldev_may20',
    version => 'LATEST');
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'ldev_may20.dmp',
    directory => 'DATA_PUMP_DIR');
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'ldev_may20.log',
    directory => 'DATA_PUMP_DIR',
    filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    DBMS_DATAPUMP.start_job(l_dp_handle);
    DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    ============================================================
    I dont want to export all contents as the above, but want to export data based on some conditions and only on selective tables.
    Any help is highly appreciated.

  • Help needed with refreshing data

    hello OTN!!
    i am having a problem in refreshing the data each time i update it.
    the problem is that i have a tabular layout of my forms . i have made them all display items and whenever a user wants to update the data and he can click on a link on any row and a small pop up window comes up displaying the data in text boxes user can update an individual row of data but after updating the data when user come back on the tabulary laypout form the data does not refreshes it self and same old(not updated) row of data is displayed.
    i have passed parameters between the popup and tabular forms.plz help me urgently and tell me what should i do to refresh my data or behind what trigger i should write the code for refreshing the data. plus so far i have managed to make a button refresh which refreshes the things gaian by execute_query.but i wana do it automatically without pressing button and such .

    Well - you could reformat your drive to FAT32 using Disk Utility. Probably not the ideal solution, but it could work if you save the data first. I'd recommend using a different external drive formatted in FAT32, or maybe a large USB flash drive (or memory cards) if you've got one.
    I have several external drives and a drive enclosure. One (from SimpleTech) was automatically formatted as an NTFS drive (didn't see that notice before I plugged it into my PC at work). It wouldn't read on my iBook G4 but is OK on my MacBook. I think now that it mounts, I could probably reformat it if necessary. Another Western Digital drive came FAT32 formatted.

  • Urgent help needed with reading data from Cube

    Hi Gurus,
    Can anyone tell me how to read a value from a record in the CUBE with a key (combination of fields).
    Please provide if you have any custome Function Module or piece of code.
    Any ideas are highly appreciated.
    Thanks,
    Regards,
    aarthi

    Due to the nature of the cube design, that would be difficult, that's why there are API's, FMs, and MDX capabilities - to eliminate the need to navigate the physical structure.  Otherwise you would have to concern yourself with:
    - that there are two fact tables E and F that would need to be read.  The Factview could take of this one.
    - you would want to be able to read aggregates if they were available.
    - the fact table only as DIM IDs or SIDs (for line item dims) to identify the data, not characteristic values.  A Dim ID represents a specific combination of characteristic values.

  • Pros help needed with post data code

    i needed to change the code below to post the userAnswer from radio button group,  to an ASPX page so i can read the data in and post it to a database. can anyone help. thanks
    btnCheck.addEventListener(MouseEvent.CLICK, checkAnswer);
    function checkAnswer(evt:MouseEvent):void {
    userAnswer = String(rbg.selectedData);
        messageBox.text =  userAnswer + " has been clicked";

    //Create the loader object
    var prodloader:URLLoader = new URLLoader ();
    //Create a URLVariables object to store the details
    var variables: URLVariables = new URLVariables();
    //Createthe URLRequest object to specify the file to be loaded and the method ie post
    var url:String = "url here";
    var prodreq:URLRequest = new URLRequest (url);
    prodreq.method = URLRequestMethod.POST;
    prodreq.data = variables;
    function submitHandler(event:Event):void {
        variables.productId = whatever;
        prodloader.load(prodreq);
        btnSubmit.addEventListener(MouseEvent.CLICK, submitHandler);
        function contentLoaded(event:Event):void {
           //Stuff here
            prodloader.addEventListener(Event.COMPLETE, contentLoaded);

  • Help needed with a video problem

    I have a strange video behaviour on my imac g5 2gh
    all the transparencies on the finder have small groups of lines on it, like iiiiiiiiiiii :::::: iiiiiiiii iiii :::::::::
    on the icons and on the mouse cursor,
    may I have some help
    Fred
    a mac fan since 1984

    Apple Discussions!
    It would help if you advised all the troubleshooting efforts you have tried to resolve your issue. This will avoid the +"been there, done that"+ scenarios.
    Did you disconnect all devises from your computer except for the keyboard & mouse?
    Have you repaired permissions & restarted your computer?
    ============
    Which "model" & "generation" G5 iMac do you have?
    Need this info so that the knowledgeable users can provide you with the proper troubleshooting solution(s).
    http://docs.info.apple.com/article.html?artnum=301724-en How to identify your iMac
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh355.html Getting information about your computer
    You can have this info displayed on the bottom of every post by going to 'My Settings' which is located in the column on the right under your name, and filling in the information asked for.
    Thank you

  • Please help me with 3g data problems

    ive had an iphone 4 for about 4 months,about 3 weeks ago 3g data stopped working,it is on in settings but nothing internet related will open,it says you must be connected to the internet.Wifi works fine. If i turn off wifi and turn data on then reset network settings the 3g data works, but as soon as i turn it off then on it stops working?
    I just updated to 4.2.1 and it is still doing it?
    im on iphone 4 with bell Canada? thanks for any help guys.

    Hey,
    Did you call your service provider to see if any upgrades or repair is being done near your area that may affect your data service?

Maybe you are looking for