OnClick event for Textboxes

P

Patrick Swaytze

i want to hide and display a textbox based on the column of repeatable table.

For ex: Here is the repeatable table

Sun Mon Tue Wed ... Sat
Task1
Task2
Task3

Now, if user clicks on cell (textbox) associated with Task1 and Sun, a
textbox should eb displayed and its value stored.
Similary if user clicks on Task1 and monday... previous textbox should be
closed and new textbox should be displayed associated with the current cell.

I am not able to do this, because there is no onClick event associated with
the text boxes.

Any solutions, workarounds for this problem ? Thanks in advance.

P.S i tried using Master/Detail, but that only helps me keep track of the
rows and not the columns
 
V

virgul

Hi Patrick,

There is a simple way to do that it's the conditionnal formating!

Go on the porperty of your textbox on the second tab (affichage in
french) you have a button conditionnal foramting click on it.

In this menu you can show or hide a textbox depend on value of another
field, of a number, of an XPath expression, ... of what you want ;-)
++
 
P

Patrick Swaytze

Hi,
Thanks for your reply. I tried conditional formatting but i cannot get it
to work in this case. The problem I am facing is that i need to know which
textbox in the repeatable table was clicked. So that i can show "Comment"
text box associated with the textbox i just clicked ( This text box is
outside the repeatable table).

For ex: Here is the repeatable table

Sun Mon Tue Wed ... Sat
Task1 1
Task2 2
Task3


If i click and enter some data against Task1 on Sunday a textbox should
appear which will store additional comments for this value

Now if i click on (Task2, Sun), the previous text box should be hidden and a
text box which will store values for (Task2,Sun) should appear.

.... and so on

The problem I am faciing is I cannot Keep track of which cell is clicked on
the repeatable table to hide or show corresponding "Comment" text boxes.


Thanks.
 
P

Patrick Swaytze

Thanks for your ideas,
But i could not get onContextChange event to work. I was using only 1 view,
and i think i cannot use onContextChange unless there are multiple views ( i
may be wrong on this).
Anyways, i am changing the design of my form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top