Processing Values When Rendering A Page

Hi,
I have an application that loads a page and retrieves a single row from a table. If one specific column is not null, I have a PL/SQL function call that retrieves related information (via database link) for display. This does not seem to be working when I first render the page; subsequent views of the same page (after applying changes, for example) will show the information properly.
Any suggestions how to make the related data retrieved from the PL/SQL call display on the first rendering of the page?
TIA,
Earl

Scott,
I can communicate the techical problem if I knew precisely what you needed. I just can't send you all the code, which is what you asked for. Anyway, I've embedded comments/responses to your assumptions below, which hopefully clarify the issue so I can get a solution to the problem.
> Let me expand on why troubleshooting your problem
without this information is a waste of time: 1) You
said "if a column in a fetched row is NOT NULL,...".
I can assume that you are using an Automated Row
Fetch process and that you have page items with
Source Type Database Column. But I should not have to
assume that, you should volunteer all such
information.
Yes, I have a single column in a fetched row, gathered using the Automated Row Fetch process. The ARF fetch is based on the table column COW_ID, which is the primary key for the table. The page item P23_COW_ID has source type of Database Column and maps to this specific column in the table.
The page item is called P23_CQAI_NUMBER, with a source type of Database Column. Default type is STATIC_TEXT_WITH_SUBSTITUTIONS, ACCEPT_PROCESSING = REPLACE_EXISTING, and USE_CACHE_BEFORE_DEFAULT = NO. There are no tranlations or post-processing on the field. The ARF happens at sequence #1, before the page is rendered.
2) You said "...call a PL/SQL
procedure..." I can assume that you're using an
on-load page process based on some condition and that
the conditions aren't working and that you've already
determined that the process itself would work if only
the condition worked. But that assumption may be
incorrect.
The following anonymous block PL/SQL is defined as an on-load page process, AFTER_HEADER (tried BEFORE_HEADER, but no difference in behavior). I originally set it to run conditionally (on if P23_CQAI_NUMBER was NOT NULL), but decided to run it unconditionally and embed the not null logic in my PL/SQL block in attempt to debug:
begin
if (:P23_CQAI_NUMBER is not NULL) then
my_package_name.get_cqai_data(p_cqaiID => :P23_CQAI_NUMBER,
p_submitter=>:P23_CQAI_SUBMITTER,
p_assignee=>:P23_CQAI_ASSIGNEE);
end if;
end;
p_submitter and p_assignee parameters in the above procedure call are both VARCHAR2 OUT parameters.
This code always failed, until today in attempt to debug, I changed the block as follows:
declare
l_cqai_number varchar2(8);
begin
select cqai_number into l_cqai_number from my_table
where cow_id = :P23_COW_ID;
if (l_cqai_number is not NULL) then
my_package_name.get_cqai_data(p_cqaiID => l_cqai_number,
p_submitter=>:P23_CQAI_SUBMITTER,
p_assignee=>:P23_CQAI_ASSIGNEE);
end if;
end;
This works every time; but I don't understand why I have to make a second query to the database to get the data already fetched by ARF in sequence #1.
3) I can further assume that you're
referencing the fetched column value using bind
variable or v() notation sometime after the ARF
process runs and that you are using the proper DML
Fetch Mode attribute of the ARF process and that you
are using a version of Application Express that
supports that attribute. You are correct. As far as using the APEX version that supports the attribute; I don't know. I'm using version 1.5.0.00.33 and the documentation is a little thin.
ScottTIA,
Earl

