cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch the value of a selected item in a dynamic list

0 Kudos

Dear experts.

I have developed an OData service that returns a list of tasks. As displayed in the image, all tasks are correctly displayed in the list.

How can I fetch the value of an element selected from that list? When I click the button title, it shows me the value of the element, but I don't know how to fetch it in a variable to be used later in the call to another service.

Thanks in advance.

Best regards,
Miguel

former_member1974
Participant
0 Kudos

marojasv Have you solved this issue? i have stucked here.

I am getting the list properly and also as suggested by daniel.wroblewski I am getting selected value in the {{nlp.source}} however, when and where should I display it?

If I try to display({{nlp.source}}) after the list then it's immediately executing that part before even user has not yet selected any value.

Please guide.

Regards,

PD



Accepted Solutions (1)

Accepted Solutions (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

If this is posted back into the conversation, you can access it {{nlp.source}} and store it in the memory. Does that make sense?

0 Kudos

thank you so much Daniel.

Best regards,

Miguel

Answers (1)

Answers (1)

HemantU24
Explorer
0 Kudos

Hi Miguel,

You can refer this blog Capture any text during a conversation with SAP Conversational AI chatbot – Part 2. You will understand the concept of {{nlp.source}}.

Thanks & Regards,

Hemant Upadhyay