We currently have a number of live Ebase forms linked into our website.
Within Ebase we have a number of development forms, which can also be used externally if you happen to stumble across the correct URL.
Would it be possible to mark a development form as non-live so that it cannot be seen externally within what is our LIVE Ebase forms deployment, or would we need to migrate all the dev work from our live deployment into our test non live installation that has no route to the outside world?
Add a feature to mark a form as NON-live
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 201
- Joined: Fri Dec 20, 2013 1:29 pm
- Location: Dartford Borough Council
- Contact:
-
- Moderator
- Posts: 416
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Re: Add a feature to mark a form as NON-live
Hi Neil,
At present there is no way to do this from on a form.
I think the best option for you is to set a java System property with a flag at startup on the server
-Ddevelopment.mode=true
Then implement a BEFORE form event on any forms that you do not want accessed in a LIVE environment and check for this flag:
Kind regards
Steve Upton
At present there is no way to do this from on a form.
I think the best option for you is to set a java System property with a flag at startup on the server
-Ddevelopment.mode=true
Then implement a BEFORE form event on any forms that you do not want accessed in a LIVE environment and check for this flag:
Code: Select all
var devMode = isDevelopment();
if(!devMode)
{
form.gotoForm("MY_HOME");
}
function isDevelopment()
{
return "true" == java.lang.System.getProperty("development.mode");
}
Steve Upton
0 x
-
- Ebase User
- Posts: 201
- Joined: Fri Dec 20, 2013 1:29 pm
- Location: Dartford Borough Council
- Contact:
Re: Add a feature to mark a form as NON-live
Thanks for the reply Steve,
Looks like a way forward.
We have a number of forms that use backend system integration, these we would want to disable if this backend system was down for maintenance.
many thanks
Neil
Looks like a way forward.
We have a number of forms that use backend system integration, these we would want to disable if this backend system was down for maintenance.
many thanks
Neil
0 x
Who is online
Users browsing this forum: No registered users and 1 guest