since ‎06-09-2019
‎10-12-2019
idekaresearch
Level 1
Re: Sort Order parameter for Dynamics 365 API call idekaresearch - Adobe Experience Manager Forms
Thanks for the code snippet.I tried this code already; the callback function was not getting called. It seems like either an unsupported API with a 4th parameter, or has since been deprecated.The Adobe documentation does not indicate support for a callback function.I am using AEM v6.4.5
712
Views
0
Likes
0
Answers
Re: Sort Order parameter for Dynamics 365 API call idekaresearch - Adobe Experience Manager Forms
The returned JSON is abstracted away from me as I am using the Adobe guidelib.dataIntegrationUtils libraries. The returned JSON is not available to use when binding to a drop-down list.
701
Views
0
Likes
0
Answers
Re: Sort Order parameter for Dynamics 365 API call idekaresearch - Adobe Experience Manager Forms
Yes, the Option text and value need to be different. The text needs to be sorted alphabetically, whereas the Option value represents the Entity ID (guid).
707
Views
0
Likes
0
Answers
Sort Order parameter for Dynamics 365 API call idekaresearch - Adobe Experience Manager Forms
I am using AEM Forms and connecting form elements to Microsoft Dynamics 365.I use the Form Data Model to create API endpoints to connect with the specific Dynamics 365 entities I am interested in.The problem I am facing is that the data returned from a Dynamics 365 entity is not in the order I require. The data coming back has a default sort order by created date; I need the data sorted alphabetically to populate a drop-down list.The APIs in Microsoft Dynamics 365 allow for an Order By parameter...
1455
Views
0
Likes
7
Answers and Comments
Re: AEM Forms drop-down list localization idekaresearch - Adobe Experience Manager Forms
Here is the final code hat works in the drop-down list initialization:------------------------------------------------------------------------------------------var operationInfo = { "formDataModelId": "/content/dam/formsanddocuments-fdm/ms-dynamics-fdm", "operationTitle": "GET salutation /salutations", "operationName": "GET salutation /salutations_15592508761020"};var inputs = {};var outputs;var str = window.location.href.toLowerCase();var matches = str.match(/afacceptlang=([^&]*)/); // extract ...
911
Views
0
Likes
0
Answers
Re: AEM Forms drop-down list localization idekaresearch - Adobe Experience Manager Forms
I use the Visual Editor to bind the list once.Seems like the below should work in the Code Editor data-bindingif(languageParameter='en') {var operationInfo = { "formDataModelId": "/content/dam/formsanddocuments-fdm/ms-dynamics-fdm", "operationTitle": "GET salutation /salutations", "operationName": "GET salutation /salutations_15592508761020"};var inputs = {};var outputs={ savedValue:'salutationid', displayedValue:'name_en', field:this};guidelib.dataIntegrationUtils.setOptionsFromService(operatio...
834
Views
0
Likes
0
Answers
AEM Forms drop-down list localization idekaresearch - Adobe Experience Manager Forms
I am binding a drop-down list to an Entity in MS Dynamics. The data is just reference look-up data. I need to fetch either the English or French data from the Entity based on the language the user selects in the User Interface. e.g. list of countries in either English or FrenchIn the Forms editor, when binding a drop-down list to REST endpoint, the Display Value must be selected from the list of available fields from the endpoint. This basically hard-codes the returned values to just a single la...
1183
Views
0
Likes
4
Answers and Comments