Re: 4D Write Pro Brain Cramp

2019-02-13 Thread Tom Dillon via 4D_Tech
Koen Van Hooreweghe via 4D_Tech wrote: >Could you try changing this line > [Invoice]Invoice_WP:=[Preferences]Preference_Object >to this: > [Invoice]Invoice_WP:=ob copy([Preferences]Preference_Object) I can feel the fog slowly lifting! Now I remember hearing that this is the way

Re: 4D Write Pro Brain Cramp

2019-02-13 Thread Koen Van Hooreweghe via 4D_Tech
Hi Tom, I suppose the problem is that you are copying the reference of your preference_object WP to [invoices] and not the wp content itself. This way ST Freeze is also modifying your original WP and in the next run of the loop there are no more references to be freezed. Afterwards your

4D Write Pro Brain Cramp

2019-02-13 Thread Tom Dillon via 4D_Tech
I know I'm missing something about 4D Write Pro involving ST Freeze Expressions. In a loop I create an [Invoice] record, assign an invoice template to the Write Pro object field ([Invoice]Invoice_WP:=[Preferences]Preference_Object) Call ST FREEZE EXPRESSIONS([Invoice]Invoice_WP) Save it. The