PDA

View Full Version : NetRemote.SendLabel syntax??



Andrew212
July 1st, 2017, 08:51 PM
Hello,

Trying to work out all the basics and struggling with this,

I am trying to display a variable on a button in netremote. Both server and netremote are running local. Girder 6.

I have tried to follow some examples but unsure if things have changed in Girder 6.

Put the following into a scripting action

test = "hello";
print(test);
NetRemote.SendLabel((testing),(test))

But i keep getting the error;

[string "Scripting"]:3: '=' expected near '&'

But this seems identical to all the sendlabel examples I have seen.
What am i doing wrong?

Thank you!!

Edit: looks like i need need nr-feedback.lua or similar? I cant seem to get a copy of this and all the links to Netremote 2 suite are broken!!!! Off to a frustrating start :(


Edit 2: No replies as yet, so I'll reply to myself!! :)
So reading the manual a bit more, it looks like the correct way is now using KVs with girder6. I am guessing that I need to adjust the "caption" field in the button properties. I have tried replacing caption with various strings like "kv.value("label.cap").val" and setting label.cap as a kvs in girder but no luck.

Am I on the right track now?