In version 2020, i use URL to open add screen whith data in fields:
http domain.com.br/ativos/fluxoadd.php?cv=C&ativo=VALE3&qnt=10&unit=57.83&valor=617.00
How to in version 2021 ?
I try whithout spaces:
http domain.com.br/ativos/fluxoadd ? cv=C&ativo=VALE3&qnt=10&unit=57.83&valor=617.00
http domain.com.br/ativos/fluxoadd $ cv=C&ativo=VALE3&qnt=10&unit=57.83&valor=617.00
If you have any code that specifies a URL (e.g. pageRedirecting server event), you need to update it. In general, simply remove “.php” and the parameter names for the primary key fields, and separate them by “/”, e.g. change carsview.php?ID=1&foo=bar to carsview/1?foo=bar.
Note that the values will not be used to fill the field value, you might have a server event to do that yourself in your old project. Make sure your code is still there.
I need send data to add page in URL,
because when user click in other Grid page, a need send to add just set qnt… and save
this grid have a line with all others fields i use in ADDpage.
Have other mode to make this in PHPMaker 2021 ?
Send data to fields when add page ?
That is COPYing the record with primary key = 33, so there are values from the existing record.
arbei wrote:
Note that the values (in the URL) will not be used to fill the field value, you might have a server event to do that yourself in your old project. Make sure your code is still there.
As mobhar wrote:
You need to handle the param values from URL by using “Row_Rendered” server event. You may use Get() function to get the values from URL.