LP8.5 - Date_LocalToGMT ? adjust for Daylight Savings Time?

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

LP8.5 - Date_LocalToGMT ? adjust for Daylight Savings Time?

Daniel Logue
Lasso Version: LP8.5.1b5

Date_LocalToGMT does not seem to adjust for daylight savings time?  I
could be wrong, but I thought that it did adjust in previous versions of
Lasso.

------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: LP8.5 - Date_LocalToGMT ? adjust for Daylight Savings Time?

Bil Corry-3
Daniel Logue wrote:
> Lasso Version: LP8.5.1b5
>
> Date_LocalToGMT does not seem to adjust for daylight savings time?  I
> could be wrong, but I thought that it did adjust in previous versions of
> Lasso.

You must be on Windows.  I already reported the issue.

- Bil


------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: LP8.5 - Date_LocalToGMT ? adjust for Daylight Savings Time?

Daniel Logue
Yup - good ol Windows here.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Bil Corry
Sent: Wednesday, August 23, 2006 3:42 PM
To: [hidden email]
Subject: Re: LP8.5 - Date_LocalToGMT ? adjust for Daylight Savings Time?

Daniel Logue wrote:
> Lasso Version: LP8.5.1b5
>
> Date_LocalToGMT does not seem to adjust for daylight savings time?  I
> could be wrong, but I thought that it did adjust in previous versions
of
> Lasso.

You must be on Windows.  I already reported the issue.

- Bil


------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage

------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Getting a base64 image from an xml result ?

andre hopkins
greetings

am working on ups xml shipping tool -- trying to figure out how to  
display the image -- called out as 'GraphicImage' - that is sent  
encoded in base 64

i'm getting the xml back fine, i'm getting content for GraphicImage  
using xpath ExtractOne -  i just cant figure out how to decode and  
display the image

so like:

[var: 'tempvar' = XML($resultbackfromups)]

