I would like to set on a click event a dw_1 on the Edit tab the Display Only
to TRUE.
Having trouble finding out.
Have to be something like this:
dw_1.object.name.edit.DisplayOnly = TRUE
Please let me know.
Thanks
"John Jemerson" <inter...@hotmail.com> wrote in message
news:403a636b$1@forums-1-dub...
if you want events to fire, but not get focus, you can set the tab order to 0.
if you don't want anything updated back to the database, use readonly (like
setting the update property on the datawindow object to not updatable).
however, the datawindow events still fire and the datawindow can have focus.
"DT" <david....@integritycompanies.com> wrote in message
news:403a6511$1@forums-1-dub...
Example:
dw_1.column.edit.Displayonly = true or 1
Get the picture.
Thanks
"DT" <david....@integritycompanies.com> wrote in message
news:403a68bd@forums-1-dub...
I found out how to do it. Here is:
dw_1.object.description.edit.displayonly = TRUE
description is the column name.
Thanks all
"John Jemerson" <inter...@hotmail.com> wrote in message
news:403a636b$1@forums-1-dub...
You can create a function on u_dw that will protect all
columns. That way it's available everywhere you need it.
Code as follows:
long ll_cols
long ll_col
long ll_row
string ls_describe
long ll_protect
boolean lb_modifiable[]
ll_cols = long(this.describe('Datawindow.Column.Count'))
for ll_col = 1 to ll_cols
if ab_switch = true then
ls_describe = '#' + string(ll_col) + '.protect'
if this.describe(ls_describe) = '1' then
lb_modifiable[ll_col] = false
else
lb_modifiable[ll_col] = true
end if
ls_describe += " = 1"
this.modify (ls_describe)
else
if upperbound(lb_modifiable[]) = 0 then
return 0
else
if lb_modifiable[ll_col] = true then
ll_protect = 0
else
ll_protect = 1
end if
ls_describe = "#" + string(ll_col) + ".protect = " +
string(ll_protect)
this.modify(ls_describe)
end if
end if
next
just pass in true or false, scrolling will still be
available, but the user won't be able to click on any
columns.
>
--
Bill Green[TeamSybase]
VP-Power3
www.power3.com
-----------------------------------------------------------------
www.pb9books.com
PB9 Advanced Client-Server
PB9 Distributed Application Development
-----------------------------------------------------------------
"John Jemerson" <inter...@hotmail.com> wrote in message
news:403aa1bd@forums-1-dub...
"Bill Green[TeamSybase]" <bill....@teamsybase.com> wrote in message
news:403c20e0@forums-1-dub...
--
Bill Green[TeamSybase]
VP-Power3
www.power3.com
-----------------------------------------------------------------
www.pb9books.com
PB9 Advanced Client-Server
PB9 Distributed Application Development
-----------------------------------------------------------------
"Jerry Siegel" <jer...@data-sci.com.nospam> wrote in message
news:403ccb3e$1@forums-2-dub...
"Bill Green[TeamSybase]" <bill....@teamsybase.com> wrote in message
news:403d638b$1@forums-2-dub...