purtuga / SPWidgets

Sharepoint Custom UI Widgets
74 stars 34 forks source link

SPControlUpload Dynamic folderPath #71

Open EGLimon opened 7 years ago

EGLimon commented 7 years ago

Hi again,

thanks for the help with the other thread, now i have a diferent question, is there a way to change the folderPath after the initialisation? my problem is that i have my var folderPath=""; , then depending on some combobox i create a folder and update my var folderPath = SPsite + library+ FolderName, i have to initialize the control again after the var update?

Thanks in advance

purtuga commented 7 years ago

No, there is no way to do that today. Your approach is correct: You have to destroy the current upload widget and re-instanciate a new one with the new folder.

EGLimon commented 7 years ago

Thanks for the help,

Sadly i have to find another way to use it since the control apparently needs an existing folder, i create the folder in the same code before the upload and for the time that is initialize the folder doesn't exist so i cant choose a file.

purtuga commented 7 years ago

Yes, it sounds like you need a custom solution... Good luck.


Paul T

On Thu, Nov 3, 2016 at 11:58 AM, EGLimon notifications@github.com wrote:

Thanks for the help,

Sadly i have to find another way to use it since the control apparently needs an existing folder, i create the folder in the same code before the upload and for the time that is initialize the folder doesn't exist so i cant choose a file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/purtuga/SPWidgets/issues/71#issuecomment-258186280, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ6tNX-VZxfdBA2_Np51b6SUY0_WNa1ks5q6gSMgaJpZM4KlZRb .