- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 11:54 PM
I have a catalog Item where in I have 3 different variables (Indevelopment,Preposition,Live).I have a table "which stores the dates in multiple records meaning Indevelopment of CI will have 1 record with start date,Preposition of CI will have 1 record with start date etc...
Need to retrieve the start dates and fill it in the Item form.Tried with below script but multiple record values I need in same form.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 12:37 AM
For each record create an object and push it into the array like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 12:14 AM - edited ‎08-06-2024 12:16 AM
Hello @Nani5 ,
You are declaring the "arr" variable inside the while loop and trying to loop through it after pushing an object once.
Move the arr variable outside the while loop before the gliderecord.
Move the for loop so that it is after the while loop.
Then you can push the start dates into the array and return nit to your script for processing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 12:30 AM
Hello Jake,
Thanks for your response.
I have tried in that way aswell.Below is the result I am getting when I run in Background script.How to extract the date fields and set it in the right variables?
Result in Background script:
*** Script: Inside FOR>>>>Proposition,
*** Script: Inside FOR>>>>Live,2023-01-31
*** Script: Inside FOR>>>>In Development,2021-10-28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 12:37 AM
For each record create an object and push it into the array like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 01:29 AM
@Nani5 if my answer helped please mark it as correct