Change edit button

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

Change edit button

Post by mishanian »

Hi,
how can I overwrite the edit button behaviour on PHPMaker 2023?
Is this correct because it is not working with the error: Attempt to assign property "Body" on null

function ListOptions_Rendered() {
  $this->OtherOptions["action"]["edit"]->Body = "<button id=\"PayButton\"> Pay</button>";
}

mobhar
User
Posts: 11702

Post by mobhar »


mishanian
User
Posts: 123

Post by mishanian »

Thanks, actually I did copy it from the same topic

is ListOptions_Rendered() the correct function?

I got this error:
Attempt to assign property "Body" on null


mishanian
User
Posts: 123

Post by mishanian »

I tried

function ListOptions_Rendered() {
  $this->ListOptions["edit"]->Body="test";
}

but same error


mobhar
User
Posts: 11702

Post by mobhar »

If you follow the discussion in the other thread, you should be able to handle the situation correctly.


mishanian
User
Posts: 123

Post by mishanian »

Sure, thank you

Another question,

Update Selected Record button is "edit" or "multiedit" or something else?


arbei
User
Posts: 9355

Post by arbei »

It is Multi-Edit.


Post Reply