Senior Member
Volunteer Data File Contributor
Join Date: Nov 2009
Posts: 1,502
|
This is probably one of those "duh" moments, but I'm trying to set up a table with Edit fields (for names of the things) and I can't seem to get the changes made to stick. Here is the portal (other extraneous details edited out for simplicity):
Code:
<portal id="ftMembers" style="tblNormal"> <table_fixed component="FTMember" showtemplate="FTMPick"> <headertitle> @text="Fireteam Members" </headertitle> </table_fixed> </portal> <template id="FTMPick" name="Fireteam Member Pick" compset="FTMember" marginhorz="5" marginvert="10"> <portal id="name" style="editNormal"> <edit field="ftName"> </edit> </portal> <position><![CDATA[ ~set up our height based on our tallest portal height = portal[name].height portal[name].width = 100 ~if this is a "sizing" calculation, we're done if (issizing <> 0) then done endif ~position our tallest portal at the top portal[name].top = 0 ~position the name on the left portal[name].left = 0 ]]></position> </template> Code:
<component id="FTMember" name="Fireteam Member" autocompset="no" panellink="ftPanel"> <field id="ftName" name="Fireteam member name" type="user"> </field> </component> <!-- Fireteam --> <compset id="FTMember"> <compref component="FTMember"/> </compset> Code:
<thing id="Fireteam" name="Fireteam member" compset="FTMember" isunique="no" description="This is a fireteam entry."> </thing> Code:
<bootstrap index="30" thing="Fireteam"> <assignval field="ftName" value="Bob"/> </bootstrap> <bootstrap index="31" thing="Fireteam"> <assignval field="ftName" value="Tom"/> </bootstrap> <bootstrap index="32" thing="Fireteam"> <assignval field="ftName" value="Harry"/> </bootstrap> I set this up using the template of skills having domains, which seemed parallel, and they don't seem to do anything special. What am I missing? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The ftName field definition does not specify a maxlength="". Therefore, that's a numerical field, and so unless the user types in a number as part of their text, that'll = 0.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Nov 2009
Posts: 1,502
|
Thank you. That was very useful.
|
#3 |
|
|