1. André Monz
  2. PowerBuilder
  3. Wednesday, 1 November 2023 13:13 PM UTC

Hi all,

in our app we display the name of a customer in the title of the customer-window.
The code ist simple:

string ls_name1, ls_name2

ls_name1=dw_detail.getitemstring(dw_detail.GetRow(),"vname")
if isnull(ls_name1) then ls_name1=""
ls_name2=dw_detail.getitemstring(dw_detail.GetRow(),"name")
// ls_name2=dw_detail.object.name[1]  // does not make a difference
if isnull(ls_name2) then ls_name2=""
parent.title="Kunde "+ls_name1+" "+ls_name2

This works fine with PB up to 2021.
Today with 2022R2 we encounter a problem with the ampersand character.
If the string in the DW-columns contains a ampsand, it will converted to something like a shortcut.


Can someone confirm this behavior?

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 3 November 2023 08:44 AM UTC
  2. PowerBuilder
  3. # Permalink
Hi André; I did some more testing and I can recreate your issue when a *Theme* is active! So this is a definite bug! Seems like the problem is not Ribbon Bar related. Please open a support ticket for this issue. Thanks! Regards ... Chris
Comment
  1. André Monz
  2. Friday, 3 November 2023 08:45 AM UTC
Thank you Chris,

i have opened a Ticket (https://www.appeon.com/standardsupport/search/view?id=11123)

  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Friday, 3 November 2023 14:26 PM UTC
Thanks André .. I saw the ticket this AM & sent it over to Engineering. ;-)
  1. Helpful 1
  1. André Monz
  2. Friday, 3 November 2023 15:30 PM UTC
That's great. Thank you again to you and the other helpers.



Regards, André

  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 2 November 2023 14:18 PM UTC
  2. PowerBuilder
  3. # 1

Ever since Windows 95 (and maybe before that), the ampersand (&) has been used to identify the "hot" key whereby an action (button click, for example) , selection, or change in user input focus can occur. The standard work-around when you want an ampersand character to appear as text and NOT be used to identify the hot key is to use two consecutive ampersand (&&) characters.

I don't use themes or the ribbonbar, so I cannot speak to how the ampersand is used with those features or if this behavior has changed in a recent release.

Best regards, John

Comment
There are no comments made yet.
André Monz Accepted Answer Pending Moderation
  1. Thursday, 2 November 2023 07:09 AM UTC
  2. PowerBuilder
  3. # 2

Upgrading to 2828 does not help.
It seems imported to say, we using themes and a ribbonmenu.
Two points i detectet:
 - Changing window.title="Kunde John&Doe" in The Powerbuilder SDI-Sample-App (file->new->template application) works as expected.
 - Changing window.title="Kunde John&Doe" in the ribbonsample app on github https://github.com/Appeon/PowerBuilder-RibbonBar-Example  does not work
  and show a shortcut-like windowtitle.




Is there a Themes/Ribbon behvior that i'm missing?

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 1 November 2023 14:51 PM UTC
  2. PowerBuilder
  3. # 3

Check to see if this Windows setting is turned on:

Comment
  1. André Monz
  2. Wednesday, 1 November 2023 15:03 PM UTC
Ty, but the the setting is off.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 1 November 2023 14:39 PM UTC
  2. PowerBuilder
  3. # 4

Hi André ;

  FWIW: I could not replicate this issue in PB 2022 R2's latest MR build # 2828.

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.
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.