1. Miguel Leeuwe
  2. PowerBuilder
  3. Saturday, 30 December 2023 10:57 AM UTC

Hi all,

I was wondering when to use SetTrans() instead of SetTransObject() for a datawindow?

I find the PB help (2019 R3) pretty confusing when it mentions "internal transaction object".

BTW: In 30 years, I've never had to use SetTrans().

regards.

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 30 December 2023 15:16 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Miguel;

  I only use that command when creating a simple & quick prototype app. Moving forward from there, I rewrite the SetTrans() into SetTransObject() commands now including proper transaction management.

Regards.... Chris 

Comment
  1. Miguel Leeuwe
  2. Saturday, 30 December 2023 18:55 PM UTC
Hi Chris,

So yes, there's absolutely no need for SetTrans(). We can do everything with SetTransObject().

regards
  1. Helpful
  1. Chris Pollach @Appeon
  2. Saturday, 30 December 2023 19:00 PM UTC
SetTrans = Pseudo-Conversational transaction management

SetTransObject = Conversational transaction management
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.