Andrew B
|
| Posted: 02/19/2002, 8:27 PM |
|
I have a grid form where I need to use the sActionFileName variable, but I don't want the grid to have any insert/update/delete items, and it will also not show any DB Fields. When I create this form sans pretty much everything (almost like a menu) the sActionFileName variable is no longer created.
IMO variables that show up in one configuration of a form should show up in all the others. I have come to depend on that one in particular being there. I use it so that I can change the target of my re-directs and keep my url transfer parameters in order w/o lots of custom code.
I simply change the file in the drop-down and monkey with the inputs, and everything works as it should. Also, when I rename pages (early in dev it happens quite often for convention, and snice there are not 'folders') everything continues to work w/o having to hunt through custom code.
CC : 95% luv, 5% frustration. Sorry you guys only hear me complain :) Most of the day I work happily away, and then <smack>. Then I fume for a few minutes cuz you can't read my mind ahead of time, then immediatly march down here to register my RFC :)
|
|
|
 |
Nicole
|
| Posted: 02/20/2002, 1:57 AM |
|
Andrew,
I suppose CC developers fought for clear code and while variable isn't necessary on the form/page it just isn't generated.
|
|
|
 |
CodeCharge Support
|
| Posted: 02/20/2002, 10:39 AM |
|
The sActionFileName variable correponds to the action attribute of a HTML form. By design a grid form unlike a record form does not have a HTML form which translates to no action attribute and consequently the sActionFileName variable does not exist in the grid form. Placing an sActionFileName variable in a grid form would be tantamount to say having a Before Insert event in a grid form
|
|
|
 |
Andrew B
|
| Posted: 02/20/2002, 7:27 PM |
|
The main problem is that when I remove the 'insert' action from a grid form, it gets rid of the sActionPage variable. I would like to see it there so that, since I explicitly set the page link, I can use it for whatever purpose I choose. I do way to much custom code for wierd little things like this now, and being able to use the IDE to manage as much of that as possible would be VERY nice.
I have a hard time seeing heresey here or the need for ideological purity. As fo r clean code, I think one variable is hardly worth the worry considering the 'mess' that cc code is. It's pretty damn good, not knocking it, just long winded since it needs to be, and hard to follow sometimes. If if you are going to say the reason was to keep the code clean, then I think there are a lot more important/usefull avenues that would have been more fruitful.
"Placing an sActionFileName variable in a grid form would be tantamount to say having a Before Insert event in a grid form"
- But it DOES put one there... when you have allow inserts! It doesn't actually use an 'event' since it's just a link, but it is there. :)
|
|
|
 |
|