Sample code and templates

Follow

Comments

34 comments

  • Avatar
    Guillermo Padilla

    Hi, you can add there the javascript that you need, that function must be provided by your application.

    0
    Comment actions Permalink
  • Avatar
    David, Liu

    Hello, I am working my FSP, and I have installed a project with JAVA code. When I integrate with beefree, I got the error message System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) . Any update for this? I cannot get detail message. I have compared the response with your definition, they are the same. I am pending on this for a long time. is there something I need to take care? such HTTP header ......

    0
    Comment actions Permalink
  • Avatar
    silas

    Hi Guys,

    I'm trying to add a save function outside the BeePlugin object.
    Can someone help me?

    This is what i tried, but the beeInstance is undefined;

    var beeInstance = null;

    // Call create method and pass token and beeConfig to obtain an instance of BEE Plugin
    BeePlugin.create(JSON.parse(token), beeConfig, function (beePluginInstance) {
    // Call start method of bee plugin instance
    if (data) {
    beeInstance = beePluginInstance;
    beeInstance.start(data);
    beeInstance.save();
    }
    });

    $('.bee-save').click(function(){
    beeInstance.save();
    });

    0
    Comment actions Permalink
  • Avatar
    silas

    fixed the previous post

    $(function (scope) {
    self = scope.beeFree = {};

    // Call create method and pass token and beeConfig to obtain an instance of BEE Plugin
    BeePlugin.create(JSON.parse(token), beeConfig, function (beePluginInstance) {
    // Call start method of bee plugin instance
    if (data) {
    self.beeInstance = beePluginInstance;
    self.beeInstance.start(data);
    self.beeInstance.save();
    }
    });

    $('.bee-save').click(function(){
    self.beeInstance.save();
    });

    });

    but here is my second question, trying to make a "save and close" button.
    How can i let the script wait untill bee finished saving before the closing happends?

    self.beeInstance.save()
    // wait until saving process finished
    beeCloseCallback();

    0
    Comment actions Permalink

Please sign in to leave a comment.