problem with 'lookup on' and writing to a SQLserver table

brian_matthewsbrian matthews brian_matthews_bmw@hotmail.com
Fri, 23 Apr 2004 13:01:56 +0000


This is a multi-part message in MIME format.

------=_NextPart_000_6bf0_6317_212
Content-Type: text/plain; format=flowed

no - I hav'nt given up guys - just taking it all in.  We have another team 
looking at Oracle, and we like the single TX method here - can you blame us 
?

can't thank you all enough !


>From: "Joe Boyle" <joeboyle_adt@hotmail.com>
>To: shediac92@hotmail.com, powerh-l@lists.sowder.com
>Subject: RE: problem with 'lookup on' and writing to a SQLserver table
>Date: Fri, 23 Apr 2004 13:16:56 +0100
>

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

------=_NextPart_000_6bf0_6317_212
Content-Type: message/rfc822

X-Message-Info: yilqo4+6kc6lb8pCaxjgPm5MjxQl90sN
Received: from sowder.com ([69.93.28.243]) by mc4-f25.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824);
	 Fri, 23 Apr 2004 05:23:07 -0700
Received: from sowder.com (localhost [127.0.0.1])
	by sowder.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i3NCMuv3021761;
	Fri, 23 Apr 2004 07:22:57 -0500
Received: from hotmail.com (bay13-f9.bay13.hotmail.com [64.4.31.9])
	by sowder.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i3NCHAv3021490
	for <powerh-l@lists.sowder.com>; Fri, 23 Apr 2004 07:17:12 -0500
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Fri, 23 Apr 2004 05:16:57 -0700
Received: from 212.85.12.211 by by13fd.bay13.hotmail.msn.com with HTTP;
	Fri, 23 Apr 2004 12:16:56 GMT
X-Originating-IP: [212.85.12.211]
X-Originating-Email: [joeboyle_adt@hotmail.com]
X-Sender: joeboyle_adt@hotmail.com
From: "Joe Boyle" <joeboyle_adt@hotmail.com>
To: shediac92@hotmail.com, powerh-l@lists.sowder.com
Subject: RE: problem with 'lookup on' and writing to a SQLserver table
Mime-Version: 1.0
Content-Type: text/html
Message-ID: <BAY13-F9xAEVJsZwpnP000077df@hotmail.com>
X-OriginalArrivalTime: 23 Apr 2004 12:16:57.0077 (UTC) FILETIME=[DF0E4250:01C4292C]
Sender: powerh-l-admin@lists.sowder.com
Errors-To: powerh-l-admin@lists.sowder.com
X-BeenThere: powerh-l@lists.sowder.com
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:powerh-l-request@lists.sowder.com?subject=help>
List-Post: <mailto:powerh-l@lists.sowder.com>
List-Subscribe: <http://lists.sowder.com/mailman/listinfo/powerh-l>,
	<mailto:powerh-l-request@lists.sowder.com?subject=subscribe>
List-Id: Cognos PowerHouse 4GL <powerh-l.lists.sowder.com>
List-Unsubscribe: <http://lists.sowder.com/mailman/listinfo/powerh-l>,
	<mailto:powerh-l-request@lists.sowder.com?subject=unsubscribe>
List-Archive: <http://lists.sowder.com/pipermail/powerh-l/>
Date: Fri, 23 Apr 2004 13:16:56 +0100
Return-Path: powerh-l-admin@lists.sowder.com

