charlie649 Posted January 16, 2012 Posted January 16, 2012 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.
Ocean West Posted January 17, 2012 Posted January 17, 2012 I usually use a custom function to store the preference as it seldom changes. and then reference the CF in all the scripts.
Agnes Riley Posted January 17, 2012 Posted January 17, 2012 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.
bcooney Posted January 17, 2012 Posted January 17, 2012 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).
charlie649 Posted January 17, 2012 Author Posted January 17, 2012 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.
bcooney Posted January 17, 2012 Posted January 17, 2012 It's in the documentation - http://www.360works.com/plugins/SuperContainer/plugin-documentation.html#SCSetBaseURL
ooparah Posted January 18, 2012 Posted January 18, 2012 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,
Recommended Posts
This topic is 4691 days old. Please don't post here. Open a new topic instead.
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