Jump to content

exporting logs in gsak


Stompy

Recommended Posts

Does anyone know how I can generate the text from the last x number of logs in the cache description. I know I can use the "number of logs to include" drop down box but for some reason these don't appear in my gps so I think that I need to add in as a macro for it to appear in the description. I can't see a special tag.

Link to comment

Its a Satmap Active 10, a UK gps, it needs to be in a gpx file format but the log text needs to be within the description tags <desc> currently they appear in the xmlns:Groundspeak part of the export within </Groundspeak:log> tags. So I want to be able to extrac the log text and insert it at a point in between the <desc> and </desc> tags

 

This is the macro I currently use

 

#Combine Short Description, Long Description

$Descriptions=" Details= " + $d_ShortDescription + " " + $d_LongDescription

#Strip all HTML tags out of Descriptions

$Descriptions=RegExReplace("</?[a-z][a-z0-9]*[^<>]*>", $Descriptions,"")

#Strip carriage returns (ASCII 13) out of descriptions

$Descriptions=Replace(chr(13)," ",$Descriptions,true)

#Strip line feeds (ASCII 10) out of Descriptions

$Descriptions=Replace(chr(10)," ",$Descriptions,true)

#Strip ambiguous character   out of Descriptions

$Descriptions=Replace(" ","",$Descriptions,true)

#Assign the result to the system variable "$_Special" for use by %macro

$_Special=$Descriptions

 

I think that I need to use $d_lText and in some way tell it to go the last log entry probably using goto and then get it to go through say the last 5 entrys to pull the text back and add it to $Descriptions

 

If I append + " " +$d_lText

 

to

 

$Descriptions=" Details= " + $d_ShortDescription + " " + $d_LongDescription

 

It only pulls back the very first log

Edited by The K9 Crew
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...