Solved

Enabling/Disabling a row in an external datawindow

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deletiā€¦
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now