FRM-40654 Record has been updated by another user.Re-query to see change.
Hi All:
While Updating a record in form its updating fine at first time
if i updating the record second time its not allowing me to update its showing following error
FRM-40654 Record has been updated by another user.Re-query to see change.
After Re-querying its allowing me to update the record .... so anyone can give a good idea to update the record without Re-query.
i am using following versions
Apps 11.5.10.2
Forms 6i
Database 10g
@814950,
Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>Announcement: Forums Etiquette / Reward Points
</ul>
It is not good to use someone else's post to ask a new question; this is commonly refered to as "Post Hi-jacking." It is always best to create a new post and add a reference link to a similar post. Please create a new post for your question!
Also,
>
BEFORE I NSERT OR U PDATE
OF quantity, price_override
ON po.po_line_locations_all
>
If I recall correctly from when I worked with the Oracle Enterprise Business Suite (EBS), the PO_LINE_LOCATIONS_ALL is an EBS ta ble. Oracle does not recommend you modify EBS tables directly. There are recommended methods for performing DML on EBS tables. I suggest you review the Oracle Applications Documentation library. Select your EBS version and then scroll to the Standards section and review the following documents:
<ul>
<li>Oracle Applications Developer's Guide
<li>Oracle Applications User Interface Standards for Forms-Based Products
<li>Oracle Application Framework Personalization Guide
</ul>
Again, please ask your question in a new post.
Craig...
Edited by: CraigB on Dec 1, 2010 9:29 AM
Similar Messages
-
Form based on a view - FRM-40654: Record has been updated by another user.
Hi All,
I am hoping that somebody can help me with this problem that is occurring only when I try an update a record in forms.
I have a block based on a join-view, I can insert no problems, but I can only update certain records within the block. If I come across a second record that is similar to the first except for primary key and a couple of other values and try and update that record forms gives me the following message FRM-40654: Record has been updated by another user. Re-query to see change.
The first record I have no problems in updating and I have followed a number of suggestions to get this to work, like setting the key-mode of the block to updateable/non-updateable and setting the primary key to 'yes' for some of the database items. I have also created procedures within the database that are called by triggers on-insert, on-update etc.
If anybody has any ideas how I can solve this I would be happy to hear your suggestions.
Thanks in Advance.
Regards,
Scott.Scott,
beside of
1) In the block properties change the Key Mode property of the block to be Non-Updatable Primary Key
2) Mark one or more columns as Primary Key in the item Property Palette - in this instance you would set the property for Empno.
Enforce Primary Key = no
Key Mode = Unique
Update Changed Columns Only = Yes
I found a bug entry that is supposed to be fixed in Patch 9 of Forms 6i (assuming you are running 6i). So if you could try with a more recent Patch set (e.g. 14) then probably the problem will go away.
Fran -
"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 -
Error!!!! Record has been updated by another user
dear all
Why i got this error when i put a value and try to write to a text item. i never change insert update etc in property pallete..
this error appear.
FRM-40654 Record has been updated by another user . requery to see change?
give me advise and suggestion why i got this error..This message have several different causes. One cause is what wilfred indicated.
But I've seen this message appear if there's something wrong with a primary key, and I've seen it occur when doing a post command using a master-detail block. In the latter case, you need to requiry the other tables in your form.
In your case since you are using only one block, I'd look for a problem with your primary key. -
Error in Multi Record Form. Record has been updated by another User?
Hi,
I ma developing Form with 3 blocks (Control Block, Database Block, Button Block). In the Button Block i am updating one Row by calling Program Units as shown below
Select Print Id into Flag From <Table Name> Where <Conditions> For Update of <Column Name>. after calling this , i created another Program Unit as
Update <Table Name>I assume that the table in your update statement is the same table as the one you based your block on.
You are manually updating the table, and Forms see this as an update "by another user" (even though it's you). To see the changes you made in your update statement, you have to re-query.
So, don't update yourself, let Forms do it. If you base a block on a table, everything is done for you by Forms. -
Any possibility of getting records have been updated by another user
is there any possibility of getting the error
--records have been updated by another user.please requery to see the changes.
i am getting this error when no other user connected to same data base and only one session is opened.
i am getting this error under below case.
there are 3 fields in a multiple record block.
field 1 will have the total amount.in field 2 i user can enter the percentage.and field 3 will be populated
as field 1 * field 2 /100. if user changes field 3 it back update the field 2 as field3 * 100/field 1.
there is a POST in when-new-record-instance.
the above error comes when i navigate to second record
and try to come bk and change the values in 1st record.
if any one faced this problem or have any idea of it
please let me know.thank u all
the round option solved my problem. But still i am not clear with why it is giving when i am in the same session. Is there any link where i can get more info. on this perticular issue.steve i am not fully convinced with what u have said. can u give more details on this.
once again i thank u all. -
Killing, Frm-40654 Record has been upd...Re-query to see change
believe me guys, this is my 3rd night scratching my head to find the solution for this error.
i saw some post, infact many posts, realize that its an age-old problem faced by many developers.
i have a master-detail Purchase_Order form, where there are 3 blocks;
1) purchase_order_header 2) purchase_order_details and 3) ctrl
CREATE TABLE purchase_ORDER_header
(POH_comp_CODE VARCHAR2(3) NOT NULL,
POH_CODE VARCHAR2(6) NOT NULL,
POH_DATE DATE NOT NULL,
POH_no number not null,
POH_quot_REF_code varchar2(6),
POH_QUOT_ref_NO NUMBER,
POH_PARTY_CODE VARCHAR2(6) NOT NULL,
POH_GROSS_fc_amount NUMBER(13,3),
POH_GROSS_lc_amount NUMBER(13,3),
POH_COMM_PERC NUMBER(6,3),
POH_COMM_fc_AMounT NUMBER(13,3),
POH_COMM_lc_AMounT NUMBER(13,3),
POH_NET_fc_amount NUMBER(13,3),
POH_NET_lc_amount NUMBER(13,3),
POH_FREIGHT_fc_amount NUMBER(13,3),
POH_FREIGHT_lc_amount NUMBER(13,3),
POH_CLEARING_fc_amount NUMBER(13,3),
POH_CLEARING_lc_amount NUMBER(13,3),
POH_SHIp_from varchar2(200),
POH_sHIP_to varchar2(200),
POH_tpt_MODE VARCHAR2(15),
POH_EXPECTED_date date,
POh_FX_rate number(12,8),
POH_REMARKS VARCHAR2(200),
POH_CR_UID VARCHAR2(12),
POH_CR_DT DATE,
POH_UPD_UID VARCHAR2(12),
POH_UPD_DT DATE,
conStraint POH_PK PRIMARY KEY (POH_COMP_CODE,POH_code,POH_NO));
NON-db item used at purchase_order_header block level;
poh_party_name,m_cntry_name, m_prev_tot_amt_scy, m_prev_tot_amt_lcy, m_curr_code_scy, m_curr_code_scy_disp,
CREATE TABLE purchase_ORDER_DETAIL
(POD_COMP_CODE VARCHAR2(3) NOT NULL,
POD_DATE DATE not null,
POD_POH_CODE VARCHAR2(6) NOT NULL,
POD_POH_NO NUMBER(10) NOT NULL,
POD_prod_CODE VARCHAR2(6) not null references product_MAstER(prod_CODE),
POD_uom varchar2(6),
POD_CURR_CODE VARCHAR2(3),
POD_QTY NUMBER(10) not null,
POD_RATE NUMBER(9,3) not null,
POD_LC_AMOUNT NUMBER(13,3),
POD_FC_amount NUMBER(13,3),
POD_REMARKS VARCHAR2(200),
POD_CR_UID VARCHAR2(12),
POD_CR_DT DATE,
POD_UPD_UID VARCHAR2(12),
POD_UPD_DT DATE,
CONSTRAINT POD_fk FOREIGN KEY (POD_COMP_CODE,POD_POH_CODE, POD_POH_no) REFERENCES
PURCHASE_ORDER_headER(POH_COMP_CODE,POH_code,POH_NO) ON DELETE CASCADE);
NON-db item used at purchase_order_detail block level;
pod_prod_name
*ctrl*
m_old_vah_no
m_user_id
m_comp_code
m_cursor_hint_rec
m_txn_title
m_cr_uid_disp
m_cr_dt_disp
m_curr_code_bcy
m_brok_cntry_code
though multi-user form, but right now ii am the only single user using.
i was just testing this form by querying records and repeatedly changing values inside form and saving,
just to confirm the validation are being performed as expected.
how form is behaving, on some records, it is allowing me changing values over-n-over without the error(above),
but on some records it allows editing, but if i repeat changing values, the error is flashed.
based on the discussion i tried & change my form at various places as suggested. such as,
setting DML Returning values=Yes
trigger at form-level
*WNFI*
:M_cr_DT_disp := SYSDATE;
:poH_date := SYSDATE;
:POH_tpt_MODE := 'Road';
SET_ITEM_PROPERTY('POH_NO',ENABLED,PROPERTY_FALSE);
*WNRI*
:M_CR_DT_DISP := SYSDATE;
*KEY-COMMIT*
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
COMMIT_FORM;
POST_COMMIT_ACTION;
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
CHECK_PacKaGe_FAILURE ;
GO_BLOCK('PURCHASE_ORDER_HEADER');
*PRE-COMMIT*
BEGIN
:M_OLD_VAH_NO := :poh_NO ;
END;
*PRE-FORM*
:M_COMP_CODE := :GLOBAL.M_COMP_CODE;
:M_COMP_NAME := :GLOBAL.M_COMP_NAME;
:M_USER_UID := :GLOBAL.M_USER_UID;
:poH_CODE := :GLOBAL.POh_CODE;
:poH_COMP_CODE := :GLOBAL.M_COMP_CODE;
:M_TXN_TITLE := :GLOBAL.M_TXN_TITLE;
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,:GLOBAL.M_WINDOW_TI
TLE);
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE);
:GLOBAL.M_LANG_CODE := 'ENG';
*ON-CLEAR-DETAILS* <SYSTEM GENERATED)
*KEY-EXIT*
CLEAR_BLOCK(NO_VALIDATE);
CLEAR_FORM(NO_VALIDATE);
EXIT_FORM(NO_VALIDATE);
my header-block-level triggers, pre-updates
:POH_UPD_UID := :M_USER_UID;
:POH_UPD_DT := SYSDATE;
pre-insert
headerblock
:POH_CR_UID := :M_USER_UID;
:POH_CR_DT := SYSDATE;
P_GEN_DOC_NO(:poH_NO,:poH_CODE,'001');
CHK_UNIQUE_DOC_NO;
pre-delete
system generated
pre-record
:M_CR_DT_DISP := :POH_CR_DT ;
:M_CR_UID_DISP := :POH_CR_UID;
:M_TXN_TITLE := 'P U R C H A S E';
key-entqry
CLEAR_RECORD;
CLEAR_BLOCK(NO_VALIDATE);
CLEAR_BLOCK(NO_VALIDATE);
ENTER_QUERY;
post-query
DECLARE
CURSOR C_SUPL_CODE IS SELECT SUPL_NAME, SUPL_cntry_CODE
FROM SUPPLIER_MASTER
WHERE SUPL_CODE = :POH_PARTY_CODE;
CURSOR C_BRok_CURR Is SELECT CNTRY_NAME, CNTRY_CURR_CODE
from INVS_country
where CNTRY_code = :m_BROK_CNTRY_code;
M_DUMMY VARCHAR2(1);
BEGIN
OPEN C_SUPL_CODE;
FETCH C_SUPL_CODE INTO :POH_PARTY_NAME,:M_brok_CNTRY_code;
IF C_SUPL_CODE%NOTFOUND THEN
MESSAGE('PCPlease create the Supplier of this code!');
MESSAGE(' ');
RAISE FORM_TRIGGER_FAILURE;
END IF;
CLOSE C_SUPL_CODE;
OPEN C_brok_Curr;
FETCH C_brok_Curr INTO :M_CNTRY_NAME, :M_CURR_CODE_SCY;
CLOSE C_BROK_curr;
:M_CURR_CODE_SCY := '('||:M_CURR_CODE_SCY||')';
:M_CURR_CODE_SCY_DISP := :M_CURR_CODE_SCY;
END;
on-populate-details
<system generated on creating Relationship header-detail>
trigger at detail block-level
pre-update
:pod_UPD_UID := :M_USER_UID;
:POD_UPD_DT := SYSDATE;
pre-insert
:POD_CR_UID := :M_USER_UID;
:POD_CR_DT := SYSDATE;
:POD_DATE := :POH_DATE;
:POD_curr_code := SUBSTR(:M_curr_CODE_SCY,2,3);
pre-record
:M_PREV_TOT_AMT_SCY := NVL(:POH_GROSS_fc_AMOUNT,0) -
NVL(:POD_fc_AMOUNT,0);
:M_PREV_TOT_AMT_LCY := NVL(:poH_GROSS_LC_AMOUNT,0) -
NVL(:poD_lc_AMOUNT,0);
when-remove-record
:poH_GROSS_fc_AMOUNT := NVL(:poH_GROSS_fc_AMOUNT,0) -
NVL(:POD_fC_AMOUNT,0);
:poH_GROSS_Lc_AMOUNT := NVL(:poH_GROSS_Lc_AMOUNT,0) -
NVL(:POD_LC_AMOUNT,0);
:POH_COMM_fc_Amount := NVL(:poH_GROSS_fc_AMOUNT,0)* NVL(:poH_COMM_PERC,0)/100;
:POH_COMM_LC_Amount := NVL(:poH_GROSS_Lc_AMOUNT,0)* NVL(:poH_COMM_PERC,0)/100;
:PoH_NET_FC_AMOUNT := NVL(:poH_GROSS_fc_AMOUNT,0) -
NVL(:poH_COMM_fc_AMOUNT,0) +
NVL(:POH_freight_FC_amount,0) +
NVL(:POH_CLEARING_fc_amount,0) ;
:POH_NET_lc_AMOUNT := NVL(:poH_GROSS_Lc_AMOUNT,0) -
NVL(:poH_COMM_LC_AMOUNT,0) +
nvl(:POH_freight_lC_amount,0) +
nvl(:POH_CLEARING_lc_amount,0) ;
post-query
DECLARE
CURSOR C_PROD IS SELECT prod_NAME
FROM PRODUCT_MASTER
WHERE PROD_CODE = :poD_PROD_CODE;
BEGIN
OPEN C_PROD;
FETCH C_PROD INTO :pod_PROD_name;
IF C_PROD%NOTFOUND THEN
MESSAGE('DPROD does not exists!');
MESSAGE(' ');
RAISE FORM_TRIGGER_FAILURE;
END IF;
CLOSE C_PROD;
END;
i have button-pallette for horizantal canvas used for iconic button for,
m_comp_name (display_item)
previous_record,next_record,go_top,go_bottom,query,save,exit,d
elete_record,create_record,copy_record,
clear & print. all are iconic button with just 1 trigger
when-button-pressed
SET_ITEM_PROPERTY('CTRL.M_CURSOR_HINT_REC',DISPLAYED,PROPERTY_
FALSE);
:M_CURSOR_HINT_REC := '';
do_key('...
PROGRAM UNITS PROCEDURES
PROCEDURE CHK_UNIQUE_DOC_NO IS
CURSOR C_poH IS
SELECT 'X'
FROM purchase_ORDER_HEADer
WHERE POH_COMP_CODE = :POH_COMP_CODE
AND POH_CODE = :POH_CODE
AND POH_NO = :POH_NO;
DUMMY VARCHAR2(1);
BEGIN
IF :PURCHAsE_order_HEADer.ROWID IS NULL THEN
OPEN C_poH;
FETCH C_poH INTO DUMMY;
IF C_poH%FOUND THEN
MESSAGE('TXN NO. ALREADY EXISTS IN PAY_VCH_TXN_HEAD TABLE');
MESSAGE(' ');
CLOSE C_poH;
RAISE FORM_TRIGGER_FAILURE;
END IF;
CLOSE C_poH;
END IF;
END;
PROCEDURE POST_COMMIT_ACTION IS
M_MSG VARCHAR2(30);
BEGIN
IF :poH_NO != :M_OLD_VAH_NO THEN
-- STD_ERROR_ROUTINE(105002, :GLOBAL.M_LANG_CODE, TO_CHAR(:VAH_NO));
M_MSG := 'New Document is'||' '||TO_CHAR(:poH_NO);
MESSAGE(M_MSG);
END IF;
END;
PROCEDURE P_GEN_DOC_NO
(P_DOC_NO IN OUT NUMBER,
P_TXN_CODE IN VARCHAR2,
P_COMP_CODE IN VARCHAR2) IS
M_CURR_NO PM_TXN_DOC_RANGE.TXND_CURR_NO%TYPE ;
M_TO_NO PM_TXN_DOC_RANGE.TXND_TO_NO%TYPE ;
M_ROWID VARCHAR2(20) ;
CURSOR C1 IS
SELECT NVL(TXND_CURR_NO, 0) + 1, NVL(TXND_TO_NO, 0), ROWID
FROM PM_TXN_DOC_RANGE
WHERE TXND_COMP_CODE = P_COMP_CODE
AND TXND_TXN_CODE = P_TXN_CODE
FOR UPDATE OF TXND_CURR_NO ;
BEGIN
OPEN C1;
FETCH C1 INTO M_CURR_NO, M_TO_NO, M_ROWID ;
IF C1%NOTFOUND THEN
CLOSE C1;
MESSAGE('TRANSACTION NO. NOT INITIALISED');
MESSAGE(' ');
RAISE FORM_TRIGGER_FAILURE;
END IF ;
IF M_CURR_NO > M_TO_NO THEN
MESSAGE('CURRENT TXN NO. IS OVER THE LIMIT');
MESSAGE(' ');
RAISE FORM_TRIGGER_FAILURE;
END IF ;
P_DOC_NO := M_CURR_NO ;
UPDATE PM_TXN_DOC_RANGE
SET TXND_CURR_NO = P_DOC_NO
WHERE ROWID = M_ROWID ;
CLOSE C1;
END;
PROCEDURE P_GEN_DUMMY_DOC_NO
(P_DOC_NO IN OUT NUMBER,
P_TXN_CODE IN VARCHAR2,
P_COMP_CODE IN VARCHAR2) IS
M_CURR_NO PM_TXN_DOC_RANGE.TXND_CURR_NO%TYPE ;
M_TO_NO PM_TXN_DOC_RANGE.TXND_TO_NO%TYPE ;
CURSOR O_GET_DOC_NO IS
SELECT NVL(TXND_CURR_NO, 0) + 1, NVL(TXND_TO_NO, 0)
FROM PM_TXN_DOC_RANGE
WHERE TXND_COMP_CODE = P_COMP_CODE
AND TXND_TXN_CODE = P_TXN_CODE;
BEGIN
OPEN O_GET_DOC_NO;
FETCH O_GET_DOC_NO INTO M_CURR_NO, M_TO_NO ;
IF O_GET_DOC_NO%NOTFOUND THEN
MESSAGE('DUMMTRANSACTION NO. NOT INITIALISED');
MESSAGE(' ');
RAISE FORM_TRIGGER_FAILURE;
END IF ;
CLOSE O_GET_DOC_NO;
IF M_CURR_NO > M_TO_NO THEN
MESSAGE('DUMMCURRENT TXN NO. IS OVER THE LIMIT');
MESSAGE(' ');
RAISE FORM_TRIGGER_FAILURE;
END IF ;
P_DOC_NO := M_CURR_NO ;
END;i request,please please please,,advice me something as it has taken very long.
i would welcome and be greatful ever if someone ask me to send the .fmb file and have look at it.poelger wrote:
Make sure that the fields you use in your form don't have trailing spaces in the database.you mean my db table fields length is greater than the ones displayed on form?
for example my POD_RATE is NUMBER(9,3) and on form its Maximum length is 11,
so if i enter 2.5, will you say that my db field POD_RATE has trailing space?
i tried to change some form fields length to match with the db fields length.
but now the form has become wild, it is flashing this error on the screen many times on change and navigation
and even while exit form -
Record has already been updated by another user. Please re-query and retry
Hi,
I want to uncheck the option Send e-mails for canceled notifications in Workflow mailer but getting error in fouth step in workflow Notification mailer:-
1. Connect to Oracle Applications Manager with SYSADMIN.
2. select Workflow manager.
3. Click on EDIT button-->Advanced(Step 1)--->next(step 2)--->next(step 3)---"ERROR"
This record has already been updated by another user. Please re-query and try again. ORA-06512: at "APPS.FND_SVC_COMP_PARAM_VALS_PKG", line 288 ORA-06512: at line 1
Regards,Pl see if MOS Doc 286418.1 (ORA-06512: At Fnd_svc_comp_param_vals_pkg When Configuring The Java Mailer) can help
HTH
Srini -
I had the geek squad from bestbuy supposedly install iphoto 11 on my mac but it is not there and when i try to download it it say the app has been download by another user on this machine. What do i need to do get get this app on my system? If they could not do it right the first time I do not have much faith in their advice.
Assuming you've done a system wide search for it including the Applications folder and it's not there......
I think you will need to address this with them - did you pay them for the application? Or was your purchase price to include it? And the question(s) to ask them:
If the app store states that it has been downloaded, ask them where it is and which Apple ID they used. (the store keeps track of Apple IDs and machine IDs on everything you download).
I have absolutely no faith in their advice; however, in this case, it's not so much technical advice, but an answer to your questions: you paid for something and it appears not to be there. -
I have Words with Friends app on my iphone4S and the same game on computer. When I try to play Words with Friends with Facebook on the iphone the message says" Account Already Connected. This Facebook account has been connected to another user." It is connected to my computer. How can I play game on iphone?
Hi Grandmaz5,
If you are having issues connecting to Facebook on your iPad, and you have already troubleshot the Facebook app itself, you may want to check the built-in iOS settings for Facebook; you may find the following article helpful:
iOS: Using Facebook, Twitter, and other social network accounts
http://support.apple.com/kb/HT5500
Regards,
- Brenden -
It seems that my iCloud address has been duplicated to another user in the UK? I'm in NZ how can I resolve this
I think it's most probable that someone is giving out your address by mistake: in which case they wouldn't be receiving any of the emails. Was there any indication that there had been any response? - a follow-up message, for example?
You could try contacting iCloud Support, though I don't know how much help you will get.
To contact iCloud Support: if you currently happen to have AppleCare, either because you recently bought Apple hardware or have paid to extend the inititial period, you can contact them here:
http://www.apple.com/support/icloud/contact/
You will need the serial number of the covered hardware.
If you are not covered by AppleCare, then - in common with other free email services - there is no free support and you may be asked to pay a fee. You could try arguing that if there is indeed a duplication it's their fault, as it certainly shouldn't happen, and you therefore shouldn't be charged. -
Failing to create an email with outlook interop when outlook has been opened by another user account
Hello
I have an addin that customizes the excel ribbon. I added a button so that when the user clicks it, a new outlook message windows pops up with some default information on the email body, CCs, etc.
The problem is that if outlook is already running and it's running under another user account different from the one that was used to open excel (e.g. after opening excel i open outlook with shift + right click and then "Run As..."); i get an exception upon
instantiating the outlook interop object:
Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
The exception message reads:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
What can i do to prevent this issue from happening?
ThanksIn that situation I would test first for an existing Outlook process running and hook into it if it is running. If it's not running then I'd use new to create an Outlook session. There can only be one Outlook session running
at a time.
This sort of code will do the trick for you I think:
System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("OUTLOOK");
int collCount = processes.Length;
if (collCount != 0)
// Outlook already running, hook into the Outlook instance
outlookApp = Marshal.GetActiveObject("Outlook.Application")
as Outlook.Application;
An else there would create a new Outlook.Application object.
Ken Slovak
MVP - Outlook
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
"wildarmss" <=?utf-8?B?d2lsZGFybXNz?=> wrote in message
news:870d6093-a7fb-4431-a38f-1896ce4cf963...
Hello
I have an addin that customizes the excel ribbon. I added a button so that when the user clicks it, a new outlook message windows pops up with some default information on the email body, CCs, etc.
The problem is that if outlook is already running and it's running under another user account different from the one that was used to open excel (e.g. after opening excel i open outlook with shift + right click and then "Run As..."); i get an exception upon
instantiating the outlook interop object:
Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
The exception message reads:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
What can i do to prevent this issue from happening?
Thanks
Ken Slovak MVP - Outlook -
Topic has been updated since your last login
Is this message some kind of new improvement, or didn�t I simply notice that before? I think they should fix the current bugs before adding new features here.
Why can't you use a base-table block? You are sure trying to do things the hard way!
But if you insist... To make the comparison, you FIRST need to save the database value of each column in your block as you populate the block -- so you need a displayed/updateable value PLUS a hidden value of the same field. Then, to emulate Forms automatic processing, when you select and lock the row (after the user has made a change to one of the fields) you need to fetch all the values from the database again, and compare these against the hidden saved values. If any one compares not equal (and you must check for both null, also), then the row has been updated by another user.
Good luck. -
FRM-40600: Record has already been inserted.
I am using Form 9i.
I have written a procedure to save master-detail form which is called when WHEN-BUTTTON-PRESSED trigger written in submit button..
I have written this procedure because I am confident in writing procedure for save button. But it gives error - 'FRM-40600: Record has already been inserted.'.
When I was using default (form) for saving record, I was getting lot of message (error). I was getting confused seeing this message. That's why I have written save button procedure. I don't know whether I am doing wrong or right.
Before posting, I searched in forum also and found some post regarding this, but still I am unable to find the solution.
Anyway, I am giving you code for save procedure -
PROCEDURE save_workorder IS
v_count NUMBER;
BEGIN
SELECT COUNT(*) INTO v_count FROM workorder_master
WHERE workorder_no = :workorder_master.workorder_no;
IF v_count = 0 THEN
GO_BLOCK('workorder_master');
INSERT INTO workorder_master (
vender_code,
workorder_no,
auth_rep,
workplace,
work_desc,
from_dt,
to_dt,
tot_manpower,
gp_manpower,
lic_no,
lic_recpt_no,
lic_valid_upto,
eic_name,
status,
remarks,
entry_by,
entry_dt)
VALUES(
:workorder_master.vender_code,
:workorder_master.workorder_no,
:workorder_master.auth_rep,
:workorder_master.workplace,
:workorder_master.work_desc,
:workorder_master.from_dt,
:workorder_master.to_dt,
:workorder_master.tot_manpower,
:workorder_master.gp_manpower,
:workorder_master.lic_no,
:workorder_master.lic_recpt_no,
:workorder_master.lic_valid_upto,
:workorder_master.eic_name,
:workorder_master.status,
:workorder_master.remarks,
:workorder_master.entry_by,
:workorder_master.entry_dt);
GO_BLOCK('workorder_dtls');
FIRST_RECORD;
LOOP
EXIT WHEN :workorder_dtls.labour_code IS NULL;
IF :workorder_dtls.pass_no IS NULL THEN
generate_pass_no;
IF :workorder_dtls.pass_no IS NOT NULL THEN
:workorder_dtls.status := 'I';
INSERT INTO workorder_dtls (
labour_code,
workorder_no,
pass_no,
status,
from_dt,
to_dt,
cancil_dt,
issue_dt,
return_dt,
entry_by,
entry_dt)
VALUES (:workorder_dtls.labour_code,
:workorder_dtls.workorder_no,
:workorder_dtls.pass_no,
:workorder_dtls.status,
:workorder_dtls.from_dt,
:workorder_dtls.to_dt,
:workorder_dtls.cancil_dt,
:workorder_dtls.issue_dt,
:workorder_dtls.return_dt,
:workorder_master.entry_by,
:workorder_master.entry_dt);
END IF;
ELSE --if pass no is not null then it is previous record.
UPDATE workorder_dtls SET status = :workorder_dtls.status,
cancil_dt = :workorder_dtls.cancil_dt,
return_dt = :workorder_dtls.return_dt,
entry_by = :workorder_dtls.entry_by,
entry_dt = :workorder_dtls.entry_dt
WHERE labour_code = :workorder_dtls.labour_code
AND workorder_no = :workorder_dtls.workorder_no
AND pass_no = :workorder_dtls.pass_no;
END IF;
IF :workorder_dtls.status = 'I' THEN
UPDATE labour_master SET status = 'I'
WHERE labour_code = :workorder_dtls.labour_code;
END IF;
IF :workorder_dtls.status = 'E' THEN
IF :workorder_dtls.return_dt IS NOT NULL THEN
UPDATE labour_master SET status = 'A'
WHERE labour_code = :workorder_dtls.labour_code;
ELSE
UPDATE labour_master SET status = 'H'
WHERE labour_code = :workorder_dtls.labour_code;
END IF;
END IF;
IF :workorder_dtls.status = 'B' THEN
IF :workorder_dtls.return_dt IS NOT NULL THEN
UPDATE labour_master SET status = 'A'
WHERE labour_code = :workorder_dtls.labour_code;
ELSE
UPDATE labour_master SET status = 'S'
WHERE labour_code = :workorder_dtls.labour_code;
END IF;
END IF;
NEXT_RECORD;
END LOOP;
ELSE --if workorder exist
GO_BLOCK('workorder_master');
UPDATE workorder_master SET auth_rep = :workorder_master.auth_rep,
workplace = :workorder_master.workplace,
work_desc = :workorder_master.work_desc,
from_dt = :workorder_master.from_dt,
to_dt = :workorder_master.to_dt,
tot_manpower = :workorder_master.tot_manpower,
gp_manpower = :workorder_master.gp_manpower,
lic_no = :workorder_master.lic_no,
lic_recpt_no = :workorder_master.lic_recpt_no,
lic_valid_upto= :workorder_master.lic_valid_upto,
eic_name = :workorder_master.eic_name,
status = :workorder_master.status,
remarks = :workorder_master.remarks,
entry_by = :workorder_master.entry_by,
entry_dt = :workorder_master.entry_dt
WHERE vender_code = :workorder_master.vender_code
AND workorder_no = :workorder_master.workorder_no;
GO_BLOCK('workorder_dtls');
FIRST_RECORD;
LOOP
EXIT WHEN :workorder_dtls.labour_code IS NULL;
IF :workorder_dtls.pass_no IS NULL THEN
generate_pass_no;
IF :workorder_dtls.pass_no IS NOT NULL THEN
:workorder_dtls.status := 'I';
INSERT INTO workorder_dtls (
labour_code,
workorder_no,
pass_no,
status,
from_dt,
to_dt,
cancil_dt,
issue_dt,
return_dt,
entry_by,
entry_dt)
VALUES (:workorder_dtls.labour_code,
:workorder_dtls.workorder_no,
:workorder_dtls.pass_no,
:workorder_dtls.status,
:workorder_dtls.from_dt,
:workorder_dtls.to_dt,
:workorder_dtls.cancil_dt,
:workorder_dtls.issue_dt,
:workorder_dtls.return_dt,
:workorder_master.entry_by,
:workorder_master.entry_dt);
END IF;
ELSE --if pass no is not null then it is previous record.
UPDATE workorder_dtls SET status = :workorder_dtls.status,
cancil_dt = :workorder_dtls.cancil_dt,
return_dt = :workorder_dtls.return_dt,
entry_by = :workorder_dtls.entry_by,
entry_dt = :workorder_dtls.entry_dt
WHERE labour_code = :workorder_dtls.labour_code
AND workorder_no = :workorder_dtls.workorder_no
AND pass_no = :workorder_dtls.pass_no;
END IF;
IF :workorder_dtls.status = 'I' THEN
UPDATE labour_master SET status = 'I'
WHERE labour_code = :workorder_dtls.labour_code;
END IF;
IF :workorder_dtls.status = 'E' THEN
IF :workorder_dtls.return_dt IS NOT NULL THEN
UPDATE labour_master SET status = 'A'
WHERE labour_code = :workorder_dtls.labour_code;
ELSE
UPDATE labour_master SET status = 'H'
WHERE labour_code = :workorder_dtls.labour_code;
END IF;
END IF;
IF :workorder_dtls.status = 'B' THEN
IF :workorder_dtls.return_dt IS NOT NULL THEN
UPDATE labour_master SET status = 'A'
WHERE labour_code = :workorder_dtls.labour_code;
ELSE
UPDATE labour_master SET status = 'S'
WHERE labour_code = :workorder_dtls.labour_code;
END IF;
END IF;
NEXT_RECORD;
END LOOP;
END IF;
COMMIT;
END;
Thanks and regards,
VikasYes Sir, why not.
This procedure is written in KEY-NEXT-ITEM of workorder_no, the only trigger in workorder_no. Block level-trigger is also there. like ON-POPULATE-DETAILS, ON-CHECK-DELETE-MASTER.
Thanks and regards,
Vikas
[HTML]
DECLARE
V_VENDER_CODE NUMBER;
REL_ID RELATION;
BEGIN
BEGIN
SELECT VENDER_CODE INTO V_VENDER_CODE FROM WORKORDER_MASTER WHERE WORKORDER_NO = :WORKORDER_MASTER.WORKORDER_NO ;
:BLK_TEMP_WORKORDER.WORKORDER_NO := :WORKORDER_MASTER.WORKORDER_NO;
:BLK_TEMP_WORKORDER.VENDER_CODE := V_VENDER_CODE;
IF ( (:WORKORDER_MASTER.WORKORDER_NO is not null) ) THEN
rel_id := Find_Relation('WORKORDER_MASTER.WORKORDER_MASTE_WORKORDER_DTLS');
Query_Master_Details(rel_id, 'WORKORDER_DTLS');
SET_ITEM_PROPERTY('BLK_TEMP_WORKORDER.CB_ALL' , ENABLED , PROPERTY_TRUE);
END IF;
GO_BLOCK('WORKORDER_MASTER');
EXECUTE_QUERY(NO_VALIDATE);
GO_BLOCK('WORKORDER_MASTER_IMG');
EXECUTE_QUERY(NO_VALIDATE);
:WORKORDER_MASTER.VENDER_CODE := :BLK_TEMP_WORKORDER.VENDER_CODE;
:WORKORDER_MASTER.WORKORDER_NO := :BLK_TEMP_WORKORDER.WORKORDER_NO ;
GO_ITEM('WORKORDER_MASTER.AUTH_REP');
EXCEPTION
WHEN NO_DATA_FOUND THEN
MESSAGE('NO VENDER HAVING WORKORDER NO. '||:WORKORDER_MASTER.WORKORDER_NO ||' EXIST.');
IF :WORKORDER_MASTER.VENDER_CODE IS NULL THEN
GO_ITEM('WORKORDER_MASTER.VENDER_CODE');
ELSE
:BLK_TEMP_WORKORDER.WORKORDER_NO := :WORKORDER_MASTER.WORKORDER_NO;
:BLK_TEMP_WORKORDER.VENDER_CODE := :WORKORDER_MASTER.VENDER_CODE;
GO_BLOCK('WORKORDER_MASTER');
EXECUTE_QUERY(NO_VALIDATE);
GO_BLOCK('WORKORDER_MASTER_IMG');
EXECUTE_QUERY(NO_VALIDATE);
:WORKORDER_MASTER.VENDER_CODE := :BLK_TEMP_WORKORDER.VENDER_CODE;
:WORKORDER_MASTER.WORKORDER_NO := :BLK_TEMP_WORKORDER.WORKORDER_NO ;
SELECT name INTO :workorder_master.auth_rep FROM contractor_master
WHERE vender_code = :workorder_master.vender_code;
GO_ITEM('WORKORDER_MASTER.AUTH_REP');
END IF;
END;
END;[HTML] -
I received this update from Apple, but I have no record of altering anything, in particular telephone numbers, can anyone tell me what has been updated, who updated it, and how was entry made to my account?
Hello,
The following information for your Apple ID was updated on 03/22/2014:
Phone number(s)
If these changes were made in error, please CLICK HERE, to Cancel this changes withing 24hours..
This is an automated message. Please do not reply to this email. If you need additional help, visit Apple Support.
Thanks,
Apple Customer SupportThis is a user to user forum, so no one here can provide an answer. You should contact iTunes Support directly.
Here's how you can do that: http://www.apple.com/support/itunes/contact/
Maybe you are looking for
-
Weird Javascript problem on Safari and other web browsers
Hello, this is actually pretty weird. For the past several weeks I have been dealing with a very strange problem which I believe relates to JavaScript. To be more specific I have an issue with two websites: Macuser.gr and Facebook.com. As far as Macu
-
How can I use my ipod on a different computer
The original computer I set my ipod up on no longer has internet access. How can i set up my ipod on another computer so I can download from itunes without having to delete all my songs?
-
hi, how to download and upload structure from one r/3 to another r/3 system . <b><REMOVED BY MODERATOR></b> regards, anuj Message was edited by: Alvaro Tejada Galindo
-
Iphone 5 Screen is Frozen Connection Timeout Error Connection to this app has timed out
I upgraded to IOS 7 just a few hours before my Iphone 5 screen froze and I cannot make changes - I have a Connection Timeout Error with Connection to this app has timed out. With Ok in blue. The screen doesn't respond, I can turn off the phone, t
-
Wen I use Tiger's built in slideshow feature, I get an odd transition. My desktop fades to black as expected, but then reappears as if interrupted, and then starts the show. Any ideas why? Any insights what I could do to fix this?