Calculations in APEX 4.2 on the interactive report and the update form

Hello

I know that people have asked similar questions, but I was not able to do this work. I'm doing some fairly simple math (addition, multiplication) in an application. I have 2 fields (VALUE_A, VALUE_B). I can get the addition and multiplication work in the interactive report, but I also need that it works correctly in the form of update. I also need update form to work dynamically so that if the values are changed, the correction calculated response is shown immediately on the update form and then reflected in the interactive report. I tried the dynamic action, with and without javascript without result. Any help would be appreciated.

Request Express 4.2.6.00.03

model application:

https://Apex.Oracle.com/pls/Apex/f?p=82162:

username: guest

password: Peanut123

Thank you

Rachel

ADD dynamic action

After refresh of region

Set value

ELEMENT the VALUE to change

check the fire on the load

To source, use expression JavaScript

If ($v ("P2_TEST_1")! = null & $v ("P2_TEST_2")! = null)

{

parseInt ($v ("P2_TEST_1")) + parseInt ($v ("P2_TEST_2"));

}

ElseIf ($v ("P2_TEST_1")! = null & $v ("P2_TEST_2") == null)

{

parseInt ($v ("P2_TEST_1"));

}

ElseIf ($v ("P2_TEST_1") == null & $v ("P2_TEST_2")! = null)

{

parseInt ($v ("P2_TEST_2"));

}

on the other

{ 0; }

That add another dynamic action on change POINT P2_TEST_1 and set even with the same expression JavaScrit action. but NOT fire on the load
Do the same for the ARTICLE P2_TEST_2

And the same for A times B but change + to *.

Here, I did samples for you with this code.

https://apex.Oracle.com/pls/apex/f?p=83519 demo/demo

Tags: Database

