Master/Detail disable field submit

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

Master/Detail disable field submit

Post by David_Kimz »

Hi I have a field which shouldn't appear on Master/Detail editpage because its a computed column. How do I disable it not to be part of the insert statement.

have tried this in PageRender of detail list page, it hides the field but still the get an error in SQL where the column is being inserted with a NULL value:
if ($this->getCurrentMasterTable() == "Sale"){
$this->SaleStatusID->Disabled = TRUE;
$this->SaleStatusID->Visible = FALSE;
}

Thanks in advance


mobhar
User
Posts: 11712

Post by mobhar »

Just remove that code, then disable "List" from "Fields" setup -> "List Page", and regenerate ALL the script files again.


David_Kimz
User
Posts: 4

Post by David_Kimz »

Problem is I need that field to display on list page of Detail table, so I used your idea and unchecked the list option for SaleStatusID then created a custom field <DummySaleStatusID> taking the SaleStatusID in Expression and now works as required.
Thanks


Post Reply