Hi Cetin -
This will be a short note, I hope. It is almost 1:15 AM!
I re-did the app. you sent me earlier this week on my hard drive and finally got the child form (office_assignments) to open when I clicked on the command button.
Everything worked perfect, except I still have to hand type the officeid of the offices form into the officeid of the office_assignments form. I know the two forms are "talking" to each other, because I can throw some fields from the offices form onto the office_assignments form (in the DE of the office_assignments form), and those fields are reflected on the office_assignments form when I click the cmd button.
For example, the officename I can make appear on the office_assignments form automatically.
I even added a "getkey" program to the app. so that I could see how things react when I add records to both forms, but the nofficeid of the offices form still didn't automatically appear in the office_assignments (nofficeid) form when I fired it.
Here is my current code, and if you see anything that jumps out at you that is wrong, or something I am missing, please let me know.
Init() of office assignment.scx form:
lparameters tcOfficeId
=seek(tcOfficeId,"offices","nofficeid")
Private data session - .T.
Filter in DE for office_assignment cursor: nofficeid = offices.nofficeid
_________________________
Offices.scx form:
data session = default
click() for cmd button that fires office_assignment form =
do form office_assignment with offices.nofficeid
** If I can't get the officeid of the offices form to appear automatically into the child form (nofficeid), would I be better off tyring to create a paramaterized view?
Thanks for your help Cetin. I know you have spent a lot of time on this one issue with me, and I really appreciate it.
I promise this will be my last message to you regarding this method of passing parameters from a parent form to a child form.
Jason
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement