Skip to main content
March 7, 2016
Question

On clicking of the button i want to add a textbox dynamically. Whenever i click that button a new text box should be placed automatically

  • March 7, 2016
  • 12 replies
  • 4954 views

Whenever I am clicking on a button a new text box should be there on the mashup

12 replies

1-Visitor
March 7, 2016

You should use a Repeater.

March 7, 2016

HI Carles,

But how to use the repeater widget, as in repeater widget we give limitations, how much time it should repeat.

1-Visitor
March 7, 2016

Hi, Repeater Widget doesn't have limitations, you should have a service on Server Side where you query for the content to show on the rows, and another service to add a new row.

March 8, 2016

Hi Carles,

Normal java script coding will work here to add a new row.

March 8, 2016

Hi,

We are not able to add the new row upon clicking of a button.

we are only able to add only one text box in one row.

What it should ideally do like that when i click on the button it should add a new text box. Please help us with the code.

Thanks,

Aditya Kumar

March 8, 2016

Hi,

We are not able to add the new row upon clicking of a button.

we are only able to add only one text box in one row.

What it should ideally do like that when i click on the button it should add a new text box. Please help us with the code.

We are using the repeater widget now.

Thanks,

Aditya Kumar

1-Visitor
March 8, 2016
  1. Build a mashup with a repeater. Let's call it ParentMashup
  2. Build another mashup with a Textbox, that Mashup it's the one that you will repeat on the repeater. Let's call it RowMashup, which has a parameter called id, and another called text
  3. Build a service which adds a Row to a an infotable or datatable with, this row will record the value of the TextBox. Let's call it AddTextBox with a parameter "Text" with the desired text on the textbox.
  4. Build another service which returns the rows for this Infotable/Datatable. Let's call it GetRows
  5. Bind del result of the GetRows to the Repeater on ParentMashup, now you just need to select the corresponding parameters for RowMashup, your are done.