Ramin Gharakhanzadeh
|
| Posted: 10/31/2002, 12:40 AM |
|
The example "Implement Record Security in "After Initialize" on the page 177
throws casting exception. I tried to trace the problem and it looks like the
part below is the reason for the exception:
((Record)e.getSource()).setAllowUpdate(false);
((Record)e.getSource()).setAllowDelete(false);
Any suggestions?
|
|
|
 |
Ramin Gharakhanzadeh
|
| Posted: 10/31/2002, 12:50 AM |
|
Problem solved. Here is the solution from CCS support:
((Record)e.getSource().getChild("tasks")).setAllowUpdate(false);
((Record)e.getSource().getChild("tasks")).setAllowDelete(false);
"Ramin Gharakhanzadeh" <rghara@sbcglobal.net> wrote in message
news:apqqam$vd8$1@news.codecharge.com...
> The example "Implement Record Security in "After Initialize" on the page
177
> throws casting exception. I tried to trace the problem and it looks like
the
> part below is the reason for the exception:
> ((Record)e.getSource()).setAllowUpdate(false);
> ((Record)e.getSource()).setAllowDelete(false);
>
> Any suggestions?
>
>
|
|
|
 |
Ramin Gharakhanzadeh
|
| Posted: 11/01/2002, 10:46 PM |
|
Here is the solution that really works::
((Record) e.getPage().getChild("form_name")).setAllowUpdate(false);
((Record) e.getPage().getChild("form_name")).setAllowDelete(false);
"Ramin Gharakhanzadeh" <rghara@sbcglobal.net> wrote in message
news:apqqs8$ne$1@news.codecharge.com...
> Problem solved. Here is the solution from CCS support:
> ((Record)e.getSource().getChild("tasks")).setAllowUpdate(false);
> ((Record)e.getSource().getChild("tasks")).setAllowDelete(false);
>
>
> "Ramin Gharakhanzadeh" <rghara@sbcglobal.net> wrote in message
>news:apqqam$vd8$1@news.codecharge.com...
> > The example "Implement Record Security in "After Initialize" on the page
> 177
> > throws casting exception. I tried to trace the problem and it looks like
> the
> > part below is the reason for the exception:
> > ((Record)e.getSource()).setAllowUpdate(false);
> > ((Record)e.getSource()).setAllowDelete(false);
> >
> > Any suggestions?
> >
> >
>
>
|
|
|
 |