[var: 'mynewgif' =(Decode_Base64: $tempvar->ExtractOne('//
GraphicImage/text()'))]

[var: 'mynewgif', -Type='image/gif']

does not work....


ideas, clues, etc???

thanks, andre

------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Getting a base64 image from an xml result ?

Fletcher Sandbeck
On 2006-08-23 at 20:18 by [hidden email] (andre hopkins):

>am working on ups xml shipping tool -- trying to figure out how to  
>display the image -- called out as 'GraphicImage' - that is sent  
>encoded in base 64
>
>i'm getting the xml back fine, i'm getting content for GraphicImage  
>using xpath ExtractOne -  i just cant figure out how to decode and  
>display the image
>
>so like:
>
>[var: 'tempvar' = XML($resultbackfromups)]
>
>[var: 'mynewgif' =(Decode_Base64: $tempvar->ExtractOne('//
>GraphicImage/text()'))]
>
>[var: 'mynewgif', -Type='image/gif']
>
>does not work....

Change the last tag to [File_Serve].  This tag will set the content type and serve the contents of the variable in place of the current page.

[file_serve: $mynewgif, -Type='image/gif']

<http://reference.omnipilot.com/Reference.LassoApp?[file_serve]>

Hope this helps,

[fletcher]
--
Fletcher Sandbeck                         [hidden email]
Director of Product Development       http://www.lassostudio.com
OmniPilot Software, Inc.                http://www.omnipilot.com

------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Getting a base64 image from an xml result ?

andre hopkins

ummm - no that doesn't work i got an error

because this is for shipping labels, and they will have orders with  
more then one box - so then more then one gif to process -
at this point i'm thinking it would be better to actually name the  
gif with the tracking number, write the file to the server, and then  
display the gif, or have link(s) to it so they can print the label(s)

i was doing ->ExtractOne just to be able to get some results before i  
try going through an array.



On Aug 23, 2006, at 8:31 PM, Fletcher Sandbeck wrote:

> On 2006-08-23 at 20:18 by [hidden email] (andre hopkins):
>
>> am working on ups xml shipping tool -- trying to figure out how to
>> display the image -- called out as 'GraphicImage' - that is sent
>> encoded in base 64
>>
>> i'm getting the xml back fine, i'm getting content for GraphicImage
>> using xpath ExtractOne -  i just cant figure out how to decode and
>> display the image
>>
>> so like:
>>
>> [var: 'tempvar' = XML($resultbackfromups)]
>>
>> [var: 'mynewgif' =(Decode_Base64: $tempvar->ExtractOne('//
>> GraphicImage/text()'))]
>>
>> [var: 'mynewgif', -Type='image/gif']
>>
>> does not work....
>
> Change the last tag to [File_Serve].  This tag will set the content  
> type and serve the contents of the variable in place of the current  
> page.
>
> [file_serve: $mynewgif, -Type='image/gif']
>
> <http://reference.omnipilot.com/Reference.LassoApp?[file_serve]>
>
> Hope this helps,
>
> [fletcher]
> --
> Fletcher Sandbeck                         [hidden email]
> Director of Product Development       http://www.lassostudio.com
> OmniPilot Software, Inc.                http://www.omnipilot.com
>
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage


------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Getting a base64 image from an xml result ?

Fletcher Sandbeck
On 2006-08-24 at 13:23 by [hidden email] (andre hopkins):

>ummm - no that doesn't work i got an error
>
>because this is for shipping labels, and they will have orders with  
>more then one box - so then more then one gif to process -
>at this point i'm thinking it would be better to actually name the  
>gif with the tracking number, write the file to the server, and then  
>display the gif, or have link(s) to it so they can print the label(s)
>
>i was doing ->ExtractOne just to be able to get some results before i  
>try going through an array.

It's hard to debug without having the actual data to see.  Writing the GIFs to disk might be the best solution.  

You could serve them from Lasso, but you'd need to use two .lasso files.  The first would serve the HTML to the site visitor.  The second would be called to serve the individual images using an appropriately set [content_type] or [file_serve].

[fletcher]
--
Fletcher Sandbeck                         [hidden email]
Director of Product Development       http://www.lassostudio.com
OmniPilot Software, Inc.                http://www.omnipilot.com

------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Getting a base64 image from an xml result ?

andre hopkins
ok the following code works for a single ups package. it pulls the  
tracking number from the new order, creates a packing label gif named  
with the tracking number, then displays it in the browser

now i'm trying to figure how to do this with multiple packages and  
their tracking numbers???
somehow need to associate the right tracking number with its gif  
packing label...

here's the code that works for one ($result is the xml back from ups)

[var: 'xmlgo' = XML($result)]

[var: 'mynewgif' =(Decode_Base64: $xmlgo->ExtractOne('//GraphicImage/
text()'))]

[var: 'mynewtrackingnumber' =$xmlgo->ExtractOne('//TrackingNumber/text
()')]

[inline:-Username=$using,-password=$passing]

[File_Create: '/ups/shipp/gifs/' + $mynewtrackingnumber + '.gif' ]

[File_Write: '/ups/shipp/gifs/' + $mynewtrackingnumber + '.gif',  
$mynewgif ]

[/inline]

<img src="/ups/shipp/gifs/[var: 'mynewtrackingnumber'].gif" border="0">




On Aug 24, 2006, at 1:34 PM, Fletcher Sandbeck wrote:

> On 2006-08-24 at 13:23 by [hidden email] (andre hopkins):
>
>> ummm - no that doesn't work i got an error
>>
>> because this is for shipping labels, and they will have orders with
>> more then one box - so then more then one gif to process -
>> at this point i'm thinking it would be better to actually name the
>> gif with the tracking number, write the file to the server, and then
>> display the gif, or have link(s) to it so they can print the label(s)
>>
>> i was doing ->ExtractOne just to be able to get some results before i
>> try going through an array.
>
> It's hard to debug without having the actual data to see.  Writing  
> the GIFs to disk might be the best solution.
>
> You could serve them from Lasso, but you'd need to use two .lasso  
> files.  The first would serve the HTML to the site visitor.  The  
> second would be called to serve the individual images using an  
> appropriately set [content_type] or [file_serve].
>
> [fletcher]
> --
> Fletcher Sandbeck                         [hidden email]
> Director of Product Development       http://www.lassostudio.com
> OmniPilot Software, Inc.                http://www.omnipilot.com
>
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage


------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Getting a base64 image from an xml result ?

andy knasinski
In reply to this post by andre hopkins
andre -

You need to loop thru the packages and extract each GraphicImage  
along with the HTML.

Sizing of the label is very important - if you don't print at the  
same size as specified in the HTML then the barcodes will not be  
scannable.

We offer UPS and FedEx certified shipping products which work  
directly with FileMaker Pro on Mac and Windows. We also support  
digital scales and thermal printers.
http://www.nrgsoft.com/products/

regards,
andy

On Aug 25, 2006, at 4:12 AM, <[hidden email]>  
<[hidden email]> wrote:

> because this is for shipping labels, and they will have orders with
> more then one box - so then more then one gif to process -
> at this point i'm thinking it would be better to actually name the
> gif with the tracking number, write the file to the server, and then
> display the gif, or have link(s) to it so they can print the label(s)


------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: Getting a base64 image from an xml result ?

andre hopkins
For those who are searching da lists - this is how you do it - will  
work with multiple images
unlike pulling one image -- the Decode_Base64 needs to happen in the  
loop, not when its first extracted -- took me a while to figure that  
one out!
(again where $result is the variable for the xml coming back)

********************
[var: 'xmlgo' = XML($result)]

[var: 'mynewgif' = $xmlgo->Extract('//GraphicImage/text()')]

[var: 'mynewtrackingnumber' =$xmlgo->Extract('//TrackingNumber/text()')]

[Loop: ($mynewtrackingnumber->Size)]

[var: 'temptrackingnumber' = $mynewtrackingnumber->(Get: (Loop_Count))]

[var: 'tempmynewgif' = (Decode_Base64:$mynewgif->(Get: (Loop_Count)))]

[inline:-Username=$using,-password=$passing]

[File_Create: '/ups/gifs/' + $temptrackingnumber + '.gif' ]

[File_Write: '/ups/gifs/' + $temptrackingnumber + '.gif',  
$tempmynewgif ]

[/inline]

<img src="/ups/gifs/[var: 'temptrackingnumber'].gif" border="0">

[/Loop]

*******************************

if you want or need to have links to the label(s) you can do it like  
this, just replace img src code with this code:
<a href="/ups/gifs/[var: 'temptrackingnumber'].gif">click for packing  
label [var: 'temptrackingnumber']</a><br><br><br>

and if you want to update your order info with the tracking number(s)  
you can do it at the same time inside that loop with an update inline

hth,
andre






> On Aug 25, 2006, at 4:12 AM, <[hidden email]>  
> <[hidden email]> wrote:
>
>> because this is for shipping labels, and they will have orders with
>> more then one box - so then more then one gif to process -
>> at this point i'm thinking it would be better to actually name the
>> gif with the tracking number, write the file to the server, and then
>> display the gif, or have link(s) to it so they can print the label(s)
>
>
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription: http://www.listsearch.com/ 
> lassotalk.lasso?manage


------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage