Re: Expert help required (forms4.5)

From: Stacy Friedman <stacy_friedman_at_yahoo.dot.com>
Date: 1998/02/06
Message-ID: <34DB5139.13CE49BB_at_yahoo.dot.com>#1/1


Jonathan Trifts wrote:

> FRM-41045: Cannot find item: invalid ID (appears 3 times, and is
> sometimes followed by:)
> FRM-41058: No such property for Get-Item-Property (which may appear by
> itself, or after the first messages)
>
> These error messages are intermittent, apparently originating from
> within the attached Oracle HINT library, from the procedure
> HINT.ShowButtonHelpHandler, called from the form-level
> When-Timer-Expired trigger, which seems to fire on a fairly random basis

Evaluate the possible navigation states that your form could be in when the timer fires, and then see if any of these don't make sense for the call to the HINT lib. The two errors you're getting are usually associated with being in the wrong block or item. FRM-41058 especially is caused by assuming you're looking at item A when you're really looking at item B -- if item B doesn't have the property that you're interested in (which item A does), then you'll get this error. To fix this, put in additional state checking in your timer code to make sure that when it fires, the state of the form is what you expect it to be.

> Form B:
>
> This defect is also intermittent, and seems to stem from an unhandled
> exception which is being raised by the form-level When-Mouse-Enter
> trigger. The form opens in ENTER-QUERY mode. We EXECUTE-QUERY on any
> record in the topmost block, and wait a few seconds for all of the
> several master-detail relations to do their work and populate the other
> blocks on the form. Upon placing the cursor over a button in the last
> block on the screen, which calls a popup block for data entry, the
> message FRM-40735 When-Mouse-Enter trigger raised unhandled exception
> Value-Error appears. After it has appeared once, the same message will
> continue to appear whenever the mouse is moved.

Again, you need to make sure that the code in your When-Mouse-Enter trigger isn't getting executed before it's supposed to. If you're referencing a particular item in a block, but there's nothing there yet from the query, you could get a value error. Put in additional code to make sure you're not referencing empty items. Alternatively, you could do away with the When-Mouse-Enter trigger and create a button for the popup block -- and have this button be disabled until your query is completed.

-Stacy



stacy *underscore* friedman *at* yahoo *dot* com (or replace yahoo.dot.com with yahoo.com) Spam bait: billg_at_microsoft.com root_at_localhost Received on Fri Feb 06 1998 - 00:00:00 CET

Original text of this message