-
July 1st, 2022, 03:41 #851
Quick question...
Is there a tutorial that actually walks through getting the record lock icon working?--
I'm so bassic
-
July 1st, 2022, 08:01 #852
Ill upload a video or sample RWP file over the weekend.
-
July 2nd, 2022, 04:42 #853
Thanks mate! That would be awesome!
--
I'm so bassic
-
July 3rd, 2022, 11:13 #854
Try this. Its a simple RWP inside a ZIP.
-
July 6th, 2022, 15:32 #855
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
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":
...
<sheetdata>
<subwindow name="SubWindow1" source="stats">
<bounds>154,196,200,100</bounds>
<class>char_stats</class>
<activate />
<fastinit />
</subwindow>
</sheetdata>
...<?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><charsheet>
<id-00001>
<NumberField1 type="number">2</NumberField1>
<NumberField2 type="number">2</NumberField2>
</id-00001>
</charsheet>
But expect:
<charsheet>
<id-00001>
<stats>
<NumberField1 type="number">2</NumberField1>
<NumberField2 type="number">2</NumberField2>
</stats>
</id-00001>
</charsheet>
-
July 6th, 2022, 15:57 #856
I never use a Source in my Subwindows.
-
July 6th, 2022, 16:40 #857
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>
GitHub
Ruleset: FFd20
Extensions: Advanced Charsheet - Attack Modifiers - Big Portraits - Enhanced Skills - Legacy Items - Spell Action Info - Spell Record Actions - Tooltips
-
July 6th, 2022, 21:29 #858
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
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 ...
-
July 6th, 2022, 23:47 #859
I think it does not work as you think it is does. It looks like it is an absolute path not a relative path.
-
July 7th, 2022, 05:55 #860
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
Yeah, i will search the forum for an example of a subwindow with a datasource defined to verfify that. Thanks for your tips!
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (1 members and 1 guests)
Bookmarks