Back End Front End problem

Hi

I have a problem when I create a document. I need to create it on back end to fill some fields, then, I open it, and works fine (it´s a LS into a button, both operations, create in back end and open, at sametime). Problem is when I try to save it, send me a message error about document conflict, because exist a previus saved version. do somebody any ideade how can I performance this operation?. I have tried with merge conflicts, don´t create conflicts options with my form, but it does´nt work.

Thanks in advanced.

Subject: Back End Front End problem

Post your code - you must be doing a backend save after opening in the front end or something

Dan

Subject: RE: Back End Front End problem

Thanks Dan

Her my code

'Creation Document Button (maked in Back-End)

…

'Fill all fields as I need

…

'Save Document

Call doc.Save(True,True)

Set doc = Nothing ? I did it thinking maybe works, but it doesn´t work

Set view = db.GetView(“ByIDSLC”)

Call view.Refresh ’ I tried refresh View, but it doesn´t work too

Set doc = view.GetDocumentByKey(vID) ’ I tried open with this sentence, but it doesn´t work too

'Open Document

Call ws.EditDocument( True, doc,True,True) 'Open document and works fine, but when I Save my document send me Conflict Error

When I am in Front-End document (uidoc) and I only tried to save document, send me Message Error, my code is

'Save button

@Command([FileSave])

Thanks in advanced.

Subject: RE: Back End Front End problem

Why are you creating then using a view to get the document?

After call doc.save(true, true)

call ws.Editdocument(…

No need to set the doc to nothing and retrieve from a view or anything. Should be fine

Dan