Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4691 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

I usually use a custom function to store the preference as it seldom changes. and then reference the CF in all the scripts.

Posted

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.

Posted

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).

Posted

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.

Posted

It's in the documentation - http://www.360works.com/plugins/SuperContainer/plugin-documentation.html#SCSetBaseURL

Posted

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,

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.