cancel
Showing results for 
Search instead for 
Did you mean: 

Backoffice : How to populate reference editor values based on user input.

Former Member
0 Kudos

Hi All,

For one of my requirements, I want to populate reference editor values defined in one of the step and this values will be based on user selection in previous step.

So, I have 2 items suppose A and B and have one to many relation defined in items.xml. In ConfigurableFlowWizard's step1, if user choose any value of item A and click next then only associated values must be prefilled in reference editor for item B.

What can be the best solution for this kind of problem?

Thanks, Ved

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ved, There is two approaches i think it could be possible. One is using dynamic forms https://help.hybris.com/6.4.0/hcd/8bb48c3e86691014ba23af134a9a1c1b.html and other one is using Java Handler classes and refer them in the wizard navigation as below customHandler implements FlowActionHandler , in the perform() method load the object , manipulate values attach to model context. Thanks Seb

 <wz:navigation id="step2.navigation">
                             <wz:cancel />
                             <wz:custom handler="customHandler" label="Next" > </wz:custom>
 </wz:navigation>