On Demand AJAX No Response?

Have a weird issue. We switched a web server (Oracle 10G App Server) over from our sandbox Apex area to our new development database which runs 3.2.0.00.27. I imported a few test applications from the sandbox which worked without issues because we used it in a customer demo. Anyway they are fairly simple Ajax calls to populate a select list but it does not seem to be firing correctly that I can tell. I definitely shortened up the query in the on-demand process so that it was simple but the real query didnt work either. Is this network related or do I have a bug somewhere in the code? It seems like none of the AJAX stuff that used to work in the other database is functioning any more.
I called the on demand process by itself in the URL and it returned:
<select>
<option value="1">TEST</option>
</select>So I'm sure it should actually be functioning but the select list is not populating. I looked in firebug and it is POSTing and I can see a parameter being passed, but I'm getting no response.
p_flow_id:102
p_flow_step_id:0
p_instance:883066291548100
p_request:APPLICATION_PROCESS=populate_select
x01:IM PASSING THISI have items P13_X3 (text field) and P13_X4 (select list). onblur for P13_X3 is onblur="populate_select(this, 'P13_X4');"
Here is the javascript and on-demand:
<script language="JavaScript1.1" type="text/javascript">
function populate_select(pThis,pSelect){
     var l_Return = null;
     var l_Select = $x(pSelect);
     var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=populate_select',0);
     get.addParam('x01',$v(pThis));
     gReturn = get.get('XML');
     if(gReturn && l_Select){
        var l_Count = gReturn.getElementsByTagName("option").length;
        l_Select.length = 0;
        for(var i=0;i<l_Count;i++){
            var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
declare
  v_count number:= 0;
begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for r in (select 'TEST' name,
                     1 id
                from dual
               order by 1) loop
v_count := v_count + 1;
htp.prn('<option value="' || r.id || '">' || r.name || '</option>');
end loop;
htp.prn('</select>');
end;

Hi,
The application process itself looks ok. Comparing it to an example that I use ([http://apex.oracle.com/pls/otn/f?p=20297:14]), the only difference is that I have a "data" tag around the "select" tag - I don't think that this is necessarily required, though. Otherwise, it matches exactly (apart from the SQL statement itself, of course!).
Two suggestions:
1 - Change either the process name or the javascript function name so that they are different
2 - Change the 0 in the last parameter of the Ajax call to the actual page number
Otherwise, I'll have another look at the javascript again
Andy

Similar Messages

  • Business Catalyst Log in form via AJAX

    Hi guys I am trying to avoid the standard form redirection of Business Catalyst to a more customisable style but I cant get it to respond properly.
    Here is my code:
    $("#login-form").submit(function(e) {
            e.preventDefault();
            $.ajax({
                type: "POST",
                url: $(this).attr("action"),
                data: $(this).serialize(),
                success: function(e) {
                    window.location = 'https://bestkilts.worldsecuresystems.com/user-system/order-history.htm'; // I know this can be set from the form submission but I have other plans
                error: function(e) {
                    $(".form-error").slideDown();
                    $(".form-error").delay(8e3).slideUp(300)
    The form is already submitting via AJAX! "&JSON=1".
    Eventually the error message responds as a success! so I cant really look at the AJAX response to code this precise.
    Please any one there with some knowledge about it please share.

    Only custom web forms in BC have an ajax / json response request, that will not work with the login form and some others in BC.
    You will need to do your own ajax request but then you will not issues about the cross domain etc. You need to look at how the BC login works, your refresh and how to address that. (Its more complicated then you think)

  • AJAX  Callbacks  & apex.ajax.ondemand     -  APEX 4.0

    Hello,
    I am trying to use the apex.ajax.ondemand(pWidget,pReturn) package for the Ajax Callbacks functionality in APEX 4.0. However since I need the $v('pFlowStepId') to identify the ondemand process within the application and the apex.ajax.ondemand() package does not allow for the inclusion of this parameter I am unable to use it.
    Do you have any suggestions besides using the the htmldb_Get directly to work with the Ajax Callbacks functionality in 4.0?
    Thanks ahead for any information you can provide.
    Rafael J

    KP wrote:
    Hi,
    I am dynamically creating a HREF link in my Apex report using SQL. this links invokes an Ajax Process on the same page.
    The process is an on Demand Ajax Call back that calls a Stored Proc.
    All seems to work as expected, with one small issue, A blank page is displayed once the process is called, the process page does not return back to the page it was called from. Can someone let me know where i am going wrong.
    This is the Query i use to create a dynamic HREF via my Report SQL ...Notice the <a href...> syntax. The name of the process flow is CALL_PROCESS_FLOW
    select "RUN_ID",
    "JOB_NAME",
    "JOB_START_DATE",
    "JOB_END_DATE",
    'Ajax' SP1
    from "#OWNER#"."VW_JOB_CONTROL"
    where job_name='CLN_INPATIENT_FCE'
    I have tried getting rid of the colons after the name of the process flow. I have also tried the same with and without the # at the end. However it still returns the same error.
    Can some one help. I know its something small but i just can seem to figure it out.I don't think you are making an ajax call here and you are just invoking the APEX application process via URL
    Use the below javascript function to make a call ajax
    function myAjaxProcess() {
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CALL_PROCESS_FLOW',$v('pFlowStepId'));
    //invoke it now
    gReturn = get.get();
    // you can alert the ajax call back
    //alert(gReturn);
    }Replace your href value (href="f?p=&APP_ID.:2:&SESSION.:APPLICATION_PROCESS=CALL_PROCESS_FLOW:::::#")
    like this
    href="javascript:myAjaxProcess();"

  • JPA Arhitectural Design Decision

    Hi,
    I'm building a 1 tier web shop, using mostly Ajax, Servlets and JPA and I need your advice on a design decision.
    When a user demands to see the products belonging to a particular category of products, my DAO object returns to the servlet a java.util.List<Product>, where Product is a JPA entity. In the servlet class I "manually" create the Ajax XML response, the user gets to see the products, everything is nice and great.
    I am not happy with the fact that the list of products remains detached in the servlet class, sort of say, and when another user demands to see the same products another list gets greated. These are objects that have method scope, but still they are on the stack, right? For 100 users who want to see 100 products each, the no. of objects created could cause the application to have a slower reponse time.
    So my question is about the design of the application.
    I obtain the list of products in the servlet class and construct the XML response. Right before sending the response, should I pass the list of products back to the DAO, and ask the EntityManager to merge the products? Will this reduce the no. of objects my application creates? Shouldn't I do this because I'm merging entities that have not been changed and the merge operation is time consuming?
    Should I not pass back the products to the DAO and set each product in the list to reference null and call System.gc() ?
    Keeping in mind, that my main concern is application response time, not reduced development time, are there any other suggestions you can make?

    first of all, a merge is only used to synchronize a changed entity that is not managed by an entity manager with the database. Why did you even come to the conclusion that you might need this?
    No you don't nullify the entities in the list. You let the entire list go when you are done with it. Manually nullifying can hinder the garbage collector, just don't do it unless you have a very good reason for doing so.
    Your main problem seems to be that you don't like the fact that you are fetching 100 objects for both users, putting duplicate objects in memory on the server. Are you sure this is a problem? You shouldn't be thinking about optimizations while you are still developing you know. I would wait until you are done, then profile the application to see where bottlenecks are; if fetching those 100 products turns out to take a lot of system resources, THEN optimize it.
    You may want to look into caching. If for example under water you use Hibernate as the persistence provider, search for "hibernate cache" using google.

  • Apple maps has received a poor performance rating just after introduction of the iPhone 5. I am running google maps app on the phone. Siri cannot seem to get me to a specific address. Where does the problem lie? Thanks.

    Apple maps has received a poor performance rating just after introduction of the iPhone 5. I am running Google Maps app on the phone. SIRI cannot seem to get me to a specific address. Where does the problem lie? Also can anyone tell me the hierarchy of use between the Apple Maps, SIRI, and Google maps when the app is on the phone? How do you choose one over the other as the default map usage? Or better still how do you suppress SIRI from using the Apple maps app when requesting a "go to"?
    I have placed an address location into the CONTACTS list and when I ask SIRI to "take me there" it found a TOTALLY different location in the metro area with the same street name. I have included the address, the quadrant, (NE) and the ZIP code into the CONTACTS list. As it turns out, no amount of canceling the trip or relocating the address in the CONTACTS list line would prevent SIRI from taking me to this bogus location. FINALLY I typed in Northeast for NE in the CONTACTS list (NE being the accepted method of defining the USPS location quadrant) , canceled the current map route and it finally found the correct address. This problem would normally not demand such a response from me to have it fixed but the address is one of a hospital in the center of town and this hospital HAS a branch location in a similar part of town (NOT the original address SIRI was trying to take me to). This screw up could be dangerous if not catastrophic to someone who was looking for a hospital location fast and did not know of these two similar locations. After all the whole POINT of directions is not just whimsical pasttime or convenience. In a pinch people need to rely on this function. OR, are my expectations set too high? 
    How does the iPhone select between one app or the other (Apple Maps or Gppgle Maps) as it relates to SIRI finding and showing a map route?  
    Why does SIRI return an address that is NOT the correct address nor is the returned location in the requested ZIP code?
    Is there a known bug in the CONTACTS list that demands the USPS quadrant ID be spelled out, as opposed to abreviated, to permit SIRI to do its routing?
    Thanks for any clarification on these matters.

    siri will only use apple maps, this cannot be changed. you could try google voice in the google app.

  • Photoshop CS5 Screen Resolution

    <START OF RANT>
    Having recently decided to upgrade all my design software, I can't begin to tell you how disappointed I was (and still am) to find that after spending £231.12 GBP on buying Photoshop CS5 (upgrade from CS2) I'm unable to "Save As" and access some other features on my Acer Ferrari One due to the minimum screen resolution requirement. And before you start preaching that I should have checked, blah, blah, blah, and that it's my own fault then I only have 2 words for you: F*** O**!!! Why am I reacting like this? Simples, both Photoshop CS2 and Dreamweaver CS5 (for a mere £219.95 GBP) work fine on the very same netbook without any problems!!!
    Having spent hours upon hours browsing the tinternet (a.k.a. world wide web) and finding countless of people in the same boat as me making futile attempts to get Photoshop CS5 to work on a smaller screen resolution (the most common being 1024x600), it seems that short of changing the screen it will not work properly.
    Allow me therefore to put the following questions to the developers/coders of Photoshop CS5:
    1. Why do Photoshop CS2 and Dreamweaver CS5 work on the same netbook without fail yet Photoshop CS5 won't (unable to "Save As", can't see full screen of the "Save for Web" screen, etc.)?! WHY??? And please don't start with the lame excuse that they are different programs for different purposes because at the end of the day it's the same company. You don't buy a Mercedes C-Class and a Mercedes S-Class to find that the steering works on 1 but not the other, do you?!
    2. Are your heads so far up your place where the sun don't shine that you have forgotten about the fact that people FIRST pick a PC/Mac/Laptop/Notebook/Netbook and ONLY THEN PICK SOFTWARE?
    3. Do you want people to keep buying your software?
    If the answer to question 3 (above) is YES, then PULL YOUR FINGERS OUT, get your act together and do something about these issues, pronto. Else, rest assured you will lose custom to the competition (e.g Corel) - even loyalists like myself (who started & stuck with Photoshop since 1997 - that's 14 YEARS OF LOYALTY should one be incapable of doing the math). In this day & age any company would be wise not to make mistakes which could cost it market share - Adobe is making that mistake with Photoshop right now!!!
    </END OF RANT!!!>

    <Start of Reply>
    Why are trying to get Photoshop work on a display that is smaller then the programs was designed for. Adobe publishes screen requirements.  Next you'll want it to run on a iPod Nano so you can have it on hand all the time.
    <Just keep on RANTING if it make you feel GOOD>
    CS2 Works the Problem is all YOU
    So same to you and you foul mouth.
    Why blame Adobe Why not your net book maker fot not allowing you to set a resolution more then the display has. I have worked on machines the could the just scroll the display over the larger image that way you can see the whole image.  CS5 would work on a machine like that. Of course I want it always at hand!!! Do you even live in this world?! Have you noticed for example that phones have better cameras than the best camera available en masse 5 years ago let alone longer e.g. 10 years ago? Note how small it is!!!
    Of course I want to edit my pictures using the program of my choice and 14 years ago I did make that choice choosing PS, hence the decision to purchase the Acer Ferrari One - CS2 works like a charm.
    As to the point that I'm problematic, please read my post carefully before making statements that make you come across as foolish.
    Hobotor wrote:
    1. Serious ps users make sure their hardware meets their program's system requirements.
    2. If you decide to buy you bigger Mercedes and it won't fit into your garage anymore, I'd say that's your own fault.
    3. ALL software evolves, if you insist on using your old hardware, stick with the programs that were built to run on your old gear.
    1. OLD Hardware?! Please do your homework before replying. The Acer Ferrari One was released beginning of last year and is a top of the range netbook - more powerful than any netbook out there and any laptop that is over 2 years old. FACT! Even some of the new laptops benchmarked could not out-do this little beast. FACT!
    2. Unless one is buying a Mercedes Van or Truck it will fit in the garage (even the ML320 fits) - CS2 fits and so do other Adobe CS3 & CS4 products. So why not the PS CS5 - its no a Van or Truck. In fact it's more comparable to an S-Class.
    3. Hardware also evolves - it's getting smaller and more powerful. I could run PS on the water-cooled, Phenom X4 & NVidia GeForce 9800 GX2 powered stationary PC connected to a 32" LCD by HDMI, running Linux Mint 10 x64/Windows 7 x64 (dual boot) with MacOS X running virtually by use of VMWare on both. Instead I choose to be mobile editing my pics as soon as I have taken them (patience is not always a virtue)! As humans we also need to evolve and judging by most of the replies so far it's not looking good for human evolution (albeit some replies do make valid & intelligent arguments and are as such well received).
    Noel Carboni wrote:
    I think he means to insult Adobe, and not we fellow users.
    It would of course be better to maintain decorum, though, even while ranting.  But does a rant really demand a sharp response?  Rise above it and just don't say anything if you really have nothing to add.
    To Julian:  You should return the software for a refund ASAP before you're stuck with it for good.
    -Noel
    You are right: I do mean to offend Adobe and hope they are offended!!! However, do accept my apologies for losing composure (and my manners along with it). Unfortunately, in this day and age it seems to be the only way to reach the audience of those who can assist with problem resolution of this kind. That is of course unless the very same decide to provide the PS CS5 source code which would enable me to address the issue at hand without the need to contact Adobe or rant.
    Marian Driscoll wrote:
    Not speaking for Adobe, I would expect that they want intelligent people to keep buying their software. They also make Photoshop Elements for someone like you. Photoshop is a professional image editing application used by professionals. Professionals do not pick up a cheap low-power netbook to do their image editing. Casting the concept of 'professional' aside, Adobe expects buyers to be literate to notice the system requirements prior to paying large sums.
    If all that you are doing is web design, you should be using GIMP, which is free, requires much less resources, and is better suited for preparing web images (PNG8 with alpha anyone?).
    RE: rants... GIGO
    In fact, it would be better for you not to speak at all considering your assumptious and pompous nature. Adobe will pay attention to this post as long as it attracts traffic (you can find a simple explanation of the term 'traffic' in this context using this link). As to your ideology of the professional image editor, it is of little interest here and beside the point. Thus, please refrain from participating any further in this discussion while not in a capacity to speak on behalf of Adobe or offer anything other than remarkable insights into what one should or should not use for image editing.
    If I have not replied to anyone, please accept my apologies - I will find the time to do so another day but I wouldn't want miss Love Never Dies at the Adelphi now would I.
    Good night and good luck
    </End of Reply>

  • How to read XKOMV-EDATU, XKOMV-KBETR fields inside java

    How do get the 
    XKOMV-EDATU date and pass it to ItemUserExit.java for database read and filtering.
    a. The code in ItemUserExit has to filter ZCPI2-ZSPMON for this date XKOMV-EDATU, the delivery date.
    This does not work. prItem.getPricingTimestamp returns the current date always, NOT delivery date.
    What is the method call that will grab this date.?
    b. How do I have to pass this XKOMV-EDATU date to ItemUserExit.java for database read / filtering.
    c. The field XKOMV-KBETR has to be read based on the KSCHL = ‘ZCP1’ and / or KSCHL =’PR00’.
    These are abap structures. But I am not sure how to read this value inside java.
    How would I extract the structure XKOMV-KBETR(the rate) for KBETR(conditionType)=’PR00’ .
    Please note that I get an error mandatory condition PR00 is missing. (see attached error message ).
    d. “CPIW_A” set up in ItemUserExit.java :: itemUserExitAccess.addItemAttributeBinding("CPIW_A", ZVALUE_CPIW_A );
    is NOT available at PricingUserExits.java with the code:
    prItem.getItemAttributeBinding("CPIW_A") ,
    though they are registered in the method
    “determineRelevantAttributesForValueFormula” as per the help html pages.
    I had attached the code.
    Can you scan thru the code and give feedback.
    Can I call you in the morning.
    Thanks.
    TK
    PS:
    I get an error “PR00” mandatory condition is missing from the log file.
    ======
    OP="ChangeDocument" ID="34800003" STATUS="200" />objectIds[1]=07F9101FD1D0AD4686B2411E3EFB2DF1&messageTypes[1]=E&messages[1]=Pricing error: Mandatory condition PR00 is missing&areas[1]=SPE&numbers[1]=801&args1[1]=PR00&args2[1]=&args3[1]=&args4[1]=Nov 11, 2005 12:41:37... ...p.sxe.socket.server.rfc.RFCConnection JCO.ServerThread-3 Info: response time of command C
    However, I get the response header as:
    availableItemConditionTypeNames[1]=PR00&availableItemConditionTypeNames[2]=VA00&availableItemConditionTypeNames[3]=ZA00&availableItemConditionTypeNames[4]=ZOUT&availableItemConditionTypeNames[5]=ZCRT&availableItemConditionTypeNames[6]=K004&availableItemConditionTypeNames[7]=RA01&availableItemConditionTypeNames[8]=RB00&availableItemConditionTypeNames[9]=ZB00&availableH
    CODE:
    ItemUserExit.java snippet:
              qrypair2[0]  = new sys_query_pair("ZCPI", <b>"200501"</b>, sys_query_pair.GREATER); //
              projection = new String[] { "ZCPI" } ;
              sorting = new String[] { "ZCPI" } ;           res resultSet = database.db_read_first_row("ZCPI2", qrypair2, projection, sorting);
    I need to pass the XKOMV-EDATU date field in the above bolded date field.  I think this field is available thru the API for IPricingItemUserExit  inside the overwriteConditionValue method's parameter .
    METHOD
    overwriteConditionValue:
         public BigDecimal overwriteConditionValue(IPricingItemUserExit      prItem,
                                                             ILastPrice                lastPrice,
                                                             IPricingConditionUserExit prCondition,
                                                             int                       valueFormNo) {
              String sold2party = "", strCPIW_A = "", strCPIW_B = "";
              BigDecimal condValue = prCondition.getConditionValue().getValue();
              BigDecimal netValue  = prItem.getNetValue().getValue();
              String prod = (prItem.getProduct()!=null)? prItem.getProduct().toString(): "NULL";
              SAPTimestamp  priceTstamp = prCondition.getConditionFindingTimestamp(); //prItem.getDefaultConditionAccessTimestamp();  //getPricingTimestamp();
              String strTstamp = priceTstamp.formatYYYYMMDD();
              //KOMP-EDATU ??
              logInfo("valueFormNo: " + valueFormNo +  " Condition Table type:"  + prCondition.getConditionTypeName() +
                         ", condVal:" + condValue + ", netValue:" + netValue + ", KOMP-EDATU:" + strTstamp );
              switch (valueFormNo) {
                   case 601:
                             try{
                               sold2party = prItem.getHeaderAttributeBinding("SOLD_TO_PARTY").getValue().getValue();
                               IAttributeBinding iamCPIW_B  = prItem.getItemAttributeBinding("CPIW_B");
                               IAttributeBinding iamCPIW_A  = prItem.getItemAttributeBinding("CPIW_A");
                               if( iamCPIW_A !=null) strCPIW_A = iamCPIW_A.getValue().getValue();
                               if( iamCPIW_B !=null) strCPIW_B = iamCPIW_B.getValue().getValue();
                             }catch(Exception e) {
                                  logInfo("EXCEPTION @ GetAttributeBinding exception : " + e.getMessage());
                             logInfo("sold2party: " + sold2party + " strCPIW_A, strCPIW_B: " + strCPIW_A + ", " + strCPIW_B);
                             String CPIW_A = null, CPIW_B = null, BASE_PRICE = null;
                             logInfo("overwriteConditionValue " +
                                   "_CPIW_A: " + _CPIW_A + ", _CPIW_B: " + _CPIW_B + ", _BASE_PRICE: " + _BASE_PRICE );
                             double l_cpiw_a, l_cpiw_b, l_base;
                             if( _CPIW_A == null || _CPIW_B == null || _BASE_PRICE == null) {
                                  logInfo("overwriteConditionValue *tk* static _CPIW_A.... NULL. returning 999999L" );
                                  return BigDecimal.valueOf( 0L );
                             }else{
                                  l_cpiw_a = Double.valueOf(_CPIW_A).doubleValue();
                                  l_cpiw_b = Double.valueOf(_CPIW_B).doubleValue();
                                  l_base   = Double.valueOf(_BASE_PRICE).doubleValue();
                                  logInfo("overwriteConditionValue *tk* ???? using STATIC Class Variables" );
                             logInfo("overwriteConditionValue " +
                                   "cpiw_a: " + l_cpiw_a + ", l_cpiw_b: " + l_cpiw_b + ", l_base: " + l_base );
                             double fraction = (l_cpiw_a - l_cpiw_b)/l_cpiw_b;
                             logInfo("overwriteConditionValue " +
                                       "*tk* double fraction: " + fraction );                                               
                             double result = l_base * fraction;
                             logInfo("overwriteConditionValue " +
                                       "*tk* double calculated Result: " + result );                       
                             BigDecimal retValue = BigDecimal.valueOf (Math.round(result));
                             condValue = retValue;
                             try{
                                  prCondition.setConditionRate(retValue , "USD");     
                             }catch(Exception convEx){
                                  logInfo("overwriteConditionValue " +
                                                           "*tk* converstion Rate Exception " + retValue );
                             prItem.setObjectForUserExits("XKOMV_KBETR_C", retValue);
                             logInfo("overwriteConditionValue: 601 conditionRate Return Value: " + retValue );
                             return retValue;
                   case 602:
                             /* Forecasted CPI-W value = ( ( D * ( ( A – B ) / B ) )  – ( D + C ) ) */
                        double A = Double.valueOf( PricingUserExits.ZCPI2_ZCPI ).doubleValue();
                        double B = Double.valueOf( PricingUserExits._CPIW_B ).doubleValue();
                        double C=0, D=0;
                        BigDecimal bdC = (BigDecimal)prItem.getObjectForUserExits("XKOMV_KBETR_C");
                        C = bdC.doubleValue();
                        D = C * 0.8;  // just for calculation verification.
                        // C = Double.valueOf( PricingUserExits.XKMOV_KBETR_C ).doubleValue();
                        // D = Double.valueOf( PricingUserExits.XKMOV_KBETR_D ).doubleValue();
                        logInfo("overwriteConditionValue " +
                                                           "*tk* A, B, C, D: " + A + ", " + B + ", " + C + ", " + D);
                        double res1 =  A - B ;
                               res1 =  res1 /B ;
                               res1 =  D * res1;
                        double res2 =  D + C ;
                        double CPI_W ;
                               CPI_W = res1 - res2; //– res2;
                        BigDecimal retn =  new BigDecimal(CPI_W) ;
                       logInfo("overwriteConditionValue *tk* case 602 returning - " + retn );
                        return retn; // new BigDecimal(99999L);
                   default:
                        throw new FormulaNotImplementedException(prItem, "value formula", valueFormNo);

    Java != javascript.
    You can not call java directly from javascript.
    The lifecycle:
    Request received
    Java/JSP runs produces an HTML page
    Java stops running
    Javascript runs on page when page is loaded.
    The only way to call java code again is to submit a request and get the result back in a response. Traditionally the response is a new JSP page to replace the old one.
    Using AJAX the response can be just information that you then alter the current page with.
    The first example given by skp71 will probably NOT be what you are after. The java code is executed when you load the page, NOT when you push the button which is most probably what you are after.
    AJAX is a solution, as is loading a new page.
    Cheers,
    evnafets

  • Query problem(solved)

    hi frs,
    i want to display work_location and office_location in a report.which is in table
    HR_LOCATIONS_ALL
    Which has two location_id
    work location : location_id from per_all_assignments_f &
    office location: location_id from hr_all_organization_units
    how to get both i a have attached the query what i have created but not getting correct values
    Thanks
    Rajesh
    Message was edited by:
    Rajesh.mani
    Message was edited by:
    Rajesh.mani

    What Sarma is basically implying is that we do not care if your problem is an urgent one.. as we, the forum, do not get paid to solve problems here. Forum members assist people in their free time. So why should we care if your problem is urgent? You are in no position to demand a quick response from us.
    Also, by saying that your problem is urgent, you are also saying that other people who have posted problems here, have less urgent and important problems than you. That you and your problem are special and more important than anyone else in this forum.
    Neither of these are acceptable - which is why using the word "urgent" in a posting to a public forum staffed by volunteers, is not acceptable.

  • Migration to an asm instance. plz help me urgent

    RMAN> BACKUP AS COPY DATABASE FORMAT '+DGROUP1';
    Starting backup at 20-AUG-07
    Starting implicit crosscheck backup at 20-AUG-07
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=328 devtype=DISK
    ORA-19501: read error on file "+DGROUP1/sravan/backupset/2007_08_03/nnsnf0_ora_asm_migration_0.260.1", blockno 1 (blocksize=512)
    ORA-17507: I/O request size is not a multiple of logical block size
    Crosschecked 7 objects
    Finished implicit crosscheck backup at 20-AUG-07
    Starting implicit crosscheck copy at 20-AUG-07
    using channel ORA_DISK_1
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/20/2007 16:53:21
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size

    > plz help me urgent
    Adjective
        * S: (adj) pressing, urgent (compelling immediate action) "too pressing to permit of longer delay";So you are saying that your problem is a lot more important than any other person's problem on this forum?
    And you're demanding a quick response from professionals that give you and others assistance here in their free time without getting a single cent compensation?
    Don't you think that this "it is urgent!" statement severely lacks manners?

  • ANN: Ajax4jsf 1.0.2 has been released

    URL: https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/
    Version 1.0.2 introduces three new core a4j tags: a4j:poll, a4j:keepAlive, a4j:include.
    a4j:poll allows to change the page content by timer. It initiates the Ajax request/response calls. The interval attribute defines the interval in ms. The form ( h:form or a4j:form) should be around. a4j:poll is a standard a4j ajax component, so any other well-known attributes, such as ajaxSingle, action and actionListeners, immediate, bypassUpdates, eventsQueue and others can be used to precisely turn the desire behavior.
    a4j:keepAlive allows to keep the request scope bean alive during the Ajax interactions. This is our simple solution for the issue risen several times on the mailing list and mentioned in the Ajax4jsf JAQ:
    http://wiki.java.net/bin/view/Projects/Ajax4jsf .
    Now, you can say: <a4j:keepAlive beanName="myBackingBean" /> and it will be saved and restored during the Ajax request/response calls.
    a4j:include - similar to jsp:include or ui:include, but allows to orginize the navigation inside the jsf page declaring the navigation rules in the faces-config.xml in a the standard manner. The most common Use Case is a multi-steps wizard. With a4j:include, any part of the page might become a wizard.
    Sergey : Ajax4jsf Team

    Well spoted
    The FlexPMD Eclipse plugin will integrate in its first version:
    1) Ability to specify the FlexPMD binary location
    2) Ability to specify your custom ruleset
    3) Ability to run FlexPMD against any folder
    4) Ability to see violations in a specific view in a hierarchical manner
    5) Ability to open a given file in the editor by double clicking in the violation/or the file from that view.
    At the moment, features 1,2,3,4 are done
    The last one still needs to be done.
    Xavier

  • Autocomplete search appearing but search not firing?

    I am using the following in my interactive report to provide an autocomplete Jquery search fields
    When typing in an item in the search boxes the autocomplete works find but for some reason it is not firing the search anymore? Any ideas on what I am missing with this? I have spent the week on it and it would be great to sign off the week with a working report!
    Many Thanks
    In the Javascript section of the page I am using
    function srch2(pItem, pColumn) {  
    $.post('wwv_flow.show',
    {"p_request" : 'APXWGT',
    "p_widget_action" : 'FILTER',
    "p_widget_action_mod" : 'ADD',
    "p_widget_mod" : 'ACTION',
    "p_widget_name" : 'worksheet',
    "p_flow_id" : $v('pFlowId'),
    "p_flow_step_id" : $v('pFlowStepId'),
    "p_instance" : $v('pInstance'),
    "x01" : $v('apexir_WORKSHEET_ID'),
    "x02" : $v('apexir_REPORT_ID'),
    "x03" : pColumn,
    "f01" : ['COLUMN', pColumn, '=', $v(pItem), null, 'minutes']
    function(data){
    //when the filter has been successfully applied the report has to be refreshed
    if(data=="true"){
    gReport.pull();
    //clear the item
    $s(pItem,'');
    $('#P4_AC').bind("result", function(){   
    //on selecting a value then fire the search function
    srch2(this, 'INDSNAME');
    // ac item P4_AC2
    $('#P4_AC2').bind("result", function(){   
    srch2(this, 'INDFNAME');
    // ac item YEARD
    $('#YEARD').bind("result", function(){
    srch2(this, 'NEWYEAR');
    });

    Nico Martens wrote:
    Console the most left tab of firebug. It shows all dynamic actions that are firedyes, exactly. Open up firebug and watch the console. Ideally, when selecting a value from the autocomplete 2 ajax calls should appear. The first one is the one to apply filters, the second on if the refresh (report pull). You can easily identify them through watching the headers. Be sure to check out the response tab for the 'apply filter' ajax: the response should be 'true'.
    If no ajax call pops up however, the problem is with the onSelect of the autocomplete and/or the search button.

  • Calling RFC placed in PI from Portal

    Dear All,
    We have a scenario where we have RFCs in ECC and it has to be called from Portal through PI.
    Please suggest the possible and easiest ways.
    Please note these RFC are already being called from Portal to ECC directly. So we need to change it be called from PI.
    with regards,
    Ravi Siddam

    Hi Ravi,
    You can do it in either any one of the below ways.
    Use PI Http Url to push the data to PI and from there you can call RFC.
    Plz check below link: Sender Synchronous HTTP Adapter
    Or you can use Web sevice to push the data to PI and then you call RFC.
    Plz check below link on Web service scenario:/people/shabarish.vijayakumar/blog/2007/11/07/walkthrough--soap-xi-rfcbapi
    But before going for above solutions. Please have a looku2026 on below info and decide whether to go for it or not.
    SAP NetWeaver PI 7.1 Usage Scenarios: When NOT to use SAP PI
    User Interface Integration scenario: This is a common scenario faced by the development team u2013 the Webdynpro application is developed on the SAP J2EE application server integrated with the portal. The business data has to be fetched from the SAP ECC backend.
    The User Interface would demand a quick response from the backend for fetching data and conducting the transaction. This is a synchronous scenario, and it would also be conducted with high usage every day. Hence, it is recommended to have a direct integration between the source application (WebDynpro application) and the target application (SAP ECC6) without using SAP PI. It is also recommended to expose the backend functionality as standard services.
    For example, integration between SAP Portals (containing SAP BPM, SAP CAF, SAP WebDynpro) and SAP Suite (SAP ECC, SAP CRM, SAP SCM, SAP SRM etc.) should be conducted without the usage of SAP PI; the services should be exposed from the SAP suite as standards-compliant enterprise services.
    Web Service interface of backend application: Many times, the target application in SAP/Microsoft/Java/Legacy is available as a standard web service. In such cases, the web service interface can be easily consumed in the source application. In such scenarios, SAP PI adds no value for transformation or backend integration.
    In conclusion, SAP PI usage is usually not recommended for User facing applications where the backend application is available as a standard web service. SAP PI is almost always suitable for integration between backend applications not requiring human intervention.

  • "Un"configure Business Catalyst from contact form???

    Help! I hope there is a way to have a contact form in Muse without it configured to Business Catalyst? Let me know your thoughts.
    Thanks in advance!

    Only custom web forms in BC have an ajax / json response request, that will not work with the login form and some others in BC.
    You will need to do your own ajax request but then you will not issues about the cross domain etc. You need to look at how the BC login works, your refresh and how to address that. (Its more complicated then you think)

  • Need urgent information

    Hi All,
    I have heard somewhere that from 11gR2 , Oracle Clusterware TOC the node when RAC Interconnect fail on that node. Prior to 11gR2 Oracle cluster used to just halt the RAC DB instance on that node. Is it true.
    In case of 11gR2 with multiple database , if i will configure RAC DB1 interconnect with CSS HB on same interface and RAC DB2 interconnect alone on different interface. will CRS will TOC the node on failure of interface which RAC DB2 is using for interconnect traffic.
    Thanks a lot for your help.

    This forum is a public forum with volunteers that are prepared to offer their freetime to assist without any compensation.
    How can you demand an urgent response? Should forum members simply cease what they're doing and jump to it in order to provide you with an answer?
    Should they ignore other posters' problems as yours are more important? Don't you think that the majority of posters here would like to receive a solution to their problems from forum members asap? So how can you claim to be more important?
    Please read up on netiquette for posting and participating in public forums, before claiming that your problem is urgent. If it is truly urgent, file a service request with Oracle Support.
    Thanks.

  • Sqlplus SPOOL broken.  Urgent help.

    I have never seen this before.
    I am running a spool of a small query. It returns 7 rows and they are displayed. I go to look at the .lst file and the first row is gone from the spooled .lst file. I have tried this multiple times, and the results vary- sometimes it removes the first row and sometimes it removes the first column of data form the first row.
    ??????????????? Any idea where to start looking for trouble other than the alert.log?

    > Urgent help.
    My usual soapbox response (again).
    Please do not call your problem urgent. Why?
    Because you are saying that your problem is more important and more deserving attention than other people who post problems here. That is just a rude and arrogant thing to do. Your problem is by no means more important than any other person's problem in this forum - as you are in no position to compare and judge that.
    You are also demanding a quick response from those here that assist people like you. You have no right to demand anything as paid professionals are giving you their free time in assisting you. How can you claim that they must be "quick-quick" in spending their free time, without any payment, to assist you?
    So, practice some netiquette and remember that this is a PUBLIC forum and "staffed" by volunteers.

Maybe you are looking for

  • Apogee Jam No longer working after 1.1 update?

    My apogee jam is no longer working after updating to Garageband 1.1. I have an Ipad 2 with firmware 4.3.3. Specifically what happens is: 1. I open the garageband app 2. I select the guitar amp 3. I plug the Jam chord into Ipad (guitar is already conn

  • How to control Object States of different objects with single button?

    I have a set of Images, stacked one on the other. I have selected all of them & created Object States for them. I also have a set of Text Objects, each containing a description of the images. These text objects are also stacked on top of each other &

  • Variables in stored procedure

    Consider the following DDL: CREATE OR REPLACE insert_requirement requirement_name VARCHAR2 AS INSERT INTO requirements (requirement_name) VALUES(requirement_name) In SQL Server (TSQL), variable names had a @ prefix. In oracle, is there a prefix? In t

  • Filter for a Particular column in obiee 11g

    Hi, I have created an report having 10 measure columns and filter by month i.e., less than (particular month ) which is working perfect.Actually my requirement is to one column to be filter by equal to particular month. if is it possible kindly tell

  • SIngle riole that belong to composite role with user

    HI, There is option when user are belong to single role and also belong to composite roles (that include the single role ) ? BR Nina