baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Poul Tang on 9/4 2003, 21:05 +00:00
    EMail: acupt@acu.aaa.dk WWW: www.poultang.dk

    Re: Restrict MODIFY/DELETE


      I would like to have the opportunity to let respondents

      MODIFY the information in the database

      BUT NOT

      DELETE

      Can I do anything to just let the option MODIFY stand

      Of course I know they can acces and delete line by line, but for newcomers it is so easy to delete that it can accidentially happen.

      GREAT PROGRAMME *****

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from edo on 8/14 2003, 13:11 +07:00
    EMail: edo_escada@yahoo.com WWW: //indojob.cjb.net

    Restrict MODIFY/DELETE


      If I already checked the Modify/Delete within the Database, but I want to restrict that in the form, what is the parameters in 'Do Action=All ....' ???
      Modify=no ??? or ??
     Post a reply

    Message from Sander on 8/14 2003, 15:59 +00:00

    Re: Restrict MODIFY/DELETE


      try listfields=-Action,allfields=-Action

      Sander
     Post a reply

    Message from edo on 8/15 2003, 13:14 +07:00
    EMail: edo_escada@yahoo.com WWW: //indojob.cjb.net

    Re: Restrict MODIFY/DELETE


      Not work... but its okay for other field such as "Id" etc.

      If we checked "Modify/Add" in the database, then Action field appear in "Do action=all listtype=list" even though I have tried to add "listfields=-Action allfields=-Action"

      How ? I still hope the solution if any..
      Thank you

      Edo
     Post a reply

    Message from Sander on 8/15 2003, 12:57 +00:00

    Re: Restrict MODIFY/DELETE


      ok, i tried it. you have to use the german translation for Action => Aktion

      in your case:

      <do action=all listtype=list listfields=-Aktion allfields=-Aktion>

      the - follows the name of all fields you doesn't like in list (listfields) or detail (allfields)
      ie:

      <do action=all listtype=list listfields=-Aktion,Id allfields=-Aktion,Id> hides the fields Action and Id.

      Sander

     Post a reply


    Message from Poul Tang on 9/4 2003, 21:05 +00:00
    EMail: acupt@acu.aaa.dk WWW: www.poultang.dk

    Re: Restrict MODIFY/DELETE


      I would like to have the opportunity to let respondents

      MODIFY the information in the database

      BUT NOT

      DELETE

      Can I do anything to just let the option MODIFY stand

      Of course I know they can acces and delete line by line, but for newcomers it is so easy to delete that it can accidentially happen.

      GREAT PROGRAMME *****

     Post a reply


    Message from Sander on 9/5 2003, 00:17 +00:00

    Re: Restrict MODIFY/DELETE


      try

      <perl>
      if($cmd eq "del"){
      out "forbidden";
      $_get{cmd}=$cmd="";

      }
      </perl>
      <do action....>

     Post a reply
     
 Messages from 3300 to 3450: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



baseportal.com