Incoporate Checkbox

Can we incorporate checkbox in Webi reports?
or is there any other workaround to do this?


tikolo (BOB member since 2013-06-24)

Have a look at input controls.


Mak 1 :uk: (BOB member since 2005-01-06)

It depends on what you want the checkboxes to do… Displaying them is easy with HTML.


joepeters :us: (BOB member since 2002-08-29)

It is like picking the Column Value of ‘Yes’ and ‘No’ from the database and display the same as Checked or Unchecked for ‘Yes’ and ‘No’ respectively in the Report.
So how to incorporate this?


tikolo (BOB member since 2013-06-24)

There are a couple of ways to do it.

With HTML: either with a variable or a universe object, convert the yes/no value into an HTML string that displays a checkbox:

If “yes”:

<input type="checkbox" onclick="return false" checked="checked">

and if “no”:

<input type="checkbox" onclick="return false">

The “onclick” part is to prevent the checkboxes from changing value if the user clicks on them.

Alternatively, you could create image files for the checkboxes, then use an Alerter to set the background image of the cell based on its value of yes or no.


joepeters :us: (BOB member since 2002-08-29)