SpreadJS 12 - Spread.sheets is not distributed as JQuery plugin

0
0

Hi

Upgrading the SpreadJS component to version 12, we got an issue when try to embende in a WiseJ.widget … So we contact Grapecity support to get an answer in how come to initialize the component (in the wrap) … We got these answer :

————————————————————————————————————————————————————-
From version 10+, Spread.sheets is not distributed as JQuery plugin so we need to use the Workbook() constructor to create a new workbook. Please refer to the following code snippet:
let workbook = new GC.Spread.Sheets.Workbook(document.getElementById('spreadContainerID'));
Also, refer to the following resources to get started with the newer spread version and let us know if you face any issues:
—————————————————————————————————————————————————————
Follow the project with spreadJS v 12.0.10
But it do not works as expected (how in SpreadJS version 9) …  https://wisej.com/support/question/wisej-integrated-with-componentone-spreadjs
Can you help me ? It´s the diferencial of the projet to have sheet with financial strategies … we could use as HTML pages, but the results would not be the same, as WiseJ pass a professional impression to web app.
Regards
Marcelo Blank
  • You must to post comments
0
0

Marcelo,

at what scope is your function defined ?
I think you should just try calling it without “this.”

See the call to the GC class.

Hope that helps.

Best regards
Frank

 

  • You must to post comments
0
0

Frank,

Is there a way to use external JS files for functions inside the Widgets ?

Can you show me how , please … I couldn´t get access to the function …

Regards,

Marcelo

 

 

.fctbNone{ color:#000000; }
.fctbStyle2{ color:#008000;font-style:oblique; }
.fctbStyle0Style2{ color:#2e75b6; }
.fctbStyle1Style2{ color:#a31515; }
.fctbStyle0Style1Style2{ color:#2e75b6; }
.fctbStyle0{ color:#2e75b6; }
.fctbStyle3{ color:#000000; }
.fctbStyle1{ color:#a31515; }



 
this.init = function(options) {

    if (!wisej.web.DesignMode)
    {  
        var spread = new GC.Spread.Sheets.Workbook(this.container, {
            sheetCount: 1
        });
        
        this.importaTemplate(); <<--function in external JS File referenced in packages ..
    
        });

   }

}

 

 

  • You must to post comments
1
0

Hi Marcelo,

I quickly tested with spreadJS 12 and it worked just fine:

jspread

These are the packages I have used:

package5.Name = "jquery182";
package5.Source = "http://code.jquery.com/jquery-1.8.2.min.js";
package6.Name = "JSpread";
package6.Source = "https://cdn.grapecity.com/spreadjs/hosted/scripts/gc.spread.sheets.all.12.0.1.min" +
 ".js";

And this is the InitScript:

this.init = function(options) {

    if (!wisej.web.DesignMode)
    {
        var spread = new GC.Spread.Sheets.Workbook(this.container, {
            sheetCount: 1
        });
    }

}

Hope that helps.

Best regards
Frank

Attachment
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.