1. Vladimir K.
  2. PowerBuilder
  3. Monday, 4 March 2019 21:52 PM UTC

Greetings all.

Multi rows, multi column (edit) datawindow.

I would like to change border or color or font or background of the current column on current row.

Any chance appeon development team can add getcolumn() and/or getcolumnname() to datawindow functions so i can do expression on border ... something like this: If(currentRow() = GetRow() and getcolumnname() = 'my_column',2,0)

Or something with focus ... like we have isselected()

Until then, maybe someone can steer me in the right direction how to achieve this.

Any help will be greatly appreciated.

Sincerely

Vlad

 

Vladimir K. Accepted Answer Pending Moderation
  1. Wednesday, 6 March 2019 16:38 PM UTC
  2. PowerBuilder
  3. # 1

Hi Chris.

Thank you very match.

Greatly appreciated, i will take a look.

Comment
There are no comments made yet.
Vladimir K. Accepted Answer Pending Moderation
  1. Wednesday, 6 March 2019 16:36 PM UTC
  2. PowerBuilder
  3. # 2

Hi Brad.

Thank you, i will give it a shot.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 March 2019 19:47 PM UTC
  2. PowerBuilder
  3. # 3

Hi Vlad;

    This may seem strange but .... I developed a Word Search game in PB for my kids in middle school so that they could build word puzzles. It utilizes the highlighting of any column within a muti-row / multi-column DWO. You are welcome to use that coding / DWO expression approach if it works for you!

You can download the WordSearch game from here:  https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/WordSearch

It uses an External DWO. Just make sure you perform a Full Build if your using this in PB2017R3. Its current version was last built in PB2017R2.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Tuesday, 5 March 2019 14:17 PM UTC
  2. PowerBuilder
  3. # 4

Could you use the ItemFocusChanged event on the datawindow? Create instance var to save the previous column name, then when the event is run, turn off attributes on the old column, and turn them on for the new one, save new column name as previous.

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.