tdbwprichtext - why is it always recommended to not use it.

  • Using v5.23.6.

    1) Why do I always see it is NOT recommended to use the TDBWPRichtext with databases?

    2) Why even have a DB aware component in the first place? You would think it work like any other DB aware type component. Perhaps it is due to the possibility of a large amount of data, but just curious.

    Greg

    • Offizieller Beitrag

    Hi,

    Zitat

    1) Why do I always see it is NOT recommended to use the TDBWPRichtext with databases?


    Because the component will reload the text the first time when a record is edited (switched to edit mode).
    You select text, click on the toolbar to make it bold and ... the editor reloads the text, adjusts scrolling and selection and then, hopefully, changes the style of the text which was selected before.

    Reloading the text invalidates all internal pointers (current par, table, image), can talke long (think of images over the network) and is basically not necessary.

    Code
    2) Why even have a DB aware component in the first place? You would think it work like any other DB aware type component.


    For quick results and on a local system the DB control works.
    Other controls do not have embedded objects and no other state than cursor position.

    Julian