Page 1 of 1

Picture Library Issue

Posted: 16 May 2018
by ksertkaya
Hi,

I have 2 picture library(main and child). When I add item, It doesn't seem. This item seems in main list. I think it is bug.

Code: Select all

var parentID = fd.getSourceID();

if (parentID) {
    fd.field('MalzemeId').control().value(parentID);
}

Screenshot_20.png
Screenshot_20.png (21.43 KiB) Viewed 1800 times
Screenshot_21.png
Screenshot_21.png (6.63 KiB) Viewed 1800 times
Thank you.

Re: Picture Library Issue

Posted: 16 May 2018
by Nikita Kurguzov
Dear Sertkaya,
Unfortunately, we will need more information that that - perhaps a video can be recorded? Currently, I do not know which form you use - New or Edit, don't know which list is currently opened, when is the code supposed to run and what it should do, how do you add files, etc.

Need much more information in order to help. Perhaps a video or more screenshots and details can help.

Re: Picture Library Issue

Posted: 21 May 2018
by ksertkaya
I uploaded new document.
1.png
1.png (51.5 KiB) Viewed 1793 times
I uploaded new document in related-item.
2.png
2.png (73.47 KiB) Viewed 1793 times
New document doesn't seem in related-item. It seems in parent table.
3.png
3.png (73.48 KiB) Viewed 1793 times

Re: Picture Library Issue

Posted: 21 May 2018
by ksertkaya
Everything looks right.
Screenshot_12.png
Screenshot_12.png (19.17 KiB) Viewed 1792 times

Re: Picture Library Issue

Posted: 21 May 2018
by Nikita Kurguzov
Dear Setkaya,
So, it's the same library for both or is it supposed to be different libraries? And you are using Edit Form for this library, correct? Have you added the JavaScript to modify MalzemeId on document upload? Does Related Items control have the correct (the same as in JS) class name? Here's an instruction, just in case - https://spform.com/documentation/related-documents

Finally, you say that you uploaded a document at first, but then there are only documents 67 and 68. If 69 was uploaded while dialog form is open, it should only appear when you close the form, so I am not sure if it's the document you've added to the Related Items.

Re: Picture Library Issue

Posted: 22 May 2018
by ksertkaya
I have 2 different libraries but when I uploaded new document in child table, It seems in main table.


Screenshot_28.png
Screenshot_28.png (2.82 KiB) Viewed 1786 times
Screenshot_27.png
Screenshot_27.png (20.25 KiB) Viewed 1786 times

Re: Picture Library Issue

Posted: 22 May 2018
by Nikita Kurguzov
Dear Sertkaya,
Despite all our efforts, we weren't able to replicate the issue on our end. Can you record a video for us, where you add an item and it appears in the main list instead of child list? If you can, start the video with opening the form, please, that's also an important moment here.