1. Ian Wells
  2. PowerBuilder
  3. Friday, 11 August 2023 22:31 PM UTC

Ok just downloaded PowerBuilder 2022 R2, eager to try out the new tabbed UI for an MDI app. After downloading it did a full build of my source code. I went to the MDI Frame window (inherited from the PFC w_frame window) of my app and excitedly check the "TabbedView" checkbox and ran my app.

Logged in and boom!

Error popped up with a window title of "of_setcontrolstatus" with the error: "unknown control mditbb_1. Please contact your system administrator."

What am I doing wrong?

I thought this is a "no development needed" UI improvement?

I tried unchecking the TabbedView on my descendant frame window and checking it on pfc_w_frame, but it gave the same error.

 

Accepted Answer
Bruce Armstrong Accepted Answer Pending Moderation
  1. Saturday, 12 August 2023 21:45 PM UTC
  2. PowerBuilder
  3. # Permalink

I just committed a PR to the 2022 version of the Open Source PFC to address this.  If you want to see the changes I made and simply incorporate them into your own version you can see them here:  https://github.com/OpenSourcePFCLibraries/2022/commit/cc1c55f4492e8148047040c077410289d55ac88e

Comment
  1. Miguel Leeuwe
  2. Sunday, 13 August 2023 16:15 PM UTC
Thank you Bruce!
  1. Helpful
There are no comments made yet.
Ian Wells Accepted Answer Pending Moderation
  1. Sunday, 13 August 2023 13:40 PM UTC
  2. PowerBuilder
  3. # 1

I incorporated the latest changes from Bruce into my version of PFC and it works!

I do get a flicker of a window in the middle of my screen as I change tabs, but this is not bothering me too much. I'll see if it bothers the end users.

Thanks again for the quick responses Chris and Bruce.

Cheers

Ian

Comment
  1. Chris Pollach @Appeon
  2. Monday, 14 August 2023 00:07 AM UTC
That's great news Ian ... Thanks for the feedback! :-)
  1. Helpful
There are no comments made yet.
Ian Wells Accepted Answer Pending Moderation
  1. Sunday, 13 August 2023 12:48 PM UTC
  2. PowerBuilder
  3. # 2

Thanks Bruce & Chris. 

I'll make the changes in my PFC copy and let the group know if this solved my problem.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 11 August 2023 23:10 PM UTC
  2. PowerBuilder
  3. # 3

Hi Ian;

  This was not a problem on your end - it's a problem with the PFC framework. It was never designed to handle new hidden objects within an MDI Window. I suspect that it only understands MDI_1. Thus, it errors out when it finds a new object class that it does not understand.

   The PFC framework needs to be refactored to handle the "mditbb_1" NVUO properly. I have already done that in my STD Framework for this situation.  HTH 

Regards ... Chris 

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.