Quick question...
Is there a tutorial that actually walks through getting the record lock icon working?
Printable View
Quick question...
Is there a tutorial that actually walks through getting the record lock icon working?
Ill upload a video or sample RWP file over the weekend.
Thanks mate! That would be awesome!
Try this. Its a simple RWP inside a ZIP.
Hello,
i set the "Source" path of a subwindow i defined within a charactersheet to a special place, but the values of the field controls of the instanciated window class will be still stored on the root node of that charsheet and not as is expected under the "subnode" i did defined with "Source":
Quote:
...
<sheetdata>
<subwindow name="SubWindow1" source="stats">
<bounds>154,196,200,100</bounds>
<class>char_stats</class>
<activate />
<fastinit />
</subwindow>
</sheetdata>
...
Quote:
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<windowclass name="char_stats">
<placement>
<size height="67" width="195" />
</placement>
<sheetdata>
<number name="NumberField1">
<frame>
<name>fielddark</name>
</frame>
<bounds>24,26,60,30</bounds>
</number>
<number name="NumberField2">
<frame>
<name>fielddark</name>
</frame>
<bounds>99,21,60,30</bounds>
</number>
</sheetdata>
</windowclass>
</root>
Quote:
<charsheet>
<id-00001>
<NumberField1 type="number">2</NumberField1>
<NumberField2 type="number">2</NumberField2>
</id-00001>
</charsheet>
But expect:
What i am doing wrong ?Quote:
<charsheet>
<id-00001>
<stats>
<NumberField1 type="number">2</NumberField1>
<NumberField2 type="number">2</NumberField2>
</stats>
</id-00001>
</charsheet>
I never use a Source in my Subwindows.
That's also news to me.
Normally, you'd set the wanted db path as source like this for every field.
Code:<number name="NumberField1" source="stats.numberfield1>
...
<number name="NumberField2" source="stats.numberfield2>
I am not sure, but i saw in one of the last release notes that the subwindow object was extended with the "setValue" method with which you could set the subwindow datasource by scripting.
So maybe a source for a subwindow is a new feature at all ?
I like to implement a list of character statistics (each having the same 4 numberfield values) with subwindows instead of a windowlist because so i see the list in the ruleset wizard editor and also be more flexible to arrange the layout for them.
The database node for that statistic should be build like that:
charsheet.id-00001
stats
statistic-name-1
current
max
used
tmp
statistic-name-2
current
max
used
tmp
...
So i thought if i set the source of subwindow "name-1" to "stats.statistic-name-1" and so on, i would get this, but this is not the case. Maybe the "Source" tag for subwindows work in other context or i did something wrong or it does not work as it should be ...
I think it does not work as you think it is does. It looks like it is an absolute path not a relative path.
Yeah, i will search the forum for an example of a subwindow with a datasource defined to verfify that. Thanks for your tips!