Skip to main content
1-Visitor
January 25, 2017
Question

External Enumerated Value List and NmCommandBean

  • January 25, 2017
  • 1 reply
  • 2328 views

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

1 reply

1-Visitor
January 30, 2017

Has anyone any suggestions for this?

Thanks

Antonio

15-Moonstone
January 30, 2017

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.

1-Visitor
January 31, 2017

Thank you Olivier,

make sense.

Antonio