Page 1 of 1

How to get ViewValue?

Posted: Sat Mar 25, 2023 6:51 pm
by StefanKuypers

Hello,

I'm trying to setup the listOptionsRendered function to create extra URL's in my lists.
In this URL id like to use the ID of the record.

On old PHPmaker versions, I could use:

    public function listOptionsRendered()
    {
        // Example:
        $this->ListOptions["new"]->Body = "SOMEURL?ID=".$this->ID->ViewValue;
    }

In PHPmaker 2023 this isn't working any more. When I use print_var($this) i get a lot of data, looks like objectes in arrays in objects.

please help.


Re: PHPmaker 2023 get viewvalue

Posted: Sat Mar 25, 2023 7:01 pm
by mobhar

Re: PHPmaker 2023 get viewvalue

Posted: Sat Mar 25, 2023 7:07 pm
by StefanKuypers

great. works perfect..
Thank you for your quick answer.