Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A field for Date on DataWindow

Status
Not open for further replies.

Negator

Programmer
Oct 4, 2003
33
RU
Hello all PowerBuilder wizards!

I need to create on my DataWindows some field, in which user can enter a date value. My DataWindow uses an External access.

I made a new Row, created a Column object for it, chose needed EditMask dd/mm/yyyy format. Here is my problem: the field appears, but clicking on it does nothing: it is not editable. What was wrong?

Thank you!
Alexey
 
Thank you!!!!!

P.S. I am a bit shoked... It's hard to understand why the enable state of a control depends on taborder. PowerBuilder is really mysterious.
 
Tab-Order (TabSequence) is the ability to tab to a column and set focus to it. It is one of the ways to disable access to a column. Another way to disable access to a column is to set the column's Protect attribute which can be set to behave 'differently' and 'dynamically' for each row depending on expressions. Other window controls have a Tab-Order, too. But datawindow has the nice Protect attribute in addition - alike the friendly DataWindow.ReadOnly attribute which sets the entire datawindow in read-only mode. Again, for Edit-Style columns, there is a DisplayOnly attribute that allows setting focus to a column but the value is display-only for that column (a recommended attribute if all the columns in a row have to be tab-ordered to 0 and row-selection service does not work for that row).

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
PowerObject, thank you for your answer!

It is really amazing how different programming tools are! My regular tool is Delphi, where the taborder is "the taborder and nothing more: the place in a queue for tab button". In fact I never used it in Delphi :))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top