Changing the Aircraft Details popup window

User-created resources that can help you get more out of your BaseStation software.

Moderators: admin, chrisg0wtz, KineticDavid, Moderators

Postby bones » December 8th, 2007, 5:53 am

I agree that it would be nice if BaseStation remembered the last resize of the Aircraft Details box but, regretfully, it doesn't. It's been on the wish list for some time..
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Scroll bars

Postby garry » December 9th, 2007, 8:48 pm

Thanks for that, all I have to do is open it and resize the first time after that it is normally Ok.
User avatar
garry
 
Posts: 14
Joined: November 16th, 2007, 10:21 am
Location: Bristol

Postby Ninja » December 23rd, 2007, 3:17 pm

I have change my file to use 1 of the new pop up windows which works fine .
However how do you get the edit details window to display the same format as the popup ?

Rgds Paul
User avatar
Ninja
 
Posts: 17
Joined: April 13th, 2006, 1:22 am
Location: Fleetwood UK, 7m N of EGNH

Postby Anmer » December 23rd, 2007, 3:34 pm

Hi Paul

Could you be more specific? Which file have you changed and what pop up window? Are you talking about the Aircraft Details window or an add-on such as Flight Display?
User avatar
Anmer
 
Posts: 4946
Joined: November 22nd, 2007, 8:35 pm
Location: England

Postby bones » December 23rd, 2007, 4:28 pm

However how do you get the edit details window to display the same format as the popup ?


You can't. The Aircraft Details window is an XSL file and editable but the Add/Edit Aircraft Notes window in BaseStation and the Dialog window in Reporter are not XSL driven - you can't get at them.
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby Ninja » December 24th, 2007, 7:44 am

I'm using this 1 because i wanted to add selcal info to it however unable to get it to work.
The seen tag is linked to usertag in the add/edit aircraft notes however can't find which 1 is linked to selcal.
If the info can't be added whats the point of having it. :? :? :?



Image
User avatar
Ninja
 
Posts: 17
Joined: April 13th, 2006, 1:22 am
Location: Fleetwood UK, 7m N of EGNH

Postby Anmer » December 24th, 2007, 8:29 am

Hi Paul

It looks like you're using a modified xsl file with a Selcal line. But I can't see a Selcal field in the Basestation database.

You could have a line called Father Christmas and populate it with data from any nominated aircraft field in the database, such ad MTOW. There isn't much point having Selcal in the Aircraft Details window, unless it's linked to an actual field in the database. If you open the basestation.xsl file with Notepad you might spot what field it's using?

The Add/Edit Aircraft Notes is a "window" to the Basestation database (sqb file) and as Bones has said, you can't change this.
User avatar
Anmer
 
Posts: 4946
Joined: November 22nd, 2007, 8:35 pm
Location: England

Postby bones » December 24th, 2007, 8:37 am

The problem here is that you can't really add code to the XSL file without some understanding of what it does. The Selcal line of code you added should tell you which data field it is using - my guess is that it is "borrowing" a column that is not normally populated by SBSPopulate - such as Manufacturer or Engines.

Like the Previous ID, CoA Cat and CoA Exp fields these are always going to remain empty unless you add this data manually in Reporter.
User avatar
bones
 
Posts: 8397
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby Ninja » December 24th, 2007, 9:48 am

Thank you it is using one of the fields in Add/Edit aircraft notes.
By numbering each one i found the one it is linked to.
Selcal is linked to Status.
The modified file i got from Bones post on page 2 of this subject.

thanks for the help

rgds Paul

PS merry christmas and happy new year all.
User avatar
Ninja
 
Posts: 17
Joined: April 13th, 2006, 1:22 am
Location: Fleetwood UK, 7m N of EGNH

Postby tarbat » January 25th, 2008, 9:23 am

I wanted a flight details window that I could run across the bottom of the screen, alongside Basestation, Planeplotter, and FD. like this:
Image

Here's what I came up with:
Image

