Getting data from DB for each page load

Hello

I use JDevloper 11.1.1.4. I have display objects in the child-parent relationship of level three.

For example viewobject1 (grandparent), viewobject2 (parent), viewobject3 (child). I want the amount of a particular attribute in viewobject3 be changed dynamically based on the exploitation of the page in which viewobject3 is linked. Suppose that the page contains a table. This table has a column 'paying '. I want that the total of the column "compensation". I added in the bottom of the column in the table. When deleting a row in a table the total should be amended accordingly.

I believe that groovy is preferable to use in this case. That's why I tried both approaches.
(1) we must, an attribute viewobject3 as transitional and use groovy (sum ("pay")); in its value field. This generates an error "name not found in the given object sum: ViewRow [oracle.jbo.Key [492339-7597]].»
(2) the other is to, have a transitional attribute in viewobject2 and the calculation of the sum expressed in groovy (view3.sum ("pay")). But this results in the page quite rarely. In other words, when you load for the first time, it shows correctly. After deleting a record, he makes sometimes total and sometimes not.

These two approaches does not seem to work.

Could someone tell me if I am following an appropriate approach

Kind regards
V. Praveen

Published by: Praveen Sep 26, 2011 16:45

Could you pls try this

object.getRowSet (.sum ('Pay'))

Tags: Java

