How we store the Record Producer Fields details in table contain field as json/script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 09:14 AM
Hi @LL
I created 1 Record Producer on Test Case table in PDI
Now i want to stored the Record Producer Field details-Test Case Number in table-Test Case in Field Test Result which is script type or Json when user Submitted the Record on Form.
Please suggest on this how we stored the Fields details in json format in Table.
Thanks in advance
Divya Kumari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 07:01 AM
What's output of the above code and what is expected output in JSON format.
replace the line position of "var testResult1= {};" on top.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 10:40 AM
Hi @Kumari Divya ,
In Record producer script add below script
var testCaseNumber = producer.test_case_number;
var jsonDetails = {
"testCaseNumber": testCaseNumber;
};
current.test_fieldset= JSON.stringify(jsonDetails);
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 01:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 03:10 AM
Hi @Kumari Divya ,
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand