Hello all,
At our company we have all product drawings attached to a product. The most recent drawings have a TypeId "Recent".
When something changes, a new drawing is attached. This new drawing again gets typeId "Recent". The problem is that a user then has to delete all the old drawings, and attach them again with TypeId "Old".
This because you cannot change the TypeId anymore once an attachment has been made.
Now I can update the TypeId manually quickly trough X++ (just select the docuref document, and update the typeId). This works fine in our test environment:
[quote]
while select forUpdate docuref where docuref.refrecid==5637164103
{
if(DocuRef.TypeId=="Recent")
{
docuref.typeId="Old";
ttsBegin;
docuref.update();
ttscommit;
}
[/quote]
My question is: is this safe? Can I just update it in the table? I would say yes, but I cannot understand why it is not possible to change it through the user interface if it would be that simple
Thanks in advance.
Kind regards, Willem.
*This post is locked for comments
I have the same question (0)