rodyon
01/27/2023, 6:04 PMrodyon
01/27/2023, 6:13 PMrodyon
01/27/2023, 6:13 PMCharles Robertson
01/27/2023, 6:23 PMCharles Robertson
01/27/2023, 6:26 PMSpreadsheetAddColumn()
https://github.com/charlesr1971/cfspreadsheet-lucee-5/blob/7c3b750c57144a2846f837e8acbf38a0ad1e6ee0/lar/org/cfpoi/spreadsheet/Spreadsheet.cfc#L1302bdw429s
01/27/2023, 9:04 PMinstall
to pull the Lucee extension from ForgeBox is
• if the CommandBox server is already defined, it will put the lex file in Lucee's deploy
folder automatically like you want
• If you run the install FIRST before ever starting the server, CommandBox won't know what to do with the lex so it will just dump it in the current working directory, which won't install it.bdw429s
01/27/2023, 9:05 PMLUCEE_EXTENSIONS=037A27FF-0B80-4CBA-B954BEBD790B460E
env var, which Lucee will pick up automatically when it stats and it will download the lex then.bdw429s
01/27/2023, 9:05 PMdanmurphy
01/28/2023, 12:08 AMCharles Robertson
01/28/2023, 7:13 AM<cfspreadsheet />
Now, this may not be a big deal for your project, but we are in the middle of a massive migration, which uses the tag extensively.
Scripting support:
Also, we found that cfsimplicity failed in Lucee, straight off the bat, whereas cfspreadsheet
just parsed the ACF spreadsheet scripting syntax, without any trouble. We didn’t really analyse where the issue was, we just ran 5 or 6 templates/CFCs that contained spreadsheet syntax and cfspreadsheet
successfully handled all of them, even after we added the necessary, component path syntax, before the spreadsheet methods, in cfsimplicty
So, I am not entirely sure that the scripting syntax in cfsimplicity matches the current ACF directive? But I cannot really comment on this, with any confidence, as we didn’t have time to do a deep dive into the pain points.
Installation:
Installing the extension is not a big deal. Just log into the administrator and install. In fact, I would say it’s easier to install the extension than add the necessary mapping and paths that cfsimplicity requires?
Usage:
This is how I see it.
If you are doing an ACF to Lucee migration, you might find cfspreadsheet
is a better option.
If you are building a new application from scratch, you might find cfsimplicity is better?
And, hey, you could use both! 👊
Editing:
The more difficult prospect is trying to edit the extension.
But that’s for me to worry about. 😀Charles Robertson
01/28/2023, 8:02 AMcfspreadsheet
extension. Once we committed to cfspreadsheet
, we found that we got about an 90% success rate with all our individual instances of spreadsheet syntax, in our templates/CFCs.
The main offenders were:
SpreadSheetNew()
SpeadSheetAddRow()
The issues here, turned out to be minor. It seems that a couple of small adjustments in the way the params are handled, resolved any issues.
For instance, the column param in:
SpeadSheetAddRow()
Cannot be zero in Lucee. It must be one or greater.
So, not even cfspreadsheet
is 100% effective, when carrying out an ACF to Lucee migration. 😬cfsimplicity
01/31/2023, 2:43 PMI am not entirely sure that the scripting syntax in cfsimplicity matches the current ACF directive?spreadsheet-cfml was never meant to support the ACF syntax directly, although the function calls are similar enough to be easily adapted. However it is intended to match and exceed the functionality available in both ACF and the Lucee extension, and fix issues.
I would say it’s easier to install the extension than add the necessary mapping and paths that cfsimplicity requires?spreadsheet-cfml doesn't require a mapping.
If you are doing an ACF to Lucee migration, you might findis a better option.cfspreadsheet
If you are building a new application from scratch, you might find cfsimplicity is better?Totally fair!