We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Pass value from Root to child document

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
vikas
Posts: 53
Joined: Wed May 13, 2015 7:46 pm

Pass value from Root to child document

Post by vikas »

Hi

I am assigning a value to a variable declared in Root.xml but the value gets cleared as soon as the call enters the child document. Looking at the log it looks like it is because calling <goto> on child document reloads Root.xml.

Is there a value to pass value from Root to child document other than using <subdialog> ? Please let me know.

Sharing variable value between 2 child documents to the same Parent works.
But variable set in Parent (Root.xml) is not available in child document.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Pass value from Root to child document

Post by support »

Hi Vikas,

Can you provide a small amount of sample code that demonstrates the issue that you are describing? Generally speaking it is possible to set a variable in a root document and then access it in a child document. However, without sample code it is difficult to determine where exactly things are going wrong.

Regards,
Plum Support

Post Reply