Wednesday, 31 July 2019
  6 Replies
  3.3K Visits
0
Votes
Undo
  Subscribe

Hello,

I ask you two new features for the territory management part.

The first concerns the possibility of having as a print a CSV file (eg EXCEL) with the data of the processing of the territories.

The second is to be able to load the maps of the territories from JPG. In my city, google coverage is approximate and the division of territories is not good. These could be downloaded from dropbox.

Thanks anyway for your valuable and useful work.

Thanks MAX

2 months ago
·
#8682
0
Votes
Undo

a tag for the checked out date should be available now; see news: "New printing tag for the checked out date of a territory"

This works great! Thanks so much!

2 months ago
·
#8680
0
Votes
Undo

a tag for the checked out date should be available now; see news: "New printing tag for the checked out date of a territory"

4 months ago
·
#8512
0
Votes
Undo

This is absolutely great! I'm working on a template that not only shows the map images but also displays who it's assigned to along with the regular territory details.

The only spot that I'm stuck right now is adding the date that the territory was checked out. It looks like it should work with the 'Territory Record' template but there is no option (that I see) for the 'Map and address sheet' template.

There is only the tag for last worked.

Essentially I'll have a template that includes the following

Territory: [Name] | City: [Name] | Type: [City, Rural, Phone etc]
Assigned to: [Publisher]
Assigned on: [Ideally date checked out] <-- I only see date last worked
Comments: [Just a few lines for notes on the territory]

Hopefully that makes sense.

Thanks,

Chris

4 months ago
·
#8509
0
Votes
Undo

You can adjust one of the TC-Map*.htm files as following:

Remove the "<div id=map..."-line and also the <script>-block, where this line or the command addTerritoryToMap is in and replace it with:

<img id="map" src="//path/to/your/territory/maps/!TR_TERRITORY_NUMBER!/image.png" width="400" height="400"/>

Adjust the path, filename and the size. You can remove also other code; here is a basic example (you can save it as e.g. TC-Map_Image.htm):

<!doctype html>
<html>
<head>
    <title>Territory Card - Map</title>
</head>
<script type="text/javascript" src="/pdf.js"></script>
<body>
    <p>!TERRITORY_START!</p>
    <h1>!TITLE!</h1>
    <h2>!TERRITORY_NUMBER!: !TR_TERRITORY_NUMBER!</h1>
    <h3>!LOCALITY!: !TR_LOCALITY!</h1>
    <img id="map" src="/home/marlon/theoctest/Printing/Templates/Territories/!TR_TERRITORY_NUMBER!/image.png" width="400" height="400"/>
    <p>!TERRITORY_END!</p>
</body>
</html>

 

4 months ago
·
#8497
0
Votes
Undo

Another possibility would be to use a custom template for printing where you have a link to the territory's image (made up of some variables e.g. the territory number etc.).

This sound like something that I could make use of. Do you have any more specific information on how to go about doing this?

Thanks,

Chris

2 years ago
·
#5878
0
Votes
Undo

Hi Max,

though it is not possible to export the data directly, you can accomplish it by creating a custom template:

Copy the TR-AssignmentRecord.htm and replace the body with the following:

<body>
    <p>!TERRITORY_START!</p>
    <div>!TR_TERRITORY_NUMBER!;!TR_LOCALITY!</div>
    <p>!TERRITORY_END!</p>
</body>

Please adjust the div part according to your needs (you find the available tags in the offline help). When the file is saved as TR-whatever.htm, then it is available in the print option Territories>Territory Record and you can use the Copy to Clipboard button to paste the data in a text editor and save it as CSV.

As to the second issue, currently it is only possible to use OSM (default) or Here maps in the territory manager (for printing Google is also available, but it is not used to display maps in TheocBase; see the section Geo Services in the offline help). It may also be possible to add support for the Esri or MapBox plugins, but please check the Here Geo Service first and also if Esri or MapBox would really help you further.

An alternative would be to use a third party GIS tool like QGIS and edit the maps and even territories there (you can link the theocbase database and could access the data from both TheocBase and QGIS). You could use georeferenced images, WMS or offline maps.

Another possibility would be to use a custom template for printing where you have a link to the territory's image (made up of some variables e.g. the territory number etc.).

Greets,

Marlon

 

 

 

 

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!