Yes, there are other ways to determine the modified state of a Write Pro
object, but they all need to be managed by the developer (store the initial
state in a global for later comparison) so it’s not a boolean flag manger by
4DWrite.
Jeremy French points out on the 4D Forum that the wk date m
If this is necessary to do, it's unfortunate that one has to roll this
functionality themselves. Especially since one could do this with the older
4D Write:
//
// Method: WR_AreaWasModified
// Author: dhall
// Date and time: 07/19/05,
Thanks for the comment Bernd. I should try again.
Tom
> On Nov 13, 2019, at 23:27, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
>
> Eric Naujock:
>
>> Initially I tried to add an attribute to the WP object, but wasn’t
>> successful.
>
> What was the problem? It´s as easy as
>
Eric Naujock:
> Initially I tried to add an attribute to the WP object, but wasn’t successful.
What was the problem? It´s as easy as
$oMyWriteProObject.MyNewProperty:="Something".
I find that very useful.
You have to keep in mind that object properties are case sensitive, so
MyNewProperty and
Just for reference I am adding an (Form event=On After Edit) to my Write Pro
object. This way any edit to the file will trigger a dirty event. Then I will
probably need to reset the dirty flag upon saving. Otherwise I will wind up
with hundreds of copies of the same document.
> On Nov 12, 2019
That’s correct. It’s not part of the Write Pro object.
Initially I tried to add an attribute to the WP object, but wasn’t successful.
I’m a ‘baby programmer’ with objects so I don’t know whether its possible to
add attributes to a Write Pro object. My limited efforts failed.
Tom
> On Nov 12,
As I read over my post, I realized that the last line of
WP_information_isModified method could be simplified. See below..
> // Method: WP_Information_isModified -> isModified
> //
> // User name (OS): Tom Benedict
> // Date and time: 9/5/2
Reading in deeper. The WP_Information is a session variable object that keeps
track of the WP Pro object is not the actual WP Pro object. Just asking to
clarify.
> On Nov 12, 2019, at 5:20 PM, Tom Benedict wrote:
>
> Hi Eric,
>
> If I understand your question correctly, I think you’re looking
Thanks. I think that gives me a good direction in how to address it. I just
will need to add an event catch that changes the state to dirty if the state
changes.
> On Nov 12, 2019, at 5:20 PM, Tom Benedict wrote:
>
> Hi Eric,
>
> If I understand your question correctly, I think you’re lookin
Hi Eric,
If I understand your question correctly, I think you’re looking for a “dirty”
flag. As far as I know there is no built in function that track this, so you’ll
need to create your own.
Below are the three methods I use to track the state of a Write Pro object. It
was inspired by help I
I have a series of records and want to detect whether the 4D Write Pro object
has been changed since it was loaded. This way I can keep a version archive of
older versions of a document available. Is there an easy way I’m not seeing to
know if the Write pro object has been changed since it was c
11 matches
Mail list logo