Skip to main content
15-Moonstone
October 9, 2017
Question

How to append the text to the TextArea Widget?

  • October 9, 2017
  • 2 replies
  • 2866 views

Hello ,

I have a scenario where i need to append the text to textarea widget based on the click events on the grid row and the list row.

2 replies

20-Turquoise
October 9, 2017

You could try creating a custom service that would take the input as the current content of your textarea widget, then add another string to it.

sbt15-MoonstoneAuthor
15-Moonstone
October 9, 2017

Hello Polina,

Yes i did that but seems like i am missing something, i am not able to get it. Below is the screen shot.

5-Regular Member
October 9, 2017

Use the expression widget, this way you will reduce network traffic. It should have to inputs, one from the text area text attribute (call it input1) and one for the text you want to append (input2). The output should be a string and the exprerssion should be Output = input1 + input2, which should be bound to the text area text attribute. Evaluate the expression on the clicked event.

sbt15-MoonstoneAuthor
15-Moonstone
October 10, 2017

James,

Yes i have used expression widget but the output is not getting with concatenated string. If i use separate text control insted of selected row of a grid, it works fine. But when i try with a selected row of a grid as per below i get undefined as the output.

is it that i am not getting the selected row properly. below is the grid bindings