Hi,
I have seen a sample where a HTML5 form is calling a Data Model on an event.
What we are looking for is the possibility to add some data and use that to call a DM.
Anyone that could point me in the right direction or have a sample?
regards
Tommy
Solved! Go to Solution.
Tommy,
The form Data model is meant to work with Adaptive Forms authoring.
Please see [1].
For HTML5 forms, most features work the same as they do in PDF. Here is a list of the differences at [2].
If you setup an OLEDB connection in your XDP to pass data into your form, I believe the DB connection should still work server side. I'm not sure if the connection is supported on the client.
I have not tried this myself in HTML5 forms, but most of the XFA constructs [2] are still supported server side if I am not mistaken.
[1] Adobe Experience Manager Help | AEM Forms Data Integration
[2] Adobe Experience Manager Help | Feature differentiation between HTML5 forms and PDF forms
What I meant, I couldn´t find the sample I was looking for.
//Tommy
Views
Replies
Total Likes
What do you mean by "add some data"? Do you mean, for example, user enters the ID of a database record and you fetch that using a get service defined in your data model? I can walk you through that, but first please clarify if that's what you need.
Views
Replies
Total Likes
Hi Jared,
Yes, that is what I am looking for. Add an id an call a service defined in a data model.
Regards
Tommy
Views
Replies
Total Likes
Tommy,
So if I understand your question correctly, you want to pass some id (i.e data) from your form to Data model and same data or id can be used in service. Service is part of your data model.
Is that correct?
Views
Replies
Total Likes
Yes, that is correct
Views
Replies
Total Likes
First, make sure you have AEM 6.3 with SP1 or higher. I would suggest starting with this article:
https://helpx.adobe.com/experience-manager/6-3/forms/using/data-integration.html
You will learn there how to configure data sources. Once you have a data source created, add a get service and test it as described in the article.
When you got that going, check out this article:
https://helpx.adobe.com/experience-manager/6-3/forms/using/data-integration.html
You might want to go straight to the section "invoke form data model example".
I was able to get this working with a relational database. Hope this helps.
Views
Replies
Total Likes
Hi Jared,
I couldn't find the sample "invoke form data model example" at
https://helpx.adobe.com/experience-manager/6-3/forms/using/data-integration.html
Have I missed something?
Regards
Tommy
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Jared,
but isn't this only for Adaptive Forms? Did you use a HTML5 form on your test?
If you did, could you send me the xdp?
regards
Tommy
Views
Replies
Total Likes
Tommy,
The form Data model is meant to work with Adaptive Forms authoring.
Please see [1].
For HTML5 forms, most features work the same as they do in PDF. Here is a list of the differences at [2].
If you setup an OLEDB connection in your XDP to pass data into your form, I believe the DB connection should still work server side. I'm not sure if the connection is supported on the client.
I have not tried this myself in HTML5 forms, but most of the XFA constructs [2] are still supported server side if I am not mistaken.
[1] Adobe Experience Manager Help | AEM Forms Data Integration
[2] Adobe Experience Manager Help | Feature differentiation between HTML5 forms and PDF forms
Nice response Kevin!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies