-
December 25th, 2019, 05:31 #1
- Join Date
- Jun 2018
- Posts
- 112
Trying to get the names in a list
I’m having issues getting the values in a master index window list...
I have the windowinstance, and I believe the list path is simply .list for the master index windowclass...
But how do I get the names in the list displayed?
I’ve tried getChildren, getValue of the windowlist
I’ve tried a number of methods... I know it’s probably something easy... I’m just tired... but I would appreciate any assistance if possible.
-
December 25th, 2019, 05:49 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,559
Perhaps you could give some background on what you’re doing?
Most code that iterates over all records in a campaign list actually iterates through the database records as supplied by LibraryData.getMappings call in CoreRPG. There are several examples in 5E ruleset.
Regards,
JPG
-
December 25th, 2019, 15:25 #3
- Join Date
- Jun 2018
- Posts
- 112
I am trying to sort through the list in the spells window to check for a couple spells loaded from my module.
Just adding in automation for a few things... but I need to get the list values... even if the links listed are to the database nodes, I could derive the names easily... I just need to figure out how to get the list values...
Would windowlist.getWindows(true); work?
wondowlist being the control
Hoping that would get a list of the available links, that are currently being displayed, which could be thrown into a ‘for do’ loop and split to sClass, sRecord and then I can get the info from there...
Any input is appreciatedLast edited by Diablobob; December 25th, 2019 at 15:35.
-
December 25th, 2019, 17:22 #4
- Join Date
- Jun 2018
- Posts
- 112
Yup... that works!... thanks!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks