Thread: Gizmo confusion
View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old April 2nd, 2013, 05:32 PM
Mathias,

Thanks for the help.

I looked into the 4e files and saw what you mean about the helper.


I've got this Skill Tab working to this point. The edit button is visible, and the mouseover text reads "Add Expertise" as I expect.

When I click on the edit button, I get this as frmAoE.


If I go ahead and click on the ????? to add an item, I get this chooser:


But, once I make a selection, I get this but it adds it to the form.
Quote:
Attempt to use an 'additem' script within a table with no valid 'addthing' for portal '_tableadd_'
- - -
Attempt to use an 'additem' script within a table with no valid 'addthing' for portal '_tableadd_'
- - -
Empty candidate tagexpr specified for field 'aoeAoEExpr' on pick 'AoEHelp'
- - -
Attempt to use an 'additem' script within a table with no valid 'addthing' for portal '_tableadd_'
- - -
Attempt to use an 'additem' script within a table with no valid 'addthing' for portal '_tableadd_'
Here's the definitions:
Code:
  <entity
    id="entAoE"
    form="frmAoE">
    <bootstrap thing="AoEHelp"/>
    </entity>

  <!-- AoE Helper component
        Each AoE Gizmo derives from this component
  -->
  
  <component
    id="AoEHelp"
    name="Area of Expertise Helper">

    <!-- Selection Tag Expressions -->
    <field
      id="aoeAoEExpr"
      name="Equipment Tag Expression"
      type="derived"
      maxlength="500">
      </field>

    </component>

<document signature="Hero Lab Data">

  <portal
    id="prtAoE"
    style="tblNormal">
    <table_dynamic
      component="SkillAoE"
      showtemplate="tmpAoE"
      choosetemplate="tmpAoE"
      scrollable="yes"
      alwaysupdate="yes"
      candidatepick="AoEHelp"
      candidatefield="aoeAoEExpr">
      <additem><![CDATA[
        @text = "Add Expertise"
        ]]>
        </additem>
      </table_dynamic>      
    </portal>

  <template
    id="tmpAoE"
    name="Area of Expertise Pick"
    compset="SkillAoE"
    marginhorz="3"
    marginvert="1">

    <portal
      id="name"
      style="lblSmall">
      <label>
        <labeltext><![CDATA[
          @text = field[name].text
          ]]></labeltext>
        </label>
      </portal>
    
    <portal
      id="delete"
      style="actDelete"
      tiptext="Click to delete this item">
      <action
        action="delete">
        </action>
      </portal>

    <position><![CDATA[
    
      ~set up our height based on our tallest portal
      height = portal[name].height

      ~if this is a "sizing" calculation, we're done
      doneif (issizing <> 0)

      ~position our tallest portal at the top
      portal[name].top = 0
      portal[name].left = 0
      
      ~center the other portals vertically
      perform portal[delete].centervert

      ~position the delete portal on the far right
      perform portal[delete].alignedge[right,0]
      portal[name].width = width - portal[delete].width

      ]]></position>
    </template>

  <layout
    id="layAoE"
    marginvert="4">
    <portalref portal="prtAoE" taborder="20"/>
    <position><![CDATA[

      ~position and size the table to span the full layout
      portal[prtAoE].left = 0
      portal[prtAoE].width = width
      
      ]]></position>
    </layout>

  <form
	id="frmAoE"
	name="Area of Expertise"
	marginhorz="10"
	marginvert="5">
	<layoutref layout="layAoE"/>
	<position><![CDATA[
	  layout[layAoE].width = 250
	  perform layout[layAoE].render
	  width = layout[layAoE].width
	  height = 200
	  ]]></position>
	</form>

  </document>
I still seem to be missing something. Is it something with the choosetemplate or candidatepick?

Also, how to I forward the SkillGen.xxxx tag into the aoeAoEExpr field for use as the candidate expression?

TC
TCArknight is offline   #8 Reply With Quote