Skip to main content
Participant
February 27, 2020
Answered

Fetching Database Records into the AEM Designer form

  • February 27, 2020
  • 1 reply
  • 1311 views

I am using AEM Designer 8.0 and SQL Server. I have made a form and connected it to the SQL Server. I want to retrieve specific record from the table into the form depending upon the lookup ID entered in the form by the user. I want fetch specific record from the database. 

Kindly please help. 

On the Exit event of the lookup ID Textfield:

if(len($.rawValue)>0) then

var cdhid=$.rawValue

xfa.sourceSet.DataConnection.#command.query.commandType="text"
xfa.sourceSet.DataConnection.#command.query.select= concat("SELECT CPTY_SHORTNAME FROM CDH_BANKS_STG WHERE CPTY_CDHID=",cdhid,";")
xfa.sourceSet.DataConnection.open()
xfa.sourceSet.DataConnection.first()

endif

 

 

This topic has been closed for replies.
Correct answer LinSims

This website is for supporting Adobe's CC and TCS products. 

 

AEM is supported at a different website: 

https://experienceleaguecommunities.adobe.com/

 

You will need to repost your question there.

 

Be aware that the Community Help forum is for help in using the Community website. Product questions should be posted in the associated product community.

 

 

1 reply

LinSims
Community Expert
LinSimsCommunity ExpertCorrect answer
Community Expert
February 27, 2020

This website is for supporting Adobe's CC and TCS products. 

 

AEM is supported at a different website: 

https://experienceleaguecommunities.adobe.com/

 

You will need to repost your question there.

 

Be aware that the Community Help forum is for help in using the Community website. Product questions should be posted in the associated product community.

 

 

Nancy OShea
Community Expert
Community Expert
February 27, 2020

What's a TCS product?

 

Nancy O'Shea— Product User & Community Expert
John Waller
Community Expert
Community Expert
February 28, 2020

Technical Communication Suite (Framemaker, Robohelp etc)