Format Numbers in BC4jJSP application(Urgent)

Hi,
I need to set the Format for a Number Fieled
I am using Jdev3.1.and My code in JSP goes like this
<jsp:useBean id="RowViewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
<%
RowViewer.initialize(pageContext, "Glenair_GlenairModule.PriceTblView");
RowViewer.setReleaseApplicationResources(true);
//RowViewer.render();
%>
</jsp:useBean>
<TD ALIGN=CENTER VLAIGN=top> <%= RowViewer.getRowSet().getCurrentRow().getAttribute("Price2") %></TD>
Here if Value of Price2 is 23.1.I need to display as 23.10 .Pls let me know if i can do using any existing classes in Jdeveloper etc..?Our deployment is pending due tot his problem
null

Originally posted by Sathish Kumar:Hi Satish,
The problem here is ,ViewCurrentrecord Databeadn is returning javaa.lang.object(and it is basically oracle.jbo.domain.Number object) and when I tried to use a variable to capure value like
<%String Pricc =(String) RowViewer.getRowSet().getCurrentRow().getAttribute("Price6") ;%>
It is returning null with a Application Error.
Do you have any more suggestions,pls let me know,It will be of great hep to me,And Where is Jdeveloper team??I am waiting for a answer from them also?
null

Similar Messages

  • Application Express 3.1 + BI-Publisher + problem with formating numbers

    Hello together!
    I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
    It works well, but I have a problem with formating numbers.
    In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
    In Template-Builder Preview it looks well.
    But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
    That means,
    1.454.234 become 1,454,234 in PDF-Report
    54,80 become 54.80 in PDF-Report
    Other than that, the layout is exactly the same like in Template Builder defined.
    What's wrong?
    Do I have to change any country parameter?
    Juliane

    I also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.

  • Format numbers in column chart

    Hi all,
    I want to display formated numbers in tooltip of column chart.
    Instead 60000 display 60,000...
    Is it possible?
    VC7 SP15 Flash runtime.
    Thanks,
    Ola
    Edited by: Ola Agiv on Sep 18, 2008 2:01 PM

    Hi,
    I tried your soln on my System as below.
    1.Input field L1
    2.Expression Field E1 with formula :NSTR(@L1, 'C'),
    3.Exepression Field E2 WIth formula :REPLACE(NSTR(@L1,'C'), '.', ',')
    I Had given Input for L1 as 10000.
    the output of E1,E2 is 10,000  Means output of both formulas returning same output.
    Could you plesae check this once .
    where you testing this
    i am working on SP16.
    Thansk,
    Govindu

  • New to formatting numbers

    The following is an assignment given to me in my intro to Java class.
    The program EmployeeTest calls different methods in Employee in order to print out the pay per individual, total pay, gross pay, and total net pay.
    While I know that the teacher wants me to use java.text.NumberFormat, I am unsure how to proceed. I have been able to format my numbers with the comma, but have no idea how to format the decimals. She wants the third decimal place DROPPEd, not rounded. Any help would be greatly appreciated.
    import java.util.Locale;
    import java.text.NumberFormat;
    import javax.swing.JOptionPane;
    public class EmployeeTest
         //declare variables
         static String results = ""; //used to store results
         static Employee empArray[] = new Employee[7]; //creates and initializes array of 8 employees
         static double totalTax; //used to store value of total taxes paid
         static double totalGrossPay; //used to store total gross pay
         public static void main(String args[])
              //declare hours array
              double hoursrArray[][] = { {12,7,8,8,8.5},
                             {8,10,8.5,8.5,9},
                             {8,7,11,9,7.5},
                             {8.5,6,7,10.5,6},
                             {7.5,8,8,12,10},
                             {9.5,7.5,8,12,10},
                             {5,6,3,2,8} };
              addHours(hoursrArray); //call method addHours
              buildResults();     //call method buildResults
              printResults(); //call method print Results
         //addHours method
         public static void addHours(double hrArray[][])
              double totalPay = 0.0; //initialize total pay to 0
              double hours = 0.0; //initialize hours as a double with value 0
              //for loop to send each row through class Employee
              for (int i = 0; i < hrArray.length; i++)
                        for (int j = 0; j < hrArray.length; j++)
                             hours += hrArray[i][j];
                        empArray[i] = new Employee("Employee" + i, i, hours);
                        hours = 0.0;
                        totalTax += empArray[i].calculateTax(); //add taxes from each run-through
                        totalGrossPay += empArray[i].getTotalPay(); //add pay from each run-through
              //walk through array, add hours worked for each
              //employee, create employee, assign to empArray, and calculate total pay
         //buildResults method
         public static void buildResults()//create method to build results
              NumberFormat nf1 = NumberFormat.getInstance(); //format numbers
              results = "Employee Results\n\n"; //interior title of info box "pay results"
              for (int i = 0; i < empArray.length; i++)
                   results += empArray[i].toString() + "\n"; //add results from empArray/Employee to results string
              results += "Total Gross Pay $" + nf1.format(totalGrossPay) + "\nTotal Total Tax $"
                   + nf1.format(totalTax) + "\nTotal Net Pay $" + nf1.format(totalGrossPay - totalTax);
         //printResults method
         public static void printResults() //create method to print results
              //print results to dialog box
              JOptionPane.showMessageDialog(null, results, "Pay Results", JOptionPane.INFORMATION_MESSAGE);
    public class Employee
         private String name;
         private int id;
         private double hoursWorked;
         private double totalPay;
         private static int numberOfEmployees = 0;
         public Employee()
              setName("");
              setId(0);
              setHoursWorked(0.0);
              setTotalPay(0.0);
              numberOfEmployees++;
         public Employee( String n, int i, double h )
              setName(n);
              setId(i);
              setHoursWorked(h);
              calculateTotalPay(h);
              calculateTax();     
              numberOfEmployees++;
         public String getName()
              return name;
         public int getId()
              return id;
         public double getHoursWorked()
              return hoursWorked;
         public double getTotalPay()
              return totalPay;
         public static int getNumberOfEmployees()
              return numberOfEmployees;
         public void setName(String n)
              name = n;
         public void setId(int i)
              id = i;
         public void setHoursWorked(double h)
              hoursWorked = h;
         public void setTotalPay(double p)
              totalPay = p;
         public String toString()
              //return String.format("Name %s ID %s Hours Worked %.2f Total Pay $%.2f",
                   //name, id, hoursWorked, totalPay );
              return ("Name " + name + " ID " + id + " Hours Worked " + hoursWorked
                   + " Total Pay $" + totalPay);
         public void calculateTotalPay(double r)
              int num = id%2;
              if (num == 0)
                   if (hoursWorked <= 40)
                        totalPay = (hoursWorked * 10.5);
                   else
                        totalPay = (hoursWorked * 10.5) + ((hoursWorked - 40) * 5.25);
              else
                   if (hoursWorked <= 40)
                        totalPay = (hoursWorked * 15.75);
                   else     
                        totalPay = (hoursWorked * 15.75) + ((hoursWorked - 40)* 7.875);
         public Double calculateTax()
              double tax;
              if (totalPay <=500)
                   tax = totalPay * .07;
              else
                   tax = totalPay * .1;
              return tax;

    First you mentioned assignment.Thats good, know we now how much and how we can help. It's annoying with posts which is
    obvious assignments but the author doesn't tell us so.
    Second, you don't use code tags to post code.To get code tags click the code button over the window, this will give you code tags
    at the end of your post. You write the code between the brackets pairs like
    [hoho] static public void main(String[] args) [hoho], just that "hoho" should be "code" instead.

  • Can i format numbers with spry?

    Can i format numbers for display with spry? I've got a number
    field and want to put commas in for thousand seperators and also
    need to pad some numbers with zeros....kinda like numberformat()
    really in CF, else i guess I have to do it with in my data
    preparation,
    thanks,
    john.

    Hi John,
    So if I were going to make this work with your XML, I would
    create a custom column on the fly after the data was loaded. This
    custom column would strip the formatting and convert the resulting
    numbers into real numbers. Also, for any rows that had nothing, it
    would stick a zero in this custom column.
    Then when it comes time for sorting, you sort on the custom
    column instead of the formatted one.
    Look at this example. It shows you how you can create custom
    columns:
    http://labs.adobe.com/technologies/spry/samples/data_region/CustomColumnsSample.html
    --== Kin ==--

  • I can't seem to find the data tab in format inspector...is there any other way to format numbers as currencies?

    I can't seem to find the data tab in format inspector...is there any other way to format numbers as currencies?

    Hi Aakritie,
    What version of Numbers are you using?
    What operating system?
    Your profile shows  Macbook Pro  (that is OS X) and also iOS
    I am using Numbers 3.2 on a Mac book Pro under OS X 10.9.2
    Format Inspector shows this when a cell is selected:
    Then choose a Data Format:
    Then:
    Regards,
    Ian.

  • Check serial numbers of ohter applications

    Anybody know if I can use ARD to check the serial numbers of installed applications.
    For example, I'd like to get a list of installed FileMaker Pro serial numbers by machine.
    Thanks,
    b.

    Sorry, but probably not. Most applications deliberately do not write their serial numbers in an easily accessible or readable place (it would make it easier to pirate the software), and this includes FileMaker which, I believe, encrypts the SN so that it's not viewable outside of the application.

  • How to format numbers in Address Book for iPhone

    I am planning to get an iPhone within the next few weeks and have begun entering all the numbers from my current cell phone into Address Book so that I'll be able to sync it with the iPhone. Since I never had to sync these numbers with anything other than my .Mac account, they are all entered like this: (555) 555-5555. Do I have to format them differently so that I will be able to use them on the iPhone. And do I have to add a "1" for each number or can I have the iPhone add that automatically?
    Thanks.

    entering like your example works fine. Just remember that if your entering phone # outside the US use the "+" symbol. example +46 35 46678 67

  • Help needed in importing application -  Urgent

    Hi,
    I am new fairly new to apex and would be grateful for any help....
    I have an application that i would like to import and install... but i am obtaining an error...
    Situation is as follows:
    Application in machine A with oracle 10g standard and apex 3.0. Workspace is portal, schema is status_portal...
    export is working fine.
    Need to import it to machine B with oracle 10g and apex 3.0 Workspace is
    online_portal, schema is portal
    Import also works fine...
    But when i try to install the imported application, i get following error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not found <pre>begin wwv_flow_api.create_flow( p_id =&gt;134, p_display_id=&gt;134, p_owner =&gt; 'STATUS_PORTAL', p_name =&gt; 'Status Portal', p_alias =&gt; 'F114', p_page_view_logging =&gt; 'YES', p_default_page_template=&gt; 3865804637029456 + wwv_flow_api.g_id_offset, p_printer_fri
    Please guide me as to what to do....
    History:
    I have tried exporting from machine A to apex online workspace and installing there.... and vice versa...It is working fine...
    the problem arises only when i try import & install on machine B....
    Please help me.... i need to do this urgently
    Thanks,
    Sumana

    Hi Scott,
    I will not be able to show the actual application, as it has our customer's information. But i have created a sample application and done the export and import. The details are as follows:
    Machine A Details:
    Workspace name = portal
    worskspace ID = 3727029916111535
    schema = status_portal
    Exported Application Name = Status Portal
    Exported Application ID = 117
    When importing application from machine A to online workspace:
    Online Workspace Details: (when importing application 117)
    Workspace Name = sumana
    Workspace iD = 3033192431425185475
    schema = sumanadb
    Imported Application Name = Status Portal
    Imported Application IS = 42146
    You can access the workspace using: http://apex.oracle.com/pls/otn/f?p=4550:1:
    the password is sumi123
    When importing application from machine A:
    Machine B Details:
    1 ) Workspace1 Name = auditws
    workspace ID = 7048503433678645
    schema = audit_schema
    When installing imported application no 117 I get:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not
    found <pre>begin wwv_flow_api.create_flow( p_id =>129, p_display_id=>129, p_owner =>
    'STATUS_PORTAL', p_name => 'Status Portal', p_alias => 'F114117', p_page_view_logging =>
    'YES', p_default_page_template=> 10898936714426385 + wwv_flow_api.g_id_offset, p_printer
    Error installing application.
    Return to application.
    2) Workspace2 name = online_portal
    workspace ID = 9302626026712423
    schema = portal
    When installing imported application no 117 I get:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not found
    <pre>begin wwv_flow_api.create_flow( p_id =>159, p_display_id=>159, p_owner => 'STATUS_PORTAL',
    p_name => 'Status Portal', p_alias => 'F114117', p_page_view_logging => 'YES',
    p_default_page_template=> 10898936714426385 + wwv_flow_api.g_id_offset, p_printer
    Error installing application.
    Return to application.
    3) When importing application no 130 from machine B to machine B
    (from workspace auditws and schema audit_schema to workspace online_portal and schema portal)
    I get the error as said before
    "Access Denied by application security check" Also, i observed that,
    the application gets installed in auditws and audit_schema itself...
    Screenshots are here:
    4) when importing application no 130 from auditws back to auditws, it works fine.

  • How to get correct format in file at Application server

    Hi,
    I am retrieving data MATNR,MAKTX,VENDOR,VENDOR NAME,PRODUCT HIERARCHY,QUANTITY(LABST),BUDAT.
    I am downloading the data into .xls file in both presentation and application server.
    In presentation I am getting correct format.
    Where as in application server I am not getting proper format.
    Quantity(MARD-LABST) is not coming proprely.(###6## instead of 36)
    How to get it in correct forma?I

    symbol means  Space
    Before transfer the data to File..
    condense MARD-LABST and then transfer it.
    I guess you are using charcter field LABST while transferring the data to file.
    Do not use quantity field directly,please move it to charcter field then condense it.
    Thanks
    Seshu

  • Formatting Numbers with BPC NW 10.0 SP19 1 in Microsoft Word & PowerPoint 2010

    Dear BPC Experts,
    We are trying to use the BPC Add-in for Microsoft Word and PowerPoint; however, we cannot figure out how to get the numbers in a report properly formatted.
    I created a report directly in Word:
    Then, on the EPM Ribbon I attempted to go to Options>Document Options and use the Formatting tab Number Format field and received the popup:
    Error details:
    I Copied a report from the Excel Add-in Report Actions>Copy Report to PowerPoint Report Actions>Paste Report but the number formatting is lost and I get the same error as with Word if I attempt to use Options>Presentation Options.
    Any assistance with number formatting with the Word or PowerPoint Add-ins would be greatly appreciated.
    Thank you,
    Lisa

    Hello Lisa,
    Its simply saying that the both formats are different so its unable to apply the formatting.
    in order to apply formatting in Word we have a special tab Design.
    first create a report and then next go to design tab and choose any one of the default formatting table.
    the formatting should be vary dynamically. please see the below images as reference.
    Before formatting report looks like this
    After Formatting by using design tab
    Dynamic expansion
    I feel its little bit difficult when compared to excel...
    Regards,
    Saida Reddy G

  • Contract Generation question: Formatting, Numbering of clauses, variables

    Hi!
    I am trying to create a Contract Document Template (for Contract Generation) with Variables
    I created some Variable Collections, but when I link them to the Contract Template, they add on with a different formatting altogether, which is neither like the placeholder in the template nor like the template attached to the variable.
    My variable configuration was of the type Paragraph.
    If anyone has any helpful tips on formatting Contract Document Templates, it would be most appreciated.
    Also, how do I ensure that numbering of sections and clauses is sequentially made in the final Contract.
    Regards,
    Reshma

    I was able to fix the problem by making some word document format changes.
    Please ignore this question.
    Regards,
    Reshma

  • Multiple import formats in one FDM application....?

    I wanted to know in my situation where there are 15 EBS Set of Books. whether it is possible to use only 1 FDM application to import all these data into my HFM application.
    My ERPi application is like this :
    1 source application that is EBS.
    1 target application that is HFM.
    15 EBS Set of books, for which i think i have to create 15 import formats in ERPi for each set of books. this also implies to the locations.
    then I have to do the common period mapping and category mapping.
    in the Data load Setup: I have to select each location and do the member mapping. create a data load rule for each location.
    FDM Application:
    i already have an FDM application which i am using to import data from EBS to HFM using ERPi, till now i have only used 1 set of books just to verify that everything is working fine. now as everything is working fine with the application, I want to add additional import formats in the existing FDM application to answer the import formats and locations created in the ERPi application.
    Is it possible to do like this, if so then i need your assistance in achieving this task.
    please put your comments in this regards.
    Thanks,
    Shantan Kommera

    You can do this by specifiying the appropriate data load rule to be used by ERPi within Integration Option 1 in the location. This will kick off the data load rule you specify in ERPi that should be tied to the corresponding set of books in EBS.

  • Formatting numbers on Keynote 2014

    I am running Keynote 6.2 in Mavericks 10.9.2.
    I am using a font which has both 'old-style' (small numbers) and proportional (full height) number sets. The default numbers set is 'old-style' but I want to use proportional.
    In Keynote '09 the way to change this was through the Fonts palette > Typography and changing Number Spacing to 'Proportional Numbers'. This option is available but doesn't change the numbers when selected. My hypothesis is this is a bug in the new Keynote, as there's no reason why this functionality would have been removed. The font performs normally in Illustrator and other programs, just not Apple's new applications, including Numbers.
    Does anyone have any ideas?

    Hi Ryan,
    Other than this, your instructions are clear:
    Now my values in the chart data were wrong because I changed the number of maximum decimals on the Y axis. So I went into the chart data and changed over the values to 2 decimals:
    From $1,200 to $1.2, etc...
    A better description would be :
    'I calculated a new set of values expressing the amounts in thousands of dollars by dividing the originals by 1000, then set the result to display one decimal place. $1,225 became 1.225, displayed as 1.2. I then used this column of values as the data for the chart.'
    Good technique!
    Regards,
    Barry
    PS: The recalculation may be done before or after changing the min/max values on the Y axis.

  • How to create reports of rich text format usuing oracle pl/sql - urgent

    I want to generate reports of the format rich text format usuing pl/sql,So can any one help me out on this...

    946903 wrote:
    I want to generate reports of the format rich text format usuing pl/sql,So can any one help me out on this...There is no "urgent" here.
    "Urgent" means one of two things -
    1) people are dying, or
    2) you have a customer-facing, revenue-producing production system that is down.
    (And to get some perspective on the second case, keep the first in mind.)
    For the first, you call whatever civil emergency service seems appropriate.
    For the second, you open an SR with Oracle - which requires a paid-up support contract. For them to consider your problem "urgent", you will need to demonstrate that your problem falls under item #2. I seriously doubt your problem fits that criteria.

Maybe you are looking for

  • Warning messages "You are not a receiver of the work item"...

    Hi Experts, We are facing an issue in which couple of users are getting warning messages "You are not a receiver of the work item" in there Portal Inbox. But they are not getting any warning message while accessing the same from R/3 inbox. We tried r

  • INDESIGN not enough memory??

    Can someone help me with the below issue... While using indesign and exporting a pdf file, am prompted that INDESIGN doesn't not have enough memory .... how does this happen, never have this issue before WHat should I do. trena

  • Font Book Crashes - Console Message

    I am having a problem with font book. It keeps crashing when I open it or freezes. Here is the report from Console. Does anyone know how to fix this. I don't have a font called "My-type-of-font". 12/5/10 11:05:13 AM Font Book[482] CoreText: Invalid '

  • Fundamental BI questions

    I'm a consultant that has just started a new job/project. Please correct me if I'm wrong, but I've always understood BI to be a tool for producing meta-data-- in other words, it is used to provide summary reports, queries, high-level statistics/views

  • Clean install problems imac5.2

    Hi, I did a clean install on my mothers old imac 5.2 operating on Tiger, unfortunately the install disc was damaged and I was unable to either complete the installation ( it gets 79% of the way through then fails) or restore the original OS. I just g