

Raises an event when the webApp goes Online of Offline.Ĭan ONLY be used in Main! 17. BANano_Online() and BANano_OffLine() events for assets that are not in the /Files folder. Prevents the Transpiler from deleting this folder.

DoNotDeleteFolderOnCompilation( fullPath as String) New property, can contain the Target description on which the event was triggered. Returns the next auto incremented value that will be used 14. BANanoSQL.NextInserted( tableName As String, FieldName as String) NOTE:such a javascript file can NOT use window or document or any other reference to the DOM as a Service Worker can not access this! 13. 6FileSW( AssetFileNameOrUrl As String)ĭoes the same a AddJavascriptES6File() but will write in also in the ImportScripts() method in the Service Worker file. These javascript files will NOT be merged!ġ2. If it is a javascript file used in a BANanoLibrary, it MUST be added in the app explicitly! NOTE:such a javascript file can NOT use window or document or any other reference to the DOM as a Service Worker can not access this! ( AssetFileNameOrUrl As String)ĭoes the same a AddJavascriptFile() but will write in also in the ImportScripts() method in the Service Worker file. BANanoGeoLocation.GetCurrentGeoLocation() renamed to BANanoGeoLocation.GetCurrentPosition() 11. BANano.Spread(variable as Object) as ObjectĪdds the spread operator (three dots) before the variable.įor more info on the Javascript Spread operator: 10. The Description will be added to the generated. Method to raise an event to a ABM, maximum two params because B4J only supports this maximum. BANano.RaiseEventToABM(eventName As String, eventParamNames as List, eventParamValues as List, Description as String) New transpilation to create ABMBANano b4xlib libraries for ABMaterial. BANano.BuildAsB4XLibForABM(LibraryVersion As String) This part of the engine has been rewritten.

In some rare cases, the Service worker did not included some needed Javascript files. Fixes in how the Service worker handles additional Javascript Files

XOJO PASS A CONTROL AS A PROPERTY FULL
Optimisations saved to fileĪs the log only shows the first x of optimizations, the full list is now saved in OPTIMISATIONS.txt 6. If a favicon.ico is found in the /Files folder, it is used instead of the default BANano one. BANano.CreateElement(Tag as String) As BANanoElementĬreates a BANanoElement, not attached to something 4. BANano.DeepClone(Obj as Object)ĭeep Clones an object (e.g. BANano.SetTabNotification(number As String)Īdds a notification number to the browsers tab. b4xlib libraries, writing the ‘glue’ between ABM and BANano, that would be a great asset to add features to ABM!Ĭheck out point 7 for more info on how it is done!Ĭhanges: 1. Hence this new idea came up: If BANano could generate.
XOJO PASS A CONTROL AS A PROPERTY CODE
What if we could use BANano generated code IN ABMaterial? For new projects, we mostly use a BANanoServer instead of an ABMServer, but we still have many ABM apps running and continue to write extra functionalities to those apps. But sometimes we just miss that extra BANano can do on the Browser side. In my day job at OneTwo, we use ABM in most of our projects. But from that came the idea to write a full blown true B4J to JavaScript Transpiler and BANano was born: (Thinking in retrospect, B4JS in ABM may have been a poor choice of words, as BANano covers much more that term) However, because of the design of ABM, B4JS could never reach its full potential. IDECmmentĪdded to comply with the latest version of B4JĪs some may know, ABMaterial (ABM) has some basic JavaScript functionality build-in called B4JS. In each call to an ABMBANano library in ABM, you must pass the WebSocket (ws) in the method as the first parameter.Ģ. (Call this method in ConnectPage() to set the WebSocket) has to be removedī. You will have to recompile your existing ABMBANanoLibraries with this new version and make the changes in the calling ABM app described below:Ī. So as soon as two or more users accessed the page, the previous ones broke the connection. It only worked for ONE instance of the page. I had to find this out myself the hard way, but there was a major flaw in the generation of the ‘glue’ code: ABMBANano Libraries losing Websocket connection IMPORTANT! Do NOT use v6.57 anymore if you are using it to make ABMBANanoLibraries!ġ.
