DICE PACKS BUNDLE
Page 86 of 109 First ... 3676848586878896 ... Last
  1. #851
    wndrngdru's Avatar
    Join Date
    Jun 2015
    Location
    US, Central (UTC -6 or -5)
    Posts
    438
    Quick question...

    Is there a tutorial that actually walks through getting the record lock icon working?
    --
    I'm so bassic

  2. #852

  3. #853
    wndrngdru's Avatar
    Join Date
    Jun 2015
    Location
    US, Central (UTC -6 or -5)
    Posts
    438
    Thanks mate! That would be awesome!
    --
    I'm so bassic

  4. #854

  5. #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>
    What i am doing wrong ?

  6. #856

  7. #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>

  8. #858

    Join Date
    Jul 2010
    Location
    Germany, Frankfurt
    Posts
    156
    Quote Originally Posted by damned View Post
    I never use a Source in my Subwindows.
    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 ...

  9. #859

  10. #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)

  1. presence

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in