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" />
I hope you found this useful or if you have any questions don't hesitate to leave a comment or contact support[@]tomred[.]net
This what I have spent most of my time working in over the years and these are the little bits of logic or snippets I have come across. Some of these are things I have needed to search for or I have found I needed to feedback on code reviews.
During my time working in consulting I was tasked many times with delivering FatWire sites. I took notes due to the lack of useful documentation at the time. These are the results of those notes made and shared.
I believe the majority of time on a project is spent with the UI. Web is no exception. I have compiled a set of articles covering HTML, CSS and JS with the intention of taking the sting out of this work.
A space dedicated to all those things you need to know beyond writing code. This covers Linux, Windows, Git and SVN among other hopefully useful nuggets.
I picked up some pointers over the years consulting for government and banking sectors before entering a PCI DSS development environment. This section covers aspects like coding, testing, code review and best practice.
Apps is a section which offers access to bits and pieces I have put together over the last few years. This includes Random Password Generator and Base64 Encoder.