Page calculation not return value to the page

I'm trying to get a calculation of page to work in the rendering phase...
I've implemented the calculation according to the region, and I want it to run whenever someone adds a detail line on the form. This is a query that returns a single value:

Select nvl (sum (inv_det_amount), 0) in the invoice_details where inv_id =: P320_INV_ID;

The query works fine under workshop/SQL SQL commands, but does not occur on the page.

I have the page element declared as 'source' to a column of data.
What might be missing?

The Page element contains the correct calculation, but it is not displayed on the screen.

Published by: V Rickert on May 15, 2013 15:39

Hello

>
I have the page element declared as 'source' to a column of data.
>

What is a parameter for Source used?

If it's still, by replacing the value that exists in the session state, then that could explain it.

This means first of all, you do your calculation or procesess, and after that to read data in the element.
And gets what you read database element.

Kind regards
Aljaz

Tags: Database

Similar Questions

  • How to get the return value of the activity of the method in the stubborn workflow

    Hi all

    I use Jdeveloper 11 g R2 (11.1.2.3) & Weblogic 10.3.5.0

    I have a stubborn workflow, default activity is a call method than calling a method in the app module
    This method returns an id

    I need this code in my project to do something else
    Is there a way I can access the return value of the method call activity?

    Concerning
    Mohsen

    Set the value of return as #{{pageFlowScope.myBean.returnValue} pageFlowScope.myBean.returnValue} in the method, call the property inspector and get the value in your managed bean.

    String returnParam = (String) JSFUtil.getFromPageFlow ("returnValue");

  • How return values when the page of the ofa procedure call

    Hello

    I need to return multiple values in the OPS page calling procedure.i using below code.bt I'm able to return a single value. Please suggest me how to return multiple values.

    Co:

    -----

    If (pageContext.getParameter ("Calc")! = null) {}

    Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");

    System.out.println ("VO");

    {if(VO1!=null)}

    CNT int = vo1.getRowCount ();

    System.out.println ("count:" + cnt);

    If (cnt > 0)

    {

    RowSetIterator rs = vo1.createRowSetIterator("empIterator");

    System.out.println ("EMP");

    If (rs! = null)

    {

    While (rs.hasNext ())

    {

    AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));

    System.out.println ("impl");

    If (line! = null)

    {

    String laseid = row.getAttribute("LeaseId").toString ();

    System.out.println (laseid);

    String billingid = row.getAttribute("AddonBillingId").toString ();

    System.out.println (billingid);

    [Serializable] param = {}

    laseid, billingid

    };

    String newupc = (String) am.invokeMethod ("callPLSQLProc", param);

    System.out.println (newupc);

    String myValue = newupc;

    OAMessageTextInputBean textBean = (OAMessageTextInputBean) webBean.findChildRecursive ("prorate");

    textBean.setValue (pageContext, myValue);

    }

    }

    AM:

    --------

    public String callPLSQLProc (String laseid, String billingid)

    {

    OracleCallableStatement callableStatement = null;

    Try

    {

    String callProc = "BEGIN LEASE_PRORATE_PKG. LEASE_PRORATE_PROC1 ' + '.

    "(p_lease_id = >: 1,» +)"

    ' p_billing_id = >: 2 +,

    "(p_prorate = >: 3) +;

    'END;';

    callableStatement (OracleCallableStatement) = getOADBTransaction ().createCallableStatement(callProc,1);

    callableStatement.setInt (1, Integer.parseInt (laseid));

    System.out.println (laseid);

    callableStatement.setInt (2, Integer.parseInt (billingid));

    System.out.println (billingid);

    callableStatement.registerOutParameter(3,OracleTypes.VARCHAR,255);

    callableStatement.execute ();

    String resultMessage = (String) callableStatement.getString (3);

    System.out.println (resultMessage);

    Return resultMessage;

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    System.out.println ("execepn");

    throw new OAException (try (), OAException.ERROR);

    }

    printscreen.PNG

    Khalil.

    Hello

    You are the PL/SQL procedure in a loop on the right? Just assign the value to the attribute appropirate.

    if (pageContext.getParameter("Calc")!=null)  {
      OAViewObject vo1 = (OAViewObject)am.findViewObject("AddonBillingVO");
      System.out.println("vo");
      if(vo1!=null) {
      int cnt = vo1.getRowCount();
      System.out.println("count :" + cnt);
      if (cnt > 0){
      RowSetIterator rs = vo1.createRowSetIterator("empIterator");
      System.out.println("emp");
      if (rs != null){
      while (rs.hasNext()){
      AddonBillingVORowImpl row = (AddonBillingVORowImpl) rs.next();
      System.out.println("impl");
      if (row != null){
      String laseid = row.getAttribute("LeaseId").toString();
      System.out.println(laseid);
      String billingid=      row.getAttribute("AddonBillingId").toString();
      System.out.println(billingid);
      Serializable[] param = { laseid,billingid };
      String newupc = (String) am.invokeMethod("callPLSQLProc",param);
      System.out.println(newupc);
      //String myValue = newupc ;
      //OAMessageTextInputBean textBean = (OAMessageTextInputBean)webBean.findChildRecursive("prorate");
      //textBean.setValue(pageContext, myValue);
      row.setAttribute("Prorate",newupc);
      }
      }
      }
      }
      }
    }
    

    Check the last lines. If the attribute name is nothing else than "Pro rata", updated accordingly.

    See you soon

    AJ

  • How to get the return value of the method by calling the stored procedure in ApplModuleImpl

    Hello

    I use Jdev 10.1.3.4
    JSF, and ADF business components
    I created a service method in the implementing class of module request to execute the strored procedure in the database.
    This breeding returns a string value.
    now, I slipped the method of service of data control palette on my JSF page and chose ADF parameter form when I droped.
    It works very well.
    now, I want to display the string returned by the method of service after the execution on the JSF page as global messages.
    How can I achieve this.
    Help, please

    Thanks in advance

    Kind regards
    Ajit Agarwal

    Hello

    You must run programmatically run the method binding. If I'm not wrong then the following code will allow you to access the return value

    OperationBinding oper = bindings.get("MyPLSQLAccessMethodBinding") (OperationBinding);
    String returnValue = oper.execute ((String));

    Once you have the string in a managed bean you can add it to the stack of messages JSF exposed by the FacesContext

    Frank

  • LOV, not return values more some limit

    Hi guys,.

    I created 2 fields of research (State, region) in report page. Two of them are based LOVs. The user select the first value in the field, the next field LOV return values based on the first field (AJAX call). First field is States as "VIC", "NSW", "HIS" etc., next field is 'Space'. When I select State other than "NSW" in the State field and then the next field is filled with success. But when I select the State as 'NSW' then the next field is empty. "NSW" State has made more than 100 in the table (LOV based on), but other States have even less than 10 records. When I remove "NSW" (more than 50) documents in the table then it works.

    Can - as anyone knows if there is a limit of LOV that can be taken in charge?

    Bill:

    The presence of special characters is exactly what I had suspected.

    You must use the function replace in the query that is run by the "application process" that is called by your AJAX call. This process of applicition generates the XML code, which is then used by your Javascript to build the LOV.

    CITY

  • Masking of series that is null or 0 return values in the graphics in flash

    Hello

    I'm creating a bar chart stacked with several (about 15-20 series) series and some of the series return null/0 values, but they are always displayed on the table... It is not visually appealing because several series of null in a stacked chart values overlap between them... is there a way I can add a condition somewhere to hide these series that return null/0 values and not display them on the graph?

    Any ideas?

    Thanks for your help!

    Would check you closely because I thought showed no null values? Values null are not displayed. I found this useful once.
    But in general it is visually unexpected when you, for example, a histogram 3D height zero bar. If you were made by hand, you leave a free space but omit the bar all together. I doubt that this can be done in a chart.

    They had to choose an interpretation. Zero average disappear or does it mean a zero graphic? I think that trace of zeros and nulls don't--what value would they draw?

    If actually nulls are not displayed, you can preprocess the data changing zeros to nulls before plotting. But be aware that the entire column will probably disappear if all data for a label entries are zero. I'm sure that's what I lived. Fine if you want to.

    In fact, I had several sets of data to draw: OC, given OO dat, data WR (3 sites, 4 points given per day) who well sort and I added a (0, null, null, null,) as a spacer between the columns of data.

    Maybe someone knows something that can help.

    Kind regards
    Howard

  • display and return value to the selection list.

    Jin

    I want to display the value in the list of selection from this quary.

    Select student_id in the class_record where class_id =: p1_class_id and SECTION =: p1_section
    less
    Select student_id in the STUDENT_TYPE_DETAILS where class_id =: p1_class_id and SECTION =: p1_section;

    but I want what and name with student_id l_name store in the s_per_det.student table and .f_name is also in this table.


    How to define the display value and return in this quary value using 3rd table s_per_det.


    How can I do that.


    Thank you
    Maury

    Ooh, NEGATIVE... Can you not use a NOT EXISTS in this case, could have a significant impact on the execution plan?

    Something like this maybe?

    SELECT f_name||' '||l_name,
           stundent_id
    FROM class_record a,
         s_per_det b
    WHERE a.student_id = b.student_id
    AND   a.class_id   = :P1_CLASS_ID
    AND   a.section    = :P1_SECTION
    AND   NOT EXISTS(SELECT 'X'
                     FROM student_type_details c
                     WHERE a.student_id = c.student_id
                     AND   c.class_id = :P1_CLASS_ID
                     AND   c.section = :P1_SECTION)
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • AF:selectOneChoice do not return value

    Hi all

    I use JDeveloper 11 g, EntityObjects, and ADF Faces.

    I am trying to use a selectOneChoice to send a value. I created a managed bean that returns a list of items. The selectOneChoice is filled out correctly, but the selected value will not be sent, so a null is written to the database.

    My code:

    & lt; AF:selectOneChoice value = "#{bindings." ExpresionOral.inputValue}.
    label = "#{bindings." ExpresionOral.label}.
    shortDesc = "#{bindings." ExpresionOral.hints.tooltip}.
    required = "true" & gt;
    & lt; f: selectItems value = "#{collections.nivelIdiomaEnum}" / & gt;
    & lt; / af:selectOneChoice & gt;

    public List & lt; SelectItem & gt; {getNivelIdiomaEnum()}
    FacesContext ctx = FacesContext.getCurrentInstance ();
    Settings regional locale = ctx.getViewRoot () .getLocale ();
    ArrayList & lt; SelectItem & gt; list = new ArrayList & lt; SelectItem & gt ;();
    for ({nIdioma:NivelIdioma.values())} NivelIdioma
    Point SelectItem is new SelectItem (nIdioma, nIdioma.getName (local));.
    List.Add (Item);
    }
    back list;
    }

    Thank you

    Joseba

    Hi Joseba,

    Your code looks fine. However, my hunch is that the getNivelIdiomaEnum() method does not return the list itself for the publication, if yes, then you need to fix your code accordingly. You can also try the selectOneChoice valuePassThru attribute set to true, it can thus correct.

    Kind regards

    ~ Simon

  • How to return values from the record following instead of in the same record in LOV

    Hi all

    I use Forms 10 G.

    I have a block of details. In what in the 3rd column, I have a LOV.

    My requirement is let say I asked for it from the 1st and 2nd column, and it shows 1 record.

    After that if I pressed F9, then it should display the LOV list and, when I select a value any then it will create a new record with the same value of 1st and 2nd column.

    Example: -.

    Agenda provider country
    123ABCIndia

    We here in the column 'Country' LOV. Then when I pressed F9 then Lov should be displayed.

    as below.

    List of countries
    India
    U.S..
    Japan

    It works very well so far.

    Now if I select from the USA in the list then it should create a new record with the values of 1st and 2nd column.

    Agenda provider country
    123ABCIndia
    123ABCJapan

    How can I do this?

    Besically I need, rather than return the value in the same record, he must return to the next with the exsiting values record.

    The algorithm is:

    -use the KEY-LISTVAL about to 'COUNTRIES '.

    -LOV execution using builtin show_lov

    -store the return value Lov any parameter or a local variable in your trigger code ( vL_dummy_Deger varchar2 (100); )

    -Create registration

    -assign value to any new item you want to

    code like this:

    declare

    vLDummy boolean;

    vL_dummy_Deger varchar2 (100);

    Start

    -lov runs lov ruturns value is assigned to all the dummy elements to store Lov, return value. (no need to display)

    "-" DUMMY "point lets store lov, return value.

    vLDummy: = show_lov ('LOV_ULKE');

    --

    vL_dummy_Deger: =: model;

    create_record;

    : new_item: = vL_dummy_Deger;

    end;

  • How to set the return value of the method to the /outputText inputText field

    Hello

    How to set output return value method of a /outputText adf inputText field

    Concerning

    sevanan

    Well put method's return value to a managed bean variable.

    Create a variable in the bean and set the return value to this variable.

    the inputText and outputTextValue to this managedBean.variable value

    That's all...

    and add partial trigger for inputText programmaticly

  • Retruning lines which have the same return value from the function RANK

    Hi, I want to achieve is to use a DENSE RANK function to identify the same value of the data, if the rank values are same then extra. Here is the code
    WITH CTE AS
    (
    SELECT SalesPersonID,
    SalesQuota,
    DENSE_RANK() OVER (ORDER BY SalesQuota DESC) as DENSE_RANK
    FROM Sales.SalesPersonQuotaHistory
    WHERE SalesQuota BETWEEN 266000.00 AND 319000.00
    )
    This retrun
    SalesPersonID SalesQuota DENSE_RANK
    280 319000.00 1
    287 304000.00 2
    280 301000.00 3
    282 288000.00 4
    283 284000.00 5
    287 281000.00 6
    278 280000.00 7
    283 280000.00 7
    283 267000.00 8
    278 266000.00 9
    How I choose the rank value that are of the same value?

    The result should be
    278 280000.00 7
    283 280000.00 7
    with cte as
    (
     select salespersonid,
         salesquota,
         dense_rank() over (order by salesquota desc) as dr
       from sales.salespersonquotahistory
      where salesquota between 266000.00 and 319000.00
    )
    select *
      from (
         select cte.*, count(*) over(partition by dr) ct
           from cte
           )
     where ct > 1
    
  • "back" button does not return me to the area I have left in the search list

    I use version 7.0.1 of Firefox on a laptop with XP SP3. All known updates have been applied.

    I use google to search for a topic and a list of results from site. After selecting one of the conclusions, I click on the back button, I went back to the list, but my 'space' in the list does not exist and I have to look through the list to see where I was while I can click on the following entry to find.

    I don't think that something has changed in this regard in a long time for the research.

    What I would say is that you're doing the research itself open in a new tab, and each of the search results open in new tabs in this way you know when you are finished using a tab, and you will not lose your place in the search results.

    Use the keyboard shortcut to open the results of a search in a new tab in the background, so that you can keep looking at Google results before looking at the tabs you open from the research.

    Google options (gear) at the top right, and then down 'search settings ':

    [x] search results open in a new browser window.

    Firefox tools > Options > tabs

    [x] open new windows in a new tab instead.

    Then, in Subject: config (typed in the address bar)

    Browser.Search.openintab user set to true

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

    More information about the configuration variables available in
    topic: config entries and for users who do not know the process, there is Subject: config (how to change).

    From a Google search, you should have the pages open in a different tab, but with Google that is not good enough, because they have open all in the same tab, as you have noticed if you have done this.

    You can use Ctrl + click or Ctrl + Shift + click to open a link in a new tab.

    You can use app-tab to pin the tab, click the tab and choose pin - tab and conversely to unpin tab or remove the tab when finished.

    You will find interesting reading of the tabs in


    http://userstyles.org/styles/18553
  • Minimum size of tab bar - themes and skins for browser - userstyles.org
    http://userstyles.org/styles/9043
  • SQL - select Help - box When? Return value of the second Table?

    -Next to people on this forum I am probably somewhere between a beginner and an intermediate SQL user.

    Ive been using a case when stated in plsql to find "all who has status in any program was canceled during a specific time, but have become or are still active in another program"

    So, Im actually trying to return a value from another table in a case where, but this isn't anthing taste other than a text declared as 'Yes' or 'no '.

    This is the select statement - y at - it another way to do it where I can get the results I need?

    -case when pp.party_id in (select pp1.party_id - cancelled active clients in another program)

    of asa.program_participation pp1,.

    ASA.curr_prog_participation_status cpps1

    where pp1.program_participation_id = cpps1.program_participation_id

    and pp1.party_id = pp.party_id

    and cpps1.code_value = 'Act')

    So 'Yes' is still 'No' end as Active_in_Other_Prg

    So - instead of 'Yes', I want essentially the program they are active or pp1.program_id, another null

    It is possible that the client can be active in more than one program as well.

    Any help is greatly appreciated, I explored with if and decodes but I can't get anything to work.

    Ben

    Looks like an outer join. See doc ora: joins at

    Select p

    q.party_id

    q.program_id

    of table_with_party_id p

    , (select pp1.party_id - cancelled active clients in another program)

    pp1.program_id

    of asa.program_participation pp1,.

    ASA.curr_prog_participation_status cpps1

    where pp1.program_participation_id = cpps1.program_participation_id

    and pp1.party_id = pp.party_id

    and cpps1.code_value = 'ACT') q

    where p.party_id = q.party_id (+)

    Note: In the example above shoudn't it be a space between the (and +), but the forum software automatically converts to

    The outer join will connect display all records in the table p and q records only if fits the party_id, IE q.party_id and q.program_id will be null if there is no match.

    Edit: adding program_id

  • Cache area - do not return cached after the expiry

    Apex 3.0.1 I tests with the help of caching in the region. I put the caching on my region "Cashed by user", and a period of 1 minute for testing purposes. What I found is this:

    -J' I run the page (with debugging on). Debug messages see the 'region not found in the cache, make dynamic region '.

    -I run the page again once in the minute. Debug displays "Cache found" messages, language = "EN-GB" length = "2222" generated about 13 seconds ago."

    -J' I run the page after the end of the minute. Debug messages see the 'region not found in the cache, make dynamic region '.

    -I run the page again. Debug messages see the 'region not found in the cache, make dynamic region '.

    It seems that once the cache has expired he never gets refreshed. I didn't have a condition of caching, so I tried setting only to an Expression of PL/SQL = TRUE, but still he only puts cached the first time the page runs.

    Did I miss something?

    Published by: Tony Andrews on March 16, 2009 18:57

    Tony,

    It will not be cached page when it is run in debug mode.

    Scott

  • calculations between two values of the sequential loop iterations

    Hi all

    I have a code that came out our power (DSP) of a FFT spectral density. An input frequency and then intervened at a value of input from the user. I would like to know the difference of the PSD between each stage of the frequency. Attached, that's what I would get. To avoid confusion, I don't want to produce a file that looks like this. I want just the column 'delta' as an indicator on the front panel, so I can control my change in PSD. I don't need the entire table, just the delta between the current iteration and the previous iteration. I tried to use a loop with shift registers, but I'm not sure where to go to from there. I thought that, since the shift registers sends the data of loop to loop, that I could output the value before it went into the next iteration, but I don't have a chance. Any help is appreciated. Unfortunately, I am unable to put the code due to the policy of the company. I know it makes things much more difficult.

    Thank you.

    Suggestions do not seem quite right, but I found a way to do it. Attached, is the way that I did.

