Pass value from Root to child document

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

vikas

  • Posts: 51
  • Joined: Wed May 13, 2015 7:46 pm

Pass value from Root to child document

PostWed Feb 07, 2018 8:42 pm

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.
Offline

support

  • Posts: 3456
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Pass value from Root to child document

PostThu Feb 08, 2018 9:37 am

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

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron