JBooth
Member
Ok, so i mostly have this widget thing figured out, but i am having some trouble getting my complex code to work properly with the folder binding. Here is what i have:
A multi-layered set of groups where each groups visible state is tied to a multi-state tag that is incremented and decremented by a next and previous push-button respectively. I named the multi-state tag Display and have code in place for the on-select field of the page to set Display = 1;, the next button has an action set as user-defined, with a code of
if (Display <= 5)
{
Display ++;
}
if (Display == 6)
{
Display = 1;
}
so that the display count goes up until it reaches the limit and then goes back to the first page. Previous button does the same thing in reverse. When i put the Display tag in the data definition of the widget and bind a folder to it, the complex code does not update with the folder path. I am temporarily working around this by making the Display tag outside of the folder, not putting that tag in the data definition of the widget, and after creating and binding the widget, dragging the tag into the folder, so all instances are updated with the correct path. But I am trying to set this up so the guys who will be inserting this widget dont have to do that, they can just bind a folder and be done. Is there any way to get tag names in complex code to work with binding?
Sorry for the length here.
A multi-layered set of groups where each groups visible state is tied to a multi-state tag that is incremented and decremented by a next and previous push-button respectively. I named the multi-state tag Display and have code in place for the on-select field of the page to set Display = 1;, the next button has an action set as user-defined, with a code of
if (Display <= 5)
{
Display ++;
}
if (Display == 6)
{
Display = 1;
}
so that the display count goes up until it reaches the limit and then goes back to the first page. Previous button does the same thing in reverse. When i put the Display tag in the data definition of the widget and bind a folder to it, the complex code does not update with the folder path. I am temporarily working around this by making the Display tag outside of the folder, not putting that tag in the data definition of the widget, and after creating and binding the widget, dragging the tag into the folder, so all instances are updated with the correct path. But I am trying to set this up so the guys who will be inserting this widget dont have to do that, they can just bind a folder and be done. Is there any way to get tag names in complex code to work with binding?
Sorry for the length here.