B
bu-bu
Guest
Hi,
I have a pcell with many CDF parameters definitions... maybe too many,
but it's necessary.
I have a cyclic button that allows me to choose some parameters. I
would like to create a callback with this cyclic to hide (or make not
editable ) the useless parameters.
I created a .callback file, with the following contents:
procedure(setFields()
if(cdfgData->Type->value == "foo" then
cdfgData->MyParam->editable = "nil"
....
....
....
....
))
cdfgData is defined nowhere in my program. I picked it from CDFuser
doc.
I suppose it's an internal variable.
when i try to modify the Type parameter by "Edit instance Properties"
i get the error message in CIW:
*WARNING* Can't modify attributes of effective CDF parameters.
My questions are : Am i wrong with my callback?
Or can't i modify the fields attributes by this way ? Or can't i
modify the fields attribute at all ?
thanks for your answers.
regards,
b.
I have a pcell with many CDF parameters definitions... maybe too many,
but it's necessary.
I have a cyclic button that allows me to choose some parameters. I
would like to create a callback with this cyclic to hide (or make not
editable ) the useless parameters.
I created a .callback file, with the following contents:
procedure(setFields()
if(cdfgData->Type->value == "foo" then
cdfgData->MyParam->editable = "nil"
....
....
....
....
))
cdfgData is defined nowhere in my program. I picked it from CDFuser
doc.
I suppose it's an internal variable.
when i try to modify the Type parameter by "Edit instance Properties"
i get the error message in CIW:
*WARNING* Can't modify attributes of effective CDF parameters.
My questions are : Am i wrong with my callback?
Or can't i modify the fields attributes by this way ? Or can't i
modify the fields attribute at all ?
thanks for your answers.
regards,
b.