TomRed.net

  • Increase font size
  • Default font size
  • Decrease font size
Subscribe Bookmark and Share
Home Tutorials Java FatWire Output Asset Attributes to Screen

FatWire Output Asset Attributes to Screen

User Rating: / 0
PoorBest 

This example sets an asset which I have named objAddress using the assetset:setasset tag.

This Address asset is of type Address_Asset and has been assigned the id equal to the variable cid.  I then use the assetset:getattributevalues tag to get the attributes of the asset which I have named earlier as objAddress.  The attribute that I am looking for is called AddressLine1 and I am assigning to the list called AddressLine1list of type My_Asset.  Finally to print the attribute of the asset I use the FatWire ics:listget tag which gets the first result of the list. I tell it to print the value of the attribute.

<assetset:setasset name="objAddress" type="Address_Asset" id='<%=ics.GetVar("cid") %>' />
<assetset:getattributevalues name="objAddress" 
 attribute="AddressLine1" 
 listvarname="AddressLine1list" 
 typename="My_Asset" />
<ics:listget listname="AddressLine1list" fieldname="value" />