<html><div style='background-color:'><DIV class=RTE>
<P>why&nbsp;not set a flag in the field process proc which conditionally decides if the row is written in the preupdte or postupdate proc; this way you don't need a backout proc, and the update TX gets rolled back as a unit if there is a problem - you still need the autocommit with the 'lookup on' - and the designer TX mentioned in an earlier email should have been a 'read write' TX.</P>
<P>P.S. I suspect Brian might have given up&nbsp;?<BR><BR><BR></P></DIV>
<DIV></DIV>&gt;From: "Peter Bateman" &lt;shediac92@hotmail.com&gt; 
<DIV></DIV>&gt;To: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;Subject: RE: problem with 'lookup on' and writing to a SQLserver table 
<DIV></DIV>&gt;Date: Thu, 22 Apr 2004 12:24:37 -0300 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Good point Gavin. I have done something similiar to what Brian is 
<DIV></DIV>&gt;doing. 
<DIV></DIV>&gt;I was reserving products from inventory for an order that I was 
<DIV></DIV>&gt;building. and yes 
<DIV></DIV>&gt;I had to put in code to backout if the order was modified or 
<DIV></DIV>&gt;cancelled. 
<DIV></DIV>&gt;Regards, 
<DIV></DIV>&gt;Peter 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&gt;From: "Lloyd, Gavin" &lt;gavin.lloyd@fmglobal.com&gt; 
<DIV></DIV>&gt;&gt;To: "brian_matthewsbrian matthews" 
<DIV></DIV>&gt;&gt;&lt;brian_matthews_bmw@hotmail.com&gt;,&nbsp;&nbsp; &lt;powerh-l@lists.sowder.com&gt; 
<DIV></DIV>&gt;&gt;Subject: RE: problem with 'lookup on' and writing to a SQLserver 
<DIV></DIV>&gt;&gt;table 
<DIV></DIV>&gt;&gt;Date: Wed, 21 Apr 2004 12:57:38 +0100 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;The autocommit would release the lock but what worries me is doing 
<DIV></DIV>&gt;&gt;the 
<DIV></DIV>&gt;&gt;write in the process procedure.&nbsp;&nbsp;If you are updating a record based 
<DIV></DIV>&gt;&gt;on 
<DIV></DIV>&gt;&gt;the logic in the screen then you cannot guarantee the update will 
<DIV></DIV>&gt;&gt;be 
<DIV></DIV>&gt;&gt;completed until the update procedure.&nbsp;&nbsp;So if this doesn't get done 
<DIV></DIV>&gt;&gt;will 
<DIV></DIV>&gt;&gt;the SQLserver table be out of synch? 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;If the updates are related you may be able to change the lookup 
<DIV></DIV>&gt;&gt;file to 
<DIV></DIV>&gt;&gt;secondary and your field changes to the process procedure and the 
<DIV></DIV>&gt;&gt;update 
<DIV></DIV>&gt;&gt;should sort itself out.&nbsp;&nbsp;If it's all procedure code you may be able 
<DIV></DIV>&gt;&gt;to 
<DIV></DIV>&gt;&gt;use a designer file. 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;If I have misunderstood then I can only apologise in advance but I 
<DIV></DIV>&gt;&gt;had 5 
<DIV></DIV>&gt;&gt;minutes and thought I would try and help for a change but as usual 
<DIV></DIV>&gt;&gt;MY 
<DIV></DIV>&gt;&gt;suggestion sounds a lot more complicated than the original 
<DIV></DIV>&gt;&gt;question. 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;Regards, 
<DIV></DIV>&gt;&gt;Gavin. 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;-----Original Message----- 
<DIV></DIV>&gt;&gt;From: powerh-l-admin@lists.sowder.com 
<DIV></DIV>&gt;&gt;[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of 
<DIV></DIV>&gt;&gt;brian_matthewsbrian matthews 
<DIV></DIV>&gt;&gt;Sent: 20 April 2004 16:06 
<DIV></DIV>&gt;&gt;To: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;&gt;Subject: problem with 'lookup on' and writing to a SQLserver table 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;I have never used this list before so am not completely sure what 
<DIV></DIV>&gt;&gt;to 
<DIV></DIV>&gt;&gt;expect 
<DIV></DIV>&gt;&gt;so here goes : I am trying to write to a SQLserver table from a 
<DIV></DIV>&gt;&gt;field 
<DIV></DIV>&gt;&gt;process procedure but the row is blocked if a 'lookup on' is also 
<DIV></DIV>&gt;&gt;present on 
<DIV></DIV>&gt;&gt;the field, can anyone explain this, or offer a wokaround ? 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;P.S we are from RMS and trying out SQLserver 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;_________________________________________________________________ 
<DIV></DIV>&gt;&gt;Express yourself with cool new emoticons 
<DIV></DIV>&gt;&gt;http://www.msn.co.uk/specials/myemo 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;= = = = = = = = = = = = = = = = = = = = = = = = = = = = 
<DIV></DIV>&gt;&gt;Mailing list: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;&gt;Subscribe: "subscribe" in message body to 
<DIV></DIV>&gt;&gt;powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;&gt;Unsubscribe: "unsubscribe &lt;password&gt;" in message body to 
<DIV></DIV>&gt;&gt;powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;&gt;http://lists.sowder.com/mailman/listinfo/powerh-l 
<DIV></DIV>&gt;&gt;This list is closed, thus to post to the list you must be a 
<DIV></DIV>&gt;&gt;subscriber. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_________________________________________________________________ 
<DIV></DIV>&gt;http://join.msn.com/?pgmarket=en-ca&amp;page=byoa/prem&amp;xAPID=1994&amp;DI=1034&amp;SU=http://hotmail.com/enca&amp;HL=Market_MSNIS_Taglines 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;= = = = = = = = = = = = = = = = = = = = = = = = = = = = 
<DIV></DIV>&gt;Mailing list: powerh-l@lists.sowder.com 
<DIV></DIV>&gt;Subscribe: "subscribe" in message body to 
<DIV></DIV>&gt;powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;Unsubscribe: "unsubscribe &lt;password&gt;" in message body to 
<DIV></DIV>&gt;powerh-l-request@lists.sowder.com 
<DIV></DIV>&gt;http://lists.sowder.com/mailman/listinfo/powerh-l 
<DIV></DIV>&gt;This list is closed, thus to post to the list you must be a 
<DIV></DIV>&gt;subscriber. 
<DIV></DIV></div><br clear=all><hr>Have more fun with your phone - download ringtones, logos, screensavers, games & more. <a href="http://g.msn.com/8HMBENUK/2728??PS=">Click here to begin!</a> </html>
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.


------=_NextPart_000_6bf0_6317_212--