January 16, 201213 yr is there a way to SetBaseURL using data stored in a field instead of hard coding it into the script. I have a preferences area and I want to be able to set the base URL from a field in the preferences area. What I have now works fine when I hard code it but for some reason I put the same data in to a field and it does not work.
January 17, 201213 yr I usually use a custom function to store the preference as it seldom changes. and then reference the CF in all the scripts.
January 17, 201213 yr You can also use a global field on your layout, if you want to have it there. I do agree with Ocean West that the custom function is more elegant, however.
January 17, 201213 yr You only need to call it once per session. Put it in your Open script and reference a pref field for the path (make sure you're in the correct context for the pref field).
January 17, 201213 yr Author bcooney when you say enter the path in my pref field. I have tried http://localhost:8020/SuperContainer/Files/ I have also tried SCSetBaseURL("http://localhost:8020/SuperContainer/Files/" ) My script step is Set Variable [$result; Value: SCSetBaseURL(Pref_field)] Just for testing I have tried to just set a variable to see if it will pull the data from the field and that works ok.
January 17, 201213 yr It's in the documentation - http://www.360works.com/plugins/SuperContainer/plugin-documentation.html#SCSetBaseURL
January 18, 201213 yr Charlie -- If you still need assistance with setting up the baseURL for your solution after reading over the documentation, I would be happy to help and chat with you over Skype or over the phone by calling the office number below. Regards,
Create an account or sign in to comment