Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I see what you are saying. I will then have to creat seperate
DataEnvironments for each of the 1st level pages then in the activate method
reset the appropriate environment. I will give that a try and will probably
be asking some questions later before I am finished with this one. Thanks
Brian
>
>>I have created a baseform with a 1st level pageframe on it, within each of
>these pages I have added 2nd level pageframe. Is there a way to seperate
>the DataEnvironment by each of the 1st level pageframe tabs which will
>control the environment of the 2nd level forms? Currently, when I run the
>form the oApp.Toolbar. moves the 1st level records when next or whatever is
>pressed, I want to have the toolbar move the records for the 2nd level
>displayed form. I know it may sound silly, but I can create a single form
>with the user just selecting the tabs instead of dropdown menus.
>>
>>Thanks in advance.
>>Brian Machtolff
>
>Hi Brian,
>According to what you say, there is a hook of the dataenvironment which is
>controlling the record movement for previous, next etc. from the toolbar.
>Say you have a property called oDataEnvironment on the form which is a
>reference to the dataenvironment of the main form. Now if you want to
>control the other DataEnvironment just before your previous next methods
>you could have
>
>*-- Change the reference of DataEnvironment
>thisform.oDataEnvironment = 'Your Pageframe's environment'
>
>Do the previous, next, save, delete, discard, new etc...
>
>*-- Reset the reference
>thisform.oDataEnvironment = 'Form level DataEnvironment'
>
>Good Luck,
>Kamal
>
>ps : If you require the toolbar to work for both you could create a custom
>DataBehaviour class which has all the method code and the toolbar calls the
>methods of this class. So in your case if you want to control 2
>DataEnvironments you will drop 2 instances of these on your form
>
>
Précédent
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