AJAX Query, Refresh Spry

Here is the snippet of code I am using on a master/detail
page (Using spry). The goal is to delete the employee, and upon
completion have the master list use a blind up effect to get rid of
that row in the list.
function deleteEmployee() {
var test = $('employeeIdSpan').innerHTML;
var url = "../ajax/deleteEmployee.php?employee_id=" + test;
new Ajax.Updater('detail', url,
method:'get',
onSuccess: function() {
var masterList = Spry.Data.getRegion('employee_list');
//masterList.loadData();
var currentId = test;
//test is $('employee_id').innerHTML b/c we haven't figured
out how to dynamically show the current users id to the javascript.
var blindEffect = "masterEmployee" + currentId;
//Effect.BlindUp(blindEffect);
Effect.Fade('detail', {from:"100", to:"0"});
onFailure: function() {
alert('Something Went Wrong');
However, it's not working......the Effect.BindUp is breaking
it and I can't figure out why.
Thanks :)
Also, if anyone could be so kind to help me w/ this...
//test is $('employee_id').innerHTML b/c we haven't figured
out how to dynamically show the current users id to the javascript.

what version of Spry are u using.
check out this topic:
http://labs.adobe.com/technologies/spry/articles/effects_migration/effects_migration.htm
If u havent found any solution yet, please provide me with an
url of the page so i can take a closer look.

Similar Messages

  • Last query refresh failde due to internal errors ?

    Hi gurus
    we are working on SRM 7.0 with PPS,
    when Bidder tries to open his login page and wants to see the Rfx raised against him, He is getting error message,
    " Last query refresh failed due to internal error"  , some time this is due to another session witht he same query is open , but
    I am getting the same error in the following situation,
    suppose bidder has submittted his response and after submission he is trying to change the response and couldn't submit before the submission dead line then the version of the response will be c1, and which is not interpreted by the system, and so the error is .
    Any help or advice on the issue is highly appreciated.
    Regards
    NITIN
    Edited by: nitinkk on Jan 12, 2012 7:55 AM

    Dear Rahul,
    Thanks for replay,
    I have checked it but the issue comes  with the discribe procedure.
    and we have solved it now.
    Regards
    NITIN

  • F:ajax auto refresh

    Hello,
    I am new to JSF and I am starting with JSF 2.0 + Facelets. I need to implement ajax auto refresh (I need some part of my page to refresh every 3 seconds), I guess using f:ajax. I don't know if it is possible and if I should use any approach different from straighforward and simple f:ajax tag.
    Thanks for any help/directions,
    Ignacio

    Hi harry5,
    According to your description, my understanding is that you want to switch the view of the custom list when one field is changed. Is it right?
    I suggest you use InfoPath to achieve it. You can customize the custom list with InfoPath by clicking ‘Customize Form’, then create multiple views for the form based on your requirement. After that, click Data->Form Load, then click rules based on the
    values of the status field to switch views.
    More information, please refer to the last section of the article:
    http://office.microsoft.com/en-001/infopath-help/add-delete-and-switch-views-pages-in-a-form-HA101732801.aspx
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • VBA and Bex 7- Event to use in VB code BEFORE Query Refresh ?

    Gurus.. is there a Bex Event that I can use to 'intercept' a Refresh Query command to Bex and run some VBA first ? I'm trying to find a way to solve the analysis grid overlap problem when two queries are provided on one Excel worksheet, and navigation takes place.
    I've been able to figure out how to bring the results areas together (by deleting blank rows between them), but I'd like to be able to add a chunk of blank rows between analysis grids before the queries actually refresh.

    Hi Charlie,
    if you're interested:
    I've found a way to move the areas after the refresh - using the callback event.
    The logic is generally:
    - Check where analysis-grid for DP1 ends
    - Leave some empty lines
    - Move the offset of DP2 here.
    - Repeat the same for further DP's.
    There's only one hatch: I've got some trouble to reactivate the BEx-context-menu after this momvement.
    So far I found only the workaround "do another refresh" to solve this issue; that's ok but not 'beautiful'.
    Let me know if you need further input.
    Maybe you've got an idea for my issue:
    I'm looking for a way to execute the a routine only once after refresh - even if there are multiple queries in a workbook.
    The problem is that I do not know the order of the query-refresh or any flag that I could use to identifiy the "last query to be processed in this refresh-run".
    Kind regards,
      Marco

  • AJAX Report Refresh  a_report- Condition for display not being validated

    Hi ,
    I have a report which has the following condition for dispaly:
    Exists(SQL query returs atleast one row) - SELECT * from temp1The query for the report is : select * from temp1 Now I have a button on the page and on click of the button I call the below Javascript :
    function f_insert_Temp_table(pTrans){
          var l_Return = null;
          var get = new htmldb_Get(null,$x('pFlowId').value,
                  'APPLICATION_PROCESS=temp_table_insert',206);       // ODP to insert into temp1
          get.add('TRANS_ID_ITEM',pTrans);
          gReturn = get.get('');
         //alert(gReturn);
         //$x_Show('6342610690289435');
         $a_report('6342610690289435','1','15','15');
    }Everything executes fine and the report refreshes the rows but the condition used for display doesn't get checked when I call $a_report() ...
    I can see the ODP execute successfully and row gets inserted into temp1 which means report condition is satisfied .
    If I remove the condition for the report, I can see the report getting refreshed and showing new rows through the $a_Report() call.
    Is there something that needs to be added to the script or $a_report call to validate the condition too ?Is there a way I can validate the region condition too ?
    Appreciate any suggestions/pointers here. I really do not want to refresh the whole page.
    Thanks,
    Dippy
    Edited by: Dippy on Feb 5, 2010 11:05 AM

    Hi Flavio,
    Thanks for your support.I figured where I was going completely wrong.
    Its just that when the page loads for the first time the temp table is empty and hence the report is not being displayed which simply
    means that the report id Im passing into the a_report function is not rendered on the page. Hence no matter what the temp table contains the report id is absent from the page.
    I fixed it as follows :
    Remove the condition for the report.
    Added and item and computed(P_Compute) its value using select count(*) from temp.
    Added an onload JS function which does a $x_Show('Report_Region') if P_Compute > 0 or $x_Hide('Report_Region') if P_Compute <0 .
    Now in my JS function which has an AJAX call to an ODP does an $x_Show('Report_Region').
    Flavioc : the query for my report is simple
    select * from tempIt finally dawned upon me that I'm trying to catch hold of an ID that's not rendered.
    So one issue is solved now the other part would be figuring out how to make $a_report work with pagination etc .

  • Query refresh

    Hi,
    i get the following error when i refresh a workbook which has 6 queries.
    Cannot find the results area for a query, probably all its cells were deleted. please define a new location for the results area.
    and then when i click ok in the window.
    new window pops up: Repair results areas
    enter value.
    this happen only when i refresh all of the workbook i tried refreshing each query in the workbook seperately n i dont get this message can someone please tell me how to solve this.
    thankyou.

    I think you still not solved this problem:
    Query results
    Did you try what suggested by Eugene ?
    Hope it helps!
    Bye,
    Roberto

  • Query refreshing problem

    Hi All ,
                      We got this message when refreshing a detailed query from PA in an existing work book
                                    RFC_ERROR_SYSTEM_FAILURE
                                    error : No roll memory of length 86716416  available for event stack
                       However, if you refresh the query form the server it works fine
                        Any ideas .. for this problem?..
    Regards,
    Aditya

    txs..

  • Af:query refresh problem

    Hi OTN,
    I am using JDeveloper 1.1.1.3 and ADF Faces with ADF BC Components.I have a search page having af:query component,delete button and a af:table component.While clicking the delete button,It will change the status of selected row and remove from the search result .In my case status is updating in database but not in search grid.It will reflect after clicking the search button of af:query panel.So please point me a solution for programmatically refreshing the af:Query

    Hi Dinil,
    Try this -
    1. Open the View Criteria section in your view object.
    2. On the right top corner, check if Query Execution mode is "Database".
    3. If it is "database", change it to "In Memory".
    Hope it works
    Regards,
    Srinidhi

  • How to run a VB macros code on Query refresh?

    Hi BW gurus,
    Please help me out with this task.
    I have a macros as below
    <b>Sub Table_To_Cons()
        'Copy the occupied rows
        Application.DisplayAlerts = False
        TargetSheet = ActiveSheet.Name
        Sheets("Table").Activate
        j = 2
        For i = 21 To 65536
            If Range("F" & i).Value = "" Then
                'MsgBox "The Cell is Empty"
            Else
                f = Range("F" & i).Value
                g = Range("G" & i).Value
                Sheets("Consolidated Data").Range("A" & j).Value = f
                Sheets("Consolidated Data").Range("B" & j).Value = g
                j = j + 1
            End If
        Next
        Sheets("Consolidated Data").Activate
        MsgBox "Finished"
        ' Update Chart
        Sheets("Chart1").Select
        ActiveChart.PlotArea.Select
        ActiveChart.SetSourceData Source:=Sheets("Consolidated Data").Range("A2:B6") _
            , PlotBy:=xlRows
    End Sub</b>
    User are not interested to run the VB macros manually.
    Instead they are asking like this.The macros should run and show the latest result everytime when we refresh the query.
    Can someone help me out how to achieve this.
    Any kind of help is appreciated.
    Thanks in Advance
    Have a nice day
    Regards
    Sam Mathew

    Hi Sam,
    Very interesting that the Properties dialog has changed.  I have no experience with NW2004s.  I will answer your questions based on what I do have experience with; then, we will need to do some testing to check my assumptions.
    Your first question: does this subroutine already exists in a workbook, or do we have to manually type it in?  In the days before Excel 2002, the answer was "yes", the subroutine already exists.  Since Excel 2002, the answer is maybe.  More often than not, "no" ... and you have to type it in.
    But, whether it exists or not, you will find out when I answer yoru second question:  exactly where should I search for it?  Since you have written a macro, you already know about the Visual Basic Editor (VBE).  Since I am not sure how much you know about the VBE, I will explain it as if you know nothing.  Please do not be offended.
    As a general orientation to the Visual Basic Editor (VBE), there are 4 Windows you want to become familiar with:
    1.     the Project Explorer Window;
    2.     the Properties Window;
    3.     the Object Browser Window; and,
    4.     the Code Window.
    You should see the Project Explorer window on the left side of the VBE.  If it is not already visible, make it visible in one of 3 ways:
    i.     use the VBE menu bar and select View >> Project Explorer
    ii.     use shortcut keys Ctrl+R
    iii.     use the VBE Standard toolbar and select the icon for Project Explorer
    In the Project Explorer window you can all of the "Projects" (workbooks and add-ins), that are loaded. 
    In the view of your workbook (the one with the macro) there are at least twol groups of "objects" shown:
    •     Microsoft Excel Objects (these are Worksheets and Workbooks)
    •     Modules (I call these "General Code Modules")
    There are two other possible types of objects:
    +  Forms
    +  Class Modules
    Visual Basic Code is always written in a Code Window.  There are 3 types of code windows:
    i.     Object Code Windows
    ii.     General Code Modules
    iii.     Class Modules
    When you use the Excel macro recorder, it always creates the macro in a General Code Module.  The subroutine SAPBEXonRefresh also will be in a General Code Module. 
    To find it (if it exists), you can start in any code module in your workbook, press Ctrl+F, enter SAPBEXonRefresh, click the radio button to Search in Current Project.
    Now, to test my assumptions ... while you are in the Visual Basic Editor, with the Project Explorer Window open, please look under Microsoft Excel Objects and see if there is an object named "SAPBEXqueries".  If not, stop right there.  I cannot help you.
    If the SAPBEXqueries object is there, let me explain what it is.  This is a worksheet that is VERY hidden.  That means, it is hidden so that it cannot be made visible from Excel.  It can only be made visible from the VBE.  Let's do not now.
    Select the SAPBEXqueries object (double-click), then open the Properties window in the VBE.
    You can open the properties window using:
    +  View Properties Window
    +  press F4
    +  use the standard toolbar and click the Properties icon
    Look at the Visible property.  It should 2 - Very Hidden.  Change it to Visible.  Now switch back to the Excel view.  Look in cell F4.  What do you see in this cell?  It should be:  SAPBEXq0001, or something very similar to that.
    Now (still in Excel) open the GoTo dialog (Edit >> Go To; or, press F5).  This will list all of the Named Ranges in the workbook.  If you are on the SAPBEXqueries worksheet, the GoTo dialog should list a number of Named Ranges starting with SAPBEXq000,,,,,  Do you see this?
    I am very interested to learn what you see when you do these things.  And, I am very willing to answer any questions you have as a result of doing this testing.
    By the way, when you make the SAPBEXqueries worksheet hidden again, be careful.  As soon as you make it hidden (or very hidden), the selection in VBE will change to an object that is NOT hidden.  So, if you are not watching carefully, you might think that you are still on the SAPBEXqueries sheet and that you failed to hide it.  And, pretty soon, if you are not careful, you will have hidden every worksheet in the workbook!
    - Pete

  • Schedule a Query Refresh

    Hi ,
    In BW 3.1 is there anyway to schedule a job refresh a workbook automatically in the background . Can reporting agent be used to acheive this functionality ? I also would like to access the refreshed query from the document store and send it as an email attachment . I know that 3.1 does not support information breoadcasting , but can it be achieved programmatically ?
    Any document links that provided more details on this would be appreciated .
    Thanks

    This is the point-of entry for reporting agent in general:
    http://help.sap.com/saphelp_nw04/helpdata/en/28/734d3caa70ea6fe10000000a114084/frameset.htm
    For the precalcullation of HTML-reports:
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/frameset.htm

  • Displaying the Last Query Refresh date/time

    Hello,
    on a Webi report, is there a way to display the date/time that the underlying info provider was refreshed?
    Thanks,
    Nikhi

    1.- Create Formula in Query (columns - Create Formula)
    2.- Create Formula Variable for this Formula (Type Customer EXIT) as individual and optional.
    3.- Define the code for customer exits for variables.
    *-- To get Timestamp for last load of data to cube
    WHEN 'ZLSTLOADDT'.
    DATA: lt_tab_1 TYPE TABLE OF rsdcubemulti,
          ls_tab_1 TYPE rsdcubemulti,
          lt_tab_2 TYPE TABLE OF rsmonicdp,
          ls_tab_2 TYPE rsmonicdp.
    DATA: l_calday   TYPE d,
          l_time     TYPE sy-uzeit,
          l_tzone    TYPE ttzz-tzone,
          l_string   TYPE char20.
          SELECT * FROM rsdcubemulti INTO TABLE lt_tab_1
                  WHERE infocube = i_s_cob_pro-infoprov
                    AND objvers = 'A'.
          SORT lt_tab_1 DESCENDING.
          CLEAR ls_tab_1.
          READ TABLE lt_tab_1 INTO ls_tab_1 INDEX 1.
          REFRESH lt_tab_2.
          SELECT * FROM rsmonicdp INTO TABLE lt_tab_2
                  WHERE icube = ls_tab_1-partcube.
          SORT lt_tab_2 DESCENDING.
          CLEAR ls_tab_2.
          READ TABLE lt_tab_2 INTO ls_tab_2 INDEX 1.
          l_tzone = 'INDIA'. "CET, UTC...
          CONVERT TIME STAMP ls_tab_2-timestamp TIME ZONE l_tzone
                     INTO DATE l_calday "aaaammdd
                          TIME l_time.  "hhmmss
          l_s_range-low = l_calday.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
          EXIT.
        WHEN 'ZLSTLOADTM'.
    DATA: lt_tab_1 TYPE TABLE OF rsdcubemulti,
          ls_tab_1 TYPE rsdcubemulti,
          lt_tab_2 TYPE TABLE OF rsmonicdp,
          ls_tab_2 TYPE rsmonicdp.
    DATA: l_calday   TYPE d,
          l_time     TYPE sy-uzeit,
          l_tzone    TYPE ttzz-tzone,
          l_string   TYPE char20.
          SELECT * FROM rsdcubemulti INTO TABLE lt_tab_1
                  WHERE infocube = i_s_cob_pro-infoprov
                    AND objvers = 'A'.
          SORT lt_tab_1 DESCENDING.
          CLEAR ls_tab_1.
          READ TABLE lt_tab_1 INTO ls_tab_1 INDEX 1.
          REFRESH lt_tab_2.
          SELECT * FROM rsmonicdp INTO TABLE lt_tab_2
                  WHERE icube = ls_tab_1-partcube.
          SORT lt_tab_2 DESCENDING.
          CLEAR ls_tab_2.
          READ TABLE lt_tab_2 INTO ls_tab_2 INDEX 1.
          l_tzone = 'INDIA'. "CET, UTC...
          CONVERT TIME STAMP ls_tab_2-timestamp TIME ZONE l_tzone
                     INTO DATE l_calday "aaaammdd
                          TIME l_time.  "hhmmss
          l_s_range-low = l_time.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
          EXIT.

  • Query Refresh Question

    If the user wants to change the value of varables after executing the query for a diff set of variable values ...hw wud s/he do that?
    Close & Reopen the query ...???
    If  the variables r in the filter n if the values are changed in the report for that variable - filter ..it doesn't work....
    Refreshing the query wudn't prompt for variable inputs...right ?
    How to refresh the query when I am on report?

    Guys,
    <b><u><b>
    Refer</b></u></b>
    <b>Below is the query template for YTD report:</b>
    <b>Filter – Characteristic Restrictions</b>
    None
    <b>Filter - Default values</b>
    Posting Period
    Controlling Area
    Cost Center
    Fiscal Year
    <b>
    Rows/Columns – Free Chars</b>
    Fiscal Year
    Posting Period
    <b>Rows/Columns - Columns</b>
    0Amount – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Single user entry posting period variable )
    0YTD – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Value Range ( 1 - Single user entry posting period variable ) )
    <b>Rows/Columns – Rows</b>
    Cost Center
    Controlling Area
    When I execute the query & enter the variable values for Fiscal year ( say 2007 ), Posting Period ( say 7 ) - it shows correct data.
    Issue : On report when I change the filter of posting period to say 6 it shows only YTD values blanking out 0AMOUNT values for posting period 6 .
    <b>
    "When I do change variable it doesn't work accordingly "...what happens?
    It doesn't show data for 0amount.</b>
    Message was edited by:
            Jr Roberto

  • Query refresh sequence

    Dear All,
    How is it possible to control the order in which queries refresh in a workbook ?
    Regards,
    Frederick

    Hi,
    Last inserted query will be refreshed first. If you take a look in the hidden sheet you will see in columns B to F beginning in row 4 the inserted queries. if the last entry in column B is in row 6 the query related to row 6 will be refreshed first.
    But the whole sheet is filled with the navigation state of the inserted queries. Each stored Table has as reference to which query it belongs the row index of the query.
    Example:
    In COLUMN AE a table begins. In column AE a reference to the query is stored. So all entries with 6 belong to the query which is stored in row 6,column C.
    So if you want to change the refresh order, you must change the position of the rows (move the entries of row 6 to row 5 and row 5 to row 6) and also change the indexes for the stored table.
    assign points if helpful...

  • Ajax Query

    Hi,
    I have a button on a page that when I press, calls a javascript function within a .js include file to call an onDemand process to add members to an apex collection.
    Basically javascript function is like:
    function processCollection() {
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=processAppColl',0);
    }OnDemand process is like:
    Name:processAppColl:
    BEGIN
      apex_collection.add_member (
         p_collection_name => 'coll1',
         c001 = > uid,
         c002 => first_nm,
         c003 => last_nm);
    END;Unfortunately, this doesn't seem to be working and by placing a debug statement within the onDemand process, it doesn't look like that the actual application process is being called from the javascript function.
    My queries:
    1) With my javascript function being called from within an include js library, is the above javascript function correct with regards to the way I want it to just execute the onDemand process?
    2) Does the js include library know about pFlowId ?
    3) Is the overall process I'm using correct?
    Any assistance would be much appreciated.
    Thanks.
    Tony.

    Hi,
    My javascript now looks like:
    function processCollection() {
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=process_asset_mgr_collection',0);
    gReturn = get.get();
    My On Demand process looks like:
    Name: process_asset_mgr_collection
    DECLARE
    BEGIN
      APEX_COLLECTION.TRUNCATE_COLLECTION(
                          p_collection_name => 'ASSET_MGR_SEL' );
      FOR i IN 1..APEX_APPLICATION.G_F45.COUNT LOOP
        v_user_dtls := BA_APP.get_user_details(APEX_APPLICATION.G_F45(i));
        OPEN  c_get_grp_nm (APEX_APPLICATION.G_F45(i));
        FETCH c_get_grp_nm INTO v_grp_nm;
        CLOSE c_get_grp_nm;
        APEX_COLLECTION.add_member(
            p_collection_name => 'ASSET_MGR_SEL',
            p_c001            => APEX_APPLICATION.G_F45(i),  -- MAGS
            p_c002            => v_grp_nm,                   -- Group Name
            p_c003            => v_user_dtls.first_name||' '||
                                 v_user_dtls.last_name,      -- Staff Name
            p_c004            => v_user_dtls.email,          -- E-mail
            p_c005            => :BA_APP_NAME);              -- BA App Name
      END LOOP;
      COMMIT;
    END;From what I can see, it doesn't seem to be working because I think it doesn't know what the value is for APEX_APPLICATION.G_F45.COUNT which is a checkbox item on the main page which holds the UID where I can check a number of rows.
    Basically, on the main page, if I check 5 rows and each of these 5 rows holds 5 unique User IDs, I need to be able to pass this information into the On Demand process to process the collection to retrieve and store additional info.
    Not sure how to accomplish this using Ajax.
    Hope this makes sense.
    Thanks.
    Tony.
    ps Just added: I am now having the problem that the On Demand process from ajax is not firing at all now - not sure why?
    Message was edited by:
    tfatouro

  • Advance xpath query freezes spry

    Hello
    var dsAns = new Spry.Data.XMLDataSet("xml/fileName.xml",
    "//folder[id='IDFour']/ancestor::folder");
    For the xml file below, produces what seems an endless loop.
    This happens in firefox and IE7.
    <?xml version="1.0" encoding="iso-8859-1"?>
    <structure>
    <folder>
    <id>IDOne</id>
    <name>testOne</name>
    <folder>
    <id>IDTwo</id>
    <name>testTwo</name>
    </folder>
    <folder>
    <id>IDThree</id>
    <name>testThree</name>
    <folder>
    <id>IDFour</id>
    <name>testFour</name>
    </folder>
    </folder>
    </folder>
    <folder>
    <id>IDFive</id>
    <name>testFive</name>
    </folder>
    </structure>

    Hi AGM,
    I've reproduced the problem internally, filed a bug for it,
    and will look into it.
    The infinite loop seems to be happening in the Google XPath
    library we use at the time we evaluate the XPath expression.
    --== Kin ==--

Maybe you are looking for