The datawindow has a column pay_code which is a DDDW. For a certain group I
want to disable this pay_code. So I run the security app. SECURITY_TEMPLATE
pick up this column as
window = pen_w_ta
control = tab_ta.tabpage_future_trans.dw_future_trans.pay_code
object_type = Column
I make this column disable for EMPLOYEE group. So in SECURITY_INFO, I have
window = pen_w_ta
control = tab_ta.tabpage_future_trans.dw_future_trans.pay_code
user_name = EMPLOYEE
status = D
Everything looks ok. But when I run my system, and when PFC security try to
set this column, it ask me for retrieval arguments for the DDDW of this
column. Whether I press ok or cancel, it sets the disabality correctly. On
debugging I find out that PFC is using this string to modify :
pay_code.background.mode="1" pay_code.protect="1"
pay_code.dddw.UseAsBorder=No
On many trials I find out that it asks for retrieval arguments whenever it
has
pay_code.background.mode="1" OR
pay_code.dddw.UseAsBorder=No
When it has only pay_code.protect="1", its ok.
do you guys have any idea why this is happening? I am completely lost here.
I have other DDDW columns in other datawindows and I am setting their
security correctly through same code.
Thanks
Rizwan
Modifying the background color loses reference to the DDDW...from Help on
Background.property property:
DropDownDataWindows and GetChild When you set Background.Color and
Background.Mode for a column with a DropDownDataWindow, references to the
DropDownDataWindow become invalid. Call GetChild again after changing these
properties to obtain a valid reference.
What you can do is, insert a dummy record into the dddw. That way you won't
have to get a reference to retrieve.
HTH,
Austin
"Rizwan" <rizwan_...@yahoo.com> wrote in message
news:eEeCUt#SDHA.342@forums-2-dub...