Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

How to get the hidden id field type value from drillthough item?

Answered
John Armstrong asked on March 1, 2020

I would like to create a hyperlink in the customize cell function to create a link to the drill-down record within our system. To do this, I need the id we put in the hidden id field type for that record. I’m not sure if this is a bug or just not a feature yet because the recordId property in the drilldown is always null. Any idea on how to do this?

5 answers

Public
Vera Didenko Flexmonster March 2, 2020

Hello, John,
 
Thank you for reaching out to us.
 
The hidden id data property can be retrieved in the customizeCell() hook via data.recordId
An important remark is that for flat form, only one id is returned as a string, whereas for compact and classic forms, an array of such ids is returned since in the latter case the data is aggregated.
Also, please keep in mind that for compact and classic forms, the recordId for non-value cells will be returned as null.

 
In addition, could you please explain more about what you would like to achieve? Additional screenshots, illustrations, code samples are greatly appreciated. 
More insight would help us to understand the situation better and to provide an appropriate solution.

 
Looking forward to your answer.
 
Kind regards,
Vera

Public
John Armstrong March 2, 2020

I am trying to get the recordId of the row (record) for the single item within the drillthrough screen. None of the columns with a value include its recordId. ALL are null. If I have a count/summary of 8 records and double-click the drill-through, the record id field does not come through to the individual records. If I turn on editing, the record Id comes through from the onupdate method, but I don’t need editing. I need for the record Id to be populated for the row, so I can use it to create a hyperlink to its record in our system from its id. 
jsfiddle example If you click, 87, then 45, you will see the record Id is null in the console log. It should be 865.

Public
Vera Didenko Flexmonster March 2, 2020

Hello, John,

Thank you for providing further details.

Indeed, the recordId for the drill-through cells is returned as null.
We would like to confirm that this is not the expected behavior. 

Our team will provide the fix for this in the minor release version with the ETA 23rd of March.

Please feel free to write to us in case any additional questions arise.

Kind regards,
Vera

Public
John Armstrong March 12, 2020

Ok, I guess we’ll wait 🙂

Public
Vera Didenko Flexmonster March 24, 2020

Hello, John,
 
We are happy to let you know that the issue with empty recordId in the drill-through pop-up window cell was fixed.
 
This is included in the 2.8.3 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component.
Here is our updating to the latest version tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/ 
 
Please let us know if everything works fine for you.
 
Looking forward to your feedback.
 
Kind regards,
Vera

Please login or Register to Submit Answer