Thanks for the reply.
> Obviously, the "?e <- (editor (field ?tf))" will only work on the
> LHS of a rule, allowing you to access the TextField object on the
> RHS via the bound value ?tf. To access externals outside of a rule,
The problem is when I try to bind the value of the external to ?tf, the
pattern never match's. The following never match's, even though there are
facts which it should fire on. externalObserver is bound to an external
java.awt.TextField.
( dependency ( subject ?addressID ) ( externalObserver ?observer ) )
I want to put external global's in facts, retrieve them, and use them.
glenn
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Al Davis
> Sent: Wednesday, August 26, 1998 12:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JESS: Referencing externals
>
>
>
> Glenn,
>
> Obviously, the "?e <- (editor (field ?tf))" will only work on the
> LHS of a rule, allowing you to access the TextField object on the
> RHS via the bound value ?tf. To access externals outside of a rule,
> try using the store/fetch methods or directly use your global.
>
>
> On Wed, 26 Aug 1998, Glenn Williams wrote:
>
> > I'd like to do the following:
> > ( deftemplate editor ( slot field ) )
> > ( defglobal ?*t* = new java.awt.textField )
> >
> > ( assert editor ( field ?*t* ) )
> >
> > This works, the reference is loaded into editor, but how do I
> retrieve it?
> >
> > I tried:
> >
> > ?e <- ( editor ( field ?tf ) )
> >
> > which fails.
> >
> > How do I can I get and use the external reference?
> >
> > glenn
> >
> > >
> > ---------------------------------------------------------------------
> > To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> > in the BODY of a message to [EMAIL PROTECTED], NOT to the
> > list. List problems? Notify [EMAIL PROTECTED]
> > ---------------------------------------------------------------------
> >
> >
>
> Alan Davis
> CAD Research Center
> California Polytechnic State University
> San Luis Obispo, CA 93407
>
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list. List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
>
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------