I have been running across the need to do this more often these days and don't find the forum tip or manual reference.
I work with Javascript vars to change visible things from the Events functions such as cell color or text styling based on a returned value.
And the most often thing I refer to is vars based on Control field values.
But how do I use those "in-between" values that are not from table field values in the HTML code?
I use things like this Help example--
var ctrl = Runner.getControl(pageid, 'Discounted');
if (ctrl.getValue()=='on')
alert('Checked');
// clear check box
ctrl.setValue('');
But in this case I have Master and Detail tables created where I have allow a Detail Link to show up even if there is no Detail record.
So one row will show a link for a popup detail window -- "Feedback(1)"
yet perhaps the next row has no active link and simply reads -- "Feedback" etc.
In the list code HTML code it looks like this:
{BEGIN feedback_dtable_link}
<SPAN>
<A {$feedback_dtablelink_attrs}>
{$caption feedback}
<SPAN dir="ltr" {$feedback_childnumber_attr}>
{BEGIN feedback_childcount}
({$feedback_childnumber})
{END feedback_childcount}
</SPAN>
</A>
</SPAN>
{END feedback_dtable_link}
When the {$feedback_childnumber} value repeats in each record row I want to set a visual action to echo a short text message based on the value of how many times a Feedback record is counted.
And if {$feedback_childnumber} < '1' || '' less than one or empty then
Echo "No Feedback records yet"
The HTML rewrites embedded php code even when enclosed in php brackets.
And the Insert PHP code placed inside that row cannot pickup the value of $feedback_childnumber for that row.
[size="3"]How do I grab those values that are not returned from regular field number values in the HTML page code but are generated from PHPRunner functions?[/size]
Thank you for help!