1. Kiat Chun
  2. PowerBuilder
  3. Tuesday, 11 December 2018 02:57 AM UTC

Hi team, need some help with datawindow tooltips.

I have a few columns in a datawindow object with tooltip property enabled, and tip text is empty.

In the datawindow's tooltip expression, I called a global function, e.g. f_tooltip ("column_name", "data") which checks data for certain values from an array, and then returns a string value.

I am expecting the string to appear in the tooltip, which it did, but this only works in the developer machine.

Does not appear in deployment machine.

Can you help explain why this is the case, and what can be done to fix this. Have I missed anything.

Thanks.

 

Kiat Chun Accepted Answer Pending Moderation
  1. Wednesday, 12 December 2018 03:23 AM UTC
  2. PowerBuilder
  3. # 1

Thanks Chris & Philippe, it is working now. Yes single exe without a PBD. Earlier I tried to add f_tooltip into PBR but PowerBuilder did not allow this. So it's like a null object reference. As advised, I made a dummy reference call and it worked. Thank you so much guys! Appreciate your help smile

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 12 December 2018 03:31 AM UTC
That's great news Kiat! ?
  1. Helpful
There are no comments made yet.
Philippe PILAT Accepted Answer Pending Moderation
  1. Tuesday, 11 December 2018 12:33 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

do you build your project as a single exe without pbd ?

It may be that the function is not referenced in code and sio not included in the exe.

If that's the case, just code a call to this function in a "dummy" event or function (p.ex. event connectionend of the application object). The function is referenced and will be included in the exe.

 

HTH.

Philippe.

Comment
There are no comments made yet.
Kiat Chun Accepted Answer Pending Moderation
  1. Tuesday, 11 December 2018 03:02 AM UTC
  2. PowerBuilder
  3. # 3

… and at first I thought, perhaps the tip text was blank, so I did a test by adding 'HELLO' text to it.

f_tooltip returns a string successfully on developer machine, but 'HELLO' text appears on deployment machine instead.

Any advice is greatly appreciated. Thanks.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 11 December 2018 15:52 PM UTC
Hi Kiat;

Just a thought but, it sounds like your global function might be returning a NULL value somehow. Nulls are notorious for messing up string operations in various things like message boxes, tool-tips, etc.

Regards ... Chris
  1. Helpful
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.