Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Web Resource Requirement

  • 1.  Web Resource Requirement

    Posted 21 days ago
    The requirement is for a field on a web resource to not be editable once it has been saved, while still allowing for other lines of data to be added.

    Changing editable to false, does not allow the field to be saved the first time.
    Changing editOnSelect to false, makes the field more accessible as there is no need to press the edit button.

    Is there a combination that will allow a field to be created, saved and then locked?

    var workOrderGridConfig = {
    title: "WORK ORDER PARTS USAGE",
    paging: true,
    rowsPerPage: 25,
    editable: true,
    allowAdd: true,
    allowDelete: true,
    multiSelect: false,
    rowID: CONSTANTS.FIELDNAMES.WORKORDERPRODUCT.ID,
    editOnSelect: true,
    multiSelect: false,
    allowAllEdit: false,

    ------------------------------
    Paul Richards
    BlueCrest Inc
    Danbury
    ------------------------------
    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 2.  RE: Web Resource Requirement

    SILVER CONTRIBUTOR
    Posted 21 days ago
    Hi Paul,

    I am a no-code kind of guy, low-code at best. As such, I can respond from how I configure this sort of behavior with business rules, which closely resembles javascript.

    To achieve this kind of behavior, one simple way to validate is to check the condition whether createdon is NULL. The field createdon will always be NULL when creating the record and not be NULL from that point forward. So if you allow the field to be edited only when createdon is NULL, then you should achieve the desired outcome. I've included a screenshot of how I would accomplish this using a business rule below. One thing to remember in this case is to include the createdon field on your form, or else client-side validation will not pick it up.



    Hope this helps!

    ------------------------------
    Chad Althaus
    Bray International, Inc.
    Houston TX
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 3.  RE: Web Resource Requirement

    Posted 21 days ago
    I would LOVE to do this via a Business Rule.  However, this was built as a Web Resource.  I am not certain how I would go about adding a field into it or even if it is possible.

    DO Web Resources respond to business rules?

    ------------------------------
    Paul Richards
    BlueCrest Inc
    Danbury
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 4.  RE: Web Resource Requirement

    MICROSOFT MVP
    Posted 20 days ago
    Looks like you're saying its a column in an editable grid that you want to make readonly.  If this is the case, and it's not the OOB editable grid, (You're saying Web-Resource, not Editable grid, so I'm assuming this is the case as well), then you should be looking at the documentation of the provider that made the grid, or going to StackOverflow with your question.

    ------------------------------
    Daryl LaBar
    President, MVP
    Gap Integrity
    Fishers IN
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


  • 5.  RE: Web Resource Requirement

    Posted 20 days ago
    I went down the Editable Grid route, and this is not OOB.


    I can try StackOverflow as you recommend.  



    ------------------------------
    Paul Richards
    BlueCrest Inc
    Danbury
    ------------------------------

    The first step toward cloud success. - Migrate from CRM to D365 with expert guidance from Microsoft. I'm Ready


If you've found this thread useful, dive deeper into User Group community content by role