Results 1 to 9 of 9

Thread: from own javascript to function in Studio

  1. #1
    Join Date
    Aug 2021
    Posts
    20

    Default from own javascript to function in Studio

    I am looking for information about using own javascript and make call back a function in the studio code.

    For example: I want to use a opensource javascript library for a calendar.
    - When someone wants to edit an event, i want to call a function within the studio code to edit this event
    Or
    - If the user what to 'Drag-and-drop' an event to another day, i have to call a function in the studio code to move this event

    Has someone figured out how to do this? Maybe with an example?

  2. #2
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: from own javascript to function in Studio

    the best way to do this is by creating a DataFlex wrapper for the javascript control

    There is a section in the help titled "Building Custom Controls" that will show step by step how to do this

    it does require some Javascript as well as DF knowledge but it isnt all that complicated
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  3. #3
    Join Date
    Aug 2021
    Posts
    20

    Default Re: from own javascript to function in Studio

    Thanks!

    I had found information about using this 'Building Custom Controls', for google chart. https://dataflex.wiki/index.php?titl...ataFlex_WebApp
    But i hadnt found the part about events...


  4. #4
    Join Date
    Feb 2009
    Location
    Hengelo (NL)
    Posts
    1,891

    Default Re: from own javascript to function in Studio

    There is an online course on custom controls as well: https://learning.dataaccess.com/cour...stom-controls/

    And a side note: maybe the scheduler library fits your needs. https://learning.dataaccess.com/cour...duler-library/

  5. #5

    Default Re: from own javascript to function in Studio

    FWIW, here's an example of a DataFlex wrapper for Google Charts, in case you need something to experiment with:

    https://dataflex.wiki/index.php?titl...ataFlex_WebApp

    edit Never mind, you already found that one.
    --
    Wil
    Last edited by wila; 30-Nov-2021 at 11:58 AM.

  6. #6
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: from own javascript to function in Studio

    look under Building Custom Controls and then "Communication". there is a bit on "Calling the Server"
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  7. #7
    Join Date
    Aug 2021
    Posts
    20

    Default Re: from own javascript to function in Studio

    We know the library of Scheduler. But this is not working like we need. The scheduler isnt suitable for our customers

  8. #8
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: from own javascript to function in Studio

    not sure what features you need. We are using the Syncfusion controls
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  9. #9

    Default Re: from own javascript to function in Studio

    Agree with Mike on SyncFusion.
    Have wrapped a number of SyncFusion controls for customers.
    One of those is available here: SyncFusion Library

    Would love to expose more functionality for DataFlex developers (preferably as open source, so everyone benefits)

    --
    Wil

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •