Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/2639 form export full (connect #2639) #2851

Merged
merged 12 commits into from Sep 14, 2018

Conversation

stellanl
Copy link
Contributor

@stellanl stellanl commented Sep 10, 2018

Before the PR (what is the issue or what needed to be done)

Form export was just meant for a paper form

The solution

Add another sheet that shows details for all groups and questions of entire form as a table.

Screenshots (if appropriate)

Checklist

  • Connect the issue
  • Test plan
  • Copyright header
  • Code formatting
  • Documentation

@valllllll2000
Copy link
Contributor

Please update copyright of files and check codacy errors

private int createFullHeader(HSSFSheet sheet, int startRow, HSSFCellStyle style) {
int r = startRow, c = 0;
HSSFRow row = sheet.createRow(r++);
//createCell(row, c++, "Form version", style);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we maybe remove the commented out code?

}

/**
* creates a cell in the row passed in and sets the style and value (if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, the comment should explain more what it does with width

createCellBlock(row, c += 3, "Numbers", style, 4); // 4 wide
createCellBlock(row, c += 4, "Options", style, 3); // 3 wide
createCellBlock(row, c += 3, "Geolocation", style, 2); // 2 wide
createCell( row, c += 2, "Cascade", style);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there too much spacing here after '('

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted it to align vertically so you can see the pattern of it.

createCellBlock(row, c += 3, "Geolocation", style, 2); // 2 wide
createCell( row, c += 2, "Cascade", style);
createCellBlock(row, c += 1, "Geographic area", style, 3); // 3 wide
createCell( row, c += 3, "Caddisfly", style);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

@valllllll2000 valllllll2000 merged commit 594428b into develop Sep 14, 2018
@valllllll2000 valllllll2000 deleted the issue/2639-form-export-full branch September 14, 2018 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants