-
Notifications
You must be signed in to change notification settings - Fork 51
not able to pass site url for "User Methods" #8
Comments
Hi @YakQin, I thought all users existed on the server, so regardless of URL, you'd get the same info...? |
Hello, I first create everything locally (on by desktop), once I finished the app, I then upload all files to a sharepoint folder. Before I upload the files, I have to use the sharepoint url to interact with sharepoint. So my request is whether we can add the option to give the full sharepoint url then we can use the library locally but not in sharepoint environment. |
Oh yeah, that makes perfect sense. :-) I'll get the |
Hi @YakQin The user() method now accepts sprLib.user({ baseUrl:'/sites/dev/sandbox' }).info()
.then(objUser => console.log(objUser)) |
@gitbrent |
Hello,
I looked into the source code too but I did not find a way to pass the site url for "User Methods". I usually complete the application (js, css, html) locally and then when everything is fine I upload the package to sharepoint folder then users can access the .aspx pages (changed extension from html to aspx) So I always use the complete sharepoint site url.
So if you can set global var for the baseUrl for all functions or at least for the User Methods then it will be much more useful.
Currently I use the original Ajax call for all the projects
The text was updated successfully, but these errors were encountered: