This is a migrated thread and some comments may be shown as answers.

How to update tab for selected session?

3 Answers 147 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
BrianLy
Top achievements
Rank 1
BrianLy asked on 22 Jul 2019, 07:53 PM

I have an extension that successfully adds a column to the session view. This extension needs to load for saved SAZ files as it is being used for post-mortem debugging by an engineer once the customer has collected the trace. Everything is working great after I worked out how to use FiddlerApplication.OnLoadSAZ to update all of sessions.

Next, I want to add a tab/pane for viewing additional information. I've successfully created the TabPage and added it. It shows up correctly on the right hand side as a new tab. What I want to do is to have the current/selected session information available to the controls on my TabPage. How do I access this information so that it automatically updates when I select a different session? I only care about showing one session. If the user selects multiple sessions, or no sessions, then my tab will just show a message saying "Select a single tab".

3 Answers, 1 is accepted

Sort by
0
BrianLy
Top achievements
Rank 1
answered on 22 Jul 2019, 07:54 PM
I should have stated that I've made a C# DLL-based extension, but I guess the FiddlerScript API may be similar in nature.
0
Simeon
Telerik team
answered on 29 Jul 2019, 09:03 AM
Hi Brian,

Sorry for the late response. Here, you could find some information about how to build a custom inspector. Basically, you need to implement the Inspector2 abstract class and override the AssignSession(Session oS) virtual method if you need. The base implementation assigns the headers, body and bReadOnly properties. This method is called when the user selects a session in the Web Sessions list when your Inspector's tab is visible.

I would like to mention that there is a detailed explanation about how to build custom inspectors in the Debugging with Fiddler book.

Please, let me know if you need further assistance. 

Regards,
Simeon
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
greek123
Top achievements
Rank 1
answered on 07 Aug 2019, 06:29 AM
Tags
Extensions and Customization
Asked by
BrianLy
Top achievements
Rank 1
Answers by
BrianLy
Top achievements
Rank 1
Simeon
Telerik team
greek123
Top achievements
Rank 1
Share this question
or