search cancel

How to show 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

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:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=lGHxglGRfnL0TIhD3OLXvQ==

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=mnRDKeTbNAqs3oZTf7YK4A==