MakeXMLInput

Description

The makeXMLInput JSP tag is used in conjunction with makeXMLKey to form a hidden key that is used to pass data from list to detail screens.

Attributes

name - Required. The name of the hidden input HTML tag that gets formed as a result of this JSP tag.

Body

Can contain multiple makeXMLKey JSP tags. The output of the makeXMLKey JSP tags are concatenated into a single hidden input.

Example

This example shows how this JSP tag is used in conjunction with the makeXMLKey JSP tag to form a hidden input to pass inventory key data from the Inventory list view to the Inventory detail view.

<indexterm>makeXMLInput JSP tag;JSP tag library:makeXMLInput</indexterm>
<tbody>
  <yfc:loopXML name="InventoryList" 
binding="xml:/InventoryList/@InventoryItem" id="InventoryItem"
keyName="InventoryItemKey" > 
  <tr> 
    <yfc:makeXMLInput name="inventoryItemKey">
       <yfc:makeXMLKey binding="xml:/InventoryItem/@ItemID"
value="xml:/InventoryItem/@ItemID" />
       <yfc:makeXMLKey binding="xml:/InventoryItem/@UnitOfMeasure"
 value="xml:/InventoryItem/@UnitOfMeasure" />
       <yfc:makeXMLKey binding="xml:/InventoryItem/@ProductClass"
value="xml:/InventoryItem/@ProductClass"  />
       <yfc:makeXMLKey binding="xml:/InventoryItem/@OrganizationCode"
 value="xml:InventoryList:/InventoryList/@OrganizationCode" />
    </yfc:makeXMLInput>
    <td class="checkboxcolumn">
        <input type="checkbox" 
value='<%=getParameter("inventoryItemKey")%>' name="EntityKey"/>
    </td>
    <td class="tablecolumn"> 
       <a href="javascript:showDetailFor('<%=getParameter("inventoryItemKey")
%>');"><yfc:getXMLValue 
name="InventoryItem" binding="xml:/InventoryItem/@ItemID"/></a>
    </td>
   <td class="tablecolumn"><yfc:getXMLValue
name="InventoryItem"  binding="xml:/InventoryItem/@ProductClass"/></td>
   <td class="tablecolumn"><yfc:getXMLValue name="InventoryItem"
 binding="xml:/InventoryItem/@UnitOfMeasure"/></td>
   <td class="tablecolumn"><yfc:getXMLValue name="InventoryItem"
 binding="xml:/InventoryItem/Item/PrimaryInformation/@Description"/></td>
  </tr>
  </yfc:loopXML> 
</tbody>