I am working on a 4.1.3.8 project. I have a
page where an insert can be performed. Before
the insert is executed, I execute a select
dataobject to determine whether the record
being inserted is unique or a duplicate.
If the record is unique, I insert the record.
If the record is a duplicate, I display a
warning to the user and then allow the user
to insert if they wish. I display a message by populating a static text field and then 
redisplaying the page.

I have 2 persistent problems. The first is
that it should take only 2 clicks to insert
a duplicate record but it takes 3. I have
tried to figure out where control is during
the 2nd click but even the log shows nothing
for the 2nd click. The 3rd click inserts
the record appropriately.
My other problem is that after the insert
of a duplicate record as described above,
the insertion of another duplicate record is
allowed on the first click on the insert 
button.

I have tried every way that I can think of
to get this to work properly. I have changed
the ActionType of the button. I have tried to perform a manual insertion and a built- 
in handling insertion. I have tried modi-
fying the data object execution event. I have
tried manually setting the value of the
display fields as well as using such methods
as load(false) and display() and 
setClearBeforeDisplay.

Regardless of what I do, I am clueless as to 
what is going on during that mysterious 2nd
click of the insert button. Does anyone have 
any insight into what is happening here or
a better way of doing this?
A similar problem to mine is descibed <A HREF="
http://forums.netdynamics.com/go/forums?cmd=article&group=netdynamics.public.support.nd4.talk&item=16666&utag=">here</A>

Thanks in advance
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to