Similar Messages

  • How to get MessageTextInput Value when rendered property is set to false.

    Hi
    Is there any way wherein i can get the value of the data populated in the messageTextInput field which has it's rendered property set to false.When I use pagecontext.getParameter("textboxname"),i can fetch the value at the time of LOV event..but once my lov event is done and I hit the go button,pagecontext.getParameter("textboxname"), returns me null.
    Can anyone suggest me how can I track the value?
    Thanks
    Puja

    Setting rendered to false would make the bean not to be available in the HTML so you cannot do a getParameter on the bean.
    if you want to read a value that is like a hidden field, try using formValueBean instead.
    Thanks
    Tapash

  • Refresh APEX_ITEM.TEXT Value when Interactive Report Page Changes

    I use an APEX_ITEM.TEXT column in an IR where the user can enter some number date.
    to make this data persistent while paginating the ir, i use some DA . Via ajaxthis DA call an onDemandProcess to save the entered data in a collection.
    works great; the input is stored in the collection.
    To show the already entered data, the ir sql statement joins the collection.
    select  APEX_ITEM.hidden(2,artikelnr)||
            APEX_ITEM.TEXT(1
              ,COL_artikel.preis
              ,3
              ,3
              ,'autocomplete="off" onfocus="javascript:f_set_last_val(this);" onchange="javascript:f_validate_integer(this);"'
              ,'INPUTBESTELLEN'
             ) Inputbestellen,
    article.*
    from article
    left outer join COL_artikel on COL_artikel.nummer = artikelnr where col_artikel is a view for better access on the collection
    Now the issue:
    On the first Page i add some data, then i go head to page 2 and 3 of the ir. The collection is filled withe the entered data.
    But when i navigate back to page 1 the entered data is not shown in the input field unless i relload the whole page . I guess because the query is not re-executed when paginating foreward/backward.
    ist there any way to overcome this tiny small issue?
    regards
    peter

    It looks like you are trying to combine apex_item function with a standard tabular form and as far as I know this won't work. You will need to create a manual tabular form in that case. See this and other examples as a refference:
    http://htmldb.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Error when rendering a page having a dvt:lineGraph

    I have a page containing a line graph with the following structure:
    <dvt:lineGraph id="trndgrp"
    tabularData="#{pageFlowScope.myBean.trendChartData}"
    dynamicResize="DYNAMIC_SIZE" imageFormat="HTML5" inlineStyle="border-width:0px;"
    threeDEffect="false"
    timeAxisType="TAT_IRREGULAR"
    timeRangeMode="TRM_EXPLICIT"
    timeAxisInterval="CTAI_MONTH"
    markerTooltipType="MTT_VALUES_TEXT">
    <dvt:timeAxisDateFormat quarterFormat="QUARTER_SHORT" yearFormat="YEAR_SHORT_WITH_APOSTROPHE" dayFormat="DAY_OF_MONTH" monthFormat="MONTH_SHORT"/>
    <dvt:o1Axis scrolling="on"/>
    <dvt:timeSelector mode="EXPLICIT"/>
    <dvt:y1Title text="#{pageFlowScope.myBean.currentDrillDown.uiName}"/>
    <dvt:seriesSet seriesMap="#{pageFlowScope.myBean.trendChartSeriesMap}"/>
    <dvt:legendArea rendered="false"/>
    <dvt:o1Title id="o1Title1"
    rendered="false"/>
    <dvt:y1TickLabel>
    <af:convertNumber integerOnly="true" maxFractionDigits="0"/>
    </dvt:y1TickLabel>
    </dvt:lineGraph>
    At runtime I get the following error:
    Caused by: oracle.jsp.parse.JspParseException:
    ....myBean.jsff: Line # 206, <dvt:lineGraph dynamicResize="DYNAMIC_SIZE" id="trndgrp" imageFormat="HTML5" inlineStyle="border-width:0px;" markerTooltipType="MTT_VALUES_TEXT" private_x1axismaxautoexist="false" private_x1axisminautoexist="false" tabularData="#{pageFlowScope.myBean.trendChartData}" threeDEffect="false" timeAxisInterval="CTAI_MONTH" timeAxisType="TAT_IRREGULAR" timeRangeMode="0">
    Error: "private_x1axismaxautoexist" is not a valid attribute name.
    at oracle.jsp.parse.OpenJspTagHandler.processAttributeValue(OpenJspTagHandler.java:378)
    at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1565)
    at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
    at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
    at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
    I use ADF 11.1.1.7.
    Any ideas on what can cause this error?

    Most probably you are using the wrong Jdev and keep in mind that 10G versions are only for R12.
    Check the metalink Note 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to set item values when redirecting to the same page.

    I just created a redirect button that I want to redirect to the same page and set the 2 page items on the page to the same value they had before the redirect.
    But I can't write:
    Set These Items: P1_Permit_Number,P1_Fishing_Year
    With These Values: &P1_Permit_Number.,&P1_Fishing_Year.
    Because there are no values in the session state, since a submit has not been done.
    So how do I do this?
    I know how to get the values stored in the items, e.g., $v('P1_PERMIT_NUMBER')
    but where do I place that command? It's not allowed under "With These Values"
    And I don't really want to make this a submit button and create a process that says:
    P1_PERMIT_NUMBER := $v('P1_PERMIT_NUMBER') because that would complicate the page too much -- I already have other processes and branches on the pages whose conditions would have to be modified so that they don't run during this scenario.
    Thanks.

    Thanks Gary and Andy. I rewrote the function according to above instructions:
    function redirectToURL()
    var permitNumber = document.getElementById('P1_Permit_Number');
    var fishingYear = document.getElementById('P1_Fishing_Year');
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.::::P1_Permit_Number,P1_Fishing_Year:' + permitNumber +',' + fishingYear;
    window.location.href = url;
    But when I entered a value for permit number and fishing year and redirected, the word "null" appeared in the Permit page item, instead of the permit number that I had entered.
    Remember that I am not submitting here. So if the syntax you showed me, i.e. getElementById('P1_Permit_Number'), searches for the item's session state, then it will be wrong, since there is no session state value for the items at this point. Perhaps that is the reason I got the null?
    If so, what can I do?

  • Losing values when redirected to same page.

    Hi all,
    I have a page A where i am displaying the name and number(these are of type message styled text). when i click on a some button..it takes me to page B where i have a go button which takes me back to page A when clicked. When i come from page B to page A..the values that are being displayed previously are getting disappeared. Can anybody please help me where could have gone wrong.
    And also how can i know that the page A got rendered through the click the Go button on page B? coz on page A's CO, I have do some validation if its rendered through page B's Go button click.
    Thanks,
    Sreeram
    Message was edited by:
    sreeram29

    Hi all,
    I got it fixed..I did nt retain the AM..That was the mistake.
    Thanks.

  • Run a process when leaving a page

    Hello,
    Is it possible to run a process when users leave a page?
    Let me explain:
    On a page, I have an Automatic Row Processing (DML) and a PL/SQL process. These two process are run when users click on the "Apply change" button.
    Is it possible to run these two processes ALSO when users leave the page (click on another tab) ?
    I want to do this to make sure that the changes are saved, even if users forget to click the "Apply Changes" button.
    Thank you in advance for your help.

    Have you looked into using a pl/sql dynamic action page unload event?  I haven't tried before but if you set the item values in the first step of the dynamic action and then execute a pl sql routine that mimics the DML it may work.  Since the action would fire after every page unload, it would also probably need some validation to ensure it does fire during normal processing.
    Ricker

  • I got error message in Firefox when passing the dropdown value to the next page

    Hello:
    I am using Ajax to populate a dropdown box. When I pass the
    value to the next page, I got an error message saying
    'form.thevalue' is undefined in Firefox. It works fine in IE.
    Please find part of the code below:
    form.cfm:
    <select name="appointment_date" id="appointment_date"
    onchange="showTime(document.apptform.select_employee.value,
    this.value, ' ' )">
    <option value=''>[Select]</option>
    <cfloop list="#datelist#" index="thedate">
    <cfif thedate eq '#chg_appointment_date#'>
    <cfset select='SELECTED'>
    <cfelse>
    <cfset select=''>
    </cfif>
    <cfoutput><option value="#thedate#"
    #select#>#thedate#</option></cfoutput>
    </cfloop>
    </select>
    <span id="TimeList"></span>
    GetTime.js:
    var oXmlHttp
    function showTime(staff, date, available)
    var url="/cf/misc/GetTime.cfm?nicknm=" + staff + "&dt=" +
    date + "&ti=" + available
    oXmlHttp=GetHttpObject(stateChanged)
    oXmlHttp.open("GET", url , true)
    oXmlHttp.send(null)
    function stateChanged()
    if (oXmlHttp.readyState==4 ||
    oXmlHttp.readyState=="complete")
    document.getElementById("TimeList").innerHTML=oXmlHttp.responseText
    function GetHttpObject(handler)
    try
    var oRequester = new XMLHttpRequest();
    oRequester.onload=handler
    oRequester.onerror=handler
    return oRequester
    catch (error)
    try
    var oRequester = new ActiveXObject("Microsoft.XMLHTTP");
    oRequester.onreadystatechange=handler
    return oRequester
    catch (error)
    return false;
    GetTime.cfm:
    <CFINCLUDE TEMPLATE="include.cfm">
    <cfset timelist = arrayToList(structSort(atime,
    "numeric"))>
    <span>
    <select name="available_time">
    <cfif #trim(URL.nicknm)# eq 'All'>
    <option value=''>[Select]</option>
    <cfloop list='#timelist#' index='time'>
    <cfif time EQ '#trim(url.ti)#'>
    <cfset select = 'SELECTED'>
    <cfelse>
    <cfset select = ''>
    </cfif>
    <cfoutput><option value="#atime[time]#"
    #select#>#time#</option></cfoutput>
    </cfloop>
    <cfelse>
    </cfif>
    </select>
    </span>
    When I pass #form.available_time# to the next page, in
    Firefox I got error saying 'form.available_time' is undefined. Any
    idea, please?
    Thanks in advance.

    This extension will restore Remote XUL to Firefox 4+ via a whitelist for each domain. <br />
    https://addons.mozilla.org/en-US/firefox/addon/remote-xul-manager/

  • Why there is a difference in a "class" attribute value of html tag when viewed in "Page Source" and using "Inspector", I am refering to new Microsoft site?

    While inspecting the new Microsoft site source, I observed that the "class" attribute value of the "html" tag when seen in Page Source the value given by Tools/Web Developer/Inspect tool. Value with the tool indicates class="en-in js no-flexbox canvas no-touch backgroundsize cssanimations csstransforms csstransforms3d csstransitions fontface video audio svg inlinesvg" while that is given in Page Source is class="en-us no-js"
    The question is why different values are shown?

    Inspector is showing you the source after it's been modified by Javascript and such.
    To see the same thing in the source viewer, press '''Ctrl+A''' to select everything on the page, then right-click the selection and choose '''View Selection Source'''.

  • Urgent! I get value when executing query of VO in page, but null in plsql.

    Hi, gentlemen,
    Please help me with this issue.
    1,My VO query sql is like this:
    SELECT acra.receipt_number as receipt_number,
    al_a.meaning as receipt_type, acra.currency_code as currency_code,
    acrha_a.amount as receipt_amount,
    acra.receipt_date as receipt_date,
    acrha_b.gl_date as gl_date,
    arm.NAME as payment_method,
    acra.doc_sequence_value as doc_sequence_value,
    al_b.meaning as status,
    acrha_a.acctd_amount as acctd_amount,
    rcta.trx_number as trx_number,
    rc.customer_name as customer_name,
    rc.customer_number as customer_number,
    rc.jgzz_fiscal_code as taxpayer_id,
    rsu.location as customer_site,
    acra.customer_receipt_reference as customer_ref,
    acra.comments as comments,
    acra.cash_receipt_id as cash_receipt_id
    FROM ar_receivable_applications_all araa,
    ar_cash_receipts_all acra,
    ar_lookups al_a,
    ar_cash_receipt_history_all acrha_a,
    ar_cash_receipt_history_all acrha_b,
    ar_receipt_methods arm,
    ar_lookups al_b,
    ra_customer_trx_all rcta,
    (SELECT hca.cust_account_id customer_id,
    hca.org_id org_id,
    hp.party_name customer_name,
    hca.account_number customer_number,
    hp.jgzz_fiscal_code
    FROM hz_cust_accounts_all hca, hz_parties hp
    WHERE hp.party_id = hca.party_id) rc,
    (SELECT site_use_id site_use_id,
    org_id org_id,
    cust_acct_site_id address_id,
    location location
    FROM hz_cust_site_uses_all) rsu
    WHERE araa.receivable_application_id = :1
    and acra.cash_receipt_id = araa.cash_receipt_id
    and al_a.lookup_type(+) = 'PAYMENT_CATEGORY_TYPE'
    AND al_a.lookup_code(+) = acra.TYPE
    AND acrha_a.cash_receipt_id = acra.cash_receipt_id
    AND acrha_a.current_record_flag = nvl('Y', acra.receipt_number)
    AND acrha_a.org_id = acra.org_id
    AND acrha_b.cash_receipt_id = acra.cash_receipt_id
    AND acrha_b.first_posted_record_flag(+) = 'Y'
    AND arm.receipt_method_id = acra.receipt_method_id
    AND al_b.lookup_type(+) = 'RECEIPT_CREATION_STATUS'
    AND al_b.lookup_code(+) = acra.status
    AND rcta.customer_trx_id(+) = acra.receivables_trx_id
    AND rcta.org_id(+) = acra.org_id
    AND rc.customer_id(+) = acra.pay_from_customer
    AND rc.org_id(+) = acra.org_id
    AND rsu.site_use_id(+) = acra.customer_site_use_id
    AND rsu.org_id(+) = acra.org_id
    2, I add the init func in VOImpl which is like this:
    the receiptApplicationId is 136877.
    public void initQuery(Number receiptApplicationId)
    setWhereClauseParams(null); // always reset
    setWhereClauseParam(0, receiptApplicationId);
    executeQuery();
    When executing the page, its value shows to be "現預金".
    And I used String receipt_type = (String)oaRow.getAttribute("ReceiptType"); in AMImpl, its value is "現預金".
    But when I execute above sql in pl/sql developer, its value is null.
    I am really confused with this.
    How could I get the whole running sql statement, and know why my issue is like this? It's very urgent, Thanks!

    This Query is Org Specific.(As this query using Ord_id attribute to fetch out row.)
    you need to set org_id at PLSQL Developer or Toad Level.
    Thanks, Avaneesh

  • Unable to process your request when clicking next page button in web app

    Hi,
    1) I'm using CR for VS v13 (13.0.2000.0)
    2) .Net 2.0 in IIS6 compiled with TFSBuild on TFS2008
    3) Issue ocurs when deployed on QA server
    4) Database is SQL server 2005
    5) Ado.Net passing data definition thru an xsd with a multiple tables dataset
    6) Reports using en embeded query are ok.  This happens only when we use data definition thru an xsd with a multiple tables dataset
    7) Don't know yet (I will have a hard time convincing my boss to stay with CR if I have to redo my reports anyway...)
    8) When using Fiddler, only "200" responses are returned.  Thats when producing the page and also when clicking on the next page button
    The detailed message also says: "The target '...' for the callback could not be found or did not implement ICallbackEventHandler. "
    Thanks
    - Stephane
    Edited by: jjslagace on Apr 1, 2011 12:25 AM

    Hi again Ludek,
    Sorry for this late reply.
    I followed you advice and installed the SP1 (CRforVS_13_0_1).  It did not solved the problem with the next page button but It did fixed some printing problem we also had.
    The page where the problem occured was loading the Crystal Reports Viewer dynamically after or durring the page load.
    After reading other posts loosely related to my problem, I changed my page to load the Crystal Reports Viewer statically in the .ascx.  It solved the problem and we can now navigate in the report normally like before the update.
    Thanks for you help.
    - Stephane

  • How to update form item in IR with value when it is null when pressing Go?

    Hello,
    in an IR i have created a Date Picker Item. This item i want when user enters page to have a default value. Also when the user clears this field i want the corresponding item to get a default value. i have achieved the 1st but not the 2nd. I need this replacement in the item value because it its needed in a between where date expression in the report query and i want to have the bind variables only, not NVL them in order to avoid scanning all partitions of table. Thi item is used as an extra search field in the Report and it is included in the Page Items to Submit | Advanced Report Attributes.
    How can i do this ?
    What i have set up atm:
    Source Used
    Always, replacing any existing value in session state
    Source Type
    PL/SQL Expression or Function PL/SQL
    Source value or expression
    TRUNC(SYSDATE)
    and also in Default :
    Default value
    RETURN TO_DATE('01/01/1980','DD/MM/RRRR')
    Default Value Type
    PL/SQL Function Body
    TIA

    Dionyssis ,
    Normally you could, but IRRs are a little different. You can use the page rendering options, but page submit options will not fire when the report is being redrawn.
    To get you started, add this to the item's HTML Form Element Attributes:
    onblur="this.value = $v('PX_HIDDEN_DATE_ITEM')"Then just create a hidden date item and give it a default value. This will keep you from having to get into JavaScript date formatting which is terrible when compared to Oracle.
    Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Losing data on a tabular form when submitting a page with validation errors

    I have a window that has a regular HTML form at the top that has several items. Then on the bottom of the page, I have a tabular form where the user can enter multiple rows of information. Unfortunately, when the page is submitted, if there are any validation errors, any changes that were made in the tabular form are lost.
    Any suggestions

    Fair enough :)
    Actually what I was meaning was could I use a collection to repopulate the tabular form when I receive errors. It appears as if it may work. However, I am hitting one snag.
    I have created a PL/SQL Process that runs On Submit and Before Computations/Validations. In this process, I have saving the values in the tabular form to a collection.
    I was then hoping to create another process that ran after any errors occur. However, it does not appear as if any processes run when the screen redraws after a validation issue. Is there a process that runs after validations when the screen is redrawing? Will I need to do this using javascript?
    Thanks

  • It takes long time to load the parameter's value when running we run report

    Hi,
    It takes long time to load the parameter's value when running we run report. What could cause this? How to troubleshoot the behavior of the report? Could I use Profile and what events should i select?
    Thanks

    Hi jori5,
    Based on my understanding, after changing the parameter, the report render very slow, right?
    In Reporting Service, the total time to generate a report include TimeDataRetreval, TimeProcessing and TimeRendering. To analyze which section take much time, we can check the table Executionlog3 in the ReportServer database. For more information, please
    refer to this article:
    More tips to improve performance of SSRS reports.
    In your scenario, since you mention the query spends less time, the delay might happens during report processing and report rendering section. So you should check Executionlog3 to check which section costs most of time, then you can refer to this article
    to optimize your report:
    Troubleshooting Reports: Report Performance.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • How to get value when OAMessageLovInputBean Change

    How to get value when OAMessageLovInputBean Change
    I want to get lov value atfer user select value return page

    As you wanna get the value in process form request, get the value from the VO column attached to the bean, if not you can attach a tranient Vo attribute!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • My SAFARI KEEPS  CRASHING STATING THAT IT QUIT UNEXPECTEDLY DUE TO CT_PLUGI

    HELLO MY SAFARI KEEPS CRASHING DUE TO CT_PUG-IN PLUGINS. PLEASE HELP! Process: Safari [257] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 5.0.4 (5533.20.27) Build Info: WebBrowser-75332027~2 Code Type: X86

  • "No Internet Access" on connected device with mobile hotspot

    I've been on Verizon for 2 weeks.  Note II on a Family Share Plan with lots of data.  Using the built-in Verizon Mobile Hotspot application.  Connecting from my work laptop, which is Windows 7. Set it up and everything worked fine for a week and a ha

  • First Kernel Panic ever -- I would really apprec help on what this log mean

    While charging up my ipod, I forgot to eject it before turning off itunes -- then I turned Itunes back on, then got my first kernel panic. Is this something to be concerned about? The message I got was as follows: Sat Oct 17 09:25:31 2009 panic(cpu 0

  • Supported way to migrate to larger hard disk

    I am a happy, no exctatic owner of a Macbook Pro 15 inch 2.6, purchased in December 2012. The 750 GB hard disk is a bit tight. So I'm looking at getting a 1.5 TB drive and migrating to it. I don't want to lose my restore partion or anything else I've

  • SQL Developer / JDK On Windows Server 2008 64 bit R2

    Does anyone have the recipe to fix the annoying message:  "Cannot find a J2SE installed at path:  C:\Program Files\Java\jre6"?  I get the same message, when trying to set up and run SQL Developer on a Windows 2008 server with SQL Developer 32 bit, Ja