Expand my Community achievements bar.

AEM 6.5: Preload a AEM core components form with data sourced from a dynamic JCR node or a Rest interface.

Avatar

Level 1

Hi All,

 

As per subject we are trying to pre-load a core components form with dynamic data.

 

The current component only has a field to Load Path to load data from a single record in JCR

 

AntonioCucchiara_0-1684417999528.png

 

However, we would like to either:

 

1. Load data from a Rest interface

 

Example:

AntonioCucchiara_2-1684418335917.png

 

2. Or, dynamically establish which record to load the data from.

 

Example:

AntonioCucchiara_3-1684418456463.png

 

For user A we would like the data to be loaded from the path /content/usergenerated/wknd/us/en/test-form/A

For user B we would like the data to be loaded from the path /content/usergenerated/wknd/us/en/test-form/B

 

Note that, we cannot, at this stage in the project use Adaptive forms due to their reliance on JS.

 

Has anybody faced this requirement/use case? 

How did you go about implementing it?

Do you have any suggestions as to how we would go about it?

1 Reply