on 10-08-2009 12:48 PM
Hello,
I have a dynamic table filled like that :
material | qty | unit | button
123455 | 489 | PC |
987654 | 376 | PC |
765432 | 534 | PC |
On the last column I have a button. When I click on it, I would like to show 2 more fields but only for the line where I clicked the field.
material | qty | unit | button
123455 | 489 | PC |
987654 | 376 | PC |__X__ | here | here |
765432 | 534 | PC |
I think that I can define my table with 6 columns, hide the header of the last 2 ones, but I can't find any instruction to hide and make visible only fields of the line.
Could you help me ?
thanks
it's working now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wrote this in the click method but I get an error :
var cnt = data.form.TABLE.line.instanceManager.count;
cnt = cnt; //zero-based index
for ( var i = 0; i < cnt; i++) {
if ( i == this.parent.index )
{
if ( data.form.TABLE.line.BUTTON == "X" )
{
data.form.TABLE.line(i).new_field = "visible" ;
}
else{
data.form.TABLE.line(i).new_field = "invisible"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.