Maybe you are looking for

  • Alternative OSes and CMS under Yoga 1051

    Hello worldY at - it an update of the bios under get x 64 activated on 2 1051 compressed yoga uefi or CMS?If this is not the case, can we get the official intel bios updated for baytrail platforms and apply to your product? The current bios prevents

  • How to activate delivery report on Lenovo K3 text

    HelloI wonder if anyone knows if it is possible to turn on 'text delivery report' on a Lenovo K3, (model K50 - t3s, Android 5.1). It doesn't seem to be a menu when I start the program text, simply a list of texts and especially as a list of 4 options

  • Browser popup

    When I click on firefox to go to google. A change the browser setting. But when I try to press Yes, it won't turn off. Only when I press on the output, then it will fade. But I get every time that I log to my google account. Can you help me get rid o

  • updated Windows, it does not update these files each time that I update and then restart my PC, she just asked me to update their new please help

    MSXML 4.0 SP @ a security update (KB927978) A security update for Microsoft XML Core Services 4.0 Service Pack 2 (KB954430) Update for XML Core Services 4.0 Service Pack 2 (KB973688) Micrisift He will not update these files each time that I update an

  • Add the button graphic paint

    Hello Is it possible to add a button next to an object painted. example is it possible to have a square drawn next to a button.Thanks in advance