[gme-users] Can't change attribute when I handle the
GLOBALEVENT_OPEN_PROJECT event
James Hill
hillj at isis.vanderbilt.edu
Mon Feb 6 10:35:27 CST 2006
Hey Zoli,
Thanks for quick reply!!! I have another question, its there any event
that notifies the add-on the open is complete and the objects can be
modified?? It would be ideal to cache the objects of interests and then
update them once a "write" transaction has been initiated.
Thanks,
James
> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu
> [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf
> Of Zoltan Molnar
> Sent: Monday, February 06, 2006 10:30 AM
> To: gme-users
> Subject: RE: [gme-users] Can't change attribute I handle
> whenGLOBALEVENT_OPEN_PROJECT event
>
> The GLOBALEVENT_OPEN_PROJECT event is sent within a
> TRANSACTION_READ_ONLY transaction, that is why you can't
> change the attr value.
> Zoli
>
> > -----Original Message-----
> > From: gme-users-bounces at list.isis.vanderbilt.edu
> > [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On
> Behalf Of James
> > Hill
> > Sent: Monday, February 06, 2006 10:14 AM
> > To: gme-users
> > Subject: [gme-users] Can't change attribute I handle when
> > GLOBALEVENT_OPEN_PROJECT event
> >
> >
> > Hey all,
> >
> > I am writing an Add-On as a RawComponent and I am having trouble
> > validating and changing the value of an attribute within a
> FCO (or its
> > subclasses) when I handle the GLOBALEVENT_PROJECT_OPEN event.
> > I can add the object of interest to an appropriate
> territory so that I
> > can listen to events it triggers when I handle
> > GLOBALEVENT_PROJECT_OPEN. I can also access the attribute
> but when I
> > try and modify it, I get an HRESULT with a value of 0x80731001. I
> > checked the documentation and it says that a result within
> the range
> > of 0x8073000 - 0x8073FFFF is thrown from other GME models.
> Therefore,
> > I have two questions:
> >
> > 1. Why can't I change the value of an attribute for an FCO (or its
> > subclasses) when I handle the GLOBALEVENT_PROJECT_OPEN event?
> > 2. Is there any documentation regarding return values of other GME
> > modules (not the MGALib module)?
> >
> > Thanks,
> >
> > James
> >
> > --------------------------------------------
> > James H. Hill - Ph.D. Student
> > Research Assistant - ISIS / DOC Group
> >
> > Microsoft Student Ambassador
> > Department of EECS / Computer Science Program Vanderbilt
> University,
> > Nashville, TN
> >
> > Email: j.hill at vanderbilt.edu
> > _______________________________________________
> > gme-users mailing list
> > gme-users at list.isis.vanderbilt.edu
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> >
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
More information about the gme-users
mailing list