I always use return command like this if (dictTable.rights() >= AccessType::View) { return this.Qty * this.CostPrice; }
return 0; Because the else statement is not needed and display method always needs return command. Did it help? best regards Ingus Ziedinsh --- In development-axapta@yahoogroups.com, "dvstza" <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > > We are in the process of getting our code ready for certification. > > I get the following warnings on tables that we created: > > 1. Field is not referenced in X++ code > (Basically on each and every field we added) > > 2. Display methods I get the following: > TwC: Validate access to return value from display/edit method. > > My method look like this: > display ProjCostAmount costAmount() > { > DictTable dictTable = new DictTable(tablenum > (EamJobcardBudgetEmployee)); > ; > > if (dictTable.rights() >= AccessType::View) > { > return this.Qty * this.CostPrice; > } > else > { > return 0; > } > } > > Thanks in advance. > > Cheers > Daleen >