Hello forum,
I’ve made a application in V8.1 and converted it to V9. This application had variable fields working in V8.1 but after converting I got the error:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\SBChile_bsm\VW_Voorraad\VW_Vooraadlijst_grid.class.php on line 2166
In this application I wanted to change the labels based on global variables which where set in the login onvalidate.
A small fraction to get the idea of what im trying:
OnValidate Login:
[lblYear] = "Year";
In global variables set the variable as out and as session.
Grid field label year is set to [lblYear].
On further investigating the problem was in the generated line
function NM_label_year()
{
global $nm_saida;
$SC_Label = (isset($this->New_label['year'])) ? $this->New_label['year'] : "\" . $_SESSION['lblYear'] . \"";
After removing the \ from
"\" . $_SESSION['lblYear'] . \""
to
"" . $_SESSION['lblYear'] . ""
it worked like a charm!
I hope this gives enough info about the bug.