iefieldkit icon indicating copy to clipboard operation
iefieldkit copied to clipboard

command idea - scto column sort

Open kbjarkefur opened this issue 6 years ago • 5 comments

If we want to append two SCTO surveys (will be common when we have the best practice survey modules), it is important for functionality that the column order is the same. There is a SCTO default order, but there is no need to stick to that so it is common that they are re-arranged or that extra columns are added. The extra columns can be added to keep notes in or to add multiple languages.

We can create a command that sort a SCTO form in default order.

kbjarkefur avatar Jun 18 '18 19:06 kbjarkefur

I am sure that there might be better way to solve this. Maybe the command should do the appending as well and then we can decide which of the two forms column order to use.

kbjarkefur avatar Jun 18 '18 19:06 kbjarkefur

The main difficulty with this would be to keep the formatting of the excel sheet. That is nothing I know how to make Stata do.

kbjarkefur avatar Jun 18 '18 19:06 kbjarkefur

Given that we would lose the formatting, maybe it would be better to submit this as a feature request to SCTO

kbjarkefur avatar Jun 18 '18 19:06 kbjarkefur

It is possible to do this using the advanced putexcel syntax in Stata 15 and might even be a really nice feature as a way to "clean up" big survey forms to a standardized format even if you are not combining them. It is a bigger lift to think carefully about exactly what the "best" formatting would be, but I think it would be much appreciated if it could be done well.

screenshot 2018-11-14 11 03 17

bbdaniels avatar Nov 14 '18 16:11 bbdaniels

SCTO's sheets has a lot of conditional formatting. So the formatting is updated when you make changes. I do not think we can accomplish the column sorting without screwing this up.

It might be solvable, but I think it is not at the top of our list, and I think the better approach is to just request this from SCTO

kbjarkefur avatar Nov 15 '18 16:11 kbjarkefur