r2 - 29 Aug 2007 - 21:40:50 - PhilippeBossutYou are here: OSAF >  Journal Web  >  ContributorNotes > BryanStearnsNotes > SelectedItemDebugging
It's sometimes useful when troubleshooting to see the raw attributes of an item, and Morgen's repo-browser servlet allows this. It's great because anyone running Chandler can start the servlet after starting Chandler. Here are the steps (long version):
  • Make sure that the item in the detail view is the one you want to know about. (It doesn't matter whether you get to it via the calendar or the dashboard.)
  • Choose "Tools > Start Webserver"; if it's grayed out, the repo-browser servlet is probably already running, so continue.
  • In your favorite web browser, browse to http://127.0.0.1:1888/repo/parcels/osaf/views/detail/DetailRootBlock?mode=kindquery (You can just click this link on the machine running Chandler, and it'll work)
  • You'll see a list of links to all the detail views that Chandler knows: one of them will say (at the end of the line) "(rendered)" -- that's the detail view currently in use: click that link.
  • This gets you a few tables showing the details (har har) of the detail view in use. One of those details, in the first table, is "contents": you'll see that its value is probably the title of the item displayed in the detail view, and a link: click that link.

That'll get you a view of the attributes of the selected item.

Starting with Chandler 0.7.0 Preview, there's an even shorter fool proof version to get to the same view:

  • Select the item you want to inspect
  • Press the F4 key

Chandler will automatically launch your default browser and display the attributes of the selected item in all its "schema repository" glory.

A couple more tidbits:

  • If you're filing a bug, it can be useful to ask your browser to "Save Page As..." (choose "Web Page, HTML only" in the "Save as type:" dropdown), then attach the resulting .htm file to the bug.
  • Is the item an occurrence of a recurring event? If so, the first line on the page will have "(Occurrence)" in it; if you need to see the master event, you can click on the value of its "inheritedFrom" attribute.

-- BryanStearns - 17 Jul 2007

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.