dialog. If the user must access the query in the dialog, override this method and
return true.
1 2 3 4 | public boolean showQueryValues() { return true; } |
This method should now include the information stored in the queryRun object.
Do this by adding the result of the queryRun.pack() method to the container:
1 2 3 4 | public container pack() { return [#CurrentVersion, queryRun.pack()]; } |
When combining dialog fields with a query, the first container still contains the
#CurrentList macro:
1 2 3 4 5 | public container pack() { return [#CurrentVersion, #CurrentList, queryRun.pack()]; } |
The unpack() method re-initializes the queryRun object from the saved
information. Do this as shown by the following content.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | public boolean unpack(container _packedClass) { Version version = RunBase::getVersion(_packedClass); container packedQuery; switch (version) {case #CurrentVersion: [version, packedQuery] = _packedClass; if (packedQuery) { queryRun = new QueryRun(packedQuery); } break; default : return false; } return true; } |
When combining dialog fields with a query, the unpack of the container contains
the #CurrentList macro.
1 | [version, #CurrentList, packedQuery] = _packedClass;
|
Best Regards,
Hossein Karimi
No comments:
Post a Comment