Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

how to work with TObjectManager correctly?

 Post Reply Post Reply
Author
LATYSHEV VADIM View Drop Down
New Member
New Member
Avatar

Joined: 07 Jan 2018
Posts: 12
Post Options Post Options   Quote LATYSHEV VADIM Quote  Post ReplyReply Direct Link To This Post Topic: how to work with TObjectManager correctly?
    Posted: 08 Aug 2019 at 9:43pm
Hello! In my mobile application, I use one global TObjectManager for all search, insert, and edit operations! Everything works perfectly!
I saw recommendations that it is better to create a TObjectManager, do a data operation and destroy it.
Question: Please explain how to work with TObjectManager correctly?
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2541
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 08 Aug 2019 at 10:41pm
The best approach is create one manager for each operation. Create the manager, perform one or more operations in a specific context (a transaction, a crud form, etc.) and then destroy the manager when it's finished. I advice against using global managers.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down