Page 1 of 1

Manually Checked Check Box

Posted: Mon Jun 16, 2008 12:12 am
by doghouse
Hi there, I have a report in which i would like to add check boxes that a user can check manually before printing the report, it must appear within the report but not on a form, is this possible? They have selections for options not related to data.

Is there a way of adding a text field which can then be used to calculate a markup or a discount to some calculated columns?

Cheers
Doghouse

Manually Checked Check Box

Posted: Mon Jun 16, 2008 4:52 am
by Edward
Hello, Doghouse.
doghouse wrote:Hi there, I have a report in which i would like to add check boxes that a user can check manually before printing the report, it must appear within the report but not on a form, is this possible? They have selections for options not related to data.
Yes, there is the checkbox component available in the 'Components' toolbox. Please set 'Editable' property of this component in 'true'. Then the displayed value of StiCheckBox component can be changed when 'Tool Editor' is selected in the Window of Preview by clicking in this.
Is there a way of adding a text field which can then be used to calculate a markup or a discount to some calculated columns?
Yes, it is possible. Please use ternary operation in the Text property as follows:

Code: Select all

{AnyPossibleCondition ?MyDataSource.DataColumn+Markup:MyDataSource.DataColumn-Discount)}
Markup and Discount variables must be declared in the Dictionary.

Thank you.

Manually Checked Check Box

Posted: Mon Jun 16, 2008 11:31 pm
by doghouse
Hi Edward, thanks for the reply, the check box does not work, the check box only highlights but cannot be checked. Need I set anything else other than "editable" ?

Manually Checked Check Box

Posted: Tue Jun 17, 2008 1:35 am
by Edward
Only two things must be set:

1) Editable property of the CheckkBox.

2) In the Preview Window you have to enable 'Editor Tool'.

Image

After that click on the CheckBox will change its state according to the following property's values:

CheckStyleforFalse
CheckStyleforTrue

Thank you.

Manually Checked Check Box

Posted: Tue Jun 17, 2008 2:04 am
by doghouse
Edward, my apologies, I forgot that I had set it 0/1 when playing around :brick:

Manually Checked Check Box

Posted: Tue Jun 17, 2008 2:12 am
by Edward
Thank you for this information. I think that we should change the behavior of the CheckBox fo this case too.

Thank you.

Manually Checked Check Box

Posted: Tue Jun 24, 2008 5:11 am
by Vital
Hello,

Problem solved. Please check build from 24 June.

Thank you.