Tooltip: Show the ViewValue

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 877
Location: Switzerland

Tooltip: Show the ViewValue

Post by mpol_ch »

I am trying to use tooltip to show the ViewValue of another field in the same table.
Could you please advise how to do this in PHPMAKER10?

thanks
mpol_ch


danielc
User
Posts: 1601

Post by danielc »

Add this code in Row_Rendered server event:
$this->YourField->TooltipValue = $this->YourTooltipField->ViewValue;

Also need to set the Tooltip field to YourField under [View tag] panel.


Webmaster
User
Posts: 9430

Post by Webmaster »

Just set "Tooltip field" in View Tag panel, see Field Setup in the help file.


mpol_ch
User
Posts: 877
Location: Switzerland

Post by mpol_ch »

Thanks a lot. But with using the "Tooltip field" I am receiving the value of field that is saved in the db. I want to see the ViewValue of the field.
I used the following code in "Custom view tag"

<?php
CurrentPage()->History->ViewValue;
?>

It deos not helped.
Thanks.
mpol_ch


Webmaster
User
Posts: 9430

Post by Webmaster »

Why use "Custom View Tag"? Remove it or there is no tooltip since there is no such code in your Custom View Tag at all. Note that Custom View Tag overrides all View Tag settings, see Field Setup in the help file.

You can use Row_Rendered server event (see Server Events and Client Scripts in the help file) to set the tooltip value, e.g.

$this->YourField->TooltipValue = $this->AnotherField->ViewValue;


Post Reply