I have a RP with the following property defined
Define_Pty Name(eFormSaveRequired) Get(*AUTO #m_datachanged) Set(*AUTO #m_datachanged)
Define Field(#m_datachanged) Type(*BOOLEAN)
In another RP which inherits from this one I'm trying to test this value with
If Cond(#COM_OWNER.eFormSaveRequired)
#COM_OWNER.SaveeFormValue
Endif
but I'm getting 'The definition of property eFormSaveRequired in class EFORMVTX is invalid or not complete.
I can't see what wrong with it. I can access other properties & methods without issue.
Any ideas?
VLWEB Property Question
-
dannyoorburg
- Posts: 177
- Joined: Mon Jan 04, 2016 9:50 am
- Location: Australia
Re: VLWEB Property Question
Hi,
VL doesn't like you defining a property using a locally defined field.
I agree it probably should or at least the message could be better...
For now, you better use a repository defined field or a just a define com of a PRIM_BOLN.
Cheers,
Danny
VL doesn't like you defining a property using a locally defined field.
I agree it probably should or at least the message could be better...
For now, you better use a repository defined field or a just a define com of a PRIM_BOLN.
Cheers,
Danny
Re: VLWEB Property Question
Thanks Danny. I've come across this before but its been a while!
-
GregSippel
- Posts: 25
- Joined: Thu May 19, 2016 11:34 am
Re: VLWEB Property Question
Soa,
When it comes to inheritance and its generally best practice anyway, for properties and method use #COM_SELF instead of #COM_OWNER in the top level object.
So in your RP try
In regards to your issue, do the properties that can be seen do they store the value in a component (DEFINE_COM) or a Field (DEFINE)
Cheers
Greg
When it comes to inheritance and its generally best practice anyway, for properties and method use #COM_SELF instead of #COM_OWNER in the top level object.
So in your RP try
Code: Select all
If Cond(#COM_SELF.eFormSaveRequired)
#COM_SELF.SaveeFormValue
Endif
Cheers
Greg