FM and FX format specifier.

How could I turn off FM or FX format specifier in oracle forms builder? I mean to say , where I would find these format specifiers , so that I could turn 'em off and won't get error ORA 01850?

Sir
After using Date type, I'm getting ORA-01858
My coding:
BEGIN
GO_BLOCK('block4');
FIRST_RECORD;
LOOP
     IF :SYSTEM.LAST_RECORD <> 'TRUE' THEN
INSERT INTO tender_opening_supp
( TOS_ENQ_NO,TOS_NATURE_OF_BID,TOS_SUPP_CODE,TOS_BID_SEAL_CONDN,TOS_BID_RECPT_DT_TM,TOS_REPRESENTATIVE_NAME,
TOS_REPRESENTATIVE_DESIGN)
VALUES
(:block3.ten_num_2,:block3.nature_of_bid,:block4.ven_num,:block4.radio_group5,
to_date(:block4.ten_rec_dt || :block4.ten_rec_tim,'DD/MM/YYYY HH24:MI:SS'),
:block4.repr_name,:block4.repr_desg);
     NEXT_RECORD;
     ELSE
     INSERT INTO tender_opening_supp
( TOS_ENQ_NO,TOS_NATURE_OF_BID,TOS_SUPP_CODE,TOS_BID_SEAL_CONDN,TOS_BID_RECPT_DT_TM,TOS_REPRESENTATIVE_NAME,
TOS_REPRESENTATIVE_DESIGN)
VALUES
(:block3.ten_num_2,:block3.nature_of_bid,:block4.ven_num,:block4.radio_group5,
to_date(:block4.ten_rec_dt || :block4.ten_rec_tim,'DD/MM/YYYY HH24:MI:SS'),
:block4.repr_name,:block4.repr_desg);
     EXIT;
     END IF;
END LOOP;
FIRST_RECORD;
STANDARD.COMMIT;
END;
Now tell me what do I do?

