Do you mean a record that is open in 4D Client and writable by that
user? If so, 4D's built-in record locking mechanisms won't allow 2 users
-- 4D Client is one and your Active4D process is another -- to have
write access to a single record.
You will either have to have your Active4D code loop and wait until the
record is unlocked and writable, or check for those conditions and and
let the Active4D record know that record can't be saved. If you have 4D
Client users that open records for a long time then the first solution
is probably not ideal. The second solution takes some work on your part
(See DISPLAY SELECTION vs MODIFY SELECTION).
If you only need read only access in 4D Client then Active4D should be
able to save the data while a 4D Client user is viewing the record, but
the client won't see the change unless you have code in place on client
to routinely reload the record.
hth,
Brad Perkins
Michael McCarthy wrote:
What are the necessary calls to save form data to an open record.(Web
clients saving data while record is open internally in client)
<%
import("a4d.web")
$ScreenNo:=get session("ScreenNo")
READ WRITE([Screen Design])
QUERY([Screen Design];[Screen Design]Screen No=num($ScreenNo))
[Screen Design]ColorCountRec:=True
[Screen Design]Design Name:="test"
Save Record([Screen Design])
redirect("http://www.ourartdepartment.com/Response.html")
%>
Data saves correctly to a closed record.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/