tag:blogger.com,1999:blog-8614474425987941129.post1523282256682130918..comments2023-05-03T03:10:46.462-07:00Comments on SharePoint Forms Designer: Related documents with support of quick upload Dmitry Kozlovhttp://www.blogger.com/profile/02663689592564267336noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-8614474425987941129.post-12892933183797768552016-10-04T00:43:42.634-07:002016-10-04T00:43:42.634-07:00I've tried to clear cache on Internet Explorer...I've tried to clear cache on Internet Explorer.Anonymoushttps://www.blogger.com/profile/16103205202618866869noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-18525372276904675422016-10-03T01:11:12.115-07:002016-10-03T01:11:12.115-07:00Hello Dimitry,
This is working fine, but when doc...Hello Dimitry, <br />This is working fine, but when document library is growing to more than 5000 elements (SharePoint online) the metadata script is not working anymore. Is it a known problem?Anonymoushttps://www.blogger.com/profile/16103205202618866869noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-5997014601458859042016-08-03T07:37:01.621-07:002016-08-03T07:37:01.621-07:00Hello Dmitry,
thanks for this, works fine for me ...Hello Dmitry,<br /><br />thanks for this, works fine for me at EditForm.<br />Is there a way to get this done on NewForm?<br /><br />Need to handle Attachements to a new list item.muchhttps://www.blogger.com/profile/12167182622804142171noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-19298791233812506222016-02-29T01:37:26.461-08:002016-02-29T01:37:26.461-08:00Hi,
Could you send your script and the detailed de...Hi,<br />Could you send your script and the detailed description of the issue to support@spform.com.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-60970035303992138032016-02-28T14:41:18.849-08:002016-02-28T14:41:18.849-08:00Thanks what works great.
When trying to upload us...Thanks what works great.<br /><br />When trying to upload using the drag and drop, I get the following error when in a Modal/Popup in view mode:<br /><br />The file or folder name "*/Document.txt" contains invalid characters. Please use a different name. Common invalid characters include the following: # ? : < > ? / |<br /><br />Is there any way to fix that? Id love to have the functionality to be able to quickly upload, without having to go into a record in edit mode.Anonymoushttps://www.blogger.com/profile/05349140798143039962noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-77511091772411441962016-02-25T05:36:56.630-08:002016-02-25T05:36:56.630-08:00Yes you can. This would fill out SampleColumn with...Yes you can. This would fill out SampleColumn with the initial value of the Title field that will be present in it on form load:<br /><br />fd.updateDroppedDocuments('.related-docs', {<br /> SampleColumn: fd.field('Title').value(),<br />});<br /><br />If you want to have the thing fill out SampleColumn dynamically, i.e. fill out with its current value, do something like this:<br /><br />var obj = {<br /> SampleColumn: fd.field('Title').value(),<br /> text: "some text",<br />}<br />function updateObject() {<br /> obj.SampleColumn = fd.field('Title').value();<br />}<br />fd.field('Title').change(updateObject);<br /><br />fd.updateDroppedDocuments('.related-docs', obj);<br /><br />This will update the object every time the Title field is changed. Rostislavhttps://www.blogger.com/profile/15446539740902623650noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-17623144072094747402016-02-24T14:57:50.029-08:002016-02-24T14:57:50.029-08:00Can you use form fields to populate values in the ...Can you use form fields to populate values in the dropped document? Or is it restricted to the GetUrlKeyValue('ID') from the actual record?Anonymoushttps://www.blogger.com/profile/05349140798143039962noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-43433087971670097282015-07-02T08:00:42.171-07:002015-07-02T08:00:42.171-07:00Hi Dmitry,
I tried to pass a people's picker v...Hi Dmitry,<br />I tried to pass a people's picker value but with no success.It worked fine with single line fields and choice fields. Any help would be greatly appreciated.<br />(i am using sp2013)<br /><br />Thank you,<br />KaterinaAnonymoushttps://www.blogger.com/profile/17531383370432235036noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-550825552476772782015-05-21T09:00:21.904-07:002015-05-21T09:00:21.904-07:00I think I solved it with overriding the UploadFini...I think I solved it with overriding the UploadFinishFunc:<br />ExecuteOrDelayUntilScriptLoaded(function() {<br /> var UploadFinishFuncICOrig = window.UploadFinishFunc;<br /> window.UploadFinishFunc = function(element, state) {<br /> var argumentsOrig = arguments;<br /> UploadFinishFuncICOrig.apply(null, argumentsOrig);<br /> refreshAfterOneSecond(); <br /> }<br /><br />}, 'DragDrop.js');<br />Anonymoushttps://www.blogger.com/profile/12992961957510128830noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-25843729515345481622015-05-21T03:00:28.104-07:002015-05-21T03:00:28.104-07:00Hi Dmitry,
I created an eventreceiver to move the ...Hi Dmitry,<br />I created an eventreceiver to move the document to a folder after upload. The problem is now, that this happens asynchron so after the partial reload of the related items the item has the original path. A few moments later the item is moved. When the user clicks on the item he gets an error because the item is moved in the background. <br />Is it possible to reload the related items control or the complete form after a short delay?<br />Anonymoushttps://www.blogger.com/profile/12992961957510128830noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-83352721862662975462014-12-17T04:07:44.857-08:002014-12-17T04:07:44.857-08:00Thank you Dmitry!Thank you Dmitry!Anonymoushttps://www.blogger.com/profile/09799147453696583775noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-3494181943778985552014-12-16T06:49:45.959-08:002014-12-16T06:49:45.959-08:00Hi,
Unfortunately, you cannot move documents by mo...Hi,<br />Unfortunately, you cannot move documents by modifying their metadata. So, I'd recommend you to move them with the help of a workflow or use <a href="https://support.office.com/en-in/article/Configure-the-Content-Organizer-to-route-documents-b0875658-69bc-4f48-addb-e3c5f01f2d9a?ui=en-US&rs=en-IN&ad=IN" rel="nofollow">the Content organizer</a> to route documents automatically based on predefined rules.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-16593845213107584232014-12-16T06:01:36.029-08:002014-12-16T06:01:36.029-08:00Hi,
Please, put the following JS-code into JS-edit...Hi,<br />Please, put the following JS-code into JS-editor in the display form:<br /><br />ExecuteOrDelayUntilScriptLoaded(function() {<br /> g_uploadType = DragDropMode.NOTSUPPORTED;<br /> SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED;<br />}, "DragDrop.js");Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-14265185789755218302014-12-16T01:42:42.427-08:002014-12-16T01:42:42.427-08:00I did but it is still possible to drop documents. ...I did but it is still possible to drop documents. Just metadata is not filled.Anonymoushttps://www.blogger.com/profile/09799147453696583775noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-24256230299911680372014-12-15T10:37:58.766-08:002014-12-15T10:37:58.766-08:00Sure, you can turn off Editable property of the Re...Sure, you can turn off Editable property of the Related items control in Forms Designer.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-8572302566689813122014-12-15T06:44:35.464-08:002014-12-15T06:44:35.464-08:00Hi Dmitry,
Is it possible to lock / make read only...Hi Dmitry,<br />Is it possible to lock / make read only Related items control in Display Form? I need to prevent adding, editing and deleting related documents from Display Form.Anonymoushttps://www.blogger.com/profile/09799147453696583775noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-62988626112621128412014-12-12T02:19:20.652-08:002014-12-12T02:19:20.652-08:00Hi Dmitry,
this is really a great solution!
Do yo...Hi Dmitry,<br /><br />this is really a great solution!<br />Do you think it is possible to move the uploaded document to a specific folder?<br />Maybe with setting FileDirRef or FileRef attribute?<br /><br />Thank you in advance<br /><br />FelixAnonymoushttps://www.blogger.com/profile/12992961957510128830noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-20567407175628288272014-12-07T05:50:47.351-08:002014-12-07T05:50:47.351-08:00Hi Agnese,
Thank you for the bug report.
We've...Hi Agnese,<br />Thank you for the bug report.<br />We've fixed the issue. Please, install the latest version of Forms Designer from our website and clear the browser cache.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-37948762493337596442014-12-05T07:38:44.135-08:002014-12-05T07:38:44.135-08:00Hi,
You're right, this approach works for drop...Hi,<br />You're right, this approach works for dropped documents only. You can hide 'Add new item' by setting Editable property of the Related items control to False in Forms Designer. Or you can hide it via JavaScript as well.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-12255165922586687902014-12-04T07:54:10.440-08:002014-12-04T07:54:10.440-08:00This solution updates metadata not only for just d...This solution updates metadata not only for just dropped documents, but also for other documents with the same name located in different folders. How to restrict overwriting and update only empty lookup fields?Anonymoushttps://www.blogger.com/profile/09799147453696583775noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-90486372891662982142014-12-04T05:21:22.994-08:002014-12-04T05:21:22.994-08:00Is it possible to get the same functionality also ...Is it possible to get the same functionality also when user uploads a file Clicking on New document link? Seems this works only when documents are dropped.<br />Or perhaps it is possible to hide the New item link?Anonymoushttps://www.blogger.com/profile/09799147453696583775noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-87463415649858404382014-12-03T07:22:05.886-08:002014-12-03T07:22:05.886-08:00Yes, our trial versions are fully functional.Yes, our trial versions are fully functional.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-26743877949316506482014-12-03T07:15:36.636-08:002014-12-03T07:15:36.636-08:00Does it work also in Trial version?Does it work also in Trial version?Anonymoushttps://www.blogger.com/profile/09799147453696583775noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-33076857448017862242014-08-17T01:27:38.966-07:002014-08-17T01:27:38.966-07:00Thanks, It works perfect :)Thanks, It works perfect :)Anonymoushttps://www.blogger.com/profile/08444924212781899178noreply@blogger.comtag:blogger.com,1999:blog-8614474425987941129.post-77713513020088906892014-08-14T00:40:55.108-07:002014-08-14T00:40:55.108-07:00Sure, like any other field. Just pass ContentTypeI...Sure, like any other field. Just pass ContentTypeId to fd.updateDroppedDocuments. Here is an example:<br />fd.updateDroppedDocuments('.related-docs', {<br /> ContentTypeId: '0x010100C04107EB3C45C448948ACB77E1668335003214CB77ED825A40A928547E50B49085'<br />});<br /><br />To get ID of the specific content type, please, go to the document library settings, choose the required content type and copy value of ctype query parameter from the browser command line.Dmitry Kozlovhttps://www.blogger.com/profile/02663689592564267336noreply@blogger.com