Can you look at my code and give me any idea why the pie garph doesnt show?

Hi..
i use beans to create an pie graph and i dont know how i can add data to it,i mean what data must be pass to it.. as u know in column and line graph there is an x-axis and y-axis and in pie there no x or y axis..i need 2 categories and one value to put on it.
and the code is :
CURSOR C_DETAIL IS
SELECT REF_TYPE ,
REF_YEAR ,
REF_NUM ,
ACT_DATE ,
UNREL_PROF_LOSS , ----------------->(value)
TO_CHAR(ACT_DATE , 'DD/ MM/ YYYY') ,----------->(Category1)
LPAD(TO_CHAR(REF_TYPE),2,'0')||'/'||
LPAD(TO_CHAR(REF_YEAR),2,'0')||'/'||
LPAD(TO_CHAR(REF_NUM),6,'0') "DEAL_NUM"--------->(Category2)
FROM BOND_ACT
WHERE ISSUE_NUM = :KEY.ISSUE_NUM AND
ISSUE_NUM_ABB = :KEY.ISSUE_NUM_ABB AND
ISSUER_ID = TO_NUMBER(:KEY.ISSUER_ID ) AND
ACT_DATE >= TO_DATE(:KEY.FROM_DATE,'J') AND
ACT_DATE <= TO_DATE(:KEY.TO_DATE,'J') AND
ACT_TYPE = 6
ORDER BY REF_TYPE , REF_YEAR , REF_NUM , ACT_DATE;
BEGIN
set_custom_property('CHART_DISP.SIMPLEGRAPH',1,'CLEAR_GRAPH','');
SET_CUSTOM_PROPERTY('CHART_DISP.SIMPLEGRAPH',1,'DEBUG','TRUE');
VD := ',';
COUNTER := 0;
OPEN C_DETAIL;
FETCH C_DETAIL INTO var1,var2,var3,var4,value,Category1,Category2;
while (C_DETAIL%FOUND) LOOP
CDATA := X||VD||'PIE GRAPH'||VD||X;                    
set_custom_property ('CHART_DISP.SIMPLEGRAPH',1,'ADD_ROWDATA',CDATA);
COUNTER := COUNTER +1;
FETCH C_DETAIL INTO var1,var2,var3,var4,value,Category1,Category2;
               END LOOP;
                         SET_CUSTOM_PROPERTY('CHART_DISP.SIMPLEGRAPH',1,'GRAPHTYPE','PIE_GRAPH');
                         SET_CUSTOM_PROPERTY('CHART_DISP.SIMPLEGRAPH',1,'COLUMNCOUNT','');
set_custom_property('CHART_DISP.SIMPLEGRAPH',1,'ADD_DATA_TO_GRAPH','');
CLOSE C_DETAIL;
set_custom_property('CHART_DISP.SIMPLEGRAPH',1,'SHOW_GRAPH','');
EXCEPTION
     WHEN OTHERS THEN
     MESSAGE('SQLCODE='||SQLCODE||SQLERRM);
     MESSAGE('SQLCODE='||SQLCODE||SQLERRM);
end;

Hi,
please see the html help file (graph90.html) that comes with the Graph bean sample. The debug option is enabled with a call to set_custom_poperty('blockname.beanarea',1,'DEBUG', true)
The messages are written to teh JInitiator console (see right bottom corner of windows to open)
Frank

