record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:16 AM
Hey.
Would appreciate help..
I created a record producer:
I created a caller_id variable that refers to the sys_user (User) table:
My script include:
And then I used the Reference qualifier and calling in my script include when i call the caller_id i get undefined:
Why the script return undefined?
Thank. Shir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 07:03 AM
Hello @Shir Sharvit ,
In your reference qualifier can u pass "current.variables.caller_id" instead of current.caller_id
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 07:10 AM
The task is that as soon as I select a caller in the record producer form, I need it to return the list of the caller's position
I put all the values in the array but it doesn't return all the values.
I added the line so that it returns all the values in the array and it doesn't work:
return "sys_idIN" + positionsArray.join(',');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 07:19 AM - edited 12-05-2023 07:23 AM
i got it in the reference qualifier did we try with this?
current.variables.caller_id
new global.PositionForRecordProducer().refinePosition(current.variables.caller_id);
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 07:33 AM
Yes I changed and it still shows me only one value in the array
It shows exactly the same value twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 08:28 AM - edited 12-05-2023 08:29 AM
Hi @Shir Sharvit ,
Did u check in the backend table the position value for the caller id value is how many? Your script looks good only. Can u tell me wht is in the backend table for the caller id selected
Thanks,
Danish