FoxInCloud
Paged Grid
Gravatar is a globally recognized avatar based on your email address. Paged Grid
  Michele
  thn@foxincloud.com
  Mar 30, 2015 @ 04:35am
I am trying to use paged grid but i have a problem. If in my form a make a query in form.load() and i set grid.recordsource with the query's result in the grid property form it works. If i start my form and i make the query in the form.init() (i have some parameters that i receive in the form.init()) and at the end of my select i set all grid's property at runtime (grid.recordsource and column.controlsource) for each grid's column i can seee data but they are not paged.......i see all selected records.....
Why ?

Gravatar is a globally recognized avatar based on your email address. Re: Paged Grid
  FoxInCloud Support - Thierry N.
  Michele
  Mar 30, 2015 @ 09:31pm
Ciao Michele,

Instead of a cursor, could you use a SET FILTER TO on the base table?

later today, we'll try to send you a link to beta 4 which supports changing .recordSource at runtime

keep in mind that at runtime the paged grid container takes the name of the original grid so your code should use the grid name just as if the container did not exist.


I am trying to use paged grid but i have a problem. If in my form a make a query in form.load() and i set grid.recordsource with the query's result in the grid property form it works. If i start my form and i make the query in the form.init() (i have some parameters that i receive in the form.init()) and at the end of my select i set all grid's property at runtime (grid.recordsource and column.controlsource) for each grid's column i can seee data but they are not paged.......i see all selected records.....
Why ?


-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Paged Grid
  Michele
  Thierry Nivelet (FoxInCloud)
  Mar 30, 2015 @ 10:08pm
No i can't use a SET FILTER to......My query is too complex. I can wait your update.....

When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name......

If the container's name is changed i have to use it with the name of the grid...is it correct ?


Ciao Michele,

Instead of a cursor, could you use a SET FILTER TO on the base table?

later today, we'll try to send you a link to beta 4 which supports changing .recordSource at runtime

keep in mind that at runtime the paged grid container takes the name of the original grid so your code should use the grid name just as if the container did not exist.


I am trying to use paged grid but i have a problem. If in my form a make a query in form.load() and i set grid.recordsource with the query's result in the grid property form it works. If i start my form and i make the query in the form.init() (i have some parameters that i receive in the form.init()) and at the end of my select i set all grid's property at runtime (grid.recordsource and column.controlsource) for each grid's column i can seee data but they are not paged.......i see all selected records.....
Why ?


Gravatar is a globally recognized avatar based on your email address. Re: Paged Grid
  FoxInCloud Support - Thierry N.
  Michele
  Mar 31, 2015 @ 07:44am
When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name...

which error?

If the container's name is changed i have to use it with the name of the grid...is it correct ?

right
your code in other object referring to the grid should not change
please review http://foxincloud.com/tutotest/wFormStandardPage.tuto?awForm=pagedGrid.scx


No i can't use a SET FILTER to......My query is too complex. I can wait your update.....

When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name......

If the container's name is changed i have to use it with the name of the grid...is it correct ?


Ciao Michele,

Instead of a cursor, could you use a SET FILTER TO on the base table?

later today, we'll try to send you a link to beta 4 which supports changing .recordSource at runtime

keep in mind that at runtime the paged grid container takes the name of the original grid so your code should use the grid name just as if the container did not exist.


I am trying to use paged grid but i have a problem. If in my form a make a query in form.load() and i set grid.recordsource with the query's result in the grid property form it works. If i start my form and i make the query in the form.init() (i have some parameters that i receive in the form.init()) and at the end of my select i set all grid's property at runtime (grid.recordsource and column.controlsource) for each grid's column i can seee data but they are not paged.......i see all selected records.....
Why ?




-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Paged Grid
  Michele
  Thierry Nivelet (FoxInCloud)
  Mar 31, 2015 @ 09:43pm
The error i receive is that the Name property is readonly...


When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name...

which error?

If the container's name is changed i have to use it with the name of the grid...is it correct ?

right
your code in other object referring to the grid should not change
please review http://foxincloud.com/tutotest/wFormStandardPage.tuto?awForm=pagedGrid.scx


No i can't use a SET FILTER to......My query is too complex. I can wait your update.....

When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name......

If the container's name is changed i have to use it with the name of the grid...is it correct ?


Ciao Michele,

Instead of a cursor, could you use a SET FILTER TO on the base table?

later today, we'll try to send you a link to beta 4 which supports changing .recordSource at runtime

keep in mind that at runtime the paged grid container takes the name of the original grid so your code should use the grid name just as if the container did not exist.


I am trying to use paged grid but i have a problem. If in my form a make a query in form.load() and i set grid.recordsource with the query's result in the grid property form it works. If i start my form and i make the query in the form.init() (i have some parameters that i receive in the form.init()) and at the end of my select i set all grid's property at runtime (grid.recordsource and column.controlsource) for each grid's column i can seee data but they are not paged.......i see all selected records.....
Why ?




Gravatar is a globally recognized avatar based on your email address. Re: Paged Grid
  FoxInCloud Support - Thierry N.
  Michele
  Apr 1, 2015 @ 01:30am
Strange - help says it's read-write at run time:

Name Property (Visual FoxPro)
Specifies the name used to reference an object in code. Available at design time; read/write at run time


The error i receive is that the Name property is readonly...


When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name...

which error?

If the container's name is changed i have to use it with the name of the grid...is it correct ?

right
your code in other object referring to the grid should not change
please review http://foxincloud.com/tutotest/wFormStandardPage.tuto?awForm=pagedGrid.scx


No i can't use a SET FILTER to......My query is too complex. I can wait your update.....

When i use my app in production mode i have an error when the class tries to change the name property of an object ....probably when you try to change the container's name......

If the container's name is changed i have to use it with the name of the grid...is it correct ?


Ciao Michele,

Instead of a cursor, could you use a SET FILTER TO on the base table?

later today, we'll try to send you a link to beta 4 which supports changing .recordSource at runtime

keep in mind that at runtime the paged grid container takes the name of the original grid so your code should use the grid name just as if the container did not exist.


I am trying to use paged grid but i have a problem. If in my form a make a query in form.load() and i set grid.recordsource with the query's result in the grid property form it works. If i start my form and i make the query in the form.init() (i have some parameters that i receive in the form.init()) and at the end of my select i set all grid's property at runtime (grid.recordsource and column.controlsource) for each grid's column i can seee data but they are not paged.......i see all selected records.....
Why ?






-- thn (FoxInCloud)

© 1996-2024