Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

I have a column object of type checkbox edit style.Based on the on and off values,two other columns have to be protected

Actually I have a column object of checkbox edit style.The on and off values are set as Y and N.Based on this value,I have to set the protect properties of two other column objects of styles-edit and dropdowndw.I dont know exactly to which event I have to write the following code:

IF dw_selected.object.column1[row]  = 'Y' THEN
  dw_selected.object.city.Protect = 1
  dw_selected.object.state_nm.Protect = 1
ELSE
  dw_selected.object.city.Protect = 0
  dw_selected.object.state_nm.Protect = 0
END IF

Is my code right?.Suggest me the better options for doing this.

Regards,
Meena
0
Meena_kumari
Asked:
Meena_kumari
  • 2
  • 2
1 Solution
 
VenishCommented:
Hi Meena,

Go to the Expression Property of that Column Object i.e. city in that you will find properties listed in that particular column Object.In that Please give the expression like this

if(column1 = 'Y',1,0)

I think this would be the best Option for doing this

Best Wishes
Venish
0
 
VenishCommented:
Hi Meena,

Go to the Expression Property of that Column Object i.e. city in that you will find properties listed in that particular column Object.In that Please give the below expression in the "Protect property"

if(column1 = 'Y',1,0)

I think this would be the best Option for doing this


Best Wishes
Venish
0
 
Meena_kumariAuthor Commented:
Thanks a lot Venish.Its working fine.

0
 
Meena_kumariAuthor Commented:
Thanks a lot Venish.Its working fine.

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now