I have an agent which picks up and displays a variety of documents in a table format.
Each document has a status field (complete or not complete with a checkbox) and a comments field (text area). I would like to allow the user to make changes to the document(s) through this agent and then press a save button below to save all changes that have been made.
Can I use the document ID to help me make these changes?
I originally used a view to display the table using HTML on the columns. Problem was that I had to set up a separate save button for each document. As you can imagine, this result in quite a bit of feedback from users who did not want to press the save button 10 times to save the changes to their 10 documents.
Any ideas or suggestions would be greatly appreciated - thanks in advance.
Subject: Updating Documents
Yes you will have to use documentuniqueid. In your save button call a javascrit function to get all docinqueid’s in a text box field(hidden). And through that button get another button(hidden) clicked which will call an agent to process all the documents.Hope this will help.
I can post code if you need help…
RM
Subject: Updating Documents
Create a hidden form on your $$ViewTemplate and point it to an agent. In your “update” button, concatenate the UNID for each updated document (or all documents, if that’s easier), the status and the comments with one separator and separate the documents with another to make something like this:
677F7D3BB1257703852570180062C3C8CompleteBlah blah blah blah blah. Blah blah. Blah blah yada yada!^^677F7D3BB125770385257018006FEA2In ProgressBlah blah blah blah blah. Yappity yappity yappity.
and throw this long value into a text field on the “extra” form and submit it to the agent.
Then, in your agent, Split() on “^^” to separate the docs, then Split() each doc on “~~” to get the UNID and the two field values.