Giter Club home page Giter Club logo

Comments (5)

dtu11 avatar dtu11 commented on July 20, 2024

We've encountered that issue before. I believe it has to do with there not being data in the primary column. For that API we are looking for the column that has the link in it and then clicking the link so if that is missing then that error will occur.

from easyrepro.

kaceyarnold avatar kaceyarnold commented on July 20, 2024

from easyrepro.

kaceyarnold avatar kaceyarnold commented on July 20, 2024

from easyrepro.

TYLEROL avatar TYLEROL commented on July 20, 2024

@kaceyarnold - I did some testing with this functionality and I can reproduce the problem if the entity primary field has been excluded from the view, or if the primary field is empty/NULL for the supplied index value.

The OpenRecord method is looking for an id that starts with gridBodyTable_primaryField_ per the PrimaryField declaration in XrmElementReference.cs. If the primary field is removed from the view, then I can reproduce this exception.

The easiest workaround to this functionality is to add the entity Primary Field back to the view. The alternative is to inspect the page element that you would like to see the user click on and pull it's ID value and replace it in XrmElementReference. This will not work for all field types and if the column data is empty then an ID value will not be present/usable. I would avoid this approach due to complexity.

I'll review this with our team and see if there is a means to make the OpenRecord method more resilient for scenarios where the PrimaryField may have been removed from the view.

If you find that you still encounter this issue with the entity PrimaryField present in the view, please update us with your organization version and the code you are using

Thanks!
Tyler

from easyrepro.

TYLEROL avatar TYLEROL commented on July 20, 2024

This behavior is expected in that the Primary Field should be present in the view and contain data. If either of these conditions are not met, the OpenRecord method will break.

We have added an item to the backlog to consider enhancing this through double click behavior, however there is no ETA for that functionality at this time.

Regards,
Tyler

from easyrepro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.