PDA

View Full Version : Filtering Data within a Windowlist



MadBeardMan
May 8th, 2016, 18:05
Hello,

Right - I've hit a bit of a logger head.

I've built weapon, armour and general equipment for the TravellerRPG ruleset i'm working on, and have it listing and displaying super nice.

Now I'm linking those records to the Character Sheet and have hit an issue....

When armour or weapons get dragged to the Character Sheet, the item dragged appears in both lists, so Armour & Weapons in Weapons and the same in Armour.

Now I'd hoped I could filter this, as I have a record type of 'armour' for Armour and 'weapon' for Weapo


<windowlist name="weapons">
<anchored>
<top parent="columnanchor" anchor="bottom" relation="relative" offset="0" />
<left />
<right />
</anchored>
<datasource>.equipmentdata</datasource>
<class>char_weapon</class>
<sortby><control>name</control></sortby>
<filter>
<control>weapon</control>
<field>recordtype</field>
</filter>
<allowdelete />
<noscroll />
<script file="campaign/scripts/char_weaponlist.lua" />
</windowlist>
How the filter isn't working.... so I'm a bit lost.

Any help would be ace, cheers
Col

damned
May 8th, 2016, 23:48
It sounds like the issue is both of your lists are writing to the same database node so they are both displaying the data....?

MadBeardMan
May 8th, 2016, 23:50
It sounds like the issue is both of your lists are writing to the same database node so they are both displaying the data....?

Yep, it's all within the same nodes within the DB... but I've solved it, well I think so... will report back when I have.