Hide Fields in a AxGroup /AxForm in Enterprise portal

Hide Fields in a AxGroup /AxForm in Enterprise portal

MCP · Azure DevOpsYour delivery board, readable by an agentMCP · DataverseOne consent, and the data layer opensMCP · Dynamics 365 F&OConnecting F&O to an agent Microsoft hasn’t documented
Archive recovery note: the supplied Blogspot backup did not contain a separate saved page for this older entry. The text available in its archive/listing capture has been preserved and flagged for a later completeness check.
There was a requirement to hide/un-hide the fields within AXGroup according to the setup defined in AX form either to show fields or not as per user. protected void AxFrmEmployee_PreRender(object sender, EventArgs e) {     AxForm frm = this.axFrmEmployee;         for (int i = 0; i < this.AxGroup1.Fields.Count; i++)     {         AxBoundField fld = this.AxGroup1.Fields[i] as AxBoundField;         if ((fld != null) && (fld.Metadata.Name == "TitleId"))         {             fld.Visible = (frm.CurrentMode == DetailsViewMode.ReadOnly) ? false : true;         }     } }
Previous article← Accessing the URL of AxUrlMenuItem from AX into EP (Code behind)
Discussion

Ask a question or leave feedback

This is a review interaction. The WordPress version will store, thread and moderate comments.

Thanks — submitted for moderation in this review.
Search the whole site · Ctrl/⌘ + K