Similar Questions

  • need to display data from headers on each page

    Hi gurus,
    I need to display the header of the data on each page. It does not appear when data on the next page. Please help me.

    Thank you
    Sri

    I have you sent a response to your email and provided the modified model. If all goes well, the release is by your expectations.

    Thank you
    Bipuser

  • Get data from YEAR_WEEK for the next WEEKS 20

    Hi all

    I have a select query and when I run this query, that query is display data for all YEAR_WEEK of PROD_BACKLOG table. The YEAR_WEEK column in the PROD_BACKLOG table data in this format 2030-WK41.

    My select query is the following
    SELECT 
                  DC_UTIL.GEN_YEAR_WEEK(MSD) YEAR_WEEK,
                  ITEM_NUMBER,
                  BACKLOG_QUANTITY,
                  MSD
                  to_char(MSD, 'IW')
                  FROM prod_BACKLOG
                  where to_char(MSD, 'IW')>to_char(sysdate, 'IW');
    I would like to add a clause in this query should it search only for data for the next few weeks more 20.

    Thanks in adavnce

    Concerning

    Hello

    I think that you have given for more than a year, which is why queries of does not return the same number of lines:
    -For your TO_CHAR, you keep only the week number and don't care of the week, which means that the 29th week of 2011 is the same as the 29th week of 2012
    -With the TRUNK, you compare the first days of the week, which include information on the year

    Here is an example: you'll see Date1 is the same for 2 dates, but Date2 shows different results and take care of the year:

    with t as (
    select to_date ('20/07/2011','DD/MM/YY') MSD from dual union all
    select to_date ('20/07/2012','DD/MM/YY') MSD  from dual
    ) select to_char(MSD, 'IW') date1, trunc (MSD, 'IW') date2 from t;
    
    DATE1      DATE2
    ---------- ---------
    29         18-JUL-11
    29         16-JUL-12
    

    You must choose the trunc.

    Using< or=""><= in="" this="" part="" of="" the="" where="">

    and trunc(MSD, 'IW')<=trunc(sysdate+140, 'IW');
    

    won't change of data greater than the week or not, but will include or not data for the 20th week.

    Hope that is more clear.

    Kind regards
    Sylvie

  • How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox

    How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox?

    A sample of XML is like this:

    <>planter

    < Lauvtre >

    < Botanisk_navn > Acer campestre < / Botanisk_navn >

    < Norsk_navn > Naverlonn < / Norsk_navn >

    Gronn < Farge > < / fan >

    H4 < Herdighet > < / Herdighet >

    < Hoyde > 10-15 m < / Hoyde >

    < / Lauvtre >

    I have a combobox where it shows the botanical name and the Norwegian name. But the rest of the info in movieclips seem separate.

    Someone has an idea how to do this? Can I use the trace function maybe? Here is my AS3 code so far:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void

    {

    your. Text = list.selectedItem.data;

    TB. Text = list.selectedItem.label;

    }

    var xml;

    function onLoaded(e:Event):void

    {

    XML = new XML (e.target.data);

    var it: XMLList = xml. Planter.Lauvtre;

    for (var i: uint = 0; i < il.length (); i ++)

    {

    list.addItem ({data: it.}) Farge.Text ([i]) + "\n"+ it.» Herdighet.Text ([i]) + "\n" + it. Hoyde.text ([i]),

    label: it. Botanisk_navn. Text() [i] + "\n"+ it.» Norsk_navn. Text() [i]});

    }

    }

    Loader.Load (new URLRequest ("lauvtre.xml"));

    Thank you!

    Rheus.

    I don't know what you're trying to do.  but, if you want to fill one combobox with the botanical names and when one is chosen, the other use of logins:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void {}

    var selectedObj:Object = a [list.selectedIndex]

    trace (selectedObj ['fan'], selectedObj ['Botanisk'], etc);

    }

    var xml;

    var a: Array = [];

    function onLoaded(e:Event):void {}

    XML = new XML (e.target.data);

    var it: XMLList = xml. Lauvtre;

    for (var i: uint = 0; i

    list.addItem({label:il[i].child('Botanisk_navn').toString()});)

    a [i] = {'Fan': it [i].child('Farge').toString (), 'Herdighet': it [i].child('Herdighet').toString (), "Hoyde": he [i].child('Hoyde').toString (), 'Botanisk':il[i].child('Botanisk_navn').toString(),'Norsk_navn':il[i].child('Norsk_navn').toString()};}

    }

    }

    Loader.Load (new URLRequest ("test.xml"));

  • Need to display a field for each page

    Hi all.
    I'm trying to display a field <? job_no? > for each page of this work.
    I mean if I select job is between 1 and 10. for the number of Job 1, the data can be printed in one or more pages.
    But I need to show this job number (that you see with barcode fonts) in all the pages of this work.
    This work is under Group G_JOB. In general, I used as below
    <? for-each: G_JOB? >
    <? job_no? >
    < ?... ? >
    < ?... ? >
    < ?... ? >
    < ?... ? >
    < ?... ? >
    <? end foreach? >
    It's getting printed on the first page only. If I put it in the header of RTF file, it's ok, if I have chosen the number one job. But if I select for a number n of jobs is not posting.
    Help, please.
    Thanks Vasa.

    Vasa,

    Try this:

    
    
    
    
    
    

    The ' start: body "did everything that precedes a page header.

    Kurz

    Published by: Kurzweil4 on February 7, 2011 13:15

    added @section. This will reset the header for each job area.

  • How to get data from excel

    Hello world

    How can I get data from excel inside my program? I'm using labview 8.2. I have tried to find the solution for this but seems that the solutions are not suitable. Can someone help me? Thank you.

    Hi jieah,

    Inside of the attachment nijams don't you see this?

    read_excel_values. LLB

  • How to port a theme created by theme Builder? Should I start from scratch for each device?

    I created a complex for 8900 theme, now I want to wear 9000, 9700-based project of thm 8900, but I don't know how to import a 8900 9000 project, should I start from scratch for each device?

    I believe you can simply create a new 9000 or 9700 theme of the same type (IE Zen, Custom, today) and then use the "File-> import" command and load in the 8900 theme file you created earlier.  Everything tends to be imported, but you will have to perhaps move some indicators and check for spacing.

  • measure the actual page for each page size in the listbox

    Hi guys,.

    I'm trying to write a script that lists all the pages in the ListBox with 2 additional columns: width and height

    and stuck when trying to get the limits of pages for each page in the document.

    My result looks like this now:

    pagedimensions.jpg

    script no matter what I'm trying to get only the size of the 1st page and fill in all items.

    My code to get the size of the page above is:

    myDoc = app.activeDocument;

    page var = myDoc.pages [0];

    ...

    function myRealHeight() {}

    var Pbound = page.bounds;

    var pH = Pbound [2] - Pbound [0];

    var realHeight = [];

    for (j = 0; j < myDoc.pages.length; j ++) {}

    realHeight.push (pH);

    }

    Return realHeight;

    }

    I have tryied a few different ways but but always returned [object Page] or higher.

    I'm newbie in scripts, and if someone could help me will be great.

    Thank you

    (let me know if other parts of the code are required)

    Try this (sorry not tested).

    var myDoc = app.activeDocument;

    ...

    function myRealHeight() {}

    var realHeight = [];

    for (j = 0; j< mydoc.pages.length;="" j="">

    page var = myDoc.pages [j];

    var Pbound = page.bounds;

    var pH = Pbound [2] - Pbound [0];

    realHeight.push (pH);

    }

    Return realHeight;

    }

  • Get data from a member of the region partitioned customer

    Hello

    I have a partitioned area, this region is in all 3 members, is it possible to get data from this region but only from 1 member of the customer, if so how?

    What is your definition of the region on the server? The three members have given? You set redundant copies? In addition, if the optimizeForWrite() of the service method returns false, the function will run the smallest number of nodes.

    Follow these steps:

    The redundant copies of the value = 1

    Returns true for optimizeForWrite()

    Make sure that all members contain primary buckets

    Perform function like you do above

    Barry

  • I have a downloaded .pdf file. When I click on a page (this happens for each page) he follows me to a link open my browser. How should you remove that? I tried to delete all the hyperlinkes but remained! Thank you.

    I have a downloaded .pdf file. When I click on a page (this happens for each page) he follows me to a link open my browser. How shoul delete who? I tried to delete all the hyperlinkes but remained! Thank you.

    After seeing a few screenshots of the file I think I see what's happening now. There is a watermark diagonal URL through the page that is converted to a link automatically by the application. Disable it go to Edition - Preferences - general and uncheck the box that says "create links from URLS".

  • Get data from a dBASE - .dbf.

    Hello everyone - Hello work Sunday: (.) I need to get data from legacy applications that run the dbase program. You'll need to auto data. If you have an idea, please tell me. Thanks to you, NIC.

    >

    Hello everyone - Hello work Sunday: (.)

    I do not work yet--it's sad that :)

    I need to get the data from the old application
    running the program dbase. You'll need to auto data. If you have an idea, please
    say to me.

    Have a look here http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:711825134415.

    It worked for me, with a bit of difficulty – mainly because of my own stupidity... If you have
    no problem, post back.

    HTH,

    Paul...

    Thanks to you, NIC.

  • How to get data from one or several times of perticuler dates

    (1) how can we get data from one or more dates perticuler.
    for example. date of 01/01/2011 and time is 00:00:00 to 23:59:59

    and

    (2) how can we get data from one or more dates perticuler.
    from date 01/01/2011 to 01/02/2011 date and time e.g. is from 00:00:00 to 23:59:59.

    can we?

    Hello

    Use a WHERE clause to include only certain lines.
    For example:

    SELECT     *
    FROM     table_x
    WHERE     dt     BETWEEN TO_DATE ( '01/01/2011 00:00:00'
                        , 'DD/MM/YYYY HH24:MI:SS'
                        )
              AND     TO_DATE ( '01/01/2011 23:59:59'
                        , 'DD/MM/YYYY HH24:MI:SS'
                        )
    ;
    

    In this example, the first date (before the keyword AND) and second (after the keyword AND) lie on the same calendar day. It's just a coincidence, they can be on different dates.
    The first date must not be later than the date of the second; If this is the case, you will get 0 found lines.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • getting data from two servers?

    Experts-

    We have two servers for the storage of the tables. 1 history 1. current server Prod

    We have same tables in the databases server.

    All the info before one month from the date of the day are stored in database tables history server
    and the rest in database tables current prod server.


    I create reports such as when the user enters a date, OBIEE must check if the date is in a month (30 days) the date today or earlier at 30 days, on this basis, it must get data from historical Server database tables / running production database server.

    How can I implement this?

    I need to create two clusters of connction (RPD records) and develop the same model twice? (One for the historical paintings and one for prod tables?)
    or can I use the technique of fragmentation? If so, can you give me an idea hwow to implement the Fragmentation of this requirement?

    Thank you for your help in advance

    You must use the fragmentation of this requirement. It is not difficult once you understand the basic principle. Nico article read here for details:

    http://gerardnico.com/wiki/dat/OBIEE/fragmentation_content

    The only non-standard bit for you will be to define the criteria of fragmentation on your sources of logical table. This is the part that says BI server to hit source.

    After return here if you get stuck.

    Paul

  • Y510 unable to get data from the camera.

    Hello

    I have a Y510 with Windows Vista 32 bit, 3 GB RAM, only 5 weeks. I get this message when I try to use Veriface, "unable to get data from the camera. The camera may have been disconnected or busy. I reinstalled Vista of the State in which the laptop came, but it does not work. I also updated the bios and install other updates were available. I would appreciate any advice.

    Thank you

    Peter

    I wish it was as easy as press Fn + Esc, I looked through an another Y510 our office and managed to find a process that must be set to Auto, the process is KtmRm. This process cannot be disabled, handicapped, or on a time delay, it must be AUTOMATIC.

  • If I buy the photographer package, can I install on my macbook pro and my mac mini desktop. Where can I get this twice, one for each?

    If I buy the photographer package, can I install on my macbook pro and my mac mini desktop. Where can I get this twice, one for each?

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)

    -An individual account is for one person and may not be shared with anyone else

