?
Solved

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

Posted on 2003-03-23
4
Medium Priority
?
230 Views
Last Modified: 2013-12-26
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
Comment
Question by:Meena_kumari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:Venish
ID: 8193343
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
 
LVL 1

Accepted Solution

by:
Venish earned 200 total points
ID: 8193352
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
 

Author Comment

by:Meena_kumari
ID: 8193377
Thanks a lot Venish.Its working fine.

0
 

Author Comment

by:Meena_kumari
ID: 8193379
Thanks a lot Venish.Its working fine.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question