Chip Cotton
|
| Posted: 08/18/2002, 4:24 AM |
|
Frankly, I'm having a problem with the documentation and its lack of
examples. It seems that one is expected to tool through all of the
demo apps in order to figure out how the functions are used.
I'm trying to get the value of the current row of a table. The value
itself does not appear on the grid, rather, I want to take the value
of two fields and manipulate them in code. The 'trick' is to
I'm THINKING CCGetValue is the function to use but, again, in the help
file there is not a simple example to show me how I would use this.
Please tell me how I would use CCGetValue.
|
|
|
 |
Chip Cotton
|
| Posted: 08/18/2002, 4:28 AM |
|
I just wanted to follow up. I do NOT want the field value(s) to
appear within the page's html, as a hidden field would. I want to
look up the unseen field values of the current row being generated.
On Sun, 18 Aug 2002 07:25:42 -0400, Chip Cotton
<please.no.email@Jail-Spammers.com> wrote:
>Frankly, I'm having a problem with the documentation and its lack of
>examples. It seems that one is expected to tool through all of the
>demo apps in order to figure out how the functions are used.
>
>I'm trying to get the value of the current row of a table. The value
>itself does not appear on the grid, rather, I want to take the value
>of two fields and manipulate them in code. The 'trick' is to
>
>I'm THINKING CCGetValue is the function to use but, again, in the help
>file there is not a simple example to show me how I would use this.
>
>Please tell me how I would use CCGetValue.
|
|
|
 |
DonB
|
| Posted: 08/18/2002, 7:59 AM |
|
What kind of problem are you having? I ask because CCGetValue is pretty
straightforward: supply the recordset/connection object, the name of a
column in that recordset - and it returns the value of it.
Obviously, you have to use it in a sensible context, such as the
BeforeShowRow event of a grid, so that you can be sure of what row in your
recordset it is pointing to.
I assume you are aware that you can have more columns in the recordset than
you are displaying on the grid, meaning the non-visible columns don't have
to be "hidden" in the grid. You can access either control values on the
form/page or dig into the underlying objects (i.e., the Recordset) and get
data from there. Are you only thinking in terms of accessing controls?
Only then, would I see you having an issue with hidden values, so I wonder
why you asked in that context.
don
"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
news:l51vluob2aq67qt79hkql0v7libn0sf6r2@4ax.com...
> I just wanted to follow up. I do NOT want the field value(s) to
> appear within the page's html, as a hidden field would. I want to
> look up the unseen field values of the current row being generated.
>
> On Sun, 18 Aug 2002 07:25:42 -0400, Chip Cotton
> <please.no.email@Jail-Spammers.com> wrote:
>
> >Frankly, I'm having a problem with the documentation and its lack of
> >examples. It seems that one is expected to tool through all of the
> >demo apps in order to figure out how the functions are used.
> >
> >I'm trying to get the value of the current row of a table. The value
> >itself does not appear on the grid, rather, I want to take the value
> >of two fields and manipulate them in code. The 'trick' is to
> >
> >I'm THINKING CCGetValue is the function to use but, again, in the help
> >file there is not a simple example to show me how I would use this.
> >
> >Please tell me how I would use CCGetValue.
>
|
|
|
 |
Chip Cotton
|
| Posted: 08/19/2002, 7:30 AM |
|
First off, thanks for the reply.
But can you give me an example of the line of code using it (none
appears in the help / documentation)?
I'm having problem with understanding what the recordset/connection
object is, and I'd like to see an example.
I'm using "DBConnection1" elsewhere, and while I don't get an error,
I'm not getting any information back.
Here's MY example:
In the beforeshowrow event of a grid (per your suggestion) I've put
the following:
global $grd_features; //name of the grid
global $DBConnection1;
// where "Connection1" is the connection, but I've found out you
// have to put the "DB" in front, even though it's nowhere in the
// documentation.
echo "value = " . ccgetvalue($DBConnection1,"f_name");
Returns the appropriate number of "value = " but no data from "f_name"
I've put the above into a label within the grid with the same
non-results.
Again, a working example of ccgetvalue function syntax is requested as
it is absent in the documentation.
On Sun, 18 Aug 2002 09:59:13 -0500, "DonB"
<7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote:
>What kind of problem are you having? I ask because CCGetValue is pretty
>straightforward: supply the recordset/connection object, the name of a
>column in that recordset - and it returns the value of it.
>
>Obviously, you have to use it in a sensible context, such as the
>BeforeShowRow event of a grid, so that you can be sure of what row in your
>recordset it is pointing to.
>
>I assume you are aware that you can have more columns in the recordset than
>you are displaying on the grid, meaning the non-visible columns don't have
>to be "hidden" in the grid. You can access either control values on the
>form/page or dig into the underlying objects (i.e., the Recordset) and get
>data from there. Are you only thinking in terms of accessing controls?
>Only then, would I see you having an issue with hidden values, so I wonder
>why you asked in that context.
>
>don
>
>
>"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
>news:l51vluob2aq67qt79hkql0v7libn0sf6r2@4ax.com...
>> I just wanted to follow up. I do NOT want the field value(s) to
>> appear within the page's html, as a hidden field would. I want to
>> look up the unseen field values of the current row being generated.
>>
>> On Sun, 18 Aug 2002 07:25:42 -0400, Chip Cotton
>> <please.no.email@Jail-Spammers.com> wrote:
>>
>> >Frankly, I'm having a problem with the documentation and its lack of
>> >examples. It seems that one is expected to tool through all of the
>> >demo apps in order to figure out how the functions are used.
>> >
>> >I'm trying to get the value of the current row of a table. The value
>> >itself does not appear on the grid, rather, I want to take the value
>> >of two fields and manipulate them in code. The 'trick' is to
>> >
>> >I'm THINKING CCGetValue is the function to use but, again, in the help
>> >file there is not a simple example to show me how I would use this.
>> >
>> >Please tell me how I would use CCGetValue.
>>
>
|
|
|
 |
