cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TanguyT
Level: Powered On

Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

When using context.mode.contextInfo, property entityId gives the id of the parent form record, which is what is expected. But property entityTypeName gives the name of the subgrid entity and not the parent form entity.

 

Two questions:

  • when contextInfo will come as a predefined and supported property of property "mode"?
  • when a fix can be expected for this bug?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ToddTrotter
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

Hi TanguyT, 

 

Currently, this API is not documented and not supported.   We understand the need for controls to get this type of context information and will be exposing it through supported APIs soon.   

 

Todd

5 REPLIES 5
ben-thompson
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

How are you accessing context.mode.contextInfo?

 

contextInfo is not a published accessible attribute of context.mode within the PCF framework.

TanguyT
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

I know but this is the only way included (even if not documented, this is why I asked) that should let you know the context of the entity record the PCF component is rendered
ToddTrotter
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

Hi TanguyT, 

 

Currently, this API is not documented and not supported.   We understand the need for controls to get this type of context information and will be exposing it through supported APIs soon.   

 

Todd

Highlighted
TanguyT
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

Great! Please don’t forget to fix the bug where EntityTypeName shows the wrong value
ben-thompson
Level: Powered On

Re: Bug in context.mode.contextInfo property for subgrid : entityTypeName gives incorrect value

So that explains why my idea request for access to context.mode.contextInfo disappeared so quickly...

 

I'm glad to hear it's arriving soon as that saves me writing the workaround I thought I would have to create to do things in a "supported" way...