2018-10-19 11:11 AM - last edited on 2024-09-09 11:05 AM by Doreena Deng
2018-10-19 11:56 AM
Tsepov wrote:You have to write a different kind of add-on (.GDX) with a separate dev-kit. Add-ons developed with the GDL dev-kit are very limited and can't interact with the project or communicate with other add-ons. We've developed some of these in the past, but trying to phase them out now because they're not very powerful and can be a support nightmare. We only have one left in active use.
In GDL object I need to get any calculations from my add-on.
Can I write in GDL object any like this:
n = APPLICATION_QUERY ("My add-on name", "my_function",var1, var2).
What I must write in my add-on for process this request?
2018-10-19 02:04 PM
2018-10-19 03:48 PM
2018-10-25 12:23 PM
2018-10-25 01:40 PM
rrr = request("<name_of_gdx>", "<name_of_function>", receivedValue)Although for an i/o GDX you might need to use open:
ch = open("<name_of_gdx>", "<file_name>", "<parameters>"))You can debug into a GDX just like any other kind of add-on, setting breakpoints etc.
2018-10-25 06:39 PM
32500 ACNF BEGIN 72, 0, /* sizeof (ACNF)(4) */ ACNF_VERSION, 0, /* acnfVers (4) */ PlatformCode, 0, /* platform (4) */ 0, 0, /* disableFlags (4) */ IoGDLMethod, 0, /* method (4) */ Vers_IoGDLMethod, /* methodVers (2) */ 0, /* reserved (2) */ PersistentFunction, 0, /* methodFlags (4) */ "date", /* reserved (4) */ "offs", /* reserved (4) */ "slen", /* reserved (4) */ 0, 0, /* 0 (4) */ "REPORT\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" /* module name (32)*/ END4) Therefore, in GDL, the basic example should be referred to as “REPORT”. Here is an example of my debugging master script, in the library element
dstr = "none" val = 0 eggs="eggs-input" spam="spam-input" ch = OPEN ("REPORT", "spam-open", "eggs-open") !n = INPUT (ch, eggs,spam,val) n = INPUT (ch, 1,1, val) OUTPUT ch, "spam-output", "eggs-output", "Hello World!" CLOSE (ch) hotspot2 0,0 text2 0,0,val
2018-10-25 09:13 PM
Ralph wrote:Perhaps it would be necessary to put the text of the calling from the GDL in the documentation.
Try using a request, e.g.rrr = request("<name_of_gdx>", "<name_of_function>", receivedValue)Although for an i/o GDX you might need to use open:ch = open("<name_of_gdx>", "<file_name>", "<parameters>"))You can debug into a GDX just like any other kind of add-on, setting breakpoints etc.
2018-10-25 09:24 PM
ufo_ru wrote:Yes, the example module is really named "REPORT".
32500 ACNF
BEGIN
72, 0, /* sizeof (ACNF)(4) */
ACNF_VERSION, 0, /* acnfVers (4) */
PlatformCode, 0, /* platform (4) */
0, 0, /* disableFlags (4) */
IoGDLMethod, 0, /* method (4) */
Vers_IoGDLMethod, /* methodVers (2) */
0, /* reserved (2) */
PersistentFunction, 0, /* methodFlags (4) */
"date", /* reserved (4) */
"offs", /* reserved (4) */
"slen", /* reserved (4) */
0, 0, /* 0 (4) */
"REPORT\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" /* module name (32)*/
END