Hi, I have Form A , B & C.
In Form A, there's a grid and an edit menuitembutton for editing the selected grid record.
Form A and it's grid datasource is Table A.
When the edit menuitembutton is clicked, the selected grid records needs to be passed to Form B.
In Form B, there's two date fields for user inputs and another menuitembutton for opening Form C.
Form B datasource is Table A.
When the menuitembutton in Form B is clicked, I want to pass together the selected grid record received from Form A and the date inputs to Form C.
Form C datasources are Table A & Table B.
In Form C, there's two sections. In section 1, I want to edit the selected grid records (datasource Table A).
In section 2, there's another grid (datasource Table B) filtered by the date inputs from Form B.
So far, for both menuitembutton in Form A & Form B, I set these properties:
AutoRefreshData = Yes
NeedsRecord = Yes
Datasource = Table A
OpenMode = Edit
CopyCallerQuery = Yes
AutoDeclaration = Yes
By this I achieved what I want in Section 1, to edit the selected grid record. No coding.
My problem is to pass the selected grid record together with the date inputs for filtering in Section 2.
I'm aware of Args class for passing parameters. But In Form B, how can I:
1. Get the received records from Form A,
2. Combine the records with the date inputs together in a single args,
3. then pass them to Form C,
4. and finally separate them for different usage in different section of the form.
Thank You.