Maybe you are looking for

  • Logic Pro update

    I have been running Logic Pro, for 2010 and updated in 2012, what I need to buy a second time to keep up-to-date?

  • mini iPad 1 ios disabled 9.3 147963 minutes! I know the password how to do?

    today on my ipad mini 1 ios 9.3 I entered at this day and time and I went back to 2012 and then my screen is - disabled iPad try again in 140000 minutes! Please help how can I get around the time to type my password hope to receive an answer soon

  • get this message on my computer whenever I start my laptop hp 2000-299wm

    Whenever I turn on my computer I get this message now that I've never done before. I would like to know what it means. Name:... ws\start menu\ programs\start up hpm3 util.exe... Unknown Publisher... of c:\users\barb\ data\ roaming\ microsoft\ win app

  • KB2572073. KB2633880 & KB2518864. Update does not work.

    Windows XP KB2572073. KB2633880 & KB2518864.  What insanity.MS, surely you can do better that offer Mr. Fix It who does not work.  I installed 4 times already all automatic two of updates and windows update.  Do not see anywhere in Add Remove and yel

  • USB drivers are missing (after installing Win7).

    Hi all! I bought a laptop HP - pavilion 17-f008sr Energy star (G7Y08EA). There was a Windows 8 operating system. To work on this laptop, I installed a Windows 7 (64 bit) operating system. That I started a system, I saw a problem with my USB in Device