Page 1 of 1

Master/detail access field

Posted: Sun Aug 27, 2023 11:06 pm
by Omalbahr

I have Master table Name is "master":
id
name
and Detail table name is "detail" :
id
masterid
title
when I click Master/Detail View
and I try access to Detail table from Row_Rendered like
CurrentPage.title.ViewValue = CurrentPage.title.ViewValue + "Om";
I wrote this code in Row_Rendered in Detail table

it is shown error
RuntimeBinderException: 'ASPNETMaker2023.Models.CommitteesV2.MasterView' does not contain a definition for 'title'

How to solve this problem ?


Re: Master/detail access field

Posted: Mon Aug 28, 2023 7:52 am
by MichaelG

"Title" is a reserved word. Try "_title" instead.

To check the correct object name for the field, you can right click on the table and click "Object Properties".


Re: Master/detail access field

Posted: Mon Aug 28, 2023 3:43 pm
by Omalbahr

I try with deferment name same error


Re: Master/detail access field

Posted: Tue Aug 29, 2023 8:02 am
by MichaelG

To check the correct object name for the field, you can right click on the table and click "Object Properties".

What is the object name for the "title" field? Also show your latest codes.