Thread: Windowlist - change databasenode
-
March 14th, 2024, 16:22 #1
Windowlist - change databasenode
I have a problem to solve for which I don't know if there is a solution. I have a structure like this:
Code:<my-firstlevel-tag> <id-00001> ... <my-secondlevel-tag> <id-00001> ... </id-00001> <id-00002> ... </id-00002> ... </my-secondlevel-tag> </id-00001> <id-00002> ... <my-secondlevel-tag> <id-00001> ... </id-00001> <id-00002> ... </id-00002> ... </my-secondlevel-tag> </id-00002> ... <my-firstlevel-tag>
In a window I have a windowlist (myList) which has this databasenode --> my-firstlevel-tag.id-00001.my-secondlevel-tag. If I change
the database to my-firstlevel-tag.id-00002.my-secondlevel-tag using myList.setDatabaseNode( ... ) I get weird results. The list does
not update correctly and the elements multiply.
What am I doing wrong and what else should I do to make it work properly?
-
March 15th, 2024, 12:09 #2
-
March 15th, 2024, 19:24 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,019
You can not switch the database node on controls other than windowlist or subwindow.
Regards,
JPG
-
March 18th, 2024, 04:49 #4
- Join Date
- Sep 2020
- Location
- Ballston Lake, NY
- Posts
- 710
Can you give us more context?
If we know what you're trying to accomplish, someone is likely to have an idea.
-
March 30th, 2024, 16:17 #5
What I'm trying to do is to show in a form values (that can be changed) starting from a selection (windowlist, combo, whatever...)
As Moon as said I can use a subwindow, but I do not find any setDatabaseNode for it. How can I change it?
Maybe it's possible, with the setValue, right?
-
March 31st, 2024, 00:53 #6
As per the subwindow documentation, setValue sets the windowclass and database path: https://fantasygroundsunity.atlassia...indow#setValue
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 31st, 2024, 18:53 #7
Thread Information
Users Browsing this Thread
There are currently 3 users browsing this thread. (0 members and 3 guests)
Bookmarks