How do mathematical functions in a table invoked in jsf page

hi i need detail about how can i do mathematical functions for data in table in jsf page using adf bc. for example in my table(sales) i give product id,name,unit price, quantity then i want to calculate product of quantity and unit price in a table automatically and store in total amount column

Hi,
John suggestion would work. Another option is to define it in EL using #{row.quantity * row.unitPrice} as the outputText value. Then add a numberConverter to the outputText using type="currency". The best option, imho, is to define the totalAmount attribute on the VO and implement the product there. However, keep the converter on the inputText and don't use the display hints on the VO.
Regards,
~ Simon

Similar Messages

  • How can I import diagramms and tables from numbers to pages?

    I'm writing an essay, where I need diagramms and tables in it. I created some cool stuff in numbers and wanted to transfer it to pages. I thought it would be easier, but I don't have a clue how to just import the numbers stuff to my essay in pages. So I tried to copy it, but it looks not that way it looked in numbers. Another problem is: I can't layout the diagramms and tables the way I want (centered) and I need to write a description under it. I tried it with Textbox, but then I just can't group the textbox with the Table.
    Somebody with an idea?
    Thanks for your help!

    To get your data from Numbers into Pages is just a simple matter of copying and pasting. Select the cells you want to place in Pages, copy, and then past into Pages. There are a couple caveats. 1) the table you paste into Pages will be pasted inline. You'll probably want to use the wrap Inspector and change it to floating. 2) if the table is too wide you'll have to get creative about how you arrange the data and 3) Numbers lets you insert check boxes, sliders, steppers, and popup menus and these won't show but the data in the cells will.
    The charts will also copy and paste - again, you'll probably want to use the wrap inspector to switch them to floating objects. Having made the chart object(s) floating objects, you should have no trouble inserting your text box description, arranging them the way you want, and then grouping.
    Just to make sure it worked the way I remembered, I just threw together a quick table and chart in Numbers and then copy/pasted it all into Pages.

  • How to populate a html table in a JSF page

    Hi, I need help on the following issue:
    My code calls an business layer API which returns me a string in html format which produces a html table. I have a JSF page with a bunch of other JSF components and I want to insert this html table at the bottom of this page. Is there a way to do it?

    OK
    Here is an example
    Drag an outputText component on to the Page. Check the properties of outputText and uncheck the escape property. Write this some where in the code when you want to display the HTML table on the page.
    String s = "<HTML><BODY><TABLE BORDER=2><TR><TD>No</TD><TD>Name</TD><TD>Age</TD></TR><TR><TD>1</TD><TD>John</TD><TD>30</TD></TR><TR><TD>2</TD><TD>Michael</TD><TD>20</TD></TR></TABLE></BODY></HTML>";
    outputText1.setValue(s);
    I am using the hardcoded value for String but in your case you get the string from some API.
    Hope this helps
    Thanks
    Creator Team

  • How can I automatically scale a table based on the page size?

    I have multiple tables within 100s of pages of an InDesign file and when I use the liquid layout to scale the content of the pages based on the size, the tables stay the same. I've searched for a while now and can't come up with anything other than going in and manually doing it - which I don't have the time to do.

    You probably haven't activated the layout adaptation (I'm on german ID, don't know the correct name for it in English) in the mini menu of the Liquid Layout panel.

  • Inserting values into multiple tables in one jsf page with single commit op

    hi all,
    i have two tables ,
    one is parent table and other is child record.
    record details:
    table1:(parent table)
    emplid (primary key)
    empl_name
    table 2:(child table)
    empl id ( Foreign key)
    empl_name ( Foreign key)
    contact_no (primary key)
    my senario is , i need insert values into both parent and child table in one save option.
    and both the tables will be in one jsf page.
    is this possible to do?
    thanks all,
    regards,
    M vijayalakshmi

    hi,
    i feel my question is not clear.
    let me explain my question clearly.
    1. i have two records
    *1. emp_names*
    attributes of this table is 1.emplid
    2.emp_name.
    emplid is a primary key.
    2. emp_contact
    attributes of this table is 1.emplid
    2. contact_no
    In this table emplid is forigen key from emp_name table
    contact_no is primary key.
    and my senerio is,
    for one emplid there are many contact no.
    in database diagram i have created these two entities. and from that i have generated two views objects.
    now in jsf page ,
    i shd have all fields from both the records.
    wn ever i click on add button , i shd be able to insert one complete row of data to both the tables.
    means,
    emplid
    empl_name
    contact_no.
    and if i click on commit button data shd be insert in both the tables.
    so how to achive this?
    am very beginner to the jdeveloper tool.
    regards,
    m vijayalakshmi.

  • How to change function group in table maintenance

    Hello experts,
    I am having a problem transporting a custom table. Now, what I want to do is to just create a new function group under the table maintenance option in se11. Now, I can't seem to change my custom table's function group. How do I do that? thanks a lot and have a nice day guys!

    Hai
    You have to re-generate the table maintenance, when new fields are added, system doesn't automatically insert them in it.
    So go to MAINTENANCE TABLE GENERATOR for your table and press icon for updating.
    Here choose NEW FIELD options and press ENTER.
    Anyway I prefer to set somes parameters of EXPERT MODE as REFRESH OVERVIEW SCREEN
    goto ur table> utilities> table maintenance generator> change>press enter> reason give additional fields>expert mode--> enter...
    Thanks & Regards
    Sreenu

  • How to add  functionality in  SAP tables

    Hi All,
    i created one  enchancement to ME31K screen,
    i added one button to contract header  page when user click on this button it will tak me to my functionlity.
    and in my screens i added one more button that will tak me to contract header  page.( i used that stmt 'Leave program').
    but in second cycle if the user click on button it is showing me the following error.
    This function not defined
    Message no. 06006
    Diagnosis
    There is no entry for this function in Table 168F (system table). An error involving the screen control has probably occurred.
    Procedure
    Contact your system administrator.
    Am i need to add this functionalty to any  sap table.
    plz guide me on this.
    Thanks & Regards,
    Murthy Sannidhi

    Hi,
    The function exits used for screen enhancement of ME31K screens would have an export parameter E_UCOMM. Which needs to be mapped to a function code maintained in T168F table. Ideally 'KOPF' function needs to be passed onto E_UCOMM within the function exit.
    i.e. E_UCOMM = 'KOPF'.
    This shall solve the issue.
    Thanks & Regards,
    Kiran Kumar Somaroutu

  • How to create Function Module with TABLE parameter (for internal table)

    Hi Guys,
    I am trying to create a function module by using TABLE parameter. I have to pass an internal table to this function module for processing.
    But it saying : TABLES parameters are obsolete!
    And I am not going further.
    Please suggest any work arround.
    Thanks

    Hi,
    create a table type in SE11..
    Then use that in your function module importing/exporting/changing parameter for passing internal tables..
    Thanks,
    Naren

  • How do I make a long table fit on one page?

    I do a community newsletter, one page of which is a directory of residents. On this page, I have a table with 3 columns: name, address, and phone. There are 61 rows, which is too big to fit on an 8 ½ x 11 page. As people move in and out, I need to be able to change the name for the particular address and re-sort by name. Retaining this ability, how can I make this fit on one page? Ideally, I would be able to "break" the table into two parts of 30/31 rows each, with each part side by side on the 8 ½ x 11 page. I can't find a way to do this. Any help would be appreciated. I am working in Yosemite 10.10.1, and Pages 5.5.1. I have also created a Numbers 3.5 version of this table, but still cannot find a way to do what I want to do.

    Hi Saundra,
    Do you have to print it, or are you sending this out via E-mail/PDF?
    The fix below, should work, either way:
    If you are actually not printing it, and are E-mailing/posting online, Export as PDF, and E-mail address will still be active...
    If it must fit on a smaller page, for printing or for whatever reason, drag the aforementioned PDF into a 8.5 x 11 document, open Inspecter to Metrics, click to not constrain proportions, resize to fit then Export again as a PDF. The E-mail addresses will remain active. Here's screenshot of one with 61 rows, I made in less that 2 minutes as a mock-up. Links/E-mail still works.
    Luck!
    Lena

  • How do i update a db table using one JSP page

    I created a JSP Form page and I want to update a db table when the user hit submit. Please help my job depends on it Send me small code example below is what I have (very new to JSP)
    <%@ page language="java" import="java.sql.*" import="java.io.*" %>
    <html>
    <head><title>accessing database</title></head>
    <body bgcolor="white">
    <%     Connection con =null;
         try {
    // Load Driver Class File
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Make a connection to Data table
    con = DriverManager.getConnection("jdbc:odbc:SportsbookTables", "developer", "developer");
    Statement statement =con.createStatement();
    String SQL = new String("INSERT INTO tblLines (gameID,leagueType) VALUES (5,'gam')");
    statement.executeUpdate(SQL);
    statement.executeUpdate("INSERT INTO tblLines (gameID,leagueType) VALUES (6,'lea')");
    %>
    <table border=1 cellspacing=1 cellpadding=1>
    <form method="POST">
    <p><font color="#800000" size="5">Enter your name:</font><input name="leagueType" size="4"></p>
    <p><input type="submit" value="Submit"></p>
    </form>
    <%
    catch (IOException ioe)
    out.println("IO Exception:");
    out.println(ioe.getMessage());
    catch (SQLException sqle)
    out.println("SQL Exception:");
    out.println(sqle.getMessage());
    catch (ClassNotFoundException cnfe)
    out.println("Class Not Found Exception:");
    out.println(cnfe.getMessage());
    catch (Exception e)
    out.println("General Exception:");
    out.println(e.getMessage());
    finally {
    try
    if (con!=null) {
    con.close();
    catch(SQLException sqle)
    out.println(sqle.getMessage());
    %>
    </table>
    </Body>
    </HTML>

    First I would remove all the JDBC code you have in the JSP and place it in a servlet (or other Java) class, and have your form action call the servlet on submission. Then use the servlet API to extract the form data from the request and pass it to the JDBC in the servlet to update the DB. Once complete have it branch to another JSP/HTML to let the user know if they were successful or not.
    Take a look at some of the online tutorials as they will be helpful with regards to code examples.
    Depending on the size of your project, and deadlines naturally, you may also want to have a look at an MVC architecture and custom tags like Struts from Apache. These can make your job a lot eaiser.

  • How to not getting record in table after refreshing my page?

    Hi,
    I am using jdev 11.1.1.2.3
    My problem is,.. i am performing deleting operation my table for deleting record in that time it is deleted,
    But in my problem is after refreshing the page record is coming back.
    I am performing delete operation using bindings
    can any one help me..
    Thank You..

    Hi,
    Actually i create global components insert delete,commit,first,next these all are icons in my template page
    when i am using any master table click on those icons i perform operations
    for bindings
    insert:#{backingBeanScope.AdminCountryBean.addNewCountry}
    savecall:#{AdminMainActionBean.pofAdminAction}
    cancelcall:#{bindings.Delete.execute}
    For inserting and saving i write bean class deleting i am not following any programmatic approach....

  • I downloaded the cocoPpa app for my iPhone and created shortcuts, it's now frozen on a white screen with the status bar it's not restarting but will do most normal functions that don't invoke leaving the page( except locking). Can anybody help?

    Does anyone know what to do?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • How to use multiple data controls in a single JSF page

    Hi,
    I am using Essbase Data Control to in my project to get Essbase Cube data into ADF table/Pivot Table.
    Suppose if [Item] dimension has this hierarchy [category] -> [Segment] -> [Brand] -> - [Item]
    I need to display Category in one column and Segment in the next Column and [Brand] in the another column.
    Different types of Category, Segment and Brands should display as table data(data values).
    Using MDX query I can not print [Item] hierarchy in different columns..so I am planning to use multiple data controls.
    Could any body help me to get the solution.

    Hi,
    sounds like you want to try the Pivot table
    http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e12418/tagdoc/dvt_pivotTable.html
    I don't think that multiple Data Controls is the solution to the problem
    Frank

  • How to get the id of my session in jsf page

    hi
    i saved the adress of an image in my session
    i would like to get this adress in my jsf; the problem is that the key used to save my image is dynamic:it is the id of my session
    my java code look like this:
    HttpSession s=SessionUtil.getSession();
    String adressePagesWeb=s.getServletContext().getRealPath("/")+"pages/";
    s.setAttribute(s.getId(), adressePagesWeb+s.getId()+"piechart.png");and my jsf look like:
    <h:graphicImage value="#{<%=request.getSession().getId()%>}" id="log"/>but this doesn't work
    please help me

    No, it doesn't work as you sayed ! every user has it's own session so you can give the same name for an attribute and it will be stored in the user session:
    HttpSession s=SessionUtil.getSession();
    String adressePagesWeb=s.getServletContext().getRealPath("/")+"pages/";
    s.setAttribute("A_CHOOSEN_NAME", adressePagesWeb+s.getId()+"piechart.png");and for the picture you must keep the session id as a part of it's name !

  • How to bind a database table to a JSF table ?

    Hi
    thank you for reading my post
    I tried to use derby with Jdev 10gR3 , but it does not works with derby when i drag and drop the table into a jsf page
    it shows a error message :
    Entity creation failed for following database object
    no primary key attribute and does not support ROWID.use Entity wizard to crete an entity.
    now my question is :
    1-what is that entity ? is that a EJB stuff ?
    2-my table has a primary key of type , bigInt and it is Identity (auto increment)
    3-how i can resolve this problem.
    Thank you

    Can you be a little bit more specific about how you created the access to the database?
    You can't drag a table directly onto a JSF page you first need to create either a Toplink object, an EJB or an ADF Business Component.
    If you are going to use Derby as your database you should probably use Toplink and not ADF Business Components, since ADF BC wasn't certified with Derby.

Maybe you are looking for