General information
Category:
Coding, syntax & commands
Hi Gaylen,
When you write on Grid.RecordSource, Grid Layout is lost.
>To explain futher, I open the parameterized view in the load event using some dummy variable as parameters . Then I requery the view based on the parameters passed on from the calling program in the init of the form.
Therefore:
- if you REQUERY() the view on form Init(),
a) remove RecorSource assign on Init,
b) load RecordSource on Load() ( if name is random )
or put View name on Grid RecordSource property ( if name is fixed );
- or you pass parameters on Load form event and remove RecorSource assign on Init;
- or you rebuild Grid Layout on Form Init;
- or remove Grid by Form definition and on Form Init you add Grid on runtime,
with thisForm.AddObject() or thisForm.NewObject().
Fabio
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only