The Net-Brainer

The Net-Brainer (http://forums.netbraintech.com/index.php)
-   NetBrain Product (http://forums.netbraintech.com/forumdisplay.php?f=19)
-   -   NetBrain IE7.0 Qapp API Documentation? (http://forums.netbraintech.com/showthread.php?t=21891)

jimmytootshoes 04-23-2018 05:48 PM

NetBrain IE7.0 Qapp API Documentation?
 
Is there documentation for how to use the built-in Qapp APIs inside of NetBrain IE7?

The on-line help documentation is pretty sparse. It lists the built-in APIs, but doesn't give any examples of use, and doesn't detail supported syntax/usage.

Documentation for a few simple examples would be very helpful. For example, how to use NoteType to AddMessage to just say "Hello World!".

jimmytootshoes 05-02-2018 04:24 PM

Re: NetBrain IE7.0 Qapp API Documentation?
 
1 Attachment(s)
Attached is a sample image I was sent from support. Shows how to use DrawDeviceNote to make a simple "hello world" message.

To use it you can create a Script type of Output from a Table inside the canvas and enter this:

Quote:

DrawDeviceNote($this,"This is note for Test", "Hello World", NoteType.Append)

jimmytootshoes 05-22-2018 06:25 AM

How to use a string and variable in single message note
 
1 Attachment(s)
By default DrawDeviceNote only accepts one value for 'content'. Either a single variable, or a single quoted string.

If you want to use a single message (single line) that includes both a string and a variable, you can concatenate them before you call the function to draw the note.

For example, to draw a note that includes the message of the device name but preface it with text saying "Device Name: " you can use this script:

Code:

notetxt = "Device Name: " + $this
DrawDeviceNote($this, "This is note title", notetxt, NoteType.Append)



All times are GMT -4. The time now is 09:31 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2009 NetBrain, Inc. All rights reserved.