Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Dec 12, 2018 @ 13:15
    Ali Sheikh Taheri
    0

    How to reference property editors

    Hi Tim,

    I have created a new drop-down list property editor of type "UIOMatic Dropdown", how can I specify a field to use this editor?

    I believe this property editor is not saved on the file system so I can't use the View option in "UIOMaticFieldAttribute".

    Your documentation here shows how to create one but doesn't show an example of how it can be referenced in the code.

    Your help is much appreciated.

    Thanks

    Ali

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 12, 2018 @ 13:45
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 12, 2018 @ 13:51
    Tim Geyssens
    0

    Ah ok you want to use a prop editor as a field view? Not sure that is possible plug and play...

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Dec 12, 2018 @ 13:55
    Ali Sheikh Taheri
    0

    Yes that's correct, it would be great if there was a possibility of resuing that as field editor instead of this:

    [UIOMaticField(Description = "Select the owner of the dog", View = UIOMatic.Constants.FieldEditors.Dropdown,
       Config = "{'typeAlias': 'person', 'valueColumn': 'Id', 'sortColumn': 'FirstName', 'textTemplate' : '{{FirstName}} {{LastName}}'}")]
    public int OwnerId { get; set; }
    

    to be honest for the dropdown list is fine but for ListView is way more useful as it gives options like hiding create or delete button.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies