Project

General

Profile

Feature #3385

templateGroup: insert/update/delete non primary records

Added by Carsten Rose over 3 years ago. Updated 9 months ago.

Status:
Some day maybe
Priority:
Normal
Assignee:
Target version:
Start date:
19.03.2017
Due date:
% Done:

0%

Estimated time:
Discuss:

Description

  • Haben die FE in einer templategroup kein %d im 'name', werden bei einem submit alle Elemente mit dem gleichen 'name' Attribut ubertragen - das ist nicht gut.
    • Auch non-primary TG sollten also %d im Namen haben.
    • Der FormEditor sollte das beim Speichern des FE ueberpruefen
  • Fuer Dynamic Update waere es gut, wenn alle Elemente unterschiedliche IDs haben - das muss auf dem Server bei vorgefuellt Werten passieren, aber auch im Client wenn 'Add' gedrueckt wird.

Associated revisions

Revision 8db50d60 (diff)
Added by Carsten Rose over 3 years ago

#3385 / templateGroup: insert/update/delete non primary records
Manual.rst: update doc how to insert/update/delete non primary templateGroup records.
FormAction.php: removed $templateGroupIndex - solved implicit by defining a LIMIT on 'slaveId' . Implemented '%D' (one below %d). Implemented FE_SQL_HONOR_FORM_ELEMENTS - reduces unecassary SQL queries.
HelperFormElement.php: moved function 'explodeTemplateGroupElements()' to 'QuickFormQuery.php'
Database.php: remove call to explodeTemplateGroupElements() - not necessary at that place.
QuickFormQuery.php: fill STORE_RECORD during Formload - to read templateGroup records very early. Local copy of `getNativeFormElements()`, new `explodeTemplateGroupElements()`

History

#1 Updated by Carsten Rose over 3 years ago

  • Description updated (diff)

#2 Updated by Carsten Rose about 3 years ago

  • Target version set to next4

#3 Updated by Carsten Rose about 3 years ago

  • Tracker changed from Support to Feature

#4 Updated by Carsten Rose almost 2 years ago

  • Status changed from In Progress to New

#5 Updated by Carsten Rose 9 months ago

  • Status changed from New to Some day maybe

Also available in: Atom PDF