CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Change Type of Filed According with the user rights

Print topic Send  topic

Author Message
Eugen Fleseriu
Posted: 07/17/2001, 1:52 AM

Hi,

I am trying to generate a site using the CC, but I have a small problem:
I have a page where some of the fields should be editable or read
only according with the current logedin user rights.
Do you have any Ideea if it is posible to add a custom event and to
change the type of the filed (label or text) according with the user rights?

Thank's
Eugen

Alexey Alexapolsky
Posted: 07/17/2001, 2:26 AM

If this is only one field you can have 2 forms
having differrent field type and show/hide forms
based on UserLevel session variable

--
Alex


Eugen Fleseriu <eugen@berg-computers.com> wrote in message
news:9j0ubv$8m0$1@news.codecharge.com...
> Hi,
>
> I am trying to generate a site using the CC, but I have a small
problem:
> I have a page where some of the fields should be editable or read
> only according with the current logedin user rights.
> Do you have any Ideea if it is posible to add a custom event and to
> change the type of the filed (label or text) according with the user
rights?
>
> Thank's
> Eugen
>
>

Eugen Fleseriu
Posted: 07/17/2001, 3:24 AM

No I have about 20 fields
:(



"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:9j10c9$cnt$1@news.codecharge.com...
> If this is only one field you can have 2 forms
> having differrent field type and show/hide forms
> based on UserLevel session variable
>
> --
> Alex
>
>
> Eugen Fleseriu <eugen@berg-computers.com> wrote in message
>news:9j0ubv$8m0$1@news.codecharge.com...
> > Hi,
> >
> > I am trying to generate a site using the CC, but I have a small
> problem:
> > I have a page where some of the fields should be editable or
read
> > only according with the current logedin user rights.
> > Do you have any Ideea if it is posible to add a custom event and to
> > change the type of the filed (label or text) according with the user
> rights?
> >
> > Thank's
> > Eugen
> >
> >
>
>

Alexey Alexapolsky
Posted: 07/17/2001, 5:11 AM

Don't sweat , it's no prob ! :-))
All the fields subject to type change , must be of
"Label type" + "html" checkbox on , so you can stuff any content
into them in "Before show" event. You'll be able to make them editable
or not and stuff any html the you want right into them
Use such code :

if user_can_edit then fldsomefield = "<input type=text value=" &
fldsomefield
'else it will be displayed as pure text.

--
Alex
CC

