Archibus View Field Size Tip

One of our lease specialists asked me to add a comments field to our Taxes and Insurance form (aka task) in Archibus, which would allow space for notes on some of the more obscure situations they run across. In addition to wanting to display all of the text at once, the notes field will serve as a visual break between the current and historic data being displayed.



From the Archibus Help File:

colspan – When the field is presented in a form containing multiple columns of label – value pairs, this attribute allows a field to cover more than one column.

Valid Values: a ‘small’ number between one (the default) and the number of columns used as the panel attribute.

Optional: yes

Since this panel is formatted to have two columns, I set the colspan control to 2.

Editing the .axvw file, I modify the entry for the applicable field.

" <field name="cmts_cam" table="operating_expense" colspan="2" /> "

Also note that each field is paired up with another (either another data field or a placeholder), so I had to remember to remove the second line in this pair, so that the pairs below it in the form were not shifted.



The first change basically did the job, but, I wanted a bit more control over the appearance of the textbox, so I decided to use the style control and input the size in pixels. It did take a couple of tries to get it to line up just how I wanted, but, once you’ve got those numbers handy, you’re gravy for the next time you edit that form, or another using the same panel with the same attributes.

(I am sure there are apps out there that will allow you to measure screen pixels to find the number faster, if I run across one, I will post about it.)


" <field name="cmts_cam" table="operating_expense" colspan="2" style="height:40px; width:743px;"/> "


Remember, you still need to keep the colspan set to 2, otherwise, the style width will push the whole first column wider.


And with that final tweak, the view receives the users’ seal of approval, which means my first of many .axvw edits is completed!

No comments: