I have massive problems with the hiding the buttons based on status. These buttons are in a single cell. I tried different cells. It works but the presentation is not that good…I meant the alignment.
Is there another way to get to autosize the cell in a Lotus Notes application?
Subject: hide buttons in a row
If you are using it on Lotus Notes client … would it be feasible to keep one button per row (in the same cell)[button1]
[button2]
… if yes then you can hide them using hidewhen formulae … On web you can easily hide them using <div style=display:> [Button] … where computed value should be “None” for hiding and “” for showing.
HTH
Subject: RE: hide buttons in a row
For web applications, hiding can even be done simply through regular hide-whens. As long, as your buttons contains @Formulas only, simply put each button on a new line, provide a leading and trailing blank and mark the whole bunch as pass-through HTML. Despite being on separate rows, the buttons will line up nicely in the browser, and if one row (read: one button) is hidden using hide-whens, the following buttons will take up the space.
This does not work however, if you write JavaScript code in Notes buttons for use in the browser. In this case, you can still use the same base technique, but you’ll have to create the button as a whole in pass-through HTML.
This trick does not work in the Notes client, unfortunately (even if you keep the form property to render pass-through HTML in Notes ticked). I’ve been playing around a bit with layers, but didn’t find a working solution. After all, form actions would probably be the most appropriate way to handle this.
Subject: hide buttons in a row
Hiding is ALWAYS by paragraph. If the buttons are on the same row in the same cell, then they are in the same paragraph.
Subject: hide buttons in a row
basically cells cannot be autosize? I wanted to try layers but it gets too complicated. It just that the spec requires the buttons to be at the bottom of each section. It will be nice if they can all line up…but seems to be too difficult to do.
Subject: RE: hide buttons in a row
Cells CAN autosize. Set the table width to either fit to window or fit with margins and create one more column than the number of buttons. Now, you can select size to fit for all columns but the last one. The problem is, that the size to fit will not resize the column to anything less then the minimum cell width you can have.