Hello to everyone.
I am locally testing the possibility to have different default values for 2 rows on details for Master/Detail combination. I have a master table and a details table. On the details table, on some inputs I want to have default values from the database. What I am using is:
Row_Rendering section
$commission=ExecuteScalar("SELECT articleName, articleID FROM articles
WHERE
articleID=‘4’
ORDER BY articleID DESC LIMIT 1
");
$this->articledID->CurrentValue = “$commission”;
With this code, it makes defaults for both details rows, but i want it to be different for row 1 and different for row 2. I have searched the forum but didn’t find anything suitable. May someone help me with this?
Thank you for your reply. The field is a lookup (from the database) and I am using CurrentValue as mentioned on my previous post. But i can’t get it work since I don’t know how to identify grid rows for the details table.
What I have now in Row_Rendered is as follows:
$commission=ExecuteScalar("SELECT articleName FROM articles
WHERE
articleID=‘4’
ORDER BY articleID DESC LIMIT 1
");
$this->articledID->CurrentValue = “$commission”;