Eugen Fleseriu <eugen@berg-computers.com> wrote in message
news:9j13oh$jho$1@news.codecharge.com...
> No I have about 20 fields
> :(
>
>
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:9j10c9$cnt$1@news.codecharge.com...
> > If this is only one field you can have 2 forms
> > having differrent field type and show/hide forms
> > based on UserLevel session variable
> >
> > --
> > Alex
> >
> >
> > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> >news:9j0ubv$8m0$1@news.codecharge.com...
> > > Hi,
> > >
> > > I am trying to generate a site using the CC, but I have a small
> > problem:
> > > I have a page where some of the fields should be editable or
> read
> > > only according with the current logedin user rights.
> > > Do you have any Ideea if it is posible to add a custom event and
to
> > > change the type of the filed (label or text) according with the user
> > rights?
> > >
> > > Thank's
> > > Eugen
> > >
> > >
> >
> >
>
>

David A. Lee
Posted: 07/17/2001, 10:04 PM

Now *THATS* A clever trick !
I'll try to keep that in my bag of tricks for that rare but oh-so-necessary
situation.
-David Lee
> Don't sweat , it's no prob ! :-))
> All the fields subject to type change , must be of
> "Label type" + "html" checkbox on , so you can stuff any content
> into them in "Before show" event. You'll be able to make them editable
> or not and stuff any html the you want right into them
> Use such code :
>
> if user_can_edit then fldsomefield = "<input type=text value=" &
> fldsomefield
> 'else it will be displayed as pure text.
>
> --
> Alex
> CC
>
> Eugen Fleseriu <eugen@berg-computers.com> wrote in message
>news:9j13oh$jho$1@news.codecharge.com...
> > No I have about 20 fields
> > :(
> >
> >
> >
> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >news:9j10c9$cnt$1@news.codecharge.com...
> > > If this is only one field you can have 2 forms
> > > having differrent field type and show/hide forms
> > > based on UserLevel session variable
> > >
> > > --
> > > Alex
> > >
> > >
> > > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> > >news:9j0ubv$8m0$1@news.codecharge.com...
> > > > Hi,
> > > >
> > > > I am trying to generate a site using the CC, but I have a small
> > > problem:
> > > > I have a page where some of the fields should be editable or
> > read
> > > > only according with the current logedin user rights.
> > > > Do you have any Ideea if it is posible to add a custom event and
> to
> > > > change the type of the filed (label or text) according with the user
> > > rights?
> > > >
> > > > Thank's
> > > > Eugen
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Jeffrey A. Stuart
Posted: 07/17/2001, 10:59 PM

Yes it is isn't it Dave! :D I've used that a couple of times today now...
Between that and the Custom Show/Action, it's let me code my entire app into
code charge!

On Tue, 17 Jul 2001 22:04:10 -0700, "David A. Lee" <dave@calldei.com> wrote:

>Now *THATS* A clever trick !
>I'll try to keep that in my bag of tricks for that rare but oh-so-necessary
>situation.
>-David Lee
>> Don't sweat , it's no prob ! :-))
>> All the fields subject to type change , must be of
>> "Label type" + "html" checkbox on , so you can stuff any content
>> into them in "Before show" event. You'll be able to make them editable
>> or not and stuff any html the you want right into them
>> Use such code :
>>
>> if user_can_edit then fldsomefield = "<input type=text value=" &
>> fldsomefield
>> 'else it will be displayed as pure text.
>>
>> --
>> Alex
>> CC
>>
>> Eugen Fleseriu <eugen@berg-computers.com> wrote in message
>>news:9j13oh$jho$1@news.codecharge.com...
>> > No I have about 20 fields
>> > :(
>> >
>> >
>> >
>> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>> >news:9j10c9$cnt$1@news.codecharge.com...
>> > > If this is only one field you can have 2 forms
>> > > having differrent field type and show/hide forms
>> > > based on UserLevel session variable
>> > >
>> > > --
>> > > Alex
>> > >
>> > >
>> > > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
>> > >news:9j0ubv$8m0$1@news.codecharge.com...
>> > > > Hi,
>> > > >
>> > > > I am trying to generate a site using the CC, but I have a small
>> > > problem:
>> > > > I have a page where some of the fields should be editable or
>> > read
>> > > > only according with the current logedin user rights.
>> > > > Do you have any Ideea if it is posible to add a custom event and
>> to
>> > > > change the type of the filed (label or text) according with the user
>> > > rights?
>> > > >
>> > > > Thank's
>> > > > Eugen
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
David A. Lee
Posted: 07/17/2001, 11:14 PM

This is what I LOVE about CodeCharge !!!
So many 'do it for you' applications fail at that last critical 10% (or 1% )
.....
That bit of your app that just doenst fit into the simplified model.
You hit the 'brick wall' where you simply cant do it . and have to throw it
all out, or suffer with an application that simply doenst do what you want.
With code charge, I've hit a few 'brick walls' in what is built in ...
but It doesnt make me abandon the platform, because I can use the
custom events ... In some cases I've even used a dummy page with a
empty form with a custom Open event with my perl code ...
Just to avoid having to write an out-of-package perl module
and maintain it somewhere ... it IS a great advantage to have the ENTIRE
application, and I mean 100% not 99% all in the codecharge enviroment,
just change the publishing parameters and voila ! your deploy your app
somewhere
else ..

Ok enough raving :)
I just LOVE this program ! Keep up the good work !
Do what you do well and let me do the rest ...
Exactly what we need in this industry !

Now if you could just do automatic translations of my custom perl code
to ASP ... :)



