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

Joe Boyle joeboyle_adt@hotmail.com
Fri, 23 Apr 2004 13:16:56 +0100


<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>