Similar Messages

  • Can U look at my code and give me any idea why the scatter garph didnt work

    Hi,
    i use this code to create a scatter graph using bean in oracle 10g forms and it didnt show the points.. it only show an empty graph although the cursor return data..Please if anyone know whats the problem i would be so thankful.
    And here is the code:
    DECLARE
    cursor c is
    SELECT
    FRA_YEAR, -----> X
    TOTAL_AMT_IN_BASE -----------> Y
    FROM TMP_GRPH
    ORDER BY FRA_YEAR;
    cdata varchar2(2000);
    vd varchar2(2);
    X NUMBER;
    Y NUMBER;
    COUNTER NUMBER;
    cdata varchar2(2000);
    vd varchar2(2);
    X NUMBER;
    Y NUMBER;
    COUNTER NUMBER;
    BEGIN
    set_custom_property('CHART.SIMPLEGRAPH',1,'CLEAR_GRAPH','');
    SET_CUSTOM_PROPERTY('CHART.SIMPLEGRAPH',1,'DEBUG','TRUE');
    VD := ',';
    COUNTER := 0;
    OPEN C;
    FETCH C INTO X,Y;
    while (C%FOUND) LOOP
    CDATA := X||VD||X||VD||Y||VD||Y;
    set_custom_property('CHART.SIMPLEGRAPH',1,'ADD_ROWDATA',CDATA);
    FETCH C INTO X,Y;
    END LOOP;
    set_custom_property('CHART.SIMPLEGRAPH',1,'GRAPHTYPE','SCATTER_GRAPH');
    set_custom_property('CHART.SIMPLEGRAPH',1,'ADD_DATA_TO_GRAPH','');
    CLOSE C;
    set_custom_property('CHART.SIMPLEGRAPH',1,'SHOW_GRAPH','');
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('SQLCODE='||SQLCODE||SQLERRM);
    MESSAGE('SQLCODE='||SQLCODE||SQLERRM);
    end;
    note:
    FRA_YEAR is the X-axis
    TOTAL_AMT_IN_BASE is the Y-axis
    Thanks alot
    Eyad Basheer

    Hi,
    please see the html help file (graph90.html) that comes with the Graph bean sample. The debug option is enabled with a call to set_custom_poperty('blockname.beanarea',1,'DEBUG', true)
    The messages are written to teh JInitiator console (see right bottom corner of windows to open)
    Frank

  • My iphone 4 lock screen/power button is not working, nothing spilled on it and not dropped, any idea why the button won't work?

    My iphone 4 lock screen/power button just stopped working.  nothing spilled on it and not been dropped.  Any idea why it stopped working?

    Kat Goddess wrote:
    Any idea why it stopped working?
    I have no idea why it stopped working.  But why it failed does not matter.
    Take it to an Apple Store or Authorized Apple Repair Center and have it assessed and see what it would take to get it working.

  • Use Cellular data for: with 8.1.1 in my iPhone 5, I can only see two options 'FaceTime' and ''Passbook'. Any idea why cannot I see other apps to turn on with cellular data ???

    Can not use all apps with cellular data

    In Settings/General/Restrictions if you tap on Cellular Data Use there should be 2 options: Allow Changes or Don't Allow Changes. If you don't see these options is that where you see "Cellular data is turned off for 'Setting'?
    Do you have a corporate MS Exchange email account on your phone? If so your administrator may have added an override on this setting.

  • Hi can you still turn off 3G and use only GPRS service on the 5s?

    Hi can you still turn off 3G and use only GPRS service on the 5s?

    Whether you have a setting to do such is determined/controlled by your carrier.

  • I have Creative Cloud and just downloaded Ae... but it is version CS6... not CC2014.1 . Any idea why the download is for an older version?

    I have Creative Cloud and just downloaded Ae... but it is version CS6... not CC2014.1 . Any idea why the download is for an older version?

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • My ipad was taking really clear photos but now they are blurry and grainy.  Any ideas why?

    My ipad was taking really clear photos but now they are blurry and grainy.  Any ideas why?

    Try This...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • My iMac screen goes bright and dim randomly, any idea why?

    my iMac screen goes bright and dim randomly, any idea why?

    Sounds like a power issue.
    Try Resetting the System Management Controller (SMC)

  • First generation Mac pro booted into utilities and HD recovery, any idea why?

    Hi,
    My first generation Mac pro booted into utilities and HD recovery when I restared after installing Autodesk sketchbook pro. This isnt the first time this has happened but last time I was not trying to install any software. Fortunatly, I have time machine backups and therefore have managed to recover the HD to a recent date and I intend to do a complete system check when it has finished. The first time this happened I didnt think much of it but now it has happened a second time i'm becoming a little concerned, any idea why this has happened?

    I did this the first time it happened so I know that its not that i have the wrong startup disk selected. However, after the recovery had completed I tried the installation again and this time everything went smootly. so as of right now I dont have a problem. Thank you very much for your time and help.

  • Can you look at my code?

    Ok, Murray was kind enough to help me but then I managed to
    mangle everything so I'm starting from scratch.
    I work in graphics but not in web design, so html and css are
    fairly new to me. I put together a simple set of images and I
    successfully got them centered, but I want them LEFT aligned within
    the center - so that anytime a user expands their web browser, all
    the images remain left aligned relative to each other but as a
    whole centered in the window (see Yahoo home page for an example of
    everything remaining in the center).
    Right now it's centered but not left aligned within the
    center. When I try to manually (or via Dreamweaver) left align
    within the center, everything winds up flush ALL the way left
    instead of centered, OR, more frustratingly, upon expanding the
    window the lower images pop up to the line above them and to the
    right (this isn't happening right now but would if I were take off
    the centering that's on there now).
    Can anyone help? take a look at my code, maybe?...
    http://presentations.patrickmeyers.com/

    Hmmm.
    For some reason this didn't go over to the web forum when I
    first posted it.
    I'll try again.
    Hello,
    The <center> tag is aligning all within it to center,
    including the images.
    It actually isn't centering the div at all, as the div's
    default width is
    100% of the browser window's width if no width is assigned.
    The center element is deprecated, and sholdn't be used.
    A good way to center the content area is to use CSS to center
    the div that
    your content is in.
    First, in code view, delete the <center> and
    </center> tags.
    Next, add the following CC just before the </head> tag:
    <style type="text/css">
    <!--
    #wrapper {
    width: 792px;
    margin: 0px auto;
    -->
    </style>
    Next, change this:
    <body>
    <div>
    To this:
    <body>
    <div ID="wrapper">
    What does this do?
    We use CSS to center the div that contains your images.
    The CSS you added before </head> says that for any
    element with an ID of
    wrapper, in this case the div, make that element 792px wide
    and center it.
    The "center it" part comes from:
    margin: 0px auto;
    This means give the wrapper div a top and bottom margin of
    0px, and a left
    and right margin of "auto".
    Auto tells the browser to take the width of the browser
    window, and subtract
    the width of the wrapper div (the reason the div was given a
    width).
    Then, take what's left and divide it in two, giving each
    value to the left
    and right margin.
    For example:
    Your browser window is 1000px wide.
    1000px (window) minus 792px (wrapper div) = 208px left over.
    The 208px is
    divided by 2, so the left and right margin of the wrapper div
    are each
    assigned a value of 104px.
    The div is now centered.
    The images will automatically align to the left within the
    wrapper div as
    align left is the default if no alignment is set.
    Next, it's a good idea to use CSS to zero out the body margin
    so different
    browsers don't use their default values.
    In other words, you don't want your content to start at
    different distances
    from the top of the page in different browsers.
    Just add this right before #wrapper:
    body {
    margin: 0px;
    padding 0px;
    Lastly, you don't need the <br> tags.
    The page should now look like this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    margin: 0px;
    padding: 0px;
    #wrapper {
    width: 792px;
    margin: 0px auto;
    -->
    </style>
    </head>
    <body>
    <div ID="wrapper">
    <img src="banner.jpg" alt="image1" width="792"
    height="336" />
    <img src="click-button-purple.jpg" alt="image2"
    width="180" height="46" />
    <img src="lowerbanner.jpg" alt="image3" width="792"
    height="41" />
    </div>
    </body>
    </html>
    Take care,
    Tim
    "patrickpmm" <[email protected]> wrote in
    message
    news:[email protected]...
    > Ok, Murray was kind enough to help me but then I managed
    to mangle
    > everything
    > so I'm starting from scratch.
    >
    > I work in graphics but not in web design, so html and
    css are fairly new
    > to
    > me. I put together a simple set of images and I
    successfully got them
    > centered,
    > but I want them LEFT aligned within the center - so that
    anytime a user
    > expands
    > their web browser, all the images remain left aligned
    relative to each
    > other
    > but as a whole centered in the window (see Yahoo home
    page for an example
    > of
    > everything remaining in the center).
    >
    > Right now it's centered but not left aligned within the
    center. When I try
    > to
    > manually (or via Dreamweaver) left align within the
    center, everything
    > winds up
    > flush ALL the way left instead of centered, OR, more
    frustratingly, upon
    > expanding the window the lower images pop up to the line
    above them and to
    > the
    > right (this isn't happening right now but would if I
    were take off the
    > centering that's on there now).
    >
    > Can anyone help? take a look at my code, maybe?...
    >
    >
    http://presentations.patrickmeyers.com/
    >

  • Can you double check my logic and maybe provide alternate ideas? - Logic board charing issue

    My situation is that I have two Core 2 Duo macbooks, model 2,1 and 1,1. One sustained a fall and basically still works as computer but screen is cracked, optical drive wont run and key board has some keys that broken of in a way that can't be replaced. The only thing wrong with macbook number two is a coffee spill. It won't charge the battery or run of the power adapter but will run on a battery that has been charged on another macbook.
    I figure I probably have one fully functional macbook between the two. What I need to know is:
    1. are these slightly different model numbers fully compatible for swapping out parts?
    2. What is the best way to go about this in light of wanting to combine the display, optical drive, and keyboard from one mac with the logic board of the other. Should I think of it as a swapping of logic boards or cannibalizing a host of parts off of one back to the other? The former feels cleaner but the latter might be actually be less complicated and less work.
    3. Is the logic board the firm culprit in the second macbook? Is there another possibility? Is there a clear spot where the logic board might be shorted that can be more easily repaired than the possible number 2 scenarios?

    Look in "About This Mac" in the  menu for the serial number. They probably didn't copy it to the new logic board. They can download software to do this from a website restricted to Apple service departments.

  • Can't look at laptop screen without getting migraines - any ideas?

    Hi all,
    I used my last 15 inch macbook pro bought around 2007 for many hours every day without any problems before it recently gave up the ghost. I then purchased the latest 13 inch macbook pro model a couple of weeks ago.
    However, it seems I can't look at my new laptop screen for more than about 10 minutes without my eyes feeling a bit odd and blurry and me ultimately getting a migraine and feeling sick, and having to lie down if I spend any longer than say half an hour at the computer. The obvious thing would be that the brightness is too high or low but i get the same result with differing brightness, and i've also tried increasing the zoom so text size is not too small, as obviously this is a smaller laptop than before.and it doesnt seem anywhere as bad with other laptop screens.
    I've been to the doctors who don't seem to think there's anything medically wrong with me, has anyone else had similar problems with these macbook screens? did apple use a different technology on the screens recently that affected people?
    Many thanks for any advice!!

    A small minority of users suffer from severe eyestrain, headaches, and other adverse effects when using MBP screens. Theories vary widely about what is to blame: the LED backlighting (though all MBP screens have been backlit with LEDs since the first MBP models); the glossy screens in many models, including all 13" models; the brightness or dimness setting at which the screens are used, the small size of the type on high-resolution models, etc., etc. Most users have no problem with any of these things and are happy using their MBPs, but for some the screen is really a problem, and no one workaround or remedy seems to work for all of those who are uncomfortably affected.
    There is an interminable thread here on this subject (or subjects, since it's possible that more than one thing is at work). You may want to read some of the posts in it for ideas about things to try:
    https://discussions.apple.com/thread/1677617?start=0&tstart=0
    Be aware that like most very long threads in these forums, this one contains some misinformation, many unsupported opinions and untested theories, some good information and reasonable test data, lots of ideas, a certain amount of useless complaining, a few flames, and lots of "I have the same problem!" posts that don't make it clear exactlly what problem they're taking about. You'll have to use your own good judgment about what to take from it.

  • HT201342 My I pad mail account has "locked up" can't send or receive nor access my emails  - any ideas why and how to fix it!

    I can't access any functionality on my icloud email account on my I pad, all functions other than loading has locked up the last received email was a local government one. so I'm using my PC to send this. Any ideas how to unfreeze this account? Safari and all other apps seem to be working OK.

    Hi Jim,
    You may not have done anything but glitches happen when systems are old and if you are still on 10.3 perhaps it's time to update or upgrade a few notches.   Or are you on a different OS to your profile?

  • Can you see this below code and explan me how it is executed

    if (!user.authenticate (username,password))
                   error = true;
                   errMsg = "<li>Username or password is invalid.</li>";
    errMsg = errMsg+"some test";               session.setAttribute("error",errMsg);
    response.sendRedirect("login123456.jsp?username="+username);
    aUser = UserLock.getUsernoLocked(usr);
    String lock =""+aUser.get("LOCKED");
    int locked=Integer.parseInt(lock);
         if (locked!=0)
    errMsg ="<li>Your user account has been locked </li>
              } else {......>if user is authorised cursor goes here---------
    at what condtion the staments after response.sendRedirect("....") is executing.....
    any possiblites......is there that code is executing...
    can u please tell me...

    at what condtion the staments after
    response.sendRedirect("....") is executing.....As soon as the call to sendRedirect() returns.
    any possiblites......is there that code is
    executing...Of course it will execute. But the real question is, why is it there anyway? When you call sendRedirect(), you tell the client to create a new request for some other servlet or JSP. What's the point of continuing to process the current request?
    Or to put it another way, why do you have code in a place where you (mistakenly) don't expect it to run?

  • I can use cut and paste in Rich Text Editors for all web site hosts but one. I have tried the solution you provided, but it doesn't work. Any ideas? the website that rejects cut and paste is Network Solutions

    I really hoped you would fix the security policy issue in release 4. I have to close Firefox and use IE9 to maintain a website I built with Network Solutions and I'd much rather not have to endure the slowness of IE. I also have websites with Wix and WEBS and have no problems at all using cut and paste with them.

    Did you have it connected to the library mac when it froze? If so, why? I would be hesitant to hook my ipod to a unprotected public computer since it may be infested with viruses or have unknown hardware problems.
    In any case, if you can get it to an Apple store they can probably help you with it, it sounds like it needs replacing.
    A certain percentage of any complex product will turn out to be defective and will have to be returned, it sounds like you were unlucky enough to get one. Looking over the forums here it may seem like the ipod is plagued with bugs, but don't forget that there are millions who never have a problem and so have no reason to pipe up here. Personally I think Apple deserves a thumbs up for continuing to host these forums in spite of how they may cast a negative light on thier products to the casual observer.
    5G 60GB Black iPod   Windows XP Pro  

Maybe you are looking for

  • Cannot find "file to sync photos"?

    I'm am trying to update my photos. But everytime I try sync my phone it prompts with an error. can't find the file. phone cannot be synced. Why?

  • My Skype to go Number changed locations costing me...

    Hi. I have been using my Skype to go Number in Ottawa/ ONTARIO for years now. However the last few months the number is being charged as a long distance number on my landline phone bill. contacting my Landline provider they informed me that the locat

  • How do I archive email in Mail to an external drive to save disk space?

    Mail My 160 GB hard drive is filling up fast.  I am trying to move files to an external drive to make space.  Running a small business I have been moving emails from my host server to my disk to saves space on the server.  Now I need to move the emai

  • Bug: Letterbox effect gives unwanted high brightness and low contrast

    When I apply the Letterbox effect, it looks good in the preview, but the result is a barely visible clip, all whited-out, letterboxed but with extremely low contrast and high brightness (applied to the whole screen, including the black letterbox bars

  • DWF to pdf conversion

    When I try to convert a DWF file to pdf, only part of the document prints. If I open the document and print it with adobe, the entire document prints. How can I get the entire document to convert without opening it?