Similar Questions

  • link to an interactive report AND apply the filter for 2 items.

    Hi can you help me out here on how to create a link to an interactive report AND apply the filter for 2 items.

    Here is my code

    I have a list of table, clicking the selected item should link to interactive report and create the filter. Below the code does not work for a filter. can you help me what to do with 2 filters.

    A filter = > works very well

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Scenario 2:

    Two filters = > does not

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test:P00_YYY:001:IRC_YYY:test2 :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Thanks in advance

    actually the syntax wrong values in the syntax of the passes to several elements.

    is

    f? p = 6000:6004: & APP_SESSION. : NO:6003:MY_ITEM1, MY_ITEM2, MY_ITEM3:1234, 5678

    Use above scenario and verification.

    Go

  • Interactive report and branch back JS error

    I get errors in applications where I combine search engine with interactive report.

    Search form, I got hit research and management in the definition of application when this button is clicked.

    After that, I show area with interactive report (condition is "request = Expression 1"), but after that I'm getting various JavaScript errors when I start using report functions.

    One of them is:

    http://shrani.si/f/37/fv/4NxVgKRO/ireporterror.png

    I get this error when start using the interactive report features (Select column, filter, download,...).

    I tested in all browsers (IE, Chrome, Firefox).

    I created a sample application:

    Test of IReport

    http://Apex.Oracle.com/pls/Apex/f?p=23423423:1

    Workspace = carine

    User name = [email protected]

    Password = carine

    The problem is with the type of condition on the report. You sense that she only show when the query is set to "Search FOR", but this causes calls ajax to failure - where the javascript errors. It's a little a thorny problem honestly. It's probably because ajax calls do not have this defined demand value (they probably their own value request to work, more a request value is not persistent in any case) that they simply can't.

    To work around that, I copied the page to page 5 and used instead something to test in condition. Then knit popups and you don't get more of these javascript errors.

  • Apex 4.0: 100% width interactive report

    Hello

    I need an interactive report 100% width in my page.

    As I see not all possible configurations in report attributes (it seems interactive reports do not use a model), I looked at the CSS using Firebug, and I added width in style on the right properties, so in my page header, I added:
    <style type="text/css">
    .apexir_TOOLBAR_OPEN {width:100%;}
    #apexir_TOOLBAR {width:100%;}
    .apexir_WORKSHEET_DATA {width:100%;}
    </style>
    The toolbar is now 100% width, but not the worksheet data, I noticed that the table (apexir_WORKSHEET_DATA) is contained in another table:
    <table summary="">
    So I need to add width = '100% ' to this table (I tested with Firebug, it works) but how?

    Thank you.

    Yann.

    Use a descendant selector to target the table not identified within the apexir_DATA_PANEL DIV:

    
    
  • Apex hide control of running interactive report

    Hello

    Is there a good way to hide the icon of orders to an interactive report break?

    Tyia,

    Arnaud

    Hello Arnoud,

    If you want to hide option to set a Break control: turn this option off in the area of the search bar of your definition of attributes of interactive report.
    If you just want to hide the image when a Break of control is used in a standard definition of IR: put the javascript $x_Hide ('apexir_CONTROL_PANEL_COMPLETE') or $x_Hide ('apexir_CONTROL_PANEL') in the footer of the region.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

    You can assign this answer to your question in marking it as useful or Correct ;-)

  • Problem with 'Interrupted' Interactive report and download empty content

    I created a simple sample application to display this behavior on apex.oracle.com.

    WORKSPACEICE_SANDBOX
    USERNAMEAPEX_FORUM
    PASSWORDforumApex
    APPLICATIONInterupted_IRR

    We had a need to prevent shooting during the loading of the page of an interactive report. There are a number of messages from the forum for this but, for the most part they came down to this:

    1. Create a page element and include a test for its value in the SQL source of your interactive report, for example P1_RUN_SUPRESSOR = 'RUN '.
    2. Initially, set the value of this element so that it prevents the research report of the corresponding lines, for example "DO_NOT_RUN".
    3. When the required criteria has been set, switch the value of the element of the condition for success page and then refresh the report.

    It's that everything works as it should. As you can see in the sample application, the report is not filled at the start. When you click the run now button, the value of the P1_RUN_SUPRESSOR went from 'DO_NOT_RUN' on 'RUN' and then the region of report is refreshed. As we expected, the lines are all now populated 'normally '.

    However, if you now try to use the upload feature, the content of the report is empty.

    Can anyone think of a fix/work around?

    Thank you

    -Joe

    Set forward the calculation of the areas on P1_RUN_SUPPRESSOR to the not fire not when the query is CSV. I have changed it in your demo application.

  • BI analysis and creation of interactive reports and published reports

    Hi all

    all first of all maybe this very absurd question.

    I use bi publisher and write the report. now I need bi web service. I can web service with analysis and interactive reporting, but I can not with published reports. is this possible? and what is analysis of the fundamental difference between the reports (I have no store). pls help me...

    Sorry for the bad English

    better compliance

    Hello. Yes, you can run reports to BI Publisher using webservices.
    Documentation, explains how to:
    BIP11g: http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/toc.htm
    BIP10g: http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12188/T421739T524310.htm

    Also, take a look at this blog of my friend Kan:
    http://bipconsulting.blogspot.com/2010/04/how-to-run-report-with-bi-Publisher-Web.html

    Concerning
    Jorge
    p.s if this answers your question please mark my answer as * "Correct" * or * "useful."

  • Link to an interactive report AND apply a filter

    Hi all

    I want to create a link to an interactive report in another report. I would like to have the IR filtered by identifier which is the link in the first report?

    Possible?

    Hello

    Interactive report supports dynamic filters. This is the condition of filter that can be applied dynamically

    IREQ_     Equals (this is the default) same as IR_
    LT_     Less than
    IRLTE_     Less than or equal to
    IRGT_     Greater Than
    IRGTE_     Greater than or equal to
    IRLIKE_     SQL Like operator
    IRN_     Null
    IRNN_     Not Null
    IRC_     Contains
    IRNC_     Not Contains
    
    Also RIR can be used to creset all the previously applied filter. e.g
    f?p=&APP_ID.:&PAGE_ID.:&SESSION.:::RIR:IR_EMPNO:7369 will filter the report on given page with employee number = 7369
    

    Thank you
    Manish

  • How to use MD5 the password on the update form field

    Hi all - I have a form of update that pulls in a field that contains the password that is encryped in MD5 format. I want the user to see the original password and be able to change, and then save it using MD5. I used the Update Wizard to create the code for this form is standard code. Any ideas?

    I know is should look like this, but I don't know where to put: md5 ('password')

    Kind regards

    Robert

    Code update:

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}

    $updateSQL = sprintf ("setting a DAY members SET loginName = %s, password = %s, coName = %s, fullName = %s, street = %s, city is %s,"the State"= %s, zip = %s, email is %s, phone = %s, fax = %s WHERE id = %s",

    GetSQLValueString ($_POST ["'loginName"], "text").

    GetSQLValueString ($_POST ['password'], "text").

    GetSQLValueString ($_POST ["'coName"], "text").

    GetSQLValueString ($_POST ['fullName'], "text").

    GetSQLValueString ($_POST ['street'], "text").

    GetSQLValueString ($_POST ['city'], "text").

    GetSQLValueString ($_POST ["State"], "text").

    GetSQLValueString ($_POST ['zip'], "text").

    GetSQLValueString ($_POST ['email'], "text").

    GetSQLValueString ($_POST ['Telephone'], "text").

    GetSQLValueString ($_POST ['fax'], "text").

    GetSQLValueString ($_POST ['id'], "int"));

    the code for the form:

    < are method = "post" name = "form1" action = "<?" PHP echo $editFormAction;? > ">"

    < table align = "center" >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > user name: < table >

    < td > < input type = "text" name = "loginName" value = "<?" PHP echo $row_rsMember ['loginName'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > password: < table >

    < td > < input type = "text" name = "password" value = "<?" PHP echo $row_rsMember ["password"];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > company name: < table >

    < td > < input type = "text" name = "coName" value = "<?" PHP echo $row_rsMember ["coName"];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > name: < table >

    < td > < input type = "text" name = "full name" value = "<?" PHP echo $row_rsMember ['fullName'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > Street: < table >

    < td > < input type = "text" name = value "Street" = "<?" PHP echo $row_rsMember ['street'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > City: < table >

    < td > < input type = "text" name = "City" value = "<?" PHP echo $row_rsMember ['city'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > status: < table >

    < td > < input type = "text" name = "State" value = "<?" PHP echo $row_rsMember ['State'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > Zip: < table >

    < td > < input type = "text" name = "zip" value = "<?" PHP echo $row_rsMember ["zip"];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > Email: < table >

    < td > < input type = "text" name = "email" value = "<?" PHP echo $row_rsMember ['email'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > phone: < table >

    < td > < input type = "text" name = "phone" value = "<?" PHP echo $row_rsMember ['phone'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > Fax: < table >

    < td > < input type = "text" name = value "fax" = "<?" PHP echo $row_rsMember ['fax'];? ">" size = "32" > < table >

    < /tr >

    < tr valign = 'of basic">

    < td align = 'right' nowrap > < table >

    < td > < input type = "submit" value = "update file" > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_update" value = "form1" >

    < input type = "hidden" name = "id" value = "<?" PHP echo $row_rsMember ['id'];? > ">"

    < / make >

    The answer is in two parts:

    First Ministry field password password in field properties so it does not display the chopped character. Md5 is a way - you can't decrypt encrypt only. Thus, the user can enter a new password on the old.

    Second part; Copy the following code: GetSQLValueString (md5($_POST['password']), 'text'), to encrypt the text field.

    I found this by Googleing for the use of md5 and update forms...

    Kind regards

    Robert

  • APEX 4.0.1 bug - interactive report - ORA-12899 search bar

    Hello

    There is a maxlength = "2000" attribute on the apexir_SEARCHelement. The value of the attribute must be 255.

    The AJAX call returns the following JSON object:

    + {'dialogue': {'uv': true, 'line': [{'V': "failure of Widget < br / > ORA-12899: value too large pour column"APEX_040000"". ""}]}} "" "WWV_FLOW_WORKSHEET_CONDITIONS '." " {{[{"NAME" (actual: 326, maximum: 255), < br / > spreadsheet "}]}} +.

    Is it normal that I don't see any error message (dialog box)?


    Thank you.

    Louis-Guillaume
    -----
    My Blog: http://www.lgcarrier.com
    APEXFramework: http://www.apexframework.com
    APEX Québec French Community: http://www.apexquebec.com

    Louis-Guillaume,

    Just an update. This bug has now been fixed and will be available in our next group of hotfixes. This was fixed by changing the maxlength to 4000 to let in a search string of up to 4000 characters, and then modify the code that built the value filter name, such as if it exceeds 255 characters, we we substring and adds «...» "at the end to show that it is longer that can be displayed.

    Kind regards
    Anthony.

  • How to use the values in the columns of an interactive report (Apex 5)

    Hello

    I have an interactive report and a link column and I click to set the value of four fields in a subregion with the value of four columns of the report.

    This without submitting the page every time so I think using javascript.

    But what is the right way to do this in 5 Apex?

    How to have a reference to the column of a report (customer.name to the customer or customer.city, for example)?

    Concerning

    Gianpaolo

    Hi gianpagi,

    gianpagi wrote:

    I can't run your code as well, on apex.oracle.com, I have re-product the situation with the emp table and the columns ename, sal and the fields p1_ename, p1_job, p1_sal

    Can you help me.

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:103040501310506:

    https://Apex.Oracle.com/pls/Apex/f?p=102726:LOGIN_DESKTOP:104044067688962:

    user and developer demo/demo (TR1 workspace)

    Check the application now. I've done the column 'Empno' as link and execution of your dynamic action on click on the link.

    Here are the changes:

    • Edited the "Empno" column attributes and perform the following settings in the properties of 'column link:

    Text link: #EMPNO #.

    Link attributes: class = 'empdetails '.

    Target: URL

    URL: javascript:void (0);

    NOTE: The link does nothing but on the onclick for the event of link DA no real logic.

    • Edited the dynamic action 'assign values' and set the following properties:

    Selection type: jQuery Selector

    jQuery Selector: a.empdetails

    Kind regards

    Kiran

  • Horizontal scroll bar in the model of interactive report region 5 Apex (universal theme)

    Hello

    We have migrated our application from 4.2 (theme: 21 scarlet) to 5.0 (changed to universal theme). Most of our reports are interactive reports and have more than 20 columns to display in the reports. 4.2 in the 'Region of report"model horizontal scroll bar came from bottom of page like below and has been easy for the user to scroll through the options to the right and see all the columns.

    Apex4.2.PNG

    In the universal theme apex 5 with 'interactive report' model in order to see the columns on the far right in the first lines user must scroll the vertical bar first, then scroll horizontal straight bar and vertical bar to go to the top


    Apex5.PNG


    How can you have the scroll as in 4.2 bar region of report model. I think that we need to make some changes in CSS and also need to copy the existing model and make changes and use this model in all reports.


    Thank you.

    RAM


    Hi Tim,.

    Thanks for the reply. I tried this option before posting forum. It did not work. Now, after changing position attribute fixed to the ' Page "(or region) in the report attributes section it works." " When we migrated the app at UT, he has been on 'None '. Problem solved now. Thank you.

  • Affecting a hidden page looking for the interactive report null element

    Hi all

    I'm a newb APEX and don't really understand processing and calculations very well yet. I want to do something fairly simple however.

    I have a page with an interactive report and two hidden page items. I want to set the value of these two elements with the NULL value when someone search the interactive report. Any way to do it?

    Thanks in advance.

    Published by: darstar007 on March 25, 2010 16:31
    
    
    
    

    Kind regards
    Shijesh
    ---
    Please reward the answer if this was helpful or correct

  • Is - this too ambitious? Tabular no-show with interactive report in the subregion, showing the latest entries.

    Is this too much to expect in Apex 5.01?

    I have an application which records people entering an area.

    The idea is to scan badges and save time and the date of that entry.

    This is accomplished with a simple form based on the table of the newspaper.

    In a subregion of the form, I would have an interactive report that shows to all those who have entered sort by date and time entry descendant who visited today is obvious.

    I join the attendant to be able to use the interactive report to be able to select a particular line that could be recovered and placed in the main form to change (a bit like the model of interactive report with a link to a form where updates can be made.)

    I can create the report form and the subregion and that seems to work very well for journal entries, but I don't have a clue as to how I would go on the use of the report for access to update data in the form section.

    I would be eternally grateful if someone could point me in the right direction!

    Is this something that is hard to do in Apex?

    Thank you!

    Mason

    Masong says:

    Is this too much to expect in Apex 5.01?

    I have an application which records people entering an area.

    The idea is to scan badges and save time and the date of that entry.

    This is accomplished with a simple form based on the table of the newspaper.

    In a subregion of the form, I would have an interactive report that shows to all those who have entered sort by date and time entry descendant who visited today is obvious.

    I join the attendant to be able to use the interactive report to be able to select a particular line that could be recovered and placed in the main form to change (a bit like the model of interactive report with a link to a form where updates can be made.)

    I can create the report form and the subregion and that seems to work very well for journal entries, but I don't have a clue as to how I would go on the use of the report for access to update data in the form section.

    I would be eternally grateful if someone could point me in the right direction!

    Is this something that is hard to do in Apex?

    Not at all. Try to use the wizard to create a Page to create a form on a Table with report based on the table of the newspaper (choose Normal for page mode and Interactive for the implementation of the report). When finished, separate report and pages of form will have been generated. Go to the report page and copy the region interactive report on the page of the form. The report page can then be deleted if it is not required.

  • date picker, hidden behind the interactive report header

    We are experiencing a problem where, when displaying, a date picker is hidden behind the fixed headers for an interactive report. During the initial inspection, it seems apparent to the z index of the interactive compared to the report header date picker...  Has anyone else seen elsewhere?

    Thank you!

    Dan

    Hi DanGillis,

    DanGillis wrote:

    We are experiencing a problem where, when displaying, a date picker is hidden behind the fixed headers for an interactive report. During the initial inspection, it seems apparent to the z index of the interactive compared to the report header date picker...  Has anyone else seen elsewhere?

    Yes. There is a bug in 5 APEX.

    Modify your interactive report-> report attributes-> position-> value 'None '.

    Reference: Datepicker dates behind the report header when you try to pick a date

    Kind regards

    Kiran

Maybe you are looking for

  • Arguments with executable en C

    Hello, how to launch an executable created from an en C program that requires the call to a variable fichier.dat (UN argument)? Thank you in advance.

  • WRT1900AC cannot configure VPN

    I CURRENTLY HAVE 2 WIRELESS ROUTERS AN ASUS RT-N56U WHICH WAS EASY to set UP WITH ExpressVPN. COMING TO EXPAND MY NETWORK & IMPROVE USING A LINKSIS WRT1900AC. UNABLE TO SET TO THE TOP OF THE SAME. BOTH ROUTERS ARE HARD CABLES TO THE ISP ROUTER & WILL

  • Hello uninstallation

    When I tried to update itunes, he said that he could not get rid of the old program Hello. I tried everything I read on these forums and on apple. I deleted itunes and quicktime. I tried to install it simply. I downloaded Revo Uninstaller. Nothing ha

  • Is it possible to move rendered times [export] in PP?

    I love the Premier Pro, but God help me... When you offer hours of your day to make things, there must be another way. Yes, I use Media Encoder... but always with tight deadlines on video production, I almost can't afford to still save 30 to 45 minut

  • VCP 6 - review of Delta or full review

    Last week, I followed the course VMWN, so now need to take the exam for re - certify 6. Should what tests I do? I never did a Delta front. No doubt the Delta review focuses on the changes between 5 (5.5?) and 6? And the normal review is wider.It's a