Saving Code Snippets with the Javascript Code Library

Blog



Saving Code Snippets with the Javascript Code Library

A library of code snippets can be very useful to have when developing mobile and web applications in Alpha Anywhere. Templates for if/else blocks, examples for making a call to a RESTful service, regular expressions, etc can all be saved as code snippets using the new Javascript Code Library.

jsCodeLib1

The Javascript Code Library is available anywhere Javascript can be edited in Alpha Anywhere. While in the Javascript editor, click the "Code library" icon to the left of the Action Javascript genie to open the Javascript Code Library.

jsCodeLib2

Highlight the code to add to the library and click the "Add" button (the left-most button at the bottom of the Javascript Code Library dialog.)

jsCodeLib4


Inserting snippets is just as easy. With the Javascript Code Library open, click in the Javascript editor where the snippet should be inserted, then double-click the code snippet in the Javascript Code Library.

jsCodeLib3

In addition to saving and inserting code snippets, the Javascript Code Library includes several other features for locating and managing snippets:

  • Favorite - mark frequently used snippets with the 'Favorite' button

  • Search - use the built-in 'Filter' to find desired snippets

  • Organize - sort the most-used snippets to the top of the list or break snippets into multiple libraries using the 'Manage Code Libraries' tool


To learn more about the Javascript Code Library, check out the video below:

Video - Using the Javascript Code Library

What About Xbasic?


Alpha Anywhere has always had the ability to create code snippets for xbasic. Xbasic code snippets can be organized into their own libraries. To learn more, visit the Alpha Anywhere Help Documentation.
Gartner insights into Building mobile Business Apps - Mobile Optimized Forms
Crossing Database Boundaries: How to use Snapshots to Port Data Between Database Systems

About Author

Sarah Mitchell
Sarah Mitchell

Technical Writer and Documentation Expert at Alpha Software

Related Posts
Integration between Alpha Anywhere and Microsoft Power BI
Integration between Alpha Anywhere and Microsoft Power BI
Are Mobile Development Costs Worth It?
Are Mobile Development Costs Worth It?
The 4 biggest mobile app development trends of 2018
The 4 biggest mobile app development trends of 2018

Comment

Subscribe To Blog

Subscribe to Email Updates