Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Keep SID the same when importing from development server

  • andogro
  • andogro's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #123327 by andogro
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
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 3 months ago #123328 by gabrieljenik
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:
www.limesurvey.org/manual/Expression_Man...efits_of_using_EM.3F

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
More
9 years 3 months ago #123336 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #123338 by tpartner
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.
The topic has been locked.
More
9 years 3 months ago - 9 years 3 months ago #123339 by jelo
The manual way to change the surveyid can be found here:


The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 9 years 3 months ago by jelo.
The following user(s) said Thank You: holch
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #123346 by holch
Hey, that seems to be new! Didn't know that this existed. Thank you Jelo for highlighting this.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
9 years 3 months ago #123348 by jelo

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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #123357 by holch
Well, then I just ever saw it or noticed it. Anyway, nice to know.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • andogro
  • andogro's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #123362 by andogro
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.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose