doc/book/en/development/webstdlib/editcontroller.rst
changeset 4437 21f2e01fdd6a
parent 2544 282261b26774
child 4442 7bc0e4ed4109
equal deleted inserted replaced
4436:294e084f1263 4437:21f2e01fdd6a
     4 ----------------------------------------------------------------
     4 ----------------------------------------------------------------
     5 
     5 
     6 Editing control
     6 Editing control
     7 ~~~~~~~~~~~~~~~~
     7 ~~~~~~~~~~~~~~~~
     8 
     8 
     9 Re-requisites: the parameters related to entities to edit are
     9 Re._cwuisites: the parameters related to entities to edit are
    10 specified as follows ::
    10 specified as follows ::
    11 
    11 
    12   <field name>:<entity eid>
    12   <field name>:<entity eid>
    13 
    13 
    14 where entity eid could be a letter in case of an entity to create. We
    14 where entity eid could be a letter in case of an entity to create. We
    24       qualified in the case of a relation where the entity is object
    24       qualified in the case of a relation where the entity is object
    25    2. if found, the value returned is considered as the initial value
    25    2. if found, the value returned is considered as the initial value
    26       for this relaiton and we then look for the new value(s)  in the parameter
    26       for this relaiton and we then look for the new value(s)  in the parameter
    27       <relation name> (qualified)
    27       <relation name> (qualified)
    28    3. if the value returned is different from the initial value, an database update
    28    3. if the value returned is different from the initial value, an database update
    29       request is done
    29      ._cwuest is done
    30 
    30 
    31 3. For each entity to edit:
    31 3. For each entity to edit:
    32 
    32 
    33    1. if a qualified parameter `__linkto` is specified, its value has to be
    33    1. if a qualified parameter `__linkto` is specified, its value has to be
    34       a string (or a list of string) such as: ::
    34       a string (or a list of string) such as: ::
   100 * `__redirectpath`: path of the URL (relative to the root URL of the site,
   100 * `__redirectpath`: path of the URL (relative to the root URL of the site,
   101   no form parameters
   101   no form parameters
   102 
   102 
   103 * `__redirectparams`: forms parameters to add to the path
   103 * `__redirectparams`: forms parameters to add to the path
   104 
   104 
   105 * `__redirectrql`: redirection RQL request
   105 * `__redirectrql`: redirection RQL._cwuest
   106 
   106 
   107 * `__redirectvid`: redirection view identifier
   107 * `__redirectvid`: redirection view identifier
   108 
   108 
   109 * `__errorurl`: initial form URL, used for redirecting in case a validation
   109 * `__errorurl`: initial form URL, used for redirecting in case a validation
   110   error is raised during editing. If this one is not specified, an error page
   110   error is raised during editing. If this one is not specified, an error page