Pass field value with prefix

Hi
I am trying to pass a value (Date) with help of prefix to instert is automatically into xxxadd.php page.
But it does not work.
I am using the following code with “Prefix”.

buchungenadd.php?Datum={$this->UrlEncode($this->Tag->CurrentValue)}&Datum=

Is that possible?

mpol.ch

Your code only put the value in URL, you still need to get the value from the URL yourself in the Add page.

thanks a lot for the hint.
With the following it is working now.:

// Row Rendering event
function Row_Rendering() {
// Enter your code here
if(CurrentPageID() == “add”)
{
//Check the value from URL if any otherwise it will get NULL
if(isset($_GET[“Datum”]))
{
$this->Datum->CurrentValue = $_GET[“Datum”];
}

}
}


mpol_ch

Or, you may simply write one line of code as follows:

$this->Datum->CurrentValue = Get(“Datum”, “your default values goes here”); // assume v2020