Feb 05, 2013; 08:10
andreas
Re: FileMaker 12 Breaks Container Lasso Container output
Hello
Same issue here, FMSA 12 and Lasso 8.6.
Just setup a testscript like this:
<?LassoScript
var:
'id'=(action_param: 'id');
var:
'PictureContainerToDisplay'=(action_param: 'BildName');
inline: -Database='news_lg1',-table='Titelbilder','DatensatzID'=$id,-search;
var: 'AnzahlGefunden'= (found_count);
//working Link as an example: http://www.lg1.ch/titelbilder.lasso?id=6&Bildname=Titelbild1
var: 'container'= database_fmcontainer: $PictureContainerToDisplay;
file_serve: ($container), -file='temp.jpg', -type='image/jpeg';
/inline;
?>
Found Count:
[var: 'AnzahlGefunden']
<br>
Found image content:
[var:'container']
------
Output: empty picture file.
Perhaps you have a solutions in the meantime?
Best regards
Andreas St=E4mpfli
Am 28.08.2012 um 13:57 schrieb duncanj@jedtech.com:
> We have a solution that works fine with FileMaker 10 and Lasso 8.6. In testing with FileMaker 12 the container output doesn't work. Have tried a variety of modifications including File_Serve with no luck. Any suggestions greatly appreciated. The code is:
>
> <?LassoScript
> Var: 'MediaID' = (Action_Param: 'MediaID');
> if: (Action_Param: 'ID', -Count) == 0 || (Action_Param: 'ID') == '';
> Var: 'ServiceID' = 'bogus';
> Else:
> Var: 'ServiceID' = (Action_Param: 'ID');
> /If;
> Inline: -Database='Service',
> -Table='LassoMedia',
> -NoValueLists,
> -MaxRecords=1,
> 'MediaID'=($MediaID),
> 'Service Number'=($ServiceID),
> 'Display on Web'='Y', -Search;
> If: (Error_CurrentError: -ErrorCode) == 0;
> if: (Found_Count) == 1;
> $__html_reply__ = (Database_FMContainer: 'Media');
> /If;
> /if;
> /Inline;
> ?>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> Lasso@lists.lassosoft.com
> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
> Send administrative queries to <Lasso-request@lists.lassosoft.com>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>