<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Martyn:<br><br>As a workaround I would put a get on the reference file in the PREUPDATE procedure.<br>This hopefully would reset the record status to OLD UNALTERED.<br><br>Is there a PUT on the reference file in the UPDATE procedure??<br><br>Regards,<br>Peter Bateman<br><br>09 09:36:36 -0800<br>&gt; From: martyn.thomson@gov.bc.ca<br>&gt; To: Bob.Deskin@ca.ibm.com<br>&gt; CC: powerh-l-bounces+bob.deskin=ca.ibm.com@lists.sowder.com; powerh-l@lists.sowder.com<br>&gt; <br>&gt; Hi Bob.<br>&gt; The field INSTITUTION_NAME is display only. We don't want to enter anything - just display a name. Changing PREDISPLAY to DISPLAY had no effect. <br>&gt; It's a simple reference file lookup using a field from the primary file IF_APP_INTERNET_TMP, but it generates an ACCEPT verb in the MODIFY procedure! Adding NOCHANGE and/or NOCORRECT to the field changes the ACCEPT to "DISPLAY INSTITUTION_NAME" bui Martynt on update an error about "cannot write an empty record" is generated.<br>&gt; <br>&gt; We have logged an error with IBM.<br>&gt; Martyn<br>&gt; <br>&gt; -----Original Message-----<br>&gt; From: Bob Deskin [mailto:Bob.Deskin@ca.ibm.com]<br>&gt; Sent: Wed 04-Nov-09 4:55 PM<br>&gt; To: Thomson, Martyn EDUC:EX<br>&gt; Cc: powerh-l@lists.sowder.com; powerh-l-bounces+bob.deskin=ca.ibm.com@lists.sowder.com<br>&gt; Subject: Re: PH web changes alteredrecord of Reference table!<br>&gt;  <br>&gt; QDESIGN must generate an ACCEPT verb on the REFERENCE file because the <br>&gt; FIELD is not DISPLAY. If it's truly a REFERENCE file where you're looking <br>&gt; up data based on another file's data (which is what the ACCESS does), you <br>&gt; should be able to make the FIELD a DISPLAY field. <br>&gt; <br>&gt; If you need to enter data into that field, then the file should not be a <br>&gt; REFERENCE file because it's not really just for a lookup.<br>&gt; <br>&gt; Bob<br>&gt; <br>&gt; <br>&gt; <br>&gt; From:<br>&gt; "Thomson, Martyn EDUC:EX" &lt;martyn.thomson@gov.bc.ca&gt;<br>&gt; To:<br>&gt; &lt;powerh-l@lists.sowder.com&gt;<br>&gt; Date:<br>&gt; 2009-11-04 05:37 PM<br>&gt; Subject:<br>&gt; PH web changes alteredrecord of Reference table!<br>&gt; Sent by:<br>&gt; powerh-l-bounces+bob.deskin=ca.ibm.com@lists.sowder.com<br>&gt; <br>&gt; <br>&gt; <br>&gt; Posted on behalf of a colleague:<br>&gt; <br>&gt; We have an issue in powerhouse web version 8.40e and 8.40f where a <br>&gt; reference file is having it's alteredrecord flag set to Y and as a result <br>&gt; the error "*d* Not all changed records have been updated." is being <br>&gt; returned.<br>&gt; <br>&gt; The issue occurs in the 2nd screen of a multi screen process for an <br>&gt; application... The screens pass a series of parms between them as they <br>&gt; run. The first screen gets the basic information writes it to the data <br>&gt; base and determines which next screen to run based on the data that is <br>&gt; available for this particular application.<br>&gt; <br>&gt; One of the fields (a name) selected the first screen is retrieved from the <br>&gt; database and sent to the 2nd screen as a display however powerhouse is <br>&gt; generating an accept verb in the Modify procedure, presumable so that that <br>&gt; the PHCGIBIN will process it and display the value on the screen... <br>&gt; Because it is an "accept" the altered record flag is set when the field is <br>&gt; read and populated.<br>&gt; <br>&gt; The file - <br>&gt; &gt; file IF_INSTITUTION_VIEW in SFAS_DATABASE reference &amp;<br>&gt; &gt;       transaction query<br>&gt; *W* Record IF_INSTITUTION_VIEW is not updatable.<br>&gt; &gt; <br>&gt; &gt;   access via INSTITUTION_IDX                  &amp;<br>&gt; &gt;       using INSTITUTION_IDX of IF_APP_INTERNET_TMP<br>&gt; &gt; <br>&gt; <br>&gt; The field -<br>&gt; &gt; field INSTITUTION_NAME of IF_INSTITUTION_VIEW        &amp;<br>&gt; &gt;      predisplay <br>&gt;  <br>&gt; <br>&gt; From the log...<br>&gt; <br>&gt; Action Command    Modify<br>&gt;     Executing  Modify Procedure<br>&gt;       0837      BLOCK TRANSFER<br>&gt;         Watchpoint trap encountered at line: (837), for INSTITUTION_NAME <br>&gt; OF IF_INSTITUTION_VIEW<br>&gt;         Old Value = "                                        "<br>&gt;  ( from uninitialized buffer )        New Value = <br>&gt; "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"<br>&gt;       0839          ACCEPT INSTITUTION_NAME OF IF_INSTITUTION_VIEW<br>&gt;       0840          ACCEPT T_PROG_START_YYYY<br>&gt;       0841          ACCEPT T_PROG_START_MM<br>&gt;       0842          ACCEPT T_PROG_START_DD<br>&gt;       0843          ACCEPT T_PROG_END_YYYY<br>&gt;       0844          ACCEPT T_PROG_END_MM<br>&gt;       0845          ACCEPT T_PROG_END_DD<br>&gt;       0846          ACCEPT P1<br>&gt;       0847          ACCEPT P2<br>&gt;       0848          ACCEPT P3<br>&gt;       0849          ACCEPT P4<br>&gt;       0850          ACCEPT P5<br>&gt;       0851          ACCEPT T_ERROR<br>&gt;       0852          END<br>&gt;       0853      END<br>&gt; <br>&gt;         Watchpoint trap encountered at line: (853), for ALTEREDRECORD OF <br>&gt; IF_INSTITUTION_VIEW<br>&gt;         Old Value = FALSE<br>&gt;         New Value = TRUE <br>&gt; <br>&gt;         Watchpoint trap encountered at line: (853), for INSTITUTION_NAME <br>&gt; OF IF_INSTITUTION_VIEW<br>&gt;         Old Value = "  "<br>&gt;         New Value = "                                        "<br>&gt;   Action Command    Update Stay<br>&gt; <br>&gt; We have change tried changing the file from reference to designer, <br>&gt; Tried changing the field to nochange <br>&gt; Tried changing the logic to use a temp field rather then the true field..<br>&gt; <br>&gt; The results were either the same or we get an attempt to write an empty <br>&gt; record... Neither are acceptable.<br>&gt; <br>&gt; Any suggestions much appreciated.<br>&gt; Martyn<br>&gt; PH 8.4 on OpenVMS<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; = = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>&gt; Mailing list: powerh-l@lists.sowder.com<br>&gt; Subscribe: 'subscribe' in message body to <br>&gt; powerh-l-request@lists.sowder.com<br>&gt; Unsubscribe: 'unsubscribe &amp;lt;password&amp;gt;' in message body to <br>&gt; powerh-l-request@lists.sowder.com<br>&gt; http://lists.sowder.com/mailman/listinfo/powerh-l<br>&gt; This list is closed, thus to post to the list you must be a subscriber.<br>&gt; Add 'site:lists.sowder.com powerh-l' to your search terms to search the <br>&gt; list archive at Google.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; = = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>&gt; Mailing list: powerh-l@lists.sowder.com<br>&gt; Subscribe: 'subscribe' in message body to powerh-l-request@lists.sowder.com<br>&gt; Unsubscribe: 'unsubscribe &amp;lt;password&amp;gt;' in message body to powerh-l-request@lists.sowder.com<br>&gt; http://lists.sowder.com/mailman/listinfo/powerh-l<br>&gt; This list is closed, thus to post to the list you must be a subscriber.<br>&gt; Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.<br>                                               <br /><hr />Get a great deal on Windows 7 and see how it works the way you want. <a href='http://go.microsoft.com/?linkid=9691812' target='_new'>Check out the offers on Windows 7now.</a></body>
</html>