Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 6689

Editing form data problem

$
0
0
I need a solution

I have created a custom form, based off of the video series found here. http://www.symantec.com/connect/videos/create-workflow-using-service-catalog-request-template-part-1

I have everything working as I would like, except for 1 final detail I cannot seem to get past. I’m trying to create an Edit action that will allow for original input in the form to be updated and saved in the original row of the database. The Edit action that is built into the template only updates the data in the workflow, not in the database. Part of the instructions included creating an Integration Library using User Defined Type with DB Mapping (ORM). This creates an “Insert or Update (Form Name)” component. This works, in that it writes to the DB. But it creates a new row in the database, it doesn’t allow to update the row for the selected ticket, at least not that I can find. It generates a new _id key so it creates a new row.

I edited the Integration Library, and added an EditForm generator using the Table Generator and selecting the table related to the form, with Read Records, Read Records (by key) and Write Records components. I can use the Read All Records component to add the rows in the DB to a grid in the form, select the row I want to edit, then use the Write component to update the row in the DB. Of course this will be problematic once several rows are added. Using the Read Records (by key) component, I cant find anything to key off of to find data. Everything I try ends with it exiting through the Data Not Found channel.

I’m looking for a way to have only the row of data for the ticket that is being edited to be displayed, and then edited and that row updated in the DB. Can anyone offer assistance in what I need to do to accomplish that? Thanks


Viewing all articles
Browse latest Browse all 6689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>