Post query giving messages
Hi all i need help
I have a database block and in that i an a non database item which i am using it for display purpose and i am getting the for the non database item thru the post query.
After i retreive my block status is changing and when i immediately press save button without changing any records its giving me 2 records saved message.
how can i supress this?
BEGIN
SELECT DISTINCT W_VLV_FNCT_CD INTO :WVG.W_VLV_FNCT_CD FROM WH_VALVES WHERE
W_VLV_NUM = :WVG.W_VLV_NUM;
EXCEPTION WHEN OTHERS THEN
NULL;
END;
/*SET_RECORD_PROPERTY :system.TRIGGER_Record,'WVG','STATUS','QUERY_STATUS');*/
:WVG.W_VLV_FNCT_CD COLUMN IS A NON DATABASE ITEM.
Thanks
-Samsam
Hi,
Do two things First check that when ur form opens no field in ur form is getting value from anywhere. May be through parameters or through when new form instance.
Second Do not use exception When others use exception
when no record found. Try these things. hoping that first point will solve ur problem.
Similar Messages
-
Declare
cursor fin_ACNTs IS
SELECT aCODE,dr,cr,seq
FROM acnts
where CCODE = :xH_ccode
and Tcode = :XH_tCODE
aND tNO = :xh_Tno
order by seq;
total_rows NUMBER;
the above query will return 2 or 3 rows. for example,
aCODE DR CR SEq
P30737 1907.600 .000 B1
P30737 .000 1907.600 B2
I have 3 rows wise control fields on my form canvas
r1c1 r1c2 r1c3 r1c4
r2c1 r2c2 r2c3 r2c4
r3c1 r3c2 r3c3 r3c4
& I want to Store the above query result in Such way that
the 1st row returned should be saved in r1c1 r1c2 r1c3 r1c4
and the 2nd row returned in r2c1 r2c2 r2c3 r2c4
if the query returns 2 rows
i tried to incorporate it in thiS way, but needs SOme help;
declare
cursor fin_ACNTs IS
SELECT aCODE,dr,cr,seq
FROM acnts
where CCODE = :xH_ccode
and Tcode = :XH_tCODE
aND tNO = :xh_Tno
order by seq;
total_rows NUMBER;
begin
FOR i IN fin_ACNTs LOOP
:ctrl.Rc1 := i.aCODE;
:ctrl.R[i]C2 := i.dr;
:ctrl.R[i]C3 := i.cr;
:ctrl.R[i]C4 := i.seq;
num_total_rows := fin_ACNTs%ROWCOUNT;
END LOOP;
end;
while compling the trigger am getting the errors;
Error 49 line 15 column 5
Bad bind var :ctrl.R
Error 103 line 15 column 5
Encountered th symbol "[" when expecting one of the following
:= . ( @ % ; indicatorTYVM, Mr. Kuba,
those 4 rows r1c1....did get filled properly. I have now 1 more problem. about this form so,
I have a columnar tables
inventotry_header (Inv_head) and
inventory_detail (Inv_detail)
in post-database-commit i am saving some details in to a 3rd table, ACNTS
Inv_head is linked to inv_detail thru primary-foreign key, table ACNTS is independant.
i have joined inv_head==>ACNTs in forms.
i wrote this post-query Suggested by you. i want to display ONLY the control fields r1c1.....
derived from the acnts table in post query and keep acnts table fields hidden.
the acnts table should just be saved in the background(in post-database-commit) and
its values will be displayed on form thru the control fields.
but when i make the visible property of the acnts table fields to "NO", the post query result does not display
the control fields r1c1.... and on querying, at first record it gives error,
FRM-40106 No navigable items in destinations block
and why i dont want to use the acnts tables for display, because i want to assign & display the control fields
as i enter the details in inv_head and inv_detail, in the sequence of r1c1 r1c2 r1c3 r1c4....
which i dont think will be possible with acnts tables (which is a linked actual db table).
hope i have made it clear. -
"FRM:40654 Record has been updated by another user" - Error in POST-QUERY
Hi,
I'm using Forms version 6.0.8.26.0
In one of the forms, its data block is based on a view.
In POST-QUERY trigger, I try to change the value for a database item. This operation results in following error:
"FRM-40654: Record has been updated by another user. Re-query to see change."
After this message the value of the item is automatically being set back to what was queried from the DB.
I tried setting the DML Returning Value to 'Yes'. It doesn't help :(
Any suggestions please?
Thanks,
UshaHy
try to set key-locking delayed
and check
if one field from the view as primary key
or
manually create On-Update, On-Insert, On-Delete and On-Lock triggers
or
write an INSTEAD OF TRIGGER -
Post-query trigger order for data blocks in master detail relationship
Using Forms [32 Bit] Version 10.1.2.2.0 (Production) Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production.
I have the following problem with a form I am working on. It has a master data block with multiple detail data blocks. I am trying to create a post-query trigger on one of these detail blocks that will do a select using the value of a field from another of the detail blocks.
The problem is that the post-query trigger of the data block I am trying to do the select with is firing before the post-query trigger of the block I need the value from is firing. I tested by just putting in a display message and having it return the value of the id I am tryign to use. Right after I do a query on the form, I get the messages saying:
"Error: cannot find price for id:" and there is no id, and then the message from the other datablocks post-query saying, "id is: 123"
Is there a way to change the order that the datablocks are queried? Or should I be using a different trigger to do this?Do you mean as it is displayed in the object navigator? It's not the first block under the data block section, but it is above the other block that is exceuting before it, so I assumed the order in that did not matter.
EDIT: Thanks Magoo! That solved the issue.
Edited by: a small rabbit on Sep 4, 2009 11:28 AM -
I want to insert some values to one table after query is performed in a form...right now i wrote insert statment in post-query trigger but its not able commit..how this can be implemented..
Please help.
Thanks in advance
GeethuCan you give some more details...????
Are you trying to insert in a table on which the block you are selecting rows is based...???
Is there any error message...????
Greetings...
Sim -
Sir how I avoid I this error FRM-40735: POST-QUERY trigger raised unhandled
Hi master
Sir this error crate may problem for me
FRM-40735: POST-QUERY trigger raised unhandled exception ORA-01403
sir how I avoid I this error and show my message
or system not show this error and bypass this error
please send me code how I avoid this error
thanks
aamirThere may be many causes of this error. You better diagnose and remove them.
1- A field length may be less than what your query return a data into it.
2- A POST-CHANGE trigger on any data may return un-desired data (character into numrice field, longer value than a field etc).
likewise.
Regards
Sayeed
[email protected] -
Hi,
I created a POST-QUERY trigger on a LOV field; I have checked off âValidate from listâ, so the user is forced to use the LOV. However every time a user retrieves a record, and then tries to re-query, they get the message, âDo you want to save the changes you have made?â I assume this is because of the POST-QUERY trigger; when I uncheck the âValidate from listâ the forms runs correctly. Is there anyway to use the validate from list function, but without the save message?
Thanks in advance.
===POST-QUERY===
declare
--Country of Birth
cursor lookup_cob is select codetext
from country
where code = :app.country_birth;
begin
--Country of Birth
open lookup_cob;
fetch lookup_cob into :app.txtcob;
close lookup_cob;
exception
when no_data_found then
null;
when others then
message(sqlerrm);
end;If I have more than one procedure in my POST-QUERY trigger then I have to insert this code multiple times?
SET_ITEM_PROPERTY('block_name.item_id1',ITEM_IS_VALID,PROPERTY_TRUE);
SET_ITEM_PROPERTY('block_name.item_id2',ITEM_IS_VALID,PROPERTY_TRUE); -
Preferred way to link to other forum posts in your message?
Hi,
Every once in a while I come across forum posts that have links to
other posts in them. However, sometimes I cannot follow the link
and get back to the message that the poster is referring to. Is
there a standard way to link to forum posts?
For example, take the following thread:
http://forums.ni.com/ni/board/message?board.id=330&message.id=4386&query.id=0
The second message in this thread lists a URL that starts with
exchange.ni.com, and this just goes to a generic error message.
The poster does not give enough information for me to find the message
using an advanced search.
Are there any standard procedures for linking to other NI discussion forum messages for new posts?
--PeterThis is due to changes which were made to NI's site (and probably the database) that make old links obselete. Most people just use the method you did and hopefully these links will be kept up-to-date.
In this case, if you post a new message in that thread, I'm sure Ray will be happy to help you.
Try to take over the world! -
Error: APP-JA-460651: Exception Occured in Post Query of detail
Hi All,
I am getting the below error when I am trying to go to PO localized form from PO std form.
APP-JA-460651: Exception Occured in Post Query of detail ORA-20120: Currency Conversion Rate Not Defined In The System.
ORA-06512: at "APPS.JA_CURR_CONV", line 76
Need help plz.Please also see if these docs help.
India Receiving Transaction Processor Completes In Error "ORA-20120: Currency Conversion Rate Not Defined In The System" [ID 973447.1]
R12:Interface Trip Stop Erroring out with Message " ORA-20001: ORA-20120: Currency Conversion Rate Not Defined In The System" [ID 1105698.1]
India Receiving Transaction Processor Showing Following Message "ORA-20120: Currency Conversion Rate Not Defined In The System" [ID 987418.1]
India Localization Purchase Order Screen Errors With ORA-6512 [ID 465081.1]
WSHINTERFACES: ORA-20120 Currency Conversion Rate Not Defined In The System [ID 580260.1]
Thanks,
Hussein -
FRM 40735 Post Query trigger raised unhandled exception TOO_MANY_ROWS
I'm using Developer 2000 Forms 4.5 and after a query on the form; an error message is on the screen "FRM 40735 Post Query trigger raised unhandled exception TOO_MANY_ROWS". And form can't be closed.
How can I solve this problem?You must have a POST-QUERY trigger defined somewhere in your form.
In this trigger you probably do a "select into" that retrieves more than one row.
That explains the "too many rows" error.
When you do a query in the form, the POST-QUERY trigger fires for each row retrieved.
So if you do a query on a underlying table that has 100 rows, the POST-QUERY trigger fires 100 times. After 100 alerts, so to speak, you'll be able to close your form.
Solution off course is to correct the POST-QUERY trigger by making sure you only retrieve one row with the select into, or define a too_many_rows exception in that trigger.
Good luck. -
Enter a name and city for one-time account posting is the message i get
Enter a name and city for one-time account posting is the message i get ,when i am trying to post a onetime vendor .I have entered name ,country and language when the pop comes.But still throws me this message ,pls help.
Hi,
I didnt understand what u mean by "when i am trying to post a onetime vendor".
Pl. specify whether you are:
-Creating a OTV
-Creating a PO for a OTV
or
doing any other transaction
Regards,
Prithviraj -
Error while querying workflow message attributes for task
Can some one please help me with this error?
I get this error when I submit a task in worklist app. I have figure out that it is causing due to one payload in the table in the task. If remove that payload I am able to submit the task.
Error while querying workflow message attributes for task a99d1cf3-5e91-4c4a-8660-aeae91bfbec0 with version 5.
Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services.
oracle.jbo.JboException: Error while querying workflow message attributes.
Error while querying workflow message attributes for task a99d1cf3-5e91-4c4a-8660-aeae91bfbec0 with version 5.
Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services.
at oracle.bpel.services.datacontrol.XSDDataControl.invokeOperation(XSDDataControl.java:460)
at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:430)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:261)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1635)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2144)
at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:467)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)Can anybody help me on this?
I did some google but I get this only which is not much helpful.
http://download.oracle.com/docs/cd/E14571_01/core.1111/e10113/chapter_bpm_messages.htm -
HU items' material posting is inconsistent (Message no. HUGENERAL327)
Hi,
I am trying to pack a material in an Outbound Delivery (OBDLV), into a container (Packing Material) and while trying to Post GI (PGI), system is throwing the error message:
HU items' material posting is inconsistent (Message no. HUGENERAL327).
In Details of the message it is as below:
Diagnosis
Handling unit 2001422 contains more than one item. The goods movement posts the items to storage locations with different HU-management strategies. The stock contained in one handling unit can be located either only in HU-managed storage locations or only in non-HU storage locations.
Procedure
You have the following options:
Post all items to an HU-managed storage location
Post all items to a non-HU storage location
Repack the items in different handling units so that items that are to be posted to the same type of storage location are packed together.
I am not sure what in configuration is missing opr what master data is not set up correctly.
Please help.
Regards,
KalyanHi,
different cases can cause the error message hugeneral327. In most cases this error message is shown when stock determination is used together with handling unit management. This is not supported in standard.
Please check the attached notes 550289, 605629 and 952440, where it is described, that handling unit management and stock determination does not work together.
Regards,
Ely -
I'm frustrated, I am doing everything you recommend, I use only two channels, have plenty of memory in my hard disk, and external hard drive, no effects, and still having problems with Garage band. Giving messages as you ave too many live channels, the disk is slow prepare...can you help?
Quote from: Richard on 15-November-07, 20:33:05
tornado2003,
What you need to do is boot into Safe Mode. Then delete the VGA Drivers.
After that boot normally and install the latest nVidia ForceWare Drivers
Take Care,
Richard
i guess you missed that:
Quote from: tornado2003 on 15-November-07, 17:26:52
ive tryed booting xp in safe mode but it just freezes after it loads up a couple of needed files .
ive even formatted my hard drive and tryed installing a fresh xp on it but it just keeps locking up when it gets to the "starting windows setup" .(this is just after it loads all the drivers from the xp cd) -
Master-Detail Form - implementing some thing like Post-Query trigger
Hi all,
I am struggling to implement an eqivalent of a post-query trigger in Oracle Forms. Please bear with me as I am trying to explain in detail what the problem is.
Here is my situation.
I have three tables EMP, DEPT and LOCATION. I created a Master/Table pages on EMP and DEPT.
Basic relationships.
Each LOCATION has one or more DEPTs; Each DEPT is at one and only one LOCATION.
Each DEPT has one ore more EMPs; Each EMP is assigned to only and only DEPT.
Not getting too complicated, here are the table layouts:
LOCATION:
ID number(10,0) not null,
NAME varchar2(20) not null
DEPT
ID number(10,0) not null,
NAME varchar2(20) not null,
LOC_ID number (10,0) not null foreign key from LOCATION
EMP
ID number(10,0) not null,
NAME varchar2(20) not null,
DEPT_ID number (10,0) not null foreign key from DEPT
Assume I have all the constraints, BIU triggers, sequences defined properly.
I am using the APEX page wizard to create a Master/Detail Form on DEPT and EMP. The first page is the Master Report on DEPT. I want to display the Location Name on this page also. Because the Master Report allows
you to change the query, I was able to add the Location Name as part of the
query. This was very simple.
Select a.name "Department_Name",
b.name "Location"
from dept a, location b
where a.loc_id = b.id
Moving on, In the Master Detail Form, I would like to get the Location Name as part of the first Region (Dept Region).
In this region, I would like to include the Location Name also. So my first region on the Master Detail form includes:
Dept Id: ________
Dept Name: _______
Location Name: __________
As Region are automatically populated using using a Fetch Row from EMP table (Automated Row Fetch) on an After Header process point, I don't have a way of including the Location as part of query. So I created a Region level Item called Location Name, made it Display only.
In the old SQL*Forms, or Oracle Forms days, I used to use a Post-Query trigger, or Post-Change trigger to fire on the Loc_Id column to populate the Location Name. Simple fetch like:
Select name
into :P80_location_name
from location
where loc_id = :P80_loc_id
However, I am struggling to implement some thing simple like this in APEX. Tried creating a processes, computatations etc, but nothing is working.
I have seen some previous responses to fetching values from a foreign table
using a button or AJAX script, but this should be very basic. What am I
missing here?
Appreciate any insights.
Thanks.
JohnHi John,
I'm not too familiar with the post-query triggers in Oracle Forms, but the use of a List of Values (LOV) on your LOCATION table might do the trick for you. If you create a dynamic LOV based on your LOCATIONS table, it can then be referenced by the LOC_ID item on the Master-Detail page, to display the Location Name. You could try doing the following:
1. Create a new dynamic LOV, LOCATIONS, using a query similar to the following:
select Name d, ID r
from LOCATION
order by 1
2. Edit the "Create" button on the Master report page, and in the "Optional URL Redirect" section set "Request" to CREATE. Click Apply Changes, to save the setting.
3. Edit the LOC_ID item on your Master-Detail page, and set the following:
* in the "Name" region change the "Display As" setting to Select List
* in the "Label" region change the Label to Location Name.
* in the "List of Values" region set the "Named LOV" to LOCATIONS
* in the "Read Only" section, set the condition to Request != Expression 1, and set Expression 1 to CREATE.
Click Apply Changes to save the settings.
When you run the pages now, the Location Name field will appear as Read-Only when editing a selected Master row. The item will appear as a Select List when the user clicks "Create" on the Master page, to create a new Master row.
I hope this helps.
Regards,
Hilary
Maybe you are looking for
-
Several things wrong with iPod Nano [1st gen]
I have been trying to fix my friend's iPod nano but cant find the solution, several things seem to be wrong with it; every time you connect it to the computer it shows the do not disconnect sign ad then completely freezes adn you have to reset it aga
-
Hello ABAP-Experts, System: NW2004s ABAP: 700 I like to separate two strings with a tab. Therefore I´m using the following statement: lv_text1(50) type c value 'Test'. lv_text2(50) type c value 'TEXT'. lv_tabtext(200) type c. CONCATENATE lv_text1 lv_
-
S200 With 64 Bit Windows - No Drivers
I just bought an S200 which comes stock with 4Gig of Ram. So I wanted to install 64bit windows 7 so I could utilize all of the ram in the machine. But then I discovered that Lenovo only offers the main chipset and various other drivers for the S200 i
-
Final Cut Exported File is HUGE!
I made a 5-second video of my brother running around the yard and teleporting him everywhere in FCE 4.0.1. I exported it using AIC defaults. The 5 seconds of video is 87mb! I can't even think about how big it would be if I decide to make a short film
-
I have not backed up any of my files on my computer. My computer is 5 years old. I need to open microsoft word and it will open and then it will give me an error message. Powerpoint and excel do the same thing what is going on!!!