barchiel33 Posted October 16 Share Posted October 16 I was wondering if anyone has come up with a way to automatically update a Javascript script across multiple reports from a single source? So, for example, if the "current" version of a shared Javascript script was stored as a .js or .txt file on Sharepoint, is there a way to pull that file into a report and replace the existing instance of the script the file contains? I can see how to do the "replace existing instance" part, but I'm stumped on the file pull part. I think I could figure out how to do it using a mapped network drive, but that's not a viable solution since the script is meant to function on multiple different users accounts. Link to comment Share on other sites More sharing options...
David Boot-Olazabal Posted Friday at 06:44 AM Share Posted Friday at 06:44 AM Hi barchiel33, We are looking into your question and try to come back to you as soon as possible. Kind regards, David Link to comment Share on other sites More sharing options...
barchiel33 Posted Tuesday at 02:06 PM Author Share Posted Tuesday at 02:06 PM Hello @David Boot-Olazabal, Thank you for looking into this, just wanted to check if there was any update? Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted 18 hours ago Share Posted 18 hours ago Hi @barchiel33 To confirm, Do you know already how to achieve this from a .js or .txt file located in a local folder? You are trying to do the same thing from Sharepoint? To automate that process, are you using (or planning to use) an IronPython script with the Application Profiler? Thanks for your inputs Link to comment Share on other sites More sharing options...
barchiel33 Posted 15 hours ago Author Share Posted 15 hours ago Hello @Olivier Keugue Tadaa! 1. I do know how to achieve this with a txt file (haven't tried with a js file) from a local folder, since that doesn't require authorization. However, I'm not sure if the way I'm doing it is super efficient, so I would be open to suggestions on ways to do that as well. Yes, I'm trying to accomplish it via Sharepoint. 2. I was using Ironpython but I haven't used the Application Profiler (as far as I'm aware, that tool isn't enabled by the company I work for, but I could be wrong. I don't have administrator authority.) Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted 5 hours ago Share Posted 5 hours ago (edited) Could you please have a look at this article recommended by my colleague @Jose Leviaguirre? The way you access the script content (.js or .txt) itself should be handled by your Python code Edited 5 hours ago by Olivier Keugue Tadaa Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now