Hi there.
This may seem like a silly and beginner question, but I haven't found the answer anywhere.
I have a form, with a subform in it, and I need to filter a field on the subform (list), based on the value of another field in the main form (card).
For example, my current record in the main form has a field called "type", and its value is 'abc', I want to filter the subform's "type" field with the value 'abc'. Only the lines whose "type" value is 'abc' should appear on the subform.
How do I do it?
0
Comments
There you can describe the relation (aka filter) between the main and subform
|To-Increase|
FD Consulting
(the form_diario_fusao is a form variable of the subform,)
CurrForm.SalesLines.FORM.Filterlinerecords(mainrec.field);
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
"You need to reference directly to the Subform control and not just another instance of the form.
Give the subform control a name in the properties. Let's say MySubForm.
Then you can use:
CurrForm.MySubForm.FORM.SETTABLEVIEW(recDiarioFusao);
Or via function on the Subform as suggested."
http://dynamicsuser.net/forums/p/45628/ ... spx#230706
Thanks for the help
is it filtering the subform?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
No, because it's not an editable field.
Yes, because it changes when I change the record (and the value is different).
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav