Page 1 of 1

Click Event

Posted: Wed Dec 06, 2006 10:58 am
by shmuly
When a user clicks on a report Text component, I want to capture the Text of the original control ({Table.Field}) as well as the actual value of that field for the row the user clicked on.

Is this possible?

I tried with the TextValue but it always comes up blank.

Click Event

Posted: Wed Dec 06, 2006 12:46 pm
by Vital
Please check Text.Value.

Thank you.

Click Event

Posted: Sun Dec 10, 2006 9:09 am
by shmuly
Here is the code I put in the Click event of the Text1

MessageBox.Show(Text1.Text.Value);

When I click, I get the MessageBox but it's empty.

I did this on the first sample "Simple List" that comes with StimulReport

Click Event

Posted: Sun Dec 10, 2006 3:55 pm
by Vital
Try following code:

Code: Select all

StiText text = sender as StiText;
MessageBox.Show(text.Text.Value);
Thank you.