cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I created an new extension. On profile, I created under de Table Metaclass a new boolean attribute.

When I use this new attribute (%D:myExtensionAttribute%) on DBMS Properties\ORA11GR1::Script\Objects\Table\BeforeCreate, I can access the value expected correctly.

When I use this new attribute on DBMS Properties\ORA11GR1::Script\Objects\Reference\BeforeCreate, I can't access the expected value and I got an error: [translation error] unresolved member:

I tried without success:

%D:myExtensionAttribute%

%Table.myExtensionAttribute%

Is there a way to access this value?

Thanks in advance! Best regards!

0 Likes
View Entire Topic
Ondrej_Divis
Contributor

The answer by Chris is correct, just don`t forget the .D: option, since your extended attribute is defined outside of the definition file. So correct macro should look like this:

%.D:ParentTable.myExtensionAttribute%

%.D:ChildTable.myExtensionAttribute%

HTH,

Ondrej

thiago_farias
Explorer
0 Likes

Thank you Ondrej!!!! Thank you Chris!!! Now it works!!!

I needed to use the ".D:" option. I didn't know that the reference to the table changes depending on the escope. When using on Reference, I needed to use %.D:ChildTable.myExtensionAttribute%. When using on Index, I needed to use %.D:Table.myExtensionAttribute%.

Thank you!