How to REEXECUTE last_query ?

Hi !
How to to repeat last query using :system.last_query. This needs
for filling the fields which is filled in database trigger.
null

Andrei Kvasyuk (guest) wrote:
: Hi !
: How to to repeat last query using :system.last_query. This
needs
: for filling the fields which is filled in database trigger.
This can be done by using the DEFAULT_WHERE clause
in the block property.
Take the where condition from :system.last_query and
replace the default_where clause with the new string, then do a
execute_query. Remember to initialize the DEFAULT_WHERE.
null

Similar Messages

  • How to find last_query for oracle web form?

    I know that for standard forn we can navigate diagnostics-system-last_query
    How can we do it for web forms?
    Diagnostics menu contain only 5 items
    - Show log
    - Set trace lavel
    - Show Log on screen
    - Show pool monitor
    Thanks

    Are you talking about the Block Menu - which allowed you to select the "Last Query" variable? If so, Forms 6i was the last version to support the Block Menu. If you need to see the last query executed, then you will have to explicitly capture the value of the :SYSTEM.LAST_QUERY variable. In other words, you will have to write code to assign the value of :SYSTEM.LAST_QUERY to a form variable.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to use last_query built in?

    Hi People
    I would like to use last_query in order to obtain a query which is last executed.I used the following code to obtain the result.but i couldnt get it.i wrote this code in when-button-pressed trigger.
    i.e,
    declare
         lst_q varchar(2000);
         t varchar(2000);
    begin
         lst_q:=get_block_property('block3',last_query);
         message(lst_q);
         end;
    Is this a right way to use the last_query variable?.pls suggest me.thanku
    Regards
    VIDS

    Hai,
    In the GET_BLOCK_PROPERTY, you can use LAST_QUERY as second parameter.
    The GET_BLOCK_PROPERTY('<block_name>', LAST_QUERY) will return NULL if there is no query is executed before.
    You can use like this.
    DECLARE
         lst_q VARCHAR2(2000);
         t VARCHAR2(2000);
    BEGIN
         lst_q := GET_BLOCK_PROPERTY('block3', LAST_QUERY);
         :block3.text_item7 := lst_q;
    END;Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • How to find out last_query from jsp form in oracle applications

    Hi
    At present i am working on Quality Module.
    in India Localization.
    In Quality module -> Results -> Inquiries -> Skip Lot Inquiry
    If i enter our organization name
    Then its openning one form.
    I am unable to find out the table names from the jsp form.
    User also unable to comment on it.
    So, please help me on this issue.
    Regards,
    Pradeep.

    Hi
    Once you open the jsp form, at below leftside corner you can see link : About This Page. If you click on the link : About this Page this again open another window, there you can see multiple tabs at header level, if you click on page tab, there you can all the VO objects used to build this page. If you click on VO object hyperlink you can see the query.

  • How to populate table programmatically??

    Hi,
    I want to populate a fresh table from my result set which i am getting from firing query in database which is written in my Managed Bean.
    The data of result set populate my table which is on my ADf page.
    How I can do this, please help me....
    Jdev version:- 11.1.1.3.0
    Thanks,
    Ramit Mathur
    Edited by: Ramit on Aug 8, 2011 1:54 AM

    Are you modifying the contents of tree and want the changes to be reflected in the UI?
    If so, after executing the custom query in the managed bean - do the following:
    1) Whenever the tree is to be refreshed, get the handle to the iterator and reexecute the iterator
    (which would ideally fetch from the VO).
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iteratorBinding =
    (DCIteratorBinding)bindings.get("<ITERATOR_NAME_IN_PAGEDEF>");
    if (iteratorBinding != null) {
    iteratorBinding.executeQuery();
    2) Assuming that the TreeTable has binding in the Managed Bean as 'treeTable',
    after doing the required operations as mentioned above, add the partial Target as follows in the managed bean code:
    AdfFacesContext adfFacesContext =
    AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTarget(this.treeTable);
    Thanks,
    Navaneeth

  • How use parameters on a html region for report query region

    Hi all.
    I have created a number of report regions which initially query some data.
    The requeriment now is to have a date range (initial and final) and use this range as a parameter for report queries.
    i created a new region containing these two date values. Now i need to:
    - Give this date fields and initial value: say first and last day of current month.
    - Perform a validation to ensure initial date is less or equal to final date.
    - And most importantly, i need to reexecute the queries based on this date range.
    How do i do it...?
    Thanks in advance ...!

    Start here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21679/toc.htm#
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB25030
    I can guarantee that it will be easy

  • How to debug XI--- R/3 (abap server proxy) code,  SYSFAIL in SMQ2

    Hi
    i have a XI (BPM) to R/3 (ABAP server proxy) scenario,
    when the data goes from XI to R/3, it is getting stuck at R/3 inbound queue (SMQ2), with status : SYSFAIL and error text: "No roll storage space of length
    3391496 available for internal storage",
    we tried activating the queue/ reexecute the LUW, but it still shows the same error status after running for some time,
    how can i debug the ABAP server proxy,
    pls tell me how can i debug the ABAP proxy code in the R/3
    very critical issue

    Have a look at SAP Note 17965 - No storage space available
    Regards,
    Prateek

  • How to create a Total in a string column with link?

    I have a VO which has a column varchar2 with numbers. When it is Zero it has a '#'. I need to create a total over this column. I created a class with a static method to convert string in number. The problem is, I dont know where and how I should interact this class with the VO Row methods. If it is in the RowImpl of this VO or VOImpl or AMImpl. My ideia is create an item on the region to show this total and set a URI to another page based on its value. Another question is where and how can I get this total and put on the item on the page. I think it should be in the CO of the page but I still dont know how.
    I dont want to create a VL because I dont want to reexecute the same query just for totals since I am getting each value and showing them... Am I complicating this task?
    Im using jdev 9.0.3.5
    Thank You All in Advance

    Thank You!!! I started the firsts steps of your idea. And now I have more question. :-)
    I have a situation. In my VO I already have an VOImpl that is called by AM.
    I'm using this class in order to add some conditions to my VO WHERE clause.
    Now I created the VORowImpl class to my VO and I put a System.out.println
    just to see each value of the column that I'm supposed to sum.
    What surprises me is, the output has the column values printed twice in the Log Window.
    For example: 1,2,3,4,5 and start again 1,2,3,4,5, but the result on the page is correct.
    Is this happening because I have VOImpl and VORowImpl? Im afraid my total be 2x its value if I sum them in VORowImpl.
    Another question is where I should code total = total + column;?
    In the VORowImpl or VOImpl or AMImpl?
    What I didnt understand is how VORowImpl is called. I can't see any calling in AM in
    a way that I take the advantage of VORowImpl interaction loop and sum to another variable in each interaction.
    Thanks Again

  • How to get name of table from front end

    Hi,
    How to get name of table from front end in EBS 11i?
    thanx
    Ashish

    Hi
    Sandeep is correct. The "Help"/"Record History" will give you the table/view name, but sometimes this particular menu function give me a "Record History is not available here." error message.
    I then use the following menu functions (this will also give you additional information, like column details).
    1) Open Forms
    2) Click on Help/Diagnostics/Examine (*you might have to enter the APPS password at this point)
    3) Change "Block" to "System"
    4) Change "Field" to "Last_query"
    The system will populate the "Value" field with the query that was executed in order to populate the form.
    Regards
    Frank

  • How/Where to store current page details in ADF?

    Hi All,
    What is the best way to populate the managedBean while loading the page?
    In my application, I have an page fragment which display the user details from Webservice DataControl. I drag and drop the webservice data control in to the pageFragment. This fragment has mapped in the taskFlow and the taskFlow as attached in to main JSPX page as a region. I need to store this user information to any place (ManagedBean / or anyother best place to store) which I can use throughout my application, since I dont want to reexecute the webservice each time to get the same user information. Also I want to collect and store this info while I render the main page, not after any user action.
    Please advice how & where to store the information in ADF? Can I create an managedBean? If so how to trigger that class method at page load?
    Thanks
    kln

    Hi,
    in this case you configure the managed bean to be in session scope. Then, on the first page, you define a phase listener for the after restore phase (its a tag on the f:view element). This phaselistener references the managed bean using EL (important). It can do so using a method expression in JSF. For example, if the managed bean had a method populateUserInfo then yu could reference #{beanname.populateUserInfo} and execute the method expression using Java. In the managed bean, the method would access the binding layer Using the BindingContext class
    http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e10653/oracle/adf/model/BindingContext.html
    Call
    BindingContext .getCurrent().getCurrentBindingsEntry() to obtain a handle to the active instance of BindingContainer.
    BindingContainer bindings = BindingContext .getCurrent().getCurrentBindingsEntry();
    Then on the binding container, you invoke the method to query the Web Service for the user info
    //before you can call a method on the ADF binding layer, make sure the ADF binding is created for the method
    OperationBinding opws = (OperationBinding) bindings.get("name of the method exposed on WS");
    //if you need to pass parameters
    opws.getParamsMap().put("argument name",value);
    opws.execute();
    You can use similar code to access the user information from the method iterator in ADF to populate the managed bean fields. You can then access user information from the managed bean through getter and setter methods
    Frank
    Ps.: I know the description is a bit rough. I'll see if I can come up with a blog sample to a later time
    Edited by: Frank Nimphius on Jan 26, 2010 5:43 PM

  • Programaticaly reexecute transaction that was in a error-queue

    I am writing an "error handler" to correct the error queue. I use the CUSTOMIZE package as described in the docs (section 3.6.1) . So far I am able to delete wrong entries from the c$eq and ceq$... tables. But how can I reexecute these transactions?
    I don't want to copy the data by hand into the cfm$.. and c$in_messages tables because there is an API-Function "ConsolidatorManager.executeTransaction".
    I wrote a java-class which is able to call this function. Unfortunately I can't call this function after loading it into the database because Oracle can't find all required classes. I get ORA-29521 errors.
    Ideas?

    Hi,
    Basically we call the report in the form where the viewer control is placed, however in your case we can pass the report document object from a global variable or a session (in case of web application.
    More over how does it behave when you try using this statement:
    CrystalReportViewer1.ReportSource = "
    AdvancedReports\AdvancedReports\RptRecepMerc.rpt"
    Does it help?
    Regards,
    AG.

  • How to find table name and field name in JSP FORM

    Hi
    In JSP form's like XML publisher responsibility>templet
    In that form how can we see the system-last query . and how to see the table name

    hi yamini,
    plz go to help->record history (for fining table name)
    and
    help->diagnostic->examine (for finding field name)& enter last_query
    in JSP form also same above only i think.
    or check in back end & apply who columns
    Edited by: raghava bandi on Nov 7, 2008 2:05 AM

  • How to stop the configuration wizard

    Hi ,
    I am running a configuration task(wizard based) in NWA(netweaver administrator).  during the wizard, I lost internet connection, when I connected again, the application expired. I want to reexecute the wizard, but its status is "Currently executing" and "re-execute" button is disabled. so how can I stop the dead wizard and re-execute it?
    My system is CE7.11 on windows&oracle.
    Thanks
    Best regards,
    John

    I am sure this is a bit late, but I had this problem today and found the answer.  Restarting the whole instance would surely do the same thing, but thats not always an option.
    [SDN Wiki|https://wiki.sdn.sap.com/wiki/display/SL/Technical+Implementation#TechnicalImplementation-HowcanIcancel%2Freexecuteconfigurationtaskwhichhas%22Currentlyexecuting%22status%3F]
    How can I cancel/re-execute configuration task which has "Currently executing" status?
    This may happen if your web session has expired during execution of configuration task which was not able
    to finish in the background because it needed some user input/response. The next time you login to
    Configuration Wizard if the server is not restarted you will see this task with "Currently executing" status
    which prevents you from re-executing the task. The status can be cleared by restarting the
    "tc~lm~ctc~cul~startup_app" application.
    To do this go to
    http://<host>:<port>/nwa -> Operation Management -> Systems -> Start & Stop -> Java EE Applications
    Then stop and start the application.
    Edited by: Tim Potter on Oct 15, 2009 1:32 AM

  • How to find menu Tool - ?

    Hi All,
    How to find the program that is being called from the Oracle Seeded menu in the Oracle Applications form. For example in the Sales Order form, Tools -> Change Reason Or Tools -> Find Customer. How to know what is the function /program behind this?
    Any input is greatly appreciated.
    Thanks
    GM

    How to find the program that is being called from the Oracle Seeded menu in the Oracle Applications form. For example in the Sales Order form, Tools -> Change Reason Or Tools -> Find Customer. How to know what is the function /program behind this?
    Any input is greatly appreciated.Use LAST_QUERY, or open the form using forms builder and get the code/name or enable trace.
    Please see these docs/links as this question was answered many times in the forum before.
    How To Determine Table and Column Name from a Field in a Form in 11i [ID 259722.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=259722.1+AND+Trace&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to rollback data from cube?

    Hi Experts,
    I have never worked with BPS and I have got one issue with BW support to look upon.
    My questions are :
    1) I ran some planning functions, there was some problem. Now how to rollback the data which would have got posted.
    2) The planning cube has got request which says " Request without Monitor Log: APO Request or Terminated Request Generation" but this is yellow and transferred and added records are zero.
    Alos I ran planning functions yesterday but update request in this yellow request is of 8th Jan.
    So in which request data is bieng posted into cube? Also planning functions were succesfully ran since it showed me n noumbers of records changed.
    Thanks in adavance.
    help would be awarded by points
    Gaurav
    Message was edited by:
            Gaurav

    Gaurav,
       If they are executed a spart of Planning Sequence then you wouldn't have to save anything, it will be automatically saved if there are no errors in any of the planning functions in the sequence.The buffer is always current with all the changes occured, so you wouldn't have to worry about explicit save or refresh unless these aren't part of planning sequence.Here are some links that will provide you with helpful insight on this topic:
    Re: How to save data of job run in Background
    Re: Save automatic a planning function/sequence
    Run planning sequence & save data by using process chain in BI IP
    Re: Complete the buffer without leaving planning folder when reexecuting PFunct
    Hope this helps.
    Cheers
    Srini

Maybe you are looking for