> Yes it is isn't it Dave! :D I've used that a couple of times today now...
> Between that and the Custom Show/Action, it's let me code my entire app
into
> code charge!
>
> On Tue, 17 Jul 2001 22:04:10 -0700, "David A. Lee" <dave@calldei.com>
wrote:
>
> >Now *THATS* A clever trick !
> >I'll try to keep that in my bag of tricks for that rare but
oh-so-necessary
> >situation.
> >-David Lee
> >> Don't sweat , it's no prob ! :-))
> >> All the fields subject to type change , must be of
> >> "Label type" + "html" checkbox on , so you can stuff any content
> >> into them in "Before show" event. You'll be able to make them editable
> >> or not and stuff any html the you want right into them
> >> Use such code :
> >>
> >> if user_can_edit then fldsomefield = "<input type=text value=" &
> >> fldsomefield
> >> 'else it will be displayed as pure text.
> >>
> >> --
> >> Alex
> >> CC
> >>
> >> Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> >>news:9j13oh$jho$1@news.codecharge.com...
> >> > No I have about 20 fields
> >> > :(
> >> >
> >> >
> >> >
> >> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >> >news:9j10c9$cnt$1@news.codecharge.com...
> >> > > If this is only one field you can have 2 forms
> >> > > having differrent field type and show/hide forms
> >> > > based on UserLevel session variable
> >> > >
> >> > > --
> >> > > Alex
> >> > >
> >> > >
> >> > > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> >> > >news:9j0ubv$8m0$1@news.codecharge.com...
> >> > > > Hi,
> >> > > >
> >> > > > I am trying to generate a site using the CC, but I have a
small
> >> > > problem:
> >> > > > I have a page where some of the fields should be editable
or
> >> > read
> >> > > > only according with the current logedin user rights.
> >> > > > Do you have any Ideea if it is posible to add a custom event
and
> >> to
> >> > > > change the type of the filed (label or text) according with the
user
> >> > > rights?
> >> > > >
> >> > > > Thank's
> >> > > > Eugen
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
>

kmc
Posted: 07/17/2001, 11:15 PM

I was going to put this onto the wish list, I need it over and over again...
Clever indeed...thanks Alexey!!!

"David A. Lee" <dave@calldei.com> wrote in message
news:9j35ca$m57$1@news.codecharge.com...
> Now *THATS* A clever trick !
> I'll try to keep that in my bag of tricks for that rare but
oh-so-necessary
> situation.
> -David Lee
> > Don't sweat , it's no prob ! :-))
> > All the fields subject to type change , must be of
> > "Label type" + "html" checkbox on , so you can stuff any content
> > into them in "Before show" event. You'll be able to make them editable
> > or not and stuff any html the you want right into them
> > Use such code :
> >
> > if user_can_edit then fldsomefield = "<input type=text value=" &
> > fldsomefield
> > 'else it will be displayed as pure text.
> >
> > --
> > Alex
> > CC
> >
> > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> >news:9j13oh$jho$1@news.codecharge.com...
> > > No I have about 20 fields
> > > :(
> > >
> > >
> > >
> > > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> > >news:9j10c9$cnt$1@news.codecharge.com...
> > > > If this is only one field you can have 2 forms
> > > > having differrent field type and show/hide forms
> > > > based on UserLevel session variable
> > > >
> > > > --
> > > > Alex
> > > >
> > > >
> > > > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> > > >news:9j0ubv$8m0$1@news.codecharge.com...
> > > > > Hi,
> > > > >
> > > > > I am trying to generate a site using the CC, but I have a
small
> > > > problem:
> > > > > I have a page where some of the fields should be editable
or
> > > read
> > > > > only according with the current logedin user rights.
> > > > > Do you have any Ideea if it is posible to add a custom event
and
> > to
> > > > > change the type of the filed (label or text) according with the
user
> > > > rights?
> > > > >
> > > > > Thank's
> > > > > Eugen
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Jeffrey A. Stuart
Posted: 07/18/2001, 1:30 AM

ICK!! Perl to ASP.. are you sick? :D

And yes, I did that a couple of times today with like 3 forms. ALL they are
used for is to display the output from some shell commands. Well.. :D that
don't fit the DB mode but.. I ALSO love the fact that for one form as it was a
basic count, group by sql command, it treated it as a mini table and let me
create a grid for it!!!!

On Tue, 17 Jul 2001 23:14:05 -0700, "David A. Lee" <dave@calldei.com> wrote:

>This is what I LOVE about CodeCharge !!!
>So many 'do it for you' applications fail at that last critical 10% (or 1% )
>....
>That bit of your app that just doenst fit into the simplified model.
>You hit the 'brick wall' where you simply cant do it . and have to throw it
>all out, or suffer with an application that simply doenst do what you want.
>With code charge, I've hit a few 'brick walls' in what is built in ...
>but It doesnt make me abandon the platform, because I can use the
>custom events ... In some cases I've even used a dummy page with a
>empty form with a custom Open event with my perl code ...
>Just to avoid having to write an out-of-package perl module
>and maintain it somewhere ... it IS a great advantage to have the ENTIRE
>application, and I mean 100% not 99% all in the codecharge enviroment,
>just change the publishing parameters and voila ! your deploy your app
>somewhere
>else ..
>
>Ok enough raving :)
>I just LOVE this program ! Keep up the good work !
>Do what you do well and let me do the rest ...
>Exactly what we need in this industry !
>
>Now if you could just do automatic translations of my custom perl code
>to ASP ... :)
Eugen Fleseriu
Posted: 07/19/2001, 12:07 AM


Thank you very much. Great ideea with the before show event.


"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:9j1a11$vvv$1@news.codecharge.com...
> Don't sweat , it's no prob ! :-))
> All the fields subject to type change , must be of
> "Label type" + "html" checkbox on , so you can stuff any content
> into them in "Before show" event. You'll be able to make them editable
> or not and stuff any html the you want right into them
> Use such code :
>
> if user_can_edit then fldsomefield = "<input type=text value=" &
> fldsomefield
> 'else it will be displayed as pure text.
>
> --
> Alex
> CC
>
> Eugen Fleseriu <eugen@berg-computers.com> wrote in message
>news:9j13oh$jho$1@news.codecharge.com...
> > No I have about 20 fields
> > :(
> >
> >
> >
> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >news:9j10c9$cnt$1@news.codecharge.com...
> > > If this is only one field you can have 2 forms
> > > having differrent field type and show/hide forms
> > > based on UserLevel session variable
> > >
> > > --
> > > Alex
> > >
> > >
> > > Eugen Fleseriu <eugen@berg-computers.com> wrote in message
> > >news:9j0ubv$8m0$1@news.codecharge.com...
> > > > Hi,
> > > >
> > > > I am trying to generate a site using the CC, but I have a small
> > > problem:
> > > > I have a page where some of the fields should be editable or
> > read
> > > > only according with the current logedin user rights.
> > > > Do you have any Ideea if it is posible to add a custom event and
> to
> > > > change the type of the filed (label or text) according with the user
> > > rights?
> > > >
> > > > Thank's
> > > > Eugen
> > > >
> > > >
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.