This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Set export option with script
#5
(21.06.2021, 06:42)admin Wrote: You can set the export field via a DB query:
Code:
db:update('objects', { export = 1 }, { id = 1 })
db:update('objects', { export = 1 }, { id = 2 })
db:update('objects', { export = 0 }, { id = 3 })
db:update('objects', { export = 1 }, { id = 4 })

script.reloadbacnet()

Check if you have the latest firmware because there was a bug when the BACnet service stopped working after a certain number of reload calls.

Hi admin,

Would it be possible to "reverse" this function, and make a script that outputs all the objects that's already exported?
The usecase would be when I'll have to mass delete all knx objects and re-import them, I could run the script beforehand, to get all exported objects,
and then easily set them with the script you provided earlier in this thread.

Would be awesome if this functionallity were implemented in LM5. By using for instance the object filter, and filter by exported objects
Best regards
Christian
Reply


Messages In This Thread
RE: Set export option with script - by admin - 21.06.2021, 06:42
RE: Set export option with script - by christian.hegland@caverion.com - 30.05.2023, 09:35
RE: Set export option with script - by admin - 31.05.2023, 06:44
RE: Set export option with script - by admin - 31.05.2023, 11:45

Forum Jump: