web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

overriding table properties visible allowedit

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I'm looking for a way to create a form that can show fields which have "visible=no" on the table properties and edit fields that have "allowedit=no" on the table.

The form is intended to operate on a dynamically selected field and table and is meant to be used by technicians/developers for analysis and emergency bug fixing

I have the same question (0)
  • Suggested answer
    Ziyao Profile Picture
    on at

    The possible way to this is to create a security role group and assign all the technicians/developers to this group. Write your Visible logic under field property with some pseudo code like: "UserGroup"="Analysis". Do the same thing to Editable logic as well.

  • drhex_365 Profile Picture
    10 on at

    The "making it work only for technicians" part is no problem, it is bypassing the table properties I don't know how to do.   What property is it you are referring to?  (i.e. the form field's Visible property is already Yes, but it wont show as the table field's Visible is no)

  • Suggested answer
    Ziyao Profile Picture
    on at

    Hi,

    There are two layers of visibility exist on table and form. Table field is the highest priority for displaying in form. Therefore, in you case, I will recommend you set the filed visibility in table as true, then write the visible logic under form control. If you set the visible as no in table field, no matter what you have been done in the form layer, the field will be always invisible.

  • drhex_365 Profile Picture
    10 on at

    As I don't have a particular field in mind, but am looking for a general solution it would not be feasible to alter every table that has too restrictive properties on some field.  I'd prefer all the code local to one form and its handling class.  

  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Yes, that should be possible. If you manage to get table name and field name from the user as input, you can definetely write code that reads this field from the table and shows it on the form.

    But most of the time you can see enough data via existing forms and table browser.

    And you can always copy prod database to test in a couple of hours and analyze it there.

    If you insist on seeing this info, I would look into extending/copying the table browser so that it shows also hidden fields. Or use some community add-on that someone else has already developed.

  • drhex_365 Profile Picture
    10 on at

    Yes, I was thinking of extending the table browser.

    On a table buffer, there is a method overwriteSystemfields() that lets you go around the usual limits, I was hoping there was something similar on forms.  Well, I guess it will have to be unbound form controls with some generic eventhandler code that works for most datatypes,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans