ViewValue Multiple Fields

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
wincode2008
User
Posts: 119

ViewValue Multiple Fields

Post by wincode2008 »

Good Day,

How can i change the viewvalue of Field which contains multiple field? the field contains file name wherein hyperlink is applied

Filelink1,
Filelink2,
Filelink3

change to

Download Icon
Download Icon
Download Icon


arbei
User
Posts: 9384

Post by arbei »

You may use Row_Rendered server event to change the ViewValue property of the field object.


wincode2008
User
Posts: 119

Post by wincode2008 »

i made it for single value only, but how about with multiple value? How will I separate the vales and put a download link


arbei
User
Posts: 9384

Post by arbei »

You may parse the DbValue properly which is database value (i.e comma seperated file names by default). If the URLs of the files are encrypted, you can parse the HTML of the ViewValue. PHPMaker uses DiDOM to parse HTML, you may use it without adding the package yourself.


Post Reply