Hello Everyone
I want to print a report (2009) [NOT SSRS from a button that I have in a form.
I create a new button which have my main table as a datasource and after that I overide the init method
public void init() { MyTable myTable; ; super(); myTable = element.args().record(); this.query().dataSourceTable(tablenum(MyTable)).addRange(fieldnum(MyTable, Field_1)).value(myTable.Field_1); }
When I debuged it, it seems like to take the correct value from the query but always in the dialog it returns an old one Field_1 value, which now does not even exist in my records.
I read that a method parmLoadFromSysLastValue(false) can do what I am trying to do here but it seems that is not in this or query methods.
Does anyone know how I can pass this issue?