-
Notifications
You must be signed in to change notification settings - Fork 284
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
Empty formula cells in readonly mode #575
Comments
We are happy to merge your pull request when you implement your required feature. |
I actually found 2 potential changes I could make implement this, but I wanted to ask for a second opinion on this because it's a choice between a safe (for existing projects) option that is added on top of existing stuff and a change in general rule, that seems more intuitive to use, but will break projects relying on existing rule. The problem:
Potential solutions
|
I generate excel files and allow users to download them from webdynpro application (download from external source). Opening files like that in read-only mode (default setting in our company for all external office files) prevents the formula cell from being calculated and getting a value, which leaves it blank.
To test this you need a abap2xlsx generated excel file with a simple formula like "if(1=1, "true", "false")".
Use any method to open that file in read only mode. Another test option (less reliable) is open the generated xlsx (with a formula) and try to close it if you are prompted to save the file, without having changed anything, it means formula updated some fields.
I checked workbook.xml for both MS Excel variant (formed manually) and abap2xlsx variant of the same form. Formulas formed with MS excel contain both the formula and a value in a cell (default use case with only 1 cell), however forming it using abap2xlsx only leaves formula field. I tried inputting the value portion of the cell manually into workbook.xml and that worked.
Is there any chance we can hope for a method to set formula with initial value specified? In most cases I can calculate the initial value before writing it and I can actually specify it right away, but in others it would be nice to write: "Open in edit mode to calculate" instead of having a blank cell.
The text was updated successfully, but these errors were encountered: