How to do arithmetic with two attribute values in a jsp in JDev 10.1.2?

Hi!
I need to compute Density value using two attributes being shown in my jsp (i.e. bindings.Spacing and bindings.Area), Density = bindings.Area/bindings.Spacing.
How can I do this in JDev 10.1.2 in my jsp?

Hello pino,
Can you show me how to create a backing bean in JDev 10.1.2? What I usually work on is the DataForwardAction code in this version of JDev. Is this the "backing bean" you're talking about? If so, can you give me sample code?
Thanks and hope you can help me!

Similar Messages

  • Field in the selection screen as a select option with two default values

    Hi All,
    can anybody tell me how to put field in the selection screen with two defaul values.
    for ex:  selection screen the Account Group KNA1-KTOKD as a select option. The defeault value should be Y001 and Y005.
    please reply ASAP. Its urgent.
    Thanks in advance,
    Madhu

    Hi Madhu,
    Since Select options are nothing but ranges, you can use the following code to add two distinct values to the select options by default.
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'EQ'.
    s_ktokd-low = 'Y001'.
    append s_ktokd.
    s_ktokd-low = 'Y005'.
    append s_ktokd.
    clear s_ktokd.
    However, if you want to mention a range like all the values between these given two values to be considered then u may use,
    select-options : s_ktokd for KNA1-KTOKD default 'Y001' to 'Y005'.
    or
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'BT'.
    s_ktokd-low = 'Y001'.
    s_ktokd-high = 'Y005'.
    append s_ktokd.
    Reward if helpful.

  • How to handle dbms_xmldom with no data values.(no_data_found error in dom)

    hi,
    i have below block,
    DECLARE
    doc dbms_xmldom.DOMDocument;
    node dbms_xmldom.DOMNode;
    elem dbms_xmldom.DOMElement;
    cur_node dbms_xmldom.DOMNode;
    root_elem_data dbms_xmldom.DOMElement;
    root_elem_tab dbms_xmldom.DOMElement;
    root_node_data dbms_xmldom.DOMNode;
    mode_elmn dbms_xmldom.DOMElement;
    mode_node dbms_xmldom.DOMNode;
    mode_text dbms_xmldom.DOMText;
    doc1 DBMS_XMLDOM.DOMDOCUMENT;
    root_node_data1 DBMS_XMLDOM.DOMNODE;
    child_document DBMS_XMLDOM.DOMDOCUMENT;
    child_rootnode DBMS_XMLDOM.DOMNODE;
    V_CLOB CLOB;
    v_doc CLOB;
    v_EMP CLOB;
    v_output_filename VARCHAR2(300) := 'SPOOL_DIR/'||'EMP_XML_FILE.xml';
    l_xmltype XMLTYPE;
    BEGIN
    doc := dbms_xmldom.newDOMDocument;
    node := dbms_xmldom.makeNode(doc);
    dbms_xmldom.setversion(doc, '1.0');
    dbms_xmldom.setCharset(doc, 'UTF8');
    elem := dbms_xmldom.createElement(doc, 'PartnerInfo');
    dbms_xmldom.setAttribute(elem,'xmlns','EMP');
    cur_node := dbms_xmldom.appendChild(node, dbms_xmldom.makeNode(elem));
    mode_elmn := dbms_xmldom.createElement(doc, 'EMPLOYEE');
    mode_node := dbms_xmldom.appendChild(cur_node,dbms_xmldom.makeNode(mode_elmn));
    BEGIN
    SELECT value(e) INTO l_xmltype
    FROM TABLE(XMLSequence(Cursor(SELECT * FROM EMP1 where EMPNO=7501))) e;
    child_document := DBMS_XMLDOM.newDOMDocument(l_xmltype);
    root_node_data1 := dbms_xmldom.importNode(doc,dbms_xmldom.makeNode(dbms_xmldom.getDocumentElement(child_document)),TRUE);
    root_node_data1 := DBMS_XMLDOM.appendChild(root_node_data, root_node_data1);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    dbms_lob.createtemporary(v_doc, true);
    dbms_xmldom.writeToClob(doc,v_doc,'UTF8');
    v_EMP:= v_doc;
    dbms_xmldom.writeToFile(DOC,v_output_filename,'UTF8');
    dbms_xmldom.freeDocument(doc);
    --Dbms_Output.Put_Line('THE OUTPUT IS::'||V_EMP);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    The xml file is 'EMP_XML_FILE.xml'
    <empno>U++kYmcVuGchxbh+++++++++++++++1+</empno>
    <empname>J</empname>
    suppose the empno 7501 is not available in our emp table,
    i got error
    ORA-03113: end-of-file on communication channel
    how to handle xmldom with no data values.
    by
    siva

    hi,
    please give the solution
    by
    siva

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • How to calculate variance between two dimension values

    Hello:
    I have built a cube in Analytical workspace (9.2.0.5) with 3 dimensions. Time, Product & Scenario. I am using BI Beans (thick client) for the presentation layer. What I need is the ability to calculate the variance between two dimension values of same measure. For example, if My scenarios are 'Actual' and 'Budget', when I present the results on the screen for any measure (e.g Total Sales), I should be able to calculate & display the difference between 'Actual' & 'Budget' values of that measure.
    I have more than 7 scenarios and more than 40 measures. It could even be the difference between two product categories. How do I do it either in AW or at BI Beans Level?
    Thank you very much for your help.
    regards
    Suresh

    You want to look at qualified data references in the OLAP DML references. Basically, any data reference may be qualified by specifying a dimension name and value:
    sales(time 'jan92')
    forces the dimension TIME to the member 'jan92', no matter whether 'jan92' is in status or not. The resulting expression is essentially no longer dimensioned by the dimension TIME.

  • How to prevent from inserting two similar values into DB?

    Hi,
    I wanted to know how we can prevent from inseting two similar values into the database, e.g the user id which should be unique. Here is some sample code, Please help me.
    String s10 = req.getParameter("T10");
    String s11 = req.getParameter("T11");
    rs = st.executeQuery("select * from Register where userid='"+s10+"' ");
    if(rs.next())
         sos.println("Sorry the user already exists");
    else
    int x = st.executeUpdate("insert into Register values('"+s1+"','"+s2+"','"+s3+"','"+s4+"','"+s5+"',"+s6+","+s7+",'"+s8+"','"+s9+"','"+s10+"','"+s11+"')");
    Thaks in advance
    Uma               

    Hi reddy
    Your code works will be perfect with slight changes whucah are as below:
    String s10 = req.getParameter("T10");
    String s11 = req.getParameter("T11");
    rs = st.executeQuery("select * from Register where upper(userid)='"+s10.toUpperCase()+"' ");
    if(rs.next())
    sos.println("Sorry the user already exists");
    else
    int x = st.executeUpdate("insert into Register values('"+s1+"','"+s2+"','"+s3+"','"+s4+"','"+s5+"',"+s6+","+s7+",'"+s8+"','"+s9+"','"+s10+"','"+s11+"')");
    In the above Query we will get a unique userids it may be smallcase or Uppercase
    This will help u
    Cheers
    Rambee

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

  • How to using ical with two separate iphones

    hello
    trying to understand and learn how to use Ical with 2 different Iphones, using Icloud.

    To sync iCal across computers, the calendar needs to be published to a server. This can be a local server that you can set up, or it can be something like google or microsoft exchange or apple's mobile me. The best bet may be to wait until fall and see what iCloud offers!
    Sharing your screen can be accomplished a few different ways. You can have two iChat accounts set up, and have one logged in on each computer, and then use iChat's screen share feature. The other way is to go to System Preferences, Sharing, and then check the box next to Screen Sharing. You may have to adjust some of the settings in there, but give that a shot.

  • How to manage itunes with two ipods

    I have two iPods, a 60G photo and a 30G video. I have two macs, one at work, the other at home. My iTunes on the work computer has about 50G of music, and about 15G on my home computer. Until now, I have only synced the big iPod with the work computer and small iPod at home. I just got a very big external drive, and want to keep everything there. That raises several questions I thought someone here might know how to answer.
    1) Where are the files so I can just copy them onto the ext hard drive? (I can probably find this for myself, but with my computer skills on mac, it will be frustrating, I imagine. Since I have the other questions, I thought htis one might be easy.)
    2) How can I merge the two files? I know I have some duplicates, adn I know how to get rid of them once the two are merged, but how do the two files merge together in one iTunes file on my new hard drive?
    3) Once the two are merged, can I set it so that certain types of music are put on one iPod, and other types on the other?
    Thanks a lot, in advance.
    Brad

    1. Click on the folder in the Finder's sidebar with the house icon, and then open the folder named Music. The iTunes folder inside is the default location of the music library; if the songs aren't here, follow these instructions to locate them.
    2. Drag the files into the Library section of the open iTunes application.
    3. Use the option in this article which best fits your needs.
    (22256)

  • How to retrieve attribute value from my JSP?

    My servlet needs to redirect to a JSP. Before that, I set an attribute value.
    getServletContext().setAttribute("filename",templateFile);
    RequestDispatcher rd = getServletContext().getRequest...
    rd.forward(request, response);
    In my JSP, this is how I want to retrieve it:
    <%
    String filename = (String)request.getAttribute("filename");
    if (filename != null)
    %>
    <%= filename %>
    <%
    else
    %>
    it is null
    <%
    %>
    But the value is always null? Do I need any tag or declaration on the top of my JSP?

    Can i set attribute for list and get that list using request.getAttribute() in jsp?
    ex.
    in action
    List plist;
    plist = ...
    request.setAttribute("plist", plist);
    to get this value in jsp
    <%
    List plist = (List)request.getAttribute("plist");
    %>
    is this code is allowed?

  • How to share iphoto with two users in the same imac maverick

    I can´t find the way to share iphoto/itunes with two users in the same imac with maverick software

    In conclusion, the new software is worse than the old one, really?  Because in my old mac I could share easily without copy with an external USB
    It's not iPhoto that dropped the ball but the system.  I believe it was Mavericks that broke the Shared folder compatibility for iPhoto, not iPhoto itself.
    Also having the library on an external HD is a good way of freeing up space on the boot drive to assure optional system and application performance.

  • How to populate formbean with ONLY updated values?

    Is there a way to populate the formbean with ONLY updated values in Java Struts?
    Ex: Out of 50 fields displayed on GUI, If lets say user modifies 20 fields, I need to capture only those 20 fields into the form bean.
    The reason i am looking for such function is to avoid the overhead of updating all the 50 fields into the database everytime even if one field is modified.

    Normally, you update the entire record if one of the fields is changed. However, if you display more than one record, only those records have have changed should be updated. The reason you dont update all records is because if the performance hit on updating records that didn't change, among other things (see optimistic conurrency topic at http://msdn.microsoft.com/en-us/library/bb399373.aspx)
    I don't think you should bother coding to only capture those fields that have changed in one record. It complicates your code and makes it difficult to read. Also, performance gain on not reading unchanged fields is offset by performance loss on the logic to manage such a task. Also, your update sql statement will be overly complicated and will have to be dynamically built rather than a single simple update sql statement that updates all fields.

  • How to find roles with open field values

    Hello SAP gurus,
    I need to find a way to find roles with open field values. Some kind of report that returns me a list of all roles that, despite having a generated profile, it still contains empty field values in it.
    Is there anything like it available on SAP?
    Thanks
    Antonio

    Some kind of report that returns me a list of all roles that, despite having a generated profile, it still contains empty field values in it
    Hey I am not sure, but seems I might have seen some report like that. Can you try search report named PFCG* / PFUD*
    Again this is either report (SE38/SA38) or may be FM (SE37). I am away from system a bit while and can't recall.
    Regards,
    Arpan Paik

  • How to assign and display an attribute value from backing bean?

    Hello all,
    I am using Jdev 11g. I have a form page which has two inputText attributes The first one implements a valueChangeListener feature. When the user enters a value in the first field, a backing bean function will be invoked through the valueChangeListener . In this backing bean function, based on the value in the first field, I want to assign the value to the second field and display it on the page. Can somebody help me how to achieve this?
    Thanks,
    John

    Hi John,
    Here is small example.
    Create two string variables in your backing bean and generate accessors for them.
        private String text;
        private String text1;
        public void setText(String text) {
            this.text = text;
        public String getText() {
            return text;
        public void setText1(String text1) {
            this.text1 = text1;
        public String getText1() {
            return text1;
        }Bind this variables to the value property of the input texts you have. Add the valuechangedlistener for the first input text (and also set autosubmit to true for that item). Also, add the id of the first input text as partial triggers for the second input text. Like,
            <af:inputText label="Label 1"
                          binding="#{backingBeanScope.backing_untitled1.it1}"
                          id="it1"
                          valueChangeListener="#{backingBeanScope.backing_untitled1.textValueChanged}" autoSubmit="true"
                          value="#{backingBeanScope.backing_untitled1.text}"/>
            <af:inputText label="Label 2"
                          binding="#{backingBeanScope.backing_untitled1.it2}"
                          id="it2"
                          value="#{backingBeanScope.backing_untitled1.text1}"
                          partialTriggers="it1"/>Finally, put the logic on your value changed listener. Like,
        public void textValueChanged(ValueChangeEvent vce){
            this.setText1("Hi " + vce.getNewValue());
        }Now, when you run the page and enter your name in the first input text, the second input text will display Hi <your_name>
    HTH.
    -Arun

Maybe you are looking for

  • HOW can i activate my computer to play music if 5 have already been activ

    I already have 5 computers active but i cant de activate any of them because either they are used or i dont have the computer any more so i cant de activate them.how do i de activate my computers that i no longer have???

  • Propagation is too slow

    I preapared replication between two databases 11g release 1. Everything works fine but propagation is too slow. Propagation of a single row takes from 2 to 40 seconds. Why there are such differences? I tried few different values for job_queue_interva

  • Oth configuration in km

    Hi all I configured OTH for a specific folder in KM and it works fine.When i open any of the document inside the portal, it is opening in OTH view only.I have enabled the workflow approval process for that particular folder.Also, i have configured th

  • Masking - part of image doesn't want to

    As you can see: a part of the image does not go along with the masking. Any ideas?

  • Error in external database interface QXDA

    Dear All, While executing tcode DB02 or ST04 im getting error as "Error in external database interface QXDA". As per sap note 863623 we have changed the password for SIDnn and restarted system also executing command STARTSAP *DB successfully. But the