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

Similar Messages

  • 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

  • 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.

  • 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

  • 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 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'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?

  • HT3702 for some reason suddenly itunes will not accept my visa debit cards security code and i have no idea why... all the information is correct but it wont accept the security code.. Please help i cant purchase or update any app or anything

    I don't know why but itunes just suddenly wouldn't accept the security code???

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorisations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Richtextbox tools bar menu is not display for Firefox and chrome. Any idea why this is happening?

    Hello,
    I have added RichTextField in custom webpart. I have added tag like below
    <SharePoint:InputFormTextBox ID="RichTextField1" runat="server" TextMode="MultiLine" RichTextMode="FullHtml" Columns="20" Rows="10" RichText="true"  />
    We are able to see Richtextbox tools bar menu in IE browser but it's not working for other browser like chrome and Firefox.
    Can anyone suggest us why this is happening?
    Any help would be appreciable.
    Thanks,
    Lovkesh Patel

    Hi,
    According to your description, my understanding is that the richtextbox tool bar menu not display in non_IE browser.
    The richtext box not supported in Non-IE browser, it leads to the issue.
    Here are some similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c6482efb-72e1-4536-a3cb-153d838744a4/sharepoint-rich-text-editor-not-working-in-firefox-and-chrome
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/8133e762-d996-4672-a176-aa37f45c46c0/sharepoint-text-control-with-rich-text-edit-tools-on-ribbon
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Everytime I open Aperture it starts rebuilding previews and thumbnails. Any idea why?

    Help please?

    Closing and reopening Aperture after it completed its job just started rebuilding previews & thumbnails again and again
    If all previews have been generated, and you still see frequent processing of previews, there may be two reasons:
    Your Preferences settings do not take, because the preferences file in the user library is corrupted.
    You may have imported a corrupted image file or video, for that the generation of previews will never succeed.
    The first can be fixed by removing the Aperture preferences apple.com.Aperture.plist from your user library, see the Aperture 3: Troubleshooting Basics on how to do this.
    The second requires to search your last import, and to try to generate previews manually for subsets of these images, to find the one, for which the generation of previews will hang.
    Regards
    Léonie

  • The email adresse that I used to create my Apple ID isn't good anymore. I tried to change it but the new one that I have can't be use for MobileMe ??? Any idea why ?

    The email adresse that I used to create my Apple ID isn't good anymore. When I tried to use my new email, I have a message in my iphone saying that this apple id can't be use for Mobile Me. I use this email for some Apple training at my job.
    Thanks

    http://forums.whirlpool.net.au/archive/1801333
    I found the above link helpful!  Apparently the @me.com is a separate "apple id" ...pretty stupid - the whole reason I got the @me.com e-mail is I thought I would streamline everything into one....
    Cheers

  • Can anyone explain what the other section section in the HDD usage description is for ? I recently used iphoto to send a mail and this "other "section inrease the usage by about 1GB....any ideas why ?

    Can anyone explain what the "other" (yellow colour) section in the HDD usage description is for and what it does.It is under the about this mac section and storage option?
    I recently used iphoto to send mail with photos attached and this "other" section increased by about 1GB. The mail size was around 900KB.....any ideas ?

    Shurig wrote:
    Thanks gor replying,,,this is my first time on this site.
    Any idea why the "other" continues to increase. I have just got got my mac so no new apps installed yet only been using it for mail and web browsing. I tried the iphoto mail last night and noticed the the "other" section had increased by 1GB which I thought was rather larger. Do you know what this setion actually does ?
    Also do you know if it is possible to delete the iphoto emails.
    All of your 'stuff' that is not Music Movies Apps Backups or Photos is in Other, that means all your emails, all your files etc, why don't you just leave well enough alone, this is not windows and doesn't need tinkering with,

Maybe you are looking for

  • ValuationType(VT) Auto Picked at GRN after keeping the VT filed blank at PO

    Dear Gurus, I need to trace my FOC items seperately. For that i am using split valuation and created a valuation type as FOC. I have created a PO for the same material in two line items. One with valuation type blank and other with valuation type FOC

  • Campaign Element execution and job status

    Hello SAP Gurus, I have a requirement, where the Client wants to execute the Campaign Element. Is that possible? He also says, the end user should execute the Campaign element level. I tried doing that, but the Job status remains as "JOB NOT SCHEDULE

  • Forgotten password...cannot get around an initial log in screen

    Hello everyone, thanks in advance for any help that can be offered. I am posting this for my friend who is not really an Apple user and the Macbook was a present to his daughter 2 years ago. Its using OS X 10.4.9. Long story short, when the laptop wa

  • Transport to Productiion Server

    Hi Experts. I have created a flow service in Business Connector and need to transport it to Production server, I have no idea related to transport of business connector services. can anyone please tell me how to transport it to PRD and what are the s

  • Can't open Office Mac 2008 programs after install

    I just upgraded my MacBook Pro to SL and now I cannot open any of my OfficeMac 2008 programs (i.e. Office or Entourage) - it just shows the title window for the program and goes to 'not responding' mode. Anyone know how to fix this?