I need to open a form where the user enters some data. The SourceExpr of the TextBox is a variable and i have a getter-method to fetch the data afterwards. Here is the code of the calling form: InputForm.RUNMODAL; myDate := InputForm.getParams(); SalesHeader.“Date passover” := myDate; MESSAGE(‘erhalten %1’, SalesHeader.“Date passover”); So the result in the messagebox is always empty. How can I solve this problem? (There are more textboxes in the inputform than just a date…)
Try this InputForm.LOOKUPMODE(TRUE); // To enable Lookup OK and Lookup No button IF InputForm.RUNMODAL = Action::LookupOk Then begin // IF user press the OK button myDate := InputForm.getParams(); SalesHeader.“Date passover” := myDate; MESSAGE(‘erhalten %1’, SalesHeader.“Date passover”); END; Actually system run thru all the coding before RUNMODAL so you will got empty result.