Skip to main content
1-Visitor
Jan 25, 2017 4:08 PM UTC
Question

External Enumerated Value List and NmCommandBean

Hello.

I am working on a customization.

I have my external enumerated value list customization on which I  pass a string as parameter (from the type and attribute management) to find a specific context.

This works fine, however I'd like to pass to the parameter, the context gathered from the "create window" via NmCommandBean.

Is this even possible?

I know I can get the context from a datautility, maybe is it possible to pass it to the external enumerated class?

Thank you for your help.

Antonio

3 replies

1-Visitor
Jan 30, 2017 5:10 AM UTC

Has anyone any suggestions for this?

Thanks

Antonio

Translate
15-Moonstone
Jan 30, 2017 12:37 PM UTC

I'm afraid you can't.

In EnumerationInfoProvider, the initalize method is called only once.

Once it's done, you can only invalidate the cache, but you can't pass any parameters.

Even if you change the enumeration's content, it's global, ie in case of concurrent acces, you may encounter some trange behavior !

A solution is to create your own JCA component to manage the attribute.

Translate
1-Visitor
Jan 31, 2017 3:02 AM UTC

Thank you Olivier,

make sense.

Antonio

Translate