Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Additional Parameters to a "dataRef" population service.

Avatar

Level 3

Is it possible to send more than one parameter to the "dataRef" option of a mobile form via a URL?

It looks as if a single parameter can be included but additional parameters are ignored when passed in a URL. For example: http://server:8080/lc/content/dam/lcapplications/theApp/1.0/Forms/theForm.xdp/jcr:content?type=html&....

I've tried a number of combinations of ?'s, &'s, and encoding of the URL without success. Separately the render service and population services work well. The record and playback shows parameters being passed properly when called alone and a single parameter only when passed as part of the dataRef URL.

1 Accepted Solution

Avatar

Correct answer by
Level 3

I did figure out the dataRef parameters. To be able to send more than one parameter to the service you refer to in the dataRef parameter, you need to HTML encode the entire dataRef=... portion of the URL.

View solution in original post

2 Replies

Avatar

Level 4

Please explain your senario as to why you require more than one DataRef parameter to be set?

To my knowledge DataRef and data parameters take only one input. Also when you have binding for dropdown and list box values in your input Data, these bindings will not work when rendering the form as HTML5, only direct binding of rawValues get binded.

Avatar

Correct answer by
Level 3

I did figure out the dataRef parameters. To be able to send more than one parameter to the service you refer to in the dataRef parameter, you need to HTML encode the entire dataRef=... portion of the URL.