Solved

Enabling/Disabling a row in an external datawindow

Posted on 2002-07-07
3
505 Views
Last Modified: 2013-12-26
can this be done? it seems powerbuilder only has functions for its columns...
0
Comment
Question by:choklitte
[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
3 Comments
 
LVL 2

Expert Comment

by:rajeXsh
ID: 7138401
I dont think that you can disable an entire row.

Try using the protected attribute to conditionally disable all the columns.
0
 
LVL 2

Expert Comment

by:rajeXsh
ID: 7138411
Its the 'Protect' attribute of the datawindow.
0
 
LVL 1

Accepted Solution

by:
levr earned 30 total points
ID: 7138555
for this purpose I am using following:

1. add column "col_flag" - it could be not in the display list
2. for rows that need to be protected set col_flag='A'
(it could be done in run time)
3. set condition for protect property as
dw_list.Modify("column.Protect='0~tifcol_flag=~"A~",1,0)'")

This could be done for all columns or some of them.

4. the same way could be set MousePointer, Color etc
0

Featured Post

Technology Partners: 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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
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: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

632 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