Thank you for your help! I understand now that I can use JS in LPD scripts. How ever I cannot find a reference to the function reopenDatasource("Data") in either language. That's why I requested a source for the codeing used in LRD.
This code, when I add it to my project and use the proper variable, the program stops working.
txtYear is the line edit in my dialog. Year is the variable containing the data (Year).
Databand6 is the datband on the report page. I have defined the variable Year just aas you defined id.
Dialog.txtYear.text=getVariable("Year");
Dialog.exec()==1;
function beforeDataPrint()
{
setVariable("Year", Dialog.txtYear.text);
}
Reportpage1_DataBand6.preparedForRender.connect(beforeDataPrint);
This code, that I came to use after many tries, works. I do not know why but it does work.
Dialog.exec() == 1
var Year = Dialog.txtYear.text
var Date = Dialog.txtDate.text
var Check = ""
beforeDataPrint();
function beforeDataPrint() {
Check = "Function";
setVariable("Year", Dialog.txtYear.text);
reopenDatasource("tblneighborhood");
}
Thanks