[Solved] create an unique index based on multiple-fields with one inherited field

0 votes
asked Jan 8, 2018 in Solved by jms (150 points)
recategorized Feb 27, 2018 by ludek.vodicka

Hi,

I need to create a unique index.
This index is based on three fields. One of these comes from an inherited class, but its fields are not available in the index field list.

How can I do that ?
If I add it manually in exported file (as annotation), does skipper destroy it on next export ?

Thanks,
Jean-Michel

commented Jan 8, 2018 by ludek.vodicka Skipper developer (140,450 points)

Unfortunately this is currently not supported. Also as you wrote, in case that you add it manually Skipper will erase it during next export.

commented Jan 8, 2018 by jms (150 points)

ok, that's what I thought.

What if I re-declare the inherited field and I put them as "protected" ?
It seems to work...

commented Jan 8, 2018 by ludek.vodicka Skipper developer (140,450 points)

As long as it's not the issue for your application it's ok for Skipper. This is how currently working inherited @id too.

commented Feb 20, 2018 by jms (150 points)

ok fine, thanks for you really quick answers !

1 Answer

+1 vote
answered Jun 1, 2018 by ludek.vodicka Skipper developer (140,450 points)
 
Best answer

This feature is now implemented in latest beta.

Feel free to check it here: https://support.skipper18.com/402/downloads-skipper-beta

...