Forms Trigger Hirarchy for Execute query operation
Hi
Can anybody tell me in which order triggers are executed in oracle forms
when i press a execute query button.
ON-POPULATE-DETAILS
ON-CHECK-DELETE-MASTER
POST-QUERY
i want to write a code after completion of all the operations of execute_query
requirement is after excute_query i want to append few more record in multiline detail block of master-detail relation.
where should i write this code.
regds
POST-TEXT-ITEM
POST-RECORD
PRE-QUERY
PRE-SELECT
POST-SELECT
POST-QUERY( x times )
ON-CLOSE
PRE-RECORD
PRE-TEXT-ITEM
WHEN-NEW-RECORD-INSTANCE
WHEN-NEW-ITEM-INSTANCE
Francois
Similar Messages
-
Form trigger - fire in enter query mode
Hello,
Could someone help me with the following problem, please?
I want to create an key-exeqry and I want it to execute in enter-query mode. Unfortunatly Designer set's the property 'fire in enter query mode' for the trigger to 'No'. I can't find any setting to set it to 'Yes'. Does someone knows a setting or a work-around?
I'm working with designer6/headstart6.
Thanks in advance,
Martine.Sandra,
I tried to put the key-exeqry in the template. There's only one problem the key-exeqry is a 'in place of' trigger. When I put the code 'Null;' in the trigger, a generated form without a key-exeqry doesn't work because the 'key execute query' does nothing. A generated form with a key-execute query works fine.
At the other hand, when I put the code 'Execute_query' in the trigger, a generated form without a key-exeqry works fine, but the other one doesn't.
Which code should I include in the template-trigger?
Thanks,
Martine. -
Profile Parameter : Time out for executing query on the web
Hi gurus,
I am executing queries on the web directly. This can be done from query designer with the button that says "Execute query on web". The problem is that for queries that take more than 600 Secs to run, I get an Application timed out error. Queries that take less than this run smoothly.
Can anyone please tell me the profile parameter associated with this particular setting. It is not rdisp/max_wprun_time, I know for sure since the value for this profile parameter in my system is 9999. Please help.
Thanks & rgds,
SreeIssue resolved.
Profile Paramter - icm/server_port_0
Current Value - PROT=HTTP,PORT=8000,TIMEOUT=60,PROCTIMEOUT=600
Changed to - PROT=HTTP,PORT=8000,TIMEOUT=60,PROCTIMEOUT=3600
rgds,
Sree -
Code for finding CPU utilisation for executing query
Hi, i need code for finding CPU utilisation for executing the particular query.
Use session tracing, then in trace file you can find cpu utilization for particular statement on each phase: parse, execute, fetch and the overall.
Or You can use the dbms_utility.get_cpu_time (if your database is 10g) in pl/sql:
declare
cpt1 pls_integer;
cpt2 pls_integer;
cputime pls_integer;
begin
cpt1:=sys.dbms_utility.get_cpu_time;
<some code here>
cpt2:=sys.dbms_utility.get_cpu_time;
cputime:=cpt2-cpt1;
end;
good luck -
How many processors the TimesTen on Exalytics can use for 1 query operation?
Dear
I'm analyzing the deployment scenario Exalytics (2T, 40 processors) in cluster - two machines.
After reading the threads on this forum and some of the documentation available for my login Oracle Partner.
A doubt is:
When you run SQL against TimesTen.
To search for and return the data - for OBIEE Server, the TimesTen will use as many processors in this single operation?
Thanks
MMBCurrently TimesTen (11.2.2) does not support parallel query so a single query will use only one CPU core, though it will still be very fast due to the in-memory nature of TimesTen. And you can run 40 such queries concurrently without overloading the machine.
Support for parallel query is in our roadmap for a future release.
Chris -
Trigger points for the first operation
Hi,
We want to use triggerpoints on operations in PP. We want to set the status on the first operation to be released when we create an order. The problem is that systemstatus CRTD can not be used. Can someone help out how to get the first operation to be release automatically when the systemstatus is set to CRTD? Thanks Marie HillerboHi Marie,
I dont know if this would meet your exact need.
Based on my knowledge what you could do, is flag the order to release when it is created & saved. Assign a trigger point to the first operation, such that only on confirmation of the first operation you release the subsequent operations.
Hope this is of some help to you.
Rgrds,
Vivek -
Trigger points for 'Execute before query' in obiee server
Hi
Can anybody tell me when the sql given in the 'Execute before query' ( Connection Pool and go to the Connection Scripts tab) will be executed. Is it overtimes we do a query? Can we have any control over it?
Thanks a lot
Regards
RajHi,
You might want to check the NQQuery.log to see the code that it is running before making a connection. Just to confirm that the connection pool step is working fine, could you try with a simple select statement and see that it does not error out. If it does not, you may want to revisit the procedure code again. I understand from the error that it is expecting something after the END statement (kind of weird though!!). I assume in this case, it could not parse that this is a stored procedure call itself may be. One thread I found is http://stackoverflow.com/questions/4270818/ora-06550-and-pls-00103 which you may want to look for the line break characters.
Hope this helps.
Thank you,
Dhar -
hello can anyone please give me the code to execute a query.
i want to input an id and when i press enter, a query must be executed in a
master form.
i tried using the trigger when key entered but was not successful.
any help will b grateful.
thanksThis is exactly the way a default block on your table would work.
Create a default block on the table, run your form, press the enter_query button insert the id and press the execute_query button.
If you want you can also check the online help about set_block_property(Default_where) and execute_query built-ins. -
Execute query run fine with numeric data not give result on string data
Hi master
Sir I use under blow code for execute query
sir when I use numeric data then run fine but when I use character data then not give any result
with numeric run fine
DECLARE
DD VARCHAR2(15);
BEGIN
DD:=10;
set_block_property('emp', default_where, 'where DEPTNO='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
With character not give any result
DECLARE
DD VARCHAR2(15);
BEGIN
DD:='SALESMAN';
set_block_property('emp', default_where, 'where RTRIM(EMPNO)='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
Please give me any ideabro it is not working on string format coz of the missing quotes. e.g. 'smith' or smith. so the quoted string will be compared. in set_block_property u have to include extra quotes on the variable. e.g.
set_block_property('emp',default_where,'where ename='''||:emp.ename||'');
or with conditional statement
set_block_property('emp',default_where,'where ename='''||:emp.ename||''' and dname='''||dept.deptno||'');
there i included two extra qoutes before joining ename and in the an extra quote to complete to string. if u would like to debug at runtime to show if the qouted string condition is proper then assign the where clause to a variable and message it up.
like
myvariable:='where ename='''||:emp.ename||'';
message(myvariable);
message(myvariable);
set_block_property('emp',default_where,myvariable);
after the string is quoted properly the execute query will work fine, also use the function upper or lower to compare strings.
zaibi. -
Execute query for oracle forms tab pages
Hi Guru's,
Please help me how to work on execute query with forms tab pages. I have created three tabs like A, B & C in one canvas.
I have three tables and I have created three tabs in one canvas. And there is no master detail relationship with these three tables.
I have written the code in form level - when-new-form-instance like do_key('execute_query') but when i see at run time its executing for first tab A not for tab B or tab c.
How to get the data or execute the data in tab B and tab C.
Thanks
RS1- create a block blk_1 add items item_1,Item_2 and Item_3.
2- create main canvas main_canvas. type Content.
3- create tabcanvas TABCANVAS . Type Tab
4- Create tabpages tb_1,tb_2 and tb_3.under tabcanvas
5- create stack1,stack2 and stack3.type stack.
6- put Item_1,Item_2 and Item_3 under stack1,stack2 and stack3.
add when tabpage change trigger.
Declare
V_TapPage_Name VarChar2(100);
Begin
Show_View('TABCANVAS');
V_TapPage_Name := Get_Canvas_Property('TABCANVAS',TOPMOST_TAB_PAGE);
If V_TapPage_Name = 'TP_1' Then
Go_Item('Blk_1.ITEM_1');
Show_View('STACK1');
Hide_View('STACK2');
Hide_View('STACK3');
ElsIf V_TapPage_Name = 'TP_2' Then
Go_Item('Blk_1.ITEM_2');
Show_View('STACK2');
Hide_View('STACK1');
Hide_View('STACK3');
ElsIf V_TapPage_Name = 'TP_3' Then
Go_Item('Blk_1.ITEM_3');
Show_View('STACK3');
Hide_View('STACK1');
Hide_View('STACK2');
End If;
End;
Edited by: kingadmin on 20/04/2011 02:15 ص
Edited by: kingadmin on 20/04/2011 02:16 ص -
Can execute query be controlled for blocks
Hi,
I've 3 blocks in my form. The first and the second block are in query mode, therefore I cannot update, insert, delete values here.
The third block, I have put on another canvas. So the moment there's data in the second block the third block gets displayed. The user is allowed to enter values only in the third block.
Since the first and second block are in query mode I've put the execute_query in the W-N-F-I.
Due to the execute_query in W-N-F-I the 3rd block also starts showing me values, which it shouldn't. It should be a clear block with no values displayed.
Mainly I want the execute_query to work only for first and second block and not for the third block.
I tried putting the execute query in pre-block trigger. But it showing me error as Illegal operation for join condition and the forms gets hanged.
Kindly if you could help on the same
Thanks for your help in adv.I'm not sure I completely understand what you are attempting.
I've 3 blocks in my form. The first and the second block are in query mode, therefore I cannot up date, in sert, de lete values here.So, for BLOCK1 and 2 you have set the "Query Only" property for each block item to "yes". BLOCK3 allows all DML operations.
Since the first and second block are in query mode I've put the execute_query in the W-N-F-I.Since, these blocks are Query Only, you automatically query them in the WNFI trigger.
Due to the execute_query in W-N-F-I the 3rd block also starts showing me values, which it shouldn't. It should be a clear block with no values displayed.Here is where I'm a little confused. Do you have a block Relationship created with BLOCK3 or do you call Execute_Query on BLOCK3 in your WNFI trigger?
I tried putting the execute query in pre-block trigger. But it showing me error as Illegal operation for join condition and the forms gets hanged.Which data block did you try the Pre-Block trigger? By definition, the Pre-Block trigger does not allow the execution of Restricted built-ins. The Execute_Query built-in is Restricted.
So the moment there's data in the second block the third block gets displayed. The user is allowed to enter values only in the third block.How did you implement this? What is the code you use to display BLOCK3's canvas?
So, what happens if you have records in BLOCK3 that relate to a record in BLOCK2? How will your user know this if you start with an empty block? I've confused by the description of your requirement...
Craig... -
5200: Error executing query: The data form grid is invalid.
Hi,
I am getting this error " 5200: Error executing query: The data form grid is invalid. Verify that all members selected are in Essbase. Check log for details.
com.hyperion.planning.HspException;hasPovDims=1;povXML=<?xml version="1.0"?><datasources><datasource name="Profit " dsid="228af2c3_129ca3dd85c_-77b1" allowEdit="1"><dim name="Period" dimIndex="1" dsName="Profit " keyDimName="Period" memberName="Apr" displayName="Period: Apr"/><dim name="Year" dimIndex="2" dsName="Profit " keyDimName="Year" memberName="FY10" displayName="Year: FY10"/><dim name="Entity" dimIndex="5" dsName="Profit " keyDimName="Entity" memberName="9999" displayName="Entity: 9999"/></datasource></datasources>"
I have checked that both the systems essbase and planning are same. nothing's different. still i cannot find the exact reason why the report is not working.
can any please help me.
btw, i am using Hyperion Planning 9.3.1
Thanks,
BIMSHi
You probably deleted some members from outline that are used by report
I would recommend you to open you report/grid via rep.client and try to find which elements are abcent
Regards
Alexander
Edited by: Softperson on 19/8/2010 17:38 -
Execute Query not working on custom forms
Hi
After upgrading from 11.5.10.2 and Oracle 9.2.0.5 to ATG6, AD6, oracle 10.2.0.4, Forms 6.0 (Form Compiler) Version 6.0.8.28.0 . The execute query (F11 & CTRL F11) is not working on custom forms. But after tabbing from one column to another column then press CTRL F11 is working.
Please any one help me on this issue.
Thanks
svaHi
I found this error in the trace file. Please help me what is the problem, the data is there in the table.
Out Argument 0 - Type: String Value: ORA-01403: no data found
Executing NAME_IN Built-in:
In Argument 0 - Type: String Value: parameter.G_query_find
Out Argument 0 - Type: String Value: NULL
Executing USER_EXIT Built-in:
In Argument 0 - Type: String Value: FND MESSAGE_CLEAR
MCXQPBULKINVOICEENTER, -1, Built-In, Entry, -1196178744, USER_EXIT
TSE FSERVER_START -1 1407 1279530838565801000
TSE FSERVER_END -1 0 1279530838579778000MCXQPBULKINVOICEENTER, -1, Built-In, Exit, -1196091744, USER_EXIT
Executing COPY Built-in:
In Argument 0 - Type: String Value: Entering app_debug.clear
In Argument 1 - Type: String Value: global.frd_debug
Executing FIND_GROUP Built-in:
In Argument 0 - Type: String Value: APP_DEBUG
Executing COPY Built-in:
In Argument 0 - Type: String Value: Completed app_debug.free.
In Argument 1 - Type: String Value: global.frd_debug
Executing MESSAGE Built-in:
In Argument 0 - Type: String Value: FRM-41003: This function cannot be performed here.
In Argument 1 - Type: Number Value: 121
Unhandled Exception ORA-100501
State Delta:
MCXQPBULKINVOICEENTER, -2, Trigger, Exit, -1190876744, ON-ERROR
##### CTIME STARTS HERE
# 8 - MCXQPBULKINVOICEENTER:BLOCKNAME.RADIO_BUTTON81.1279530839956685000
KEY Execute_query
Error Message: FRM-41003: This function cannot be performed here.
N-ERROR Trigger Fired:
Form: MCXQPBULKINVOICEENTER
State Delta:
MCXQPBULKINVOICEENTER, -2, Trigger, Entry, 181183256, ON-ERROR
MCXQPBULKINVOICEENTER, -1, Prog Unit, Entry, 181304256, /MCXQPBULKINVOICEENTER-3/P58_07_DEC_200909_04_40
Executing COPY Built-in:
In Argument 0 - Type: String Value: Entering app_standard.event. Event is ON-ERROR.
In Argument 1 - Type: String Value: global.frd_debug
Executing ERROR_TYPE Built-in:
Out Argument 0 - Type: String Value: FRM
Executing ERROR_CODE Built-in:
Out Argument 0 - Type: Number Value: 41003
Executing ERROR_TEXT Built-in:
Out Argument 0 - Type: String Value: This function cannot be performed here
Thanks
sva -
Custom Popup on a Tabular Form for Multi Row Operation
I am trying to implement a custom popup on a tabular form that I can pass a value typed in to a text item like âNameâ to the popup so it can filter a list of names on what was already typed in.
Once a selection is made I need to have the selected name passed back to the text item.
This is easily done when not using a Tabular Form. Any ideas would be great?Can someone please help me with this?
I've read the Thread:
"Custom Popup on a Tabular Form for Multi Row Operation",
and have tried following the instructions provided by Willi Firulais.
I've also tried to integrate the instructions provided by RWeide in response within the same Thread.
I cannot get the passBack function to Pass the value to the Calling Page.
(I've tried to organize the pertinent information as it pertains to my application,
and have included it here below:)
A. Calling Page (Page# 141)
1. HTML Header: (Page# 141)
<script> function callMyPopup(item) { var url;
url = 'f?p=&APP_ID.:143:&APP_SESSION.::::P143_ITEM:'+ item;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
if (w.opener == null) w.opener = self; w.focus(); }
</script>
2. Region Definition: (Orders) - SQL Query (Updateable Report)
a. Query:
select
'f01_'||to_char(rownum ,'FM0999') ITEM,
"ID",
"ID" ID_DISPLAY,
"ID_PROJECT",
"ID_SUPPLIER",
"DESCRIPTION",
"JOB_NO",
"QUANTITY",
"UNIT_PRICE",
"EXTENDED_PRICE",
"MANUFACTURER",
"SUPPLIER",
"PART_NO",
"GROUP_LIST",
"BILLED_PRICE",
"DATE_NEEDED",
"DATE_DELIVERED",
"SUPPLIER_TYPE",
rownum
from "#OWNER#"."OAX_MAT_ORDER_ITEMS07"
where job_no = :P141_JOB_NO
3. Report Attributes: (ITEM) - URL
javascript:callMyPopup('#ITEM#');
B. PopUp Page (Page# 143)
1. HTML Header: (Page# 143)
<script language="JavaScript"> function passBack(passItem1, passVal1)
{ opener.document.forms["wwv_flow"].SUPPLIER[&P143_ITEM.].value = passVal1;
close(); }
</script>
2. ITEMS:
P143_ITEM
3. Region Definition: (Suppliers) - SQL Query(Structured Query)
OAX_SUPPLIERS.ID
OAX_SUPPLIERS.NAME
4. Report Attributes: (NAME) - URL
javascript:passBack('&P143_ITEM.','#NAME#');
Thank you in advance for you help! -
Enter / Execute Query Anomoly in Web Forms
Hi, I have a problem when running Oracle Forms [32 Bit] Version 6.0.8.11.3 (Production) in client server mode vs web mode.
The problem is that the f7 (Enter Query Mode) button will put the field into enter query but when you go to type something in the field it will say that the field is protected against update even though the property on the field is not protected. I have proved this by running the same form in client server mode where is no issue.
I have also tried running the form using the web mode button in Oracle Forms but the error still occurs. Has anyone else come across this as it is causing me a big problem.
I have recently taken over support of an application from someone else and the form that is in the production environment does not have this issue, although it was compiled some time ago. Maybe a problem has been introduced in a newer version of forms.
I have tried compiling my form on my PC and on the Windows 2000 server that the forms server executes on and still the same problem occurs. Any help would be much appreciatedI have figured out what has caused this now. It is the values in the file FMRWEB.res which instruct the machine what to do when the F7 or F8 key is pressed. In fact when pressing F7 I was not going into enter query mode but was attempting to enter a new block. The keys for Enter query in default forms is F11 and CTRL F11 to Execute the query. You can overwrite the file FMRWEB.res on your local machine or server with the file FMRPCWEB.res which will give you the client server forms settings. However be aware that some of these keys may conflict with shortcut keys in your browser.
Maybe you are looking for
-
How to call a FrontEnd DLL in ABAP Program
In one of our ECC 5 projects, we are requested to call a DLL locates on frontend with SAPGUI 640 installed to read/write a IC card with connected to Frontend. I searched the forum, seems every one refer to Object CL_GUI_FRONTEND_SERVICE and Method 'E
-
Front end admin web app access
Is there any way to allow admin users access to all web app records from the front end? We are building an app where regular secure zone users update their own records and are finding the back end admin screens for web apps too restrictive. It would
-
Hello! I created a pattern in illustrator, and then I created an object, and I wanted to fill half of the object with the pattern, so I used a clipping mask to do this.. however, now when i try to group everything together, the clipping mask in relea
-
Passing file name to the field
Hi, i have a file to jdbc interface. I have a requirement of passing the timestamp from the file which i pick from the sender side and pass this to one of the field at the receiver side...can someone help me in doing this, your help would really be a
-
ABAP related CRM documentation
Hi! Please send ABAP related documentation on: CRM technical guidelines (how it works) CRM TABLES and Relationship diagrams CRM application guidelines Mail: [email protected] Regards Christina