Keep SID the same when importing from development server

More
3 years 4 months ago #123327 by andogro
andogro created the topic: Keep SID the same when importing from development server
Hello
I am working on surveys in a development environment then uploading the .lss to the production server the SID is automatically changed. This is an issue because we have some logic that depends on the SID throughout the file. Is there a way to set the SID to be the same when uploaded?
Thanks

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123328 by gabrieljenik
gabrieljenik replied the topic: Keep SID the same when importing from development server
Instead of being fixed, you can get the SID from the EM .
I am not sure if you can use {SID}.
If not. you can get if from the SGQA variable:
manual.limesurvey.org/Expression_Manager...efits_of_using_EM.3F

Cheers,
Gabriel - www.Encuesta.Biz - Authorized Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?)....[img]

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123336 by jelo
jelo replied the topic: Keep SID the same when importing from development server
Which version of Limesurvey is used? On newer versions you can change the Survey ID when using the copy function. So you first import the .lss file and than you can create a copy with the old surveyid.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123338 by tpartner
tpartner replied the topic: Keep SID the same when importing from development server
As far as I know, the ID should only be automatically changed if a survey with that ID already exists on the production server.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #123339 by jelo
jelo replied the topic: Keep SID the same when importing from development server
The manual way to change the surveyid can be found here:


Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Attachments:
Last Edit: 3 years 4 months ago by jelo.
The following user(s) said Thank You: holch

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123346 by holch
holch replied the topic: Keep SID the same when importing from development server
Hey, that seems to be new! Didn't know that this existed. Thank you Jelo for highlighting this.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123348 by jelo
jelo replied the topic: Keep SID the same when importing from development server

holch wrote: Hey, that seems to be new!

That is quite old. I don't know the buildnumber, but it was already on 2.05+.
Not sure if it was already there, when the COPY feature was introduced.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123357 by holch
holch replied the topic: Keep SID the same when importing from development server
Well, then I just ever saw it or noticed it. Anyway, nice to know.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #123362 by andogro
andogro replied the topic: Keep SID the same when importing from development server
Thanks, copy functionality seems like a useful solution as we have an external xml doc that is running some commands. It is renaming the SID when we import regardless of whether the number existed in the past.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!