RussellP
Posts: 20
|
| Posted: 06/21/2007, 5:03 AM |
|
Hi
I am experiencing difficulty building a page that displays both a record (as an update record), and associated child files as an updateable grid. It is a typical order / items application. I get to the order record via a grid on a sepate (calling) page.
The record has an orderid, and other fields. The child table 'Items' has an itemid and an orderID. Each of these are of control type hidden on the grid
When I add a record to the editable grid record, I want it to automatically add an orderid equal to the orderid of the parent order record.
I tried using the parameter passed from the ordergrid on the calling page.
global $thisorderid;
global $itemgrid
$thisorderID = CCGetParam("orderID", "-1");
$itemgrid->ds->patid->SetValue($myorderid);
But this did not work.
Any suggestions would be appreciated
Thanks
Russell
_________________
Russell P |
 |
 |
RussellP
Posts: 20
|
| Posted: 06/22/2007, 4:24 AM |
|
RESOLVED
I found the master-detail example in the example pack , and resolved the issue using the CCGetfromGet() to pluck a value from the URL.
Interestingly, I found that if I set a 'required' value for the itemid, the technique does not work. The function to check for the existence of a value appears to occur before the 'before build insert' event.
I would be interested to know of other ways to get master-detail situations to work beyond using the URL
Thanks
RussellP
_________________
Russell P |
 |
 |
Damian Hupfeld
|
| Posted: 06/22/2007, 5:41 AM |
|
ummm.... Im pretty sure there is a rather long thread covering this exact
topic approx 1 week ago....
"RussellP" <RussellP@forum.codecharge> wrote in message
news:5467bb15f5e48d@news.codecharge.com...
> RESOLVED
>
> I found the master-detail example in the example pack , and resolved the
> issue
> using the CCGetfromGet() to pluck a value from the URL.
>
> Interestingly, I found that if I set a 'required' value for the itemid,
> the
> technique does not work. The function to check for the existence of a
> value
> appears to occur before the 'before build insert' event.
>
> I would be interested to know of other ways to get master-detail
> situations to
> work beyond using the URL
>
> Thanks
>
> RussellP
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
|