Find and share HowTos to various installations / configurations!
-
vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
Load any file as panel file (from remote data/event)
Post
by vladimir »
I have this ctrl-code line:
Code: Select all
...
xmlNum = xmlDocumentFromFile(getPath(PANELS_REL_PATH)+"myname.xml", err, errLine, errColumn);
...
It's works correctly on local machine, with local ui/data/event.
How to load this file with the relative path, like a panel (search in all proj_path in config from bottom to top).
-
mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Load any file as panel file (from remote data/event)
Post
by mkoller »
you used getPath() incorrectly.
Use getPath(PANELS_REL_PATH, "myname.xml")
-
vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
Re: Load any file as panel file (from remote data/event)
Post
by vladimir »
My mistake. Big Thanks!