Using a BrioQuery 5.5 Limit Dialog Box to Store Values

Example—Use a BrioQuery 5.5 Limit dialog box to store values in a text box

ExecuteBScript("modify limit root.'Pcw Customers'.'Store Type'.'Store Type'")
var limit = ActiveDocument.Sections["Query"].Limits["Store Type"]
var TextBox = ActiveSection.Shapes["TextBox1"]
if (!limit.Ignore)
{
TextBox.Text = limit.SelectedValues[1]
}
else
{
TextBox.Text =""
}