Now i have this, but not work...
Code: Select all
report.Compile();
report.dictionary.variables["@sql"] = new StiVariable("@sql", parametros);
//report["@sql"] = parametros;
report.Render(false);
Code: Select all
report.Compile();
report.dictionary.variables["@sql"] = new StiVariable("@sql", parametros);
//report["@sql"] = parametros;
report.Render(false);
Code: Select all
report.Compile();
report.dictionary.variables["@sql"] = new StiVariable("@sql", parametros);
//report["sql"] = parametros;
report.Render(false);
Code: Select all
report.getDictionary().getVariables().get(variableName).setValue(value);
report.getVariables().put(variableName, value);
report.Render(false);
rafaelwithoeft wrote:Hello, i'm using Reports.FX for JAVA 2014.3, i want to set the value of variables and parameters to SQL, how i do it? (You make me a sample?)
I have variable named @sql, i want to send the sql to this variable to use in sql.
I have used this code, but not worked
Best RegardsCode: Select all
report.Compile(); report.dictionary.variables["@sql"] = new StiVariable("@sql", parametros); //report["sql"] = parametros; report.Render(false);