Chip Cotton
|
| Posted: 08/19/2002, 8:40 AM |
|
I'M USING PHP
|
|
|
 |
Chip Cotton
|
| Posted: 08/19/2002, 8:40 AM |
|
I'm using PHP
|
|
|
 |
donb
|
| Posted: 08/19/2002, 10:19 AM |
|
Well, what you have looks right (but I'm no PHP expert either).
Is PHP case-sensitive? I wasn't sure if that mattered. Maybe it should be
"CCGetValue"?
I'm not at a place where I can test it, but I'll try it this evening. I'll
let you know what I find out.
don
"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
news:la42mug96qmoqb4lchbob67r5k2m02mnqc@4ax.com...
> I'M USING PHP
|
|
|
 |
Chip Cotton
|
| Posted: 08/19/2002, 10:30 AM |
|
PHP is not case sensitive.
I have a feeling, (OPEN CALL TO PHP USERS OUT THERE!) that one needs
more than the $DBConnection1 - which defines only the connection
object, but not the recordset (to use the MS paragim).
I'm thinking that there is a "recordset" related specifically to the
form, but I'm at a loss as to how to refer to it.
All I need is an example...
On Mon, 19 Aug 2002 12:19:20 -0500, "donb" <dbweb2@premiersi.com>
wrote:
>Well, what you have looks right (but I'm no PHP expert either).
>
>Is PHP case-sensitive? I wasn't sure if that mattered. Maybe it should be
>"CCGetValue"?
>
>I'm not at a place where I can test it, but I'll try it this evening. I'll
>let you know what I find out.
>
>don
>
>
>"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
>news:la42mug96qmoqb4lchbob67r5k2m02mnqc@4ax.com...
>> I'M USING PHP
>
|
|
|
 |
Sixto Luis Santos
|
| Posted: 08/19/2002, 12:38 PM |
|
Chip,
PHP IS case-sensitive. Only function names (and methods in classes) are case
insensitive. Variables (and properties) are case sensitive, as are most
string-related processes.
If you need to refer to your grid's "recordset" use:
$gridname->ds
You may need to create a global reference to it if you are coding an event.
eg:
global $gridname;
field_value=CCGetValue($gridname->ds,"fieldname");
Regards,
Sixto
"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
news:rfa2mucsnncpqrfl60u5ffj2uq1um8hkc0@4ax.com...
> PHP is not case sensitive.
>
> I have a feeling, (OPEN CALL TO PHP USERS OUT THERE!) that one needs
> more than the $DBConnection1 - which defines only the connection
> object, but not the recordset (to use the MS paragim).
>
> I'm thinking that there is a "recordset" related specifically to the
> form, but I'm at a loss as to how to refer to it.
>
> All I need is an example...
>
> On Mon, 19 Aug 2002 12:19:20 -0500, "donb" <dbweb2@premiersi.com>
> wrote:
>
> >Well, what you have looks right (but I'm no PHP expert either).
> >
> >Is PHP case-sensitive? I wasn't sure if that mattered. Maybe it should
be
> >"CCGetValue"?
> >
> >I'm not at a place where I can test it, but I'll try it this evening.
I'll
> >let you know what I find out.
> >
> >don
> >
> >
> >"Chip Cotton" <please.no.email@Jail-Spammers.com> wrote in message
> >news:la42mug96qmoqb4lchbob67r5k2m02mnqc@4ax.com...
> >> I'M USING PHP
> >
>
|
|
|
 |
Chip Cotton
|
| Posted: 08/19/2002, 2:12 PM |
|
You are correct sir (about both issues)!
You have solved many problems!
You have REALLY read that programmer's reference!
On Mon, 19 Aug 2002 15:42:44 -0400, "Sixto Luis Santos"
<sixto@tecnoapoyo.com> wrote:
>Chip,
>
>PHP IS case-sensitive. Only function names (and methods in classes) are case
>insensitive. Variables (and properties) are case sensitive, as are most
>string-related processes.
>
>If you need to refer to your grid's "recordset" use:
>
>$gridname->ds
>
>You may need to create a global reference to it if you are coding an event.
>
>eg:
>
>global $gridname;
>field_value=CCGetValue($gridname->ds,"fieldname");
|
|
|
 |
|