0

Copying a record using button or Ninox icon

Interesting discovery and I wonder if a solution could be found.

If one uses the Ninox icon to copy a record any attachment (maybe apply to comments too) is NOT copied across the the duplicate record.

If however one creates a button to copy a record so one can add alerts and other options any attachment is copied as well (possibly comments are too).

So unless one is very careful you could land up copying a record and the attachment.

Is it possible to modify this script so that the attchment is either not copied or is deleted in the new copy.

let newRecord := duplicate(this);
openRecord(newRecord);
alert("Room/Location duplicated. Please enter the Duplicated Room name. ");
'ROOM NUMBER/LOCATION' := null;
popupRecord(Id)

1 reply

null
    • Fred
    • 2 yrs ago
    • Reported - view
    imageFieldname := null
    

    clears out an image field for me.