Similar Messages

  • How do I change the spacing before or after a hard return in Pages 5.5.2?    I am working on an academic article and need to specify paragraph formatting (OS X Yosemite 10.10.2)

    How do I change the spacing before or after a hard return in Pages 5.5.2?    I am working on an academic article and need to specify paragraph formatting (OS X Yosemite 10.10.2)

    Hi Michele,
    Select the paragraphs where you want to change the spacing.
    Format Panel > Text > Spacing
    You can change 1.0 - Single to something else, or type a number in Before or After.
    Regards,
    Ian.

  • With Reports 10G can you customize you message and stop formatting?

    Oracle, states to come here for answer. they said, OTN should be able to help.
    If any one knows how this can be done can you please help me out?
    thanks,
    We were told this was fixed with 10G so we upgraded to 10G. We have a
    report and we want it to execute if it's less than 10 records if not we want a
    message to come up that the report needs to be scheduled.
    Well we run the report and it displays exceeded record count but the format
    still runs so no time saved on the web.
    If the record count was exceeded we want to HALT the system and not go any
    farther.
    Now if we could modify the system message 1825 we would be o.k. But we don't
    know if that is going to work. If we could change the message we would be
    o.k. with that. that would mean changing the system codes though.
    ### How is the Report being called (Command line, URL or via Oracle Forms): ###
    If false comes back in the beginning then we don't want any report formatting
    to be done. Right now the format is done it seems but no data is displayed
    because criteria isn't met.
    So we dont wnat the formatting to be run when criteria isn't met. But for
    some
    reason it still runs and takes time.
    See we have some reports on the web that can only be ran by date range right
    now the clients can only run the reports for a 6 months range.. Well some
    clients have a lot smaller record count. So we want to change the way the
    reports are ran to a records count. If the count is large than said amount
    then a message comes up that states the report has to be scheduled. If the
    amount is under said amount then the report runs.
    So at this time in the report we do a count then we move onto will the report
    run or not if over the amount we want to abort the process but we don't want
    the client to see the abort. We definately don't want the client to sit and
    wait for the format to run when NO Data is to be returned.
    ### Error messages and error scenario: ###
    So what we want is too see a message "Schedule the report count exceeded" and
    NO formatting done. If under amount we want the report to run.
    ### Provide a detailed step-by-step description of your problem or question: ###
    Or is there a way to customize the messages the client / users will see. And
    no formatting time for no records returned.
    Contact me via : E-mail -> [email protected]
    Text continued in next action...
    20-SEP-04 18:39:53 GMT
    Text continued from previous action...
    20-SEP-04 19:18:51 GMT
    New info : Is there a way if the error messages have to come up that we can
    hide the message or have another screen cover that error message something to
    cover the message so that the user doesn't see the error message.
    20-SEP-04 19:30:23 GMT
    Hi Darlene,
    Thank you for using MetaLink. Iam currently working on a very critical issue.I shall review/research your issue at the earliest opportunity and w
    ill update the SR / call you as soon as we have relevant information. Thank you
    for your patience.
    Best Regards,
    Seema,
    Oracle Support Services
    STATUS
    =======
    @WIP -- Work In Progress
    20-SEP-04 19:30:30 GMT
    Email Update button has been pressed: Sending email to [email protected]
    21-SEP-04 00:32:18 GMT
    Hi Darlene!
    If you are calling the report from a form, try using the EXIT_FORM line in your code.
    Thanks and Regards,
    Seema
    21-SEP-04 00:33:01 GMT
    Email Update button has been pressed: Sending email to [email protected]
    21-SEP-04 14:09:20 GMT
    New info : We will try it and let you know.
    21-SEP-04 14:19:04 GMT
    New info : We are not calling the report from a form so this won't work. Any
    other way. We are needing to do this badly.
    21-SEP-04 14:39:06 GMT
    New info : Can I get detailed steps about how to customize the system message
    or hide the message when we abort the report?
    21-SEP-04 15:38:39 GMT
    Hi Darlene!!
    As talked to you on phone, here are the steps for you to try.
    The below has been run as a test case using emp table in scott schema of a database
    1) create a summary coloumn say cs_1 in the data model.
    2) point the function to count.
    3) Point the source to what ever's count you want it to be pointed to(say empno of emp table of
    scott schema)
    4) create a user parameter say NO_ROWS
    5) in its property palette make its data type number and initial value as 1
    6) I had teh following query for my report:
    select empno, ename from emp
    where rownum <= :no_rows
    This means that the report that will be generated will consist of a total no of NO_ROWS(that we
    shall be specifying at run time). The before report trigger(mentioned in 7 below) shall assure
    that whenever we specify NO_ROWS greater than 5 then the report will display a customized pop up
    message.
    7) create a before report trigger as:
    function BeforeReport return boolean is
    user_excp EXCEPTION;
    begin
    if :cs_1 >5 then
    raise user_excp;
    return (false);
    else
    return true;
    end if;
    EXCEPTION
    WHEN user_excp then
    SRW.MESSAGE(30, 'Data is more please schedule this report:');
    raise SRW.PROGRAM_ABORT;
    return (false);
    end;
    This way when u run a report, an argument is asked whether how many rows do you want to be
    displayed as in the parameter NO_ROWS. then you specify the number. If that number is greater
    than 5(in this case, due to if :cs_1 > 5 then....) then it will pop up a message saying "Data is
    more please schedule this report:"
    In case you do not want to specify NO_ROWS..then you need not put that and modify the report
    query as "select empno, empname from emp;" i.e. without where clause.
    21-SEP-04 16:49:30 GMT
    New info : we will try this then update the TAR.
    21-SEP-04 16:58:09 GMT
    ok you update the tar when you try the above steps.
    STATUS:
    @CUS
    23-SEP-04 02:16:00 GMT
    New info : Information from the person that did this suggestion step by step.
    I tried this step by step, but unfortunately, it doesn't work the way we want.
    First with this suggestion, the user needs to choose how many records they
    want
    to get, or we default a number of records, in order to run the report. The most
    important thing is, whenever you specify the statement return false or raise
    SRW.PROGRAM_ABORT in the before report trigger, the system message will pop up.
    I really hope that people from Oracle would let us know how to customize the
    system message or hide it.
    23-SEP-04 14:23:04 GMT
    New info : I just thought that we have some sort of message, which I guess is
    from the database, when we do claim search on client inquiry. I am just
    wondering if we could try the same thing to the report.
    The some sort of message looks like this on dev box:
    Your search exceeded 5000 records and will surpass the capabilities of this
    connection. Please narrow the search criteria and resubmit.
    It's just a thought, not sure if it's going to work.
    When could we have the DBA Make this change. The servlet.properties???
    23-SEP-04 17:30:55 GMT
    REQUESTED INFORMATION PROVIDED
    ===============================
    Hi Darlene,
    Thank you for providing the requested information. I am currently reviewing/resea
    rching the situation and will update the TAR / call you as soon as I have additi
    onal information. Thank you for your patience.
    Best regards,
    Ajit
    STATUS
    =======
    @WIP -- Work In Progress
    23-SEP-04 18:04:31 GMT
    UPDATE
    =======
    Hi Darlene,
    We cannot modify the system messages nor do I think there is a method to hide the system message. The message that was coming is
    due to the raise srw.program_abort command, which is the element through which
    we can abort the program.
    Thanks
    Best Regards
    Ajit
    @CUS
    23-SEP-04 18:29:26 GMT
    New info : Can you please look into a way that we can get something to work?
    23-SEP-04 18:49:28 GMT
    Hi Darlene,
    I am sorry to say that but I don't think there is any any workaround to this because the system message is what is generated by the oracle reports i
    nternally. Still if you wish you may refer to the otn discussion forum which is
    maintained by teh product management group and post a new thread on it. the link
    to the forum is Reports
    Also since nothing can be done on our side I don't see any reason to keep this TAR open an
    d if you wish we can soft close this.
    Thanks
    Regards
    Ajit.
    New info : Shouldn't there always be a way to do something? I don't understand
    why we were told in 10G that this could be done and now we are told it can't.

    K T wrote:
    Yep - not nice...unless you do a TE 'Get Info' in the Finder and √ the 'Open in 32-bit mode' box and try again...then, all seems well in snow leopard land.
    Really? I figure since I have a Core Duo chip, everything always opens in 32-bit mode. In any case, I did file a bug report and will give your suggestion a try later today.

  • Format specifiers for spreadsheet to string

    I have used the format specifiers many times before with no problems but this one has stumped me.  I scan a delimited spreadsheet string and convert it to string array.  I then write to a string table.  I would like the format to be X.XXE+N.   I have tried several of the examples to no avail.  One would think that %.2e should do the trick, I sure can't make her work.   All previous posts regarding format specifiers make sense to me, but do not seem to apply to this.  Does the "spreadsheet to string" act differently than other conversions?  Thanks for any help!
    I have included my prototyping trials.  (LV7.1 on XP)
    Attachments:
    format specifiers.vi ‏38 KB

    Thanks Dennis, it is good to have a place to go for answers!
      That is not really what I wanted to hear though, that I would have to change the way I'm doing it, not just change a specifier.  That is going to take at least 1 more function to "wire-up".  Sarcasm is so hard to pen!!
    Gold

  • 3D annotations and File format Conversion

    I am writing a plug-in for Acrobat Extended Pro that will export embedded 3D files in other formats. I only have access to a U3D converter right now but Acrobat saves some files in their PRC format. Is there some way to have Acrobat convert PRC files into U3D?
    Thank you in advance for your help.

    I've figured everything out. The problem I was having was because I was using fwrite() in text mode instead of binary mode. :p
    For anyone reading this later, this is how you convert from PRC -> U3D and back:
    1) load the Acrobat 3D Dll (A3DLIB.dll) and do all of the initializations.
    2) Then, load the PRC file with the function A3DAsmModelFileLoadFromFile().
    3) Then take the model structure you get back and pass it to A3DAsmModelFileWriteToFile(). The A3DAsmModelFileWriteParametersData * parameter will contain the format specifier.
    You can save these files as either PRC, U3D version 1 or U3D version 3.
    Look here for the full docs: http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/API_References/PRCReference/3D_ API_Reference/index.html

  • Format specifiers in format string param.

    I use the format specifier %.8e to format a single precision 2D array into
    an ASCII file, and i wanted to know what other types of format specifiers
    i can use. But the help or the manual does not tell which types are valid.
    Where can i find out? -or can anyone tell me?
    (i use LabVIEW 6.i)
    sincerely
    /lodahl
    % Best regards;Brian Lodahl ; [email protected]
    % http://www.kom.auc.dk/~lodahl ; RISC group 850;Room A6-118;
    % RF Integrated Systems & Circuits (RISC);Aalborg University;
    % Frederik Bajers Vej 7;DK-9220 Aalborg Ø;Denmark
    clc;s=zeros(1,52);c=[+'a':+'z',' '];f=5;a=clock;a=fix(f*a(6));
    while(1)while(1)b=clock;b=fix(f*b(6));if(b~=a)break,end,end,a=b;
    str=('my name is brian and i am just another matlab hacker');
    k=find(s~=s
    tr);n=length(k);if~n,break,end;x=c(ceil(27*rand(1,n)));
    s(k)=x;fprintf('\r%s',s);end;fprintf('\n');clear%;clc;str

    Not being a C programmer (the format specifiers were originally a C tool that LabVIEW inherited), the way that I learned them was to use the Edit Format String dialog that is available by right-clicking on the Format Into String function and the Edit Scan String dialog that is available by right-clicking on the Scan From String function. You can make your formatting choices and see the resulting format specifier.
    But remember... reverse engineering is a violation of section 3 of your LabVIEW software license agreement ;-)
    -Jim

  • Resizing portrait and landscape formats

    Is it possible to resize portrait and landscape format photographs in one single batch process. So that for example all portrait formats become 800 wide and all landscape formats become 800 high? Or do i have to put them in separate folders before resizing?

      Separate folders unfortunately in Elements, unless you first rotate, which is not recommended. You can do it in Lightroom by export and simply specifying the dimension of the long side.
     

  • Regular expression and output format

    hi all,
    i have following scenario-
    regular expression: [0-9]{3}-[0-9]{3}-[0-9]{4}
    generated value by the above regular expression: 123-234-6789
    output format to display the generated above value: xxx-xxx-$1
    now i need to display the generated value (123-234-6789) in the specified output format (xxx-xxx-$1) and the final output will be xxx-xxx-6789
    how is it possible?
    Note: here regular expression and output format can vary
    br,
    bashar

    Hi, Bashar
    You can solve this problem by using the Data Masking Technique.
    Masking data means replacing certain fields with a Mask character (such as an X). This effectively disguises the data content while preserving the same formatting on front end screens and reports. For example, a column of credit card numbers might look like:
    4346 6454 0020 5379
    4493 9238 7315 5787
    4297 8296 7496 8724
    and after the masking operation the information would appear as:
    4346 XXXX XXXX 5379
    4493 XXXX XXXX 5787
    4297 XXXX XXXX 8724
    The masking characters effectively remove much of the sensitive content from the record while still preserving the look and feel. Take care to ensure that enough of the data is masked to preserve security.
    It would not be hard to regenerate the original credit card number from a masking operation such as: 4297 8296 7496 87XX since the numbers are generated with a specific and well known checksum algorithm.
    Best Regards,
    Mahfuz Khan

  • Formatting specifier for int64

    Hi,
    dealing with 64 bit integers I receive the run-time error message: parameter type incompatible with format specifier.
    I am using
    static long long int counts = 0;
    and the function FmtFile ( file_handle, %d, counts )
    It appears that the formatting library does not support int64... ?
    I just found the solution: use FmtFile ( file_handle, %d[b8], counts )...

    Completely agree once again. This was promised for the spring of this year and we are now in July, I put up a request for this a little while back and mac_helbu asked on this forum why I would want a client breaking a design by giving them  the ability to edit and change font styles etc. Clients want and should be able to change formatting on any modern site, this is not the 1990’s.
    You are not very helpful sir

  • Why I am I getting an error saying missing Format specifier 's'

    I keep gettting an error when I try to run this program it says that I am missing a format specifier, I chacked and cannot find where it is missing everything is there.
    The error message when ran is:
    Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier 's'
    at java.util.Formatter.format(Formatter.java:2431)
    at java.io.PrintStream.format(PrintStream.java:920)
    at java.io.PrintStream.printf(PrintStream.java821)
    at Inventory2.printString(Inventory2.java:177)
    at Pens.stringPrint(Pens.java:83)
    at PensTest.main(PensTest.java:21)
    The superclass is Inventory2
    //Nicole Hammers
    //Inventory2
    import java.util.Arrays;
    public class Inventory2
      private String productName[];
      private String productNum[];
      private String temp[];
      private double productUnits[];
      private double productPrice[];
      private int b;
      public Inventory2( String itemName[], String itemNum[], String arraytemp[], double amountUnits[], double pricePerUnit[], int a )
        temp = arraytemp;
        sortProductName( itemName );
        sortProductNum( itemNum, arraytemp, itemName  );
        sortProductUnit( amountUnits, arraytemp, itemName );
        sortProductPrice( pricePerUnit, arraytemp, itemName );
        setCounter( a );
      public String[] getTemp( String arraytemp[] )
        temp = arraytemp;
        return temp;
      public String[] getProductName( String itemName[] )
       sortProductName( itemName );   
       return productName;
      public String[] getProductNum( String itemNum[], String arraytemp[], String itemName[] )
       sortProductNum( itemNum, arraytemp, itemName );
       return productNum;
      public double[] getProductPrice( double pricePerUnit[], String arraytemp[], String itemName[] )
       sortProductPrice( pricePerUnit, arraytemp, itemName );
       return productPrice;
      public double[] getProductUnits( double amountUnits[], String arraytemp[], String itemName[] )
       sortProductUnit( amountUnits, arraytemp, itemName );
       return productUnits;
      public String[] sortProductName( String itemName[] )
        productName = itemName;
        Arrays.sort( productName );
        return productName;
      public int setCounter( int a )
        b = a;
       return b;
      public double findIndBaseTot( double price[], double units[], int b )
        double indBase;
        indBase = price[ b ] * units[ b ];
        return indBase;
      public double findAllBase( double productUnits[], double productPrice[] )
         double total = 0;
         for ( int c = 0; c < productUnits.length; c++ )
           total += productUnits[ c ] * productPrice[ c ];
         return total;
      public String[] sortProductNum( String itemNum[], String arraytemp[], String itemName[] )
       temp = getTemp( arraytemp );
       productName = sortProductName( itemName );
        String arraynew[] = new String[4];
        for ( int c = 0; c < productName.length; c++ )
           for ( int d = 0; d < productName.length; d++ )
             if ( productName[ c ].equals( temp[ d ] ) )
                arraynew[ c ] = itemNum[ d ];}    
         productNum = arraynew;
         return productNum;  
      public double[] sortProductUnit( double amountUnits[], String arraytemp[], String itemName[] )
       temp = getTemp( arraytemp );
       productName = sortProductName( itemName );
        double arraynew[] = new double[4];
        for ( int c = 0; c < productName.length; c++ )
           for ( int d = 0; d < productName.length; d++ )
             if ( productName[ c ].equals( temp[ d ] ) )
                arraynew[ c ] = amountUnits[ d ];}
         productUnits = arraynew;
         return productUnits;  
      public double[] sortProductPrice( double pricePerUnit[], String arraytemp[], String itemName[] )//Sorts double type array according to how string type array is sorted.
       temp = getTemp( arraytemp );
       productName = sortProductName( itemName );
        double arraynew[] = new double[4];
        for ( int c = 0; c < productName.length; c++ )
           for ( int d = 0; d < productName.length; d++ )
             if ( productName[ c ].equals( temp[ d ] ) )
                arraynew[ c ] = pricePerUnit[ d ];}
         productPrice = arraynew;
         return productPrice;  
    public void printString( String itemName[], String arraytemp[], String itemNum[], double amountUnits[], double pricePerUnit[], int a )
        productName = getProductName( itemName );
        productNum = getProductNum( itemNum, arraytemp, itemName );
        productUnits = getProductUnits( amountUnits, arraytemp, itemName );
        productPrice = getProductPrice( pricePerUnit, arraytemp, itemName );
        b = setCounter( a );
       System.out.printf( "%s: %17s \n%s: %15s \n%s :%21.2f \n%s: $%18.2f \n%s: $%19.2f \n%s: $%17.2f \n ", "Product Name", productName[ b ], "Product Number", productNum[ b ], "Quantity", productUnits[ b ], "Unit Price", productPrice[ b ], "Base Cost", findIndBaseTot( productPrice, productUnits, b ) );
    }the subclass
    //Subclass Pens
    import java.util.Arrays;
    public class Pens extends Inventory2
      private double refee;
      public Pens( String itemName[], String itemNum[], String arraytemp[], double amountUnits[], double pricePerUnit[], int a )
         super( itemName, itemNum, arraytemp, amountUnits, pricePerUnit, a );
      public int callcounter( int a )
       a = super.setCounter(a);
       return a;
      public double findRestockFee( double price[], double units[], int a )
        double fee;
        fee = super.findIndBaseTot( price, units, a ) * .05;
        return fee;
    public double findIndTot( double price[], double units[], int a )
      double fee;
      double base;
      double indTot;
      fee = super.findIndBaseTot( price, units, a ) * .05;
      base = super.findIndBaseTot( price, units, a );
      indTot = base + fee;
      return indTot;
      public double findTot( double productUnits[], double productPrice[] )
        double fee = 0;  
        double total = 0;
        fee = super.findAllBase( productUnits, productPrice ) * .05;
        total =  super.findAllBase( productUnits, productPrice ) + fee;
        return total;
      public double findTotUnits( double amountUnits[] )
        double total = 0;
        for ( int a = 0; a < amountUnits.length; a++ )
          total += amountUnits[ a ];
        return total;
      public double findAllFee( double amountUnits[], double pricePerUnit[] )
       double fee;
       fee = super.findAllBase( amountUnits, pricePerUnit ) * .05;
       return fee;
      public void stringPrint( String itemName[], String arraytemp[], String itemNum[], double amountUnits[], double pricePerUnit[], int a )
        super.printString( itemName, arraytemp, itemNum, amountUnits, pricePerUnit, a );
      public void print( String itemName[], String arraytemp[], String itemNum[], double amountUnits[], double pricePerUnit[], int a )
        double refee = findRestockFee( pricePerUnit, amountUnits, a );
        double indTot = findIndTot( pricePerUnit, amountUnits, a );
        System.out.printf( "Restocking Fee:$%17.2f \n%s: $%17.2f \n\n", refee, "Total Cost", indTot );
      public void printAll( String itemName[], double amountUnits[], double pricePerUnit[] )      
        System.out.printf( "%s: %17.2f \n%s: $%17.2f \n%s:$ %17.2f \n%s:$ %.2f \n", "Total Units of Pens", findTotUnits( amountUnits ), "Base Cost of Pens", super.findAllBase( amountUnits, pricePerUnit ), "Restock Fee of Pens", findAllFee( amountUnits, pricePerUnit ), "Total Cost of Pens", findTot( amountUnits, pricePerUnit ) );
    }and the the program to make it all work
    //InventoryMain
    public class PensTest
    public static void main( String args[] )
      String itemName[] = { "Fine Point", "Ball Point", "Gell", "Retractable" };
      String arraytemp[] = { "Fine Point", "Ball Point", "Gell", "Retractable" };
      String itemNum[] = { "123456", "234567", "345678", "456789"};
      double amountUnits[] = { 23, 16, 27, 11 };
      double pricePerUnit[] = { 3.99, 1.99, 2.99, 3.49 };
      int a = 0;
      Pens pens = new Pens( itemName, arraytemp, itemNum, amountUnits, pricePerUnit, a );
      for ( a = 0 ; a < itemName.length; a++ )
       pens.callcounter( a );
       pens.stringPrint( itemName, arraytemp, itemNum, amountUnits, pricePerUnit, a );
       pens.print( itemName, arraytemp, itemNum, amountUnits, pricePerUnit, a );
       pens.printAll( itemName, amountUnits, pricePerUnit );
    }I know I'm missing something but I cannot figure out what.

    Maybe something like this to start. - %
    package inventory;
    import java.io.Serializable;
    import java.text.NumberFormat;
    * Product
    * User: Michael
    * Date: Sep 22, 2007
    * Time: 8:39:12 PM
    public class Product implements Serializable, Comparable
       public static final NumberFormat DEFAULT_CURRENCY_FORMAT = NumberFormat.getCurrencyInstance();
       private String name;
       private int item;    
       private double quantity;
       private double price;
       public Product()
          name = "";
          item = 0;
          quantity = 0;
          price = 0.0;
       public Product(String title, int item, double quantity, double price)
          this.name = title;
          this.item = item;
          this.quantity = quantity;
          this.price = price;
       public void setName(String name)
          this.name = name;
       public String getName()
          return name;
       public void setItem(int item)
          this.item = item;
       public int getItem()
          return item;
       public void setQuantity(double quantity)
          this.quantity = quantity;
       public double getQuantity()
          return quantity;
       public void setItemPrice(double price)
          this.price = price;
       public double getItemPrice()
          return price;
       public double calculateValue()
          return price * quantity;
       public int compareTo(Object o)
          Product p = (Product) o;
          return (name.compareTo(p.name));
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("Product{");
          builder.append("item=").append(item);
          builder.append(", name='").append(name).append('\'');
          builder.append(", quantity=").append(quantity);
          builder.append(", price=").append(DEFAULT_CURRENCY_FORMAT.format(price));
          builder.append('}');
          return builder.toString();
    }

  • Unable to load wsdl. if currently online please verify the uri and or format of the wsdl

    Hi,
    i have one aspx page in which i have embeded an swf object,
    which calls webservice to load data,
    it works fine on localhost,
    but when uploaded it gives the error no 2032 stream error ,
    i added the crossdomain.xml in the root project then that error was gone and found the following error,
    "unable to load wsdl. if currently online please verify the uri and or format of the wsdl"
    Can anybody help me with this?
    Any elp or suggestion will be appriciated.
    Thank You.
    Bhavika

    I had the same error message and I believe I added the -use-network=true to the additional compiler arguments to fix the problem.  The default value for this should be true.
    Sorry if this doesn't help...It's just a guess.

  • Converting from PDF directly to Java Objects/XML (and PDF format questions)

    Hi,
    I posted this originally in the Acrobat Windows forums but was told I might have more luck here, so here goes:
    I am desperately trying to find a tool (preferably open source but commercial is fine also) that will sit on top of a PDF and allow me to query it's text for content and formatting (I don't care about images). I have found some tools that get me part of the way there, but nothing that seems to provide an end-to-end solution but is quite lightweight. My main question is WHY are there so many tools that go from PDF to RTF, and many tools that go from RTF to XML, but NONE that I can find that go PDF to XML.
    To clarify, by formatting I simply mean whether a line/block of text is bold/italic, and its font size. I am not concerned with exact position on the page. The background is that I will be searching PDFs and assigning importance to whether text is a heading/bodytext etc. We already have a search tool in place so implementing a pure PDF search engine is not an option. I need a lightweight tool that simply allows me to either make calls directly to the PDF OR converts to XML which I can parse.
    Some tools I have tried:
    1) PDFBox (Java Library) - Allows the extraction of text content easily, but doesn't seem to have good support for formatting.
    2) JPedal (Java Library) - Allows extraction of text content easily, and supports formatting IF XML structured data is in the PDF (not the case for my data).
    3)  Nitro PDF (Tool) + RTF to XML (script) - This works quite nicely and shows that PDF to XML is possible, but why do I have to use 2 tools? Also, these are not libraries I can integrate into my app.
    4) iText (Java Library) - Seems great at creating PDFs but poor at extracting content.
    I don't really expect someone to give me a perfect solution (although that would be nice!).
    Instead, what I'd like to know is WHY tools support PDF to RTF/Word/whatever retaining formatting, and other tools support RTF to XML with the formatting information retained. What is it about PDF and RTF/Word that makes it feasible to convert that way, but not to XML. Also, as I found in 3) above, it is perfectly feasible to end up as XML from PDF, so why do no tools support this reliably!
    Many thanks for any advice from PDF gurus.

    XML doesn't mean anything - it's just a generic concept for structuring
    information.  You need a specific GRAMMAR of XML to mean anything.  So what
    grammar would you use?  Something standard?  Make up your own?
    However, there are a number of commercial and open source products that can
    convert PDF to various XML grammars - SVG, ABW, and various custom grammars.
    But the other thing you need to understand is that most PDF files do not
    have any structure associated with them (as you saw when using JPEDAL).  As
    such, any concepts of paragraphs/sections/tables/etc. Are WILD GUESSES by
    the software in question.

  • Exporting report as PDF and CSV formats same time with out executing DB query twice

    Post Author: cpriyanka
    CA Forum: Exporting
    I am using Crystal Report 9.0 version and Java.
    I am getting "PrintOutputController" from "ReportClientDocument"
    And then by calling export(ReportExportFormat.PDF) generating PDF format report.
    Now I need to generate both PDF and CSV format files same time. How can it be done?
    My understanding is when we call "export" it does the DB query execution and other functionality.
    In that case, if I call "export" two times with two different formats, then DB query will be executed twice and that takes lot of time.
    To avoid, is there a way I can all some API so DB query executed once, but I can export report in to multiple formats?
    I appreciate your help.
    Thanks.

    Post Author: cjmorris1201
    CA Forum: Exporting
    Hello,
    Are you using the "pull" or "push" method for your crystal reports?  If you are using the "pull" method (the report itself executes the sql) then I believe there is no way around having the query execute twice since it is fired off each time you open and export the report.
    If you use the "push" method, however, then you can just create the recordset/dataset and then set the datasouce once for the report.
    Here's a broad overview of push and pull though the Crystal Report Viewer is used.  The viewer may or may not be applicable in your case:
    http://aspalliance.com/265_Crystal_Report_for_Visual_Studio_NET#Page5
    Regards, Carl

  • How can I embed files of word, excel, and pdf format in a pdf document

    I have a word document of the product, which I am updating for next product release. However, there are some excel, word, and pdf files embedded within a word document. When I double click these embedded files in word, these files open in a new window. However, we deliver documentation to the customer in the pdf format. Therefore, when I am converting the word document in the pdf format, only an icon of the embedded file is displayed and the files do not open in a new window. Can someone let me know how can I embed these files (in word, excel, and pdf format) in a pdf document?

    You must attach them to the PDF file after it is created. You cannot embed file attachments onto a page as you can with Word.

  • Synced firefox, saved firefix sync key and made format to my computer, now I can't get it synced with formated computer - what can I do to get my passwords and bookmarks back?

    I synced my firefox and made format to my computer. I was hoping I can sync formated computer with my user. I even saved "firefox sync key". But now I can only make new sync and can' get my old passwords and bookmarks back. Is there any way i could get my passwords and bookmarks back?

    Add that computer to the Sync service as a new device.

Maybe you are looking for

  • I have problem with hotmail on my macbook

    i have problem with hotmail on my macbook when i add my hotmail acc to mac mail the mail app got froze and closes by itself, when i try open it again it does the same thing till i remove it.

  • Certificate not being read

    Hello all, We are using Cisco VPN anyconnect mobile 3.1.xx.  We are setup that when a user has a VPN certificate installed on the corporate computer it has full access (goes to a particular network subnet) to the network. If no certificate on pc (per

  • Need to Increase Font Size..

    Poor Eyesight. (Diabetes) I need a way to INCREASE the Font size and change Type of ALL DESKTOP Headers, dropdown menues and informational text WITHIN OSX. Just like the "APPEARENCE TAB" in "WINDOWS DISPLAY PROPERTIES" Is there any hope for ME? Third

  • Do I need "advanced license" to run MPLS on ME3600X?

    Those who have dealt with ME3600X switch, can you tell me if I need to purchase the "Advanced Metro IP Access License" in order to run L2/L3 MPLS VPN? The license is $3995 in addition. It is a big cost for us. More specifically, I want to know if the

  • Problem coverting pdf file

    I am trying to convert a pdf file to word but keep getting the following message 'An error has occurred while trying to acess this service, no other help is provided on screen