Home › Forums › vLooup for SharePoint › vLookup on new item on document library
- This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by
Alexander Bautz.
-
AuthorPosts
-
-
October 9, 2015 at 18:14 #8689
I realise that for lists it’s not possible to create vlookup associations without the extra column workaround due to the item ID not yet being created, but does this logic also carry though for document libraries?
At the point the form loads (editform, not newform as in the case of a list), the ID of the new document is accessible in the form of;http://site/library/Forms/EditForm.aspx?Mode=Upload&CheckInComment=&ID=18&RootFolder=Folder&Source=http%3A%2F%2Fsite%2Flibrary
Is it possible to enable vlookup for editform with mode=upload even though it is a “new” item?
Adam
-
October 13, 2015 at 23:13 #8756
This should work as it is in fact EditForm. Let me know if you have any further questions.
Alexander
-
October 13, 2015 at 23:35 #8758
Hi Alexander
I thought this was the case, however on the setup I’ve got I see the following;
Add new document>
File upload dialog, ok
EditForm.aspx (?mode=upload)
‘vLookupAssociations’ just shows as an empty single line of text field (as if it were on a plain old sharepoint form. All other dffs functionality works correctly)Edit properties of same file>
Editform.aspx
‘vLookupAssociations’ field loads all associated items from the child list into the area on the form as per config.The process I have at the moment is to go back into editing (or viewing) the document properties after initial upload, but it would be nice if it was possible in one hit.
Any ideas or things I should check?
-
October 17, 2015 at 09:09 #8826
Sorry fro the delay. I have now tested it and confirmed your finding. It was a shortcoming in my code that did not “see” the ID because it was not the first parameter in the URL.
I will fix this in the next release – hopefully during the weekend.
Sorry for the inconvenience,
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.