And here's the XML:
Code: Select all
<?xml version="1.0" encoding="iso8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" href="basestation.css" type="text/css"/>
</head>
<body>
<meta http-equiv="refresh" content="4"/>
<table>
<tr>
   <td valign="top" width="1000">
      <table border="1" cellpadding="0" frame="box">
         <tr>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  Callsign : </span>
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//currentflight/callsign"/></span>
               <span class="entrycaption">  </span>
            </td>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  Reg : </span>
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//regdata/registration"/></span>
               <span class="entrycaption">  </span>
            </td>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  Type : </span>
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//regdata/type"/></span>
               <span class="entrycaption">  </span>
            </td>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  ModeS : </span>
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//transmission/modes"/></span>
               <span class="entrycaption">  </span>
            </td>
         </tr>
      </table>
      <table border="1" cellpadding="0" frame="box">
         <tr>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  Operator : </span>
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//regdata/registeredowners"/></span>
               <span class="entrycaption">  </span>
            </td>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  Country : </span>
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//transmission/country"/></span>
               <span class="entrycaption">  </span>
            </td>
         </tr>
      </table>
      <table border="1" cellpadding="0" frame="box">
         <tr>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span class="entrycaption">  Route  </span>
            </td>
            <td valign="top" bgcolor="rgb(220,250,200)">
               <span style="color:#0000FF" class="entrydata"><xsl:apply-templates select="//currentflight/Route"/></span>
            </td>
         </tr>
      </table>
      <td bgcolor="rgb(255,255,204)">
         <img src="P:\Basestation\Images\{//regdata/registration}.jpg" height="125" align="top" border="0" />
         <img src="P:\Basestation\Images\{//regdata/registration}_A.jpg" height="125" align="top" border="0" />
         <img src="P:\Basestation\Images\{//regdata/registration}_J.jpg" height="125" align="top" border="0" />
      </td>
   </td>
</tr>
</table>
</body>
</html>

</xsl:template>
</xsl:stylesheet>
[/code]
Last edited by tarbat on February 5th, 2008, 9:58 pm, edited 2 times in total.
User avatar
tarbat
 
Posts: 612
Joined: June 5th, 2007, 10:05 pm

Postby navies » February 5th, 2008, 9:48 pm

Not having much luck with this, tried notepad etc. Is there a files section where an xml copy could be placed allowing the user to copy and rename?

Nigel
navies
 
Posts: 1
Joined: February 11th, 2007, 8:12 pm

Postby tarbat » February 5th, 2008, 9:55 pm

navies wrote:Not having much luck with this, tried notepad etc. Is there a files section where an xml copy could be placed allowing the user to copy and rename?

Here's my basestation.xsl file - http://www.filefactory.com/file/dbf165

You'll definately have to change anything in this file that starts P:\Basestation

I'm sure someone else might be able to help with one that doesn't use locally stored photos and operator logos.
User avatar
tarbat
 
Posts: 612
Joined: June 5th, 2007, 10:05 pm

So what is the significance of P:\Basestation?

Postby chrisg0wtz » February 5th, 2008, 10:14 pm

So what is the significance of P:\Basestation?

Not seen that before where does it come from?

Regards
Chris Taylor
User avatar
chrisg0wtz
Site Admin
 
Posts: 1466
Joined: July 29th, 2005, 8:14 am

Re: So what is the significance of P:\Basestation?

Postby tarbat » February 5th, 2008, 10:24 pm

chrisg0wtz wrote:So what is the significance of P:\Basestation?

Okay, going off topic a bit, but (highlight to read):

Under Vista, to use FileFreedom to feed Planeplotter, Basestation has to be installed to a non-NTFS drive, otherwise the transactional NTFS system in Vista interferes with reading/writing the BST log file. So, I have a small 1gb drive ( P: ) formated as FAT32 for BS, PP, etc.

Just one reason why I'd rather not use Planeplotter, but then I'd have to mention the M word for why I have to use Planeplotter.
User avatar
tarbat
 
Posts: 612
Joined: June 5th, 2007, 10:05 pm

Postby bondenis » March 9th, 2008, 5:13 pm

Hello,

I tried the example given by Bones at the beginning of the thread. It works fine except about the route field...

<< Below the airline logo is a Route field but this will only work if you are running the Flight Display program - see the forum Resources section for details. >>


I understood FlightDisplay must be running, in order to recover the route and, yes, FD is running.

So could anyone tell me why I've no route displayed in the Aircraft Details box ?

Many thanks...

Denis
User avatar
bondenis
 
Posts: 170
Joined: October 30th, 2005, 10:39 am
Location: LFRN

PreviousNext

Return to Resources

Who is online

Users browsing this forum: No registered users and 2 guests