Showing the values from a table using ca_fdGetInsertedTableRows
search cancel

Showing the values from a table using ca_fdGetInsertedTableRows

book

Article ID: 243536

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Catalog

Issue/Introduction

Is there a way to return the data of a table?

Environment

Release : 17.3.X

Component : Catalog - Form Designer

Resolution

The table object is an array so to read you need to:

1. Assign the value to a variable

  var teste = ca_fdGetInsertedTableRows(ca_fd.formId, 'permisos');

2. Alert with the format of variable[value].ID of the field.

Example:

alert("Valor "+teste[0].ruta+ " - ");
alert("Valor "+teste[0].List+ " - ");
alert("Valor "+teste[0].Read+ " - ");

Results: