![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
dansoft
Newbie
Joined: November 09 2007 Location: United States Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Topic: Grid ColumnsPosted: November 13 2007 at 2:15am |
|
Hi,
I have a grid, 14 columns, column 9 is a check box. Based on this box, I would like columns 11 thru 14 to be either active or non active. Is it possible and how can it be done. I looked at gprequired but it doesn't seem to work or I've set it up wrong. Any ideas would be appreciated.
Thanks,
Dan
|
|
|
Dan
Dan's Software House |
|
![]() |
|
pholmes
Groupie
Joined: April 15 2004 Location: United States Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: November 13 2007 at 2:44am |
|
You can set the GPREADONLY propery on a single column of a grid. Set the read only property of columns 11-14 to false when you don't want them to be maintainable and true otherwise.
|
|
![]() |
|
dansoft
Newbie
Joined: November 09 2007 Location: United States Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Posted: November 15 2007 at 7:36am |
|
Thanks, that worked.
|
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 12:15am |
|
Can you tell me what the actual command looks like? I have been trying everything I can thing of and cannot get this to work?
Thanks! |
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 1:05am |
|
Can you tell me what the actual command looks like? I have been trying everything I can thinK of and cannot get this to work?
Thanks! |
|
![]() |
|
pholmes
Groupie
Joined: April 15 2004 Location: United States Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 1:16am |
|
CALL ATGUISETPROP(APP,FORM,CTRL,GPREADONLY,COL,"",1,ERRORS,STATE)
1 = READONLY 0 = NOT READ ONLY |
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 1:39am |
|
Thanks for the quick response, however that does not work. Here is what I tried:
CTRL = "GRDDETAIL" ; VALUE = 1 ; COL = 1 ; ROW = 1 CALL ATGUISETPROP(GUIAPP,GUIFRM,CTRL,GPREADONLY,COL,"",1,GUIERRORS,GUISTATE) It does not allow col 1 row 1 to be edited. GRDDETAIL is not editable. I would just like to make the entire grid editable programatically. Thanks! |
|
![]() |
|
pholmes
Groupie
Joined: April 15 2004 Location: United States Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 1:45am |
|
If you want the entire grid to be editable, try setting the grid's enabled property:
CALL ATGUISETPROP(APP,FRM,CTRL,GPENABLE,"","",1,ERRORS,STATE) |
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 1:50am |
|
Ok, all that does is remove all the rows but one and place a "1" in col 1 row 1. I still cannot edit the form.
Here is my command: CTRL = "GRDDETAIL" ; VALUE = 1 CALL ATGUISETPROP GUIAPP,GUIFRM,CTRL,GPENABLE,"","",VALUE,GUIERRORS,GUISTATE) Thanks! |
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 2:01am |
|
FYI the template was created with the grid "PROTECTED".
|
|
![]() |
|
pholmes
Groupie
Joined: April 15 2004 Location: United States Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 2:07am |
|
Sorry - typo - the property is GPENABLED!!
|
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 2:10am |
|
I know - I tried that too with the same results. I tried GPVISIBLE and it works... I am at my wits end.
|
|
![]() |
|
rmichaelfrank
Groupie
Joined: March 20 2008 Location: United States Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 2:19am |
|
I got it working. First I change the grid in the template to "EDITABLE". Then I "GPENABLED" = 0 (Disabled) it at the beginning of the program. Then I was able to ENABLE or DISABLE the grid at will.
Thanks for your help! |
|
![]() |
|
pholmes
Groupie
Joined: April 15 2004 Location: United States Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: June 03 2008 at 2:28am |
|
I was just going to suggest that - glad you got it going.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |