Description: I would like to do, is be able to
multi-select records, then when I click on my button to run my report, the
current selected records are passed into the other Form. Requirement to pass
multiple records from one form to another. It might would be a very common
practice now. However, I thought to blog it for if anyone still not cleat with
this part. Instead of passing Data Source as an argument in the property,
Override clicked () method of button and prepare your args to pass. I am taking
an example of Student Table to pass to another form.
Step 1: Create Table
Name it “A_Student”. And Drag and Drop ID & Name Field in Auto Lookup Field Group Node.
- Expand AOT Node.
- Open Data Dictionary Node.
- Select Tables and right Click Select New Table.
- Name it “A_Student”.
- Now open table in Insert Some Data in A_Student table.
Step 2: Fill Some Data in A_Student Table.
Step 3: Now Create
Form and Name it “A_Student”.
- Expand AOT Node.
- Select Form Node and Right Click Select New Form and Name it “A_Student”.
- Now Drag and Drop Table in Form Data Source.
- Select Design Node Right Click and Select New Controls & Add Grid Controls in Design Node.
Step 4: Now Create
another Form and Name it “A_RetrieveValueForm”.
- Expand AOT Node.
- Select Form Node and Right Click Select New Form and Name it “A_RetrieveValueForm”.
- Now Drag and Drop Table in Form Data Source.
- Select Design Node Right Click and Select New Controls & Add Grid Controls in Design Node.
Step 5: Now select
A_Student Form select Button Field form Design Controls and Override Clicked
Method.
Step 6: Now Select
A_Student Form and Code for Clicked Method.
Step 7: Now select A_RetrieveValueForm
Form and Code for Init Method.
Step 8: Now Select A_RetrieveValueForm
and Drag and Drop this form in Display Menu items.
Step 9: Now Select
A_Student Form and open it and Select One Record.
Step 10: Now Click
Generate Button to Pass Selected Record to another Form.
Step 11: Now if you
Open Directly A_RetrieveValueForm you will get Info log.
4 comments
commentsGood.
ReplyVaah Good :-)
ReplyThanks very helpful
ReplyWhat would be the data source in A-Retrieval Form ?
ReplyThanks for comments.....