That looks right.
I would guess you are getting the error from the method you are using to
call it.  I always popup a new window to display the pdf.

Here are the 2 pieces of code I use.  One opens the window to feed the
parameter for the pdf selection, and the second is what you have that is the
resultset from the selection.

Troy


-----Original Message-----
From: Dan Stein [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 31, 2004 7:51 AM
To: [email protected]
Subject: Re: Witango-Talk: FM7 PDF from container field

I get a client plug in error when I try this. Can you send it in attachment
maybe the email is messing it up.

The log does not show anything so I can't tell what the error is.

on 12/30/04 23:52, Troy Sosamon at [EMAIL PROTECTED] wrote:

> I do it using R:base as the database, but it shouldn't matter.
> 
> 
> <@EXCLUDE>
> <@ASSIGN NAME=ENCODERESULTS VALUE=FALSE SCOPE=LOCAL>
> <@ASSIGN NAME=HttpHeader SCOPE=LOCAL
>  VALUE="Content-type: application/pdf<@CRLF><@SETCOOKIES><@CRLF>">
> </@EXCLUDE><@COLUMN "articles.art_blob" ENCODING=NONE>
> 
> Put this in the results when retrieving the pdf.
> 
> Troy
> 
> 
> 
> -----Original Message-----
> From: Dan Stein [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 30, 2004 8:14 PM
> To: [email protected]
> Subject: Witango-Talk: FM7 PDF from container field
> 
> 
> This is not my app. I would just store the reference to the PDF and pull
it.
> But someone else want to pull the PDF itself from the container field in
FMP
> 7 and display it.
> 
> Anyone know what the encoding would be to do that?
> 
> All windows system.
> 
> Dan
> 
> 

-- 
Dan Stein
FileMaker 7 Certified Developer
Digital Software Solutions
799 Evergreen Circle
Telford PA 18969
Land: 215-799-0192
Cell: 610-256-2843
Fax 413-410-9682
FMP, WiTango, EDI,SQL 2000, MySQL, CWP
[EMAIL PROTECTED]
www.dss-db.com


    "When you are born, you cry and those who love you rejoice.  And if you
live your life as you should, when you die, you rejoice and those who
love you cry."

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
<@EXCLUDE>
<@ASSIGN NAME=ENCODERESULTS VALUE=FALSE SCOPE=LOCAL>
<@ASSIGN NAME=HttpHeader SCOPE=LOCAL
   VALUE="Content-type: application/pdf<@CRLF><@SETCOOKIES><@CRLF>">
</@EXCLUDE><@COLUMN "articles.art_blob" ENCODING=NONE>

<@comment>
-- other content types
 VALUE="Content-type: image/jpeg, text/html

-- additional suggestions to try

<@ASSIGN NAME=ENCODERESULTS VALUE=FALSE SCOPE=LOCAL>
<@ASSIGN NAME=HttpHeader SCOPE=LOCAL VALUE="Content-type:
application/pdf<@CRLF>
Content-Length: <@LENGTH STR='<@COLUMN <@DQ>articles.art_blob<@DQ> 
ENCODING=NONE>'><@CRLF>
<@SETCOOKIES><@CRLF>"><@COLUMN "articles.art_blob"
ENCODING=NONE>
</@comment>
<!-- list of articles for category -->

<SCRIPT>
        <!--
        function PopUpWindow(docid)
        {
        <@if expr=(<@cgiparam server_port>=443)>
          NewUrl = "https://<@cgiparam server_name><@cgi><@appfilepath>";
        <@else>
          NewUrl = "http://<@cgiparam server_name><@cgi><@appfilepath>";
        </@if>
    NewUrl += "csfb.taf?_function=pdf&doc_id=" + docid + 
"&<@userreferenceargument>";
    NewName = "ImageWin";
                        //Generic Features                      
                        Features = "height=600";
                        Features += ",location=no";
                        Features += ",menubar=no";
                        Features += ",resizable=yes";
                        Features += ",scrollbars=yes";
                        Features += ",status=no";
                        Features += ",toolbar=no";
                        Features += ",width=600";

        window.open(NewUrl, NewName, Features);
        }
        -->


</SCRIPT>

<@if expr=<@arg category>=-1>
        <!-- EAP Newsletter  -->
        <link rel="stylesheet" type="text/css" href="csfb_style.css" 
title="rolloversheet">
<@else>
        <!-- Articles -->
        <link rel="stylesheet" type="text/css" href="csfb_style.css" 
title="rolloversheet">
</@if>

<TABLE BORDER=0>
<@if expr=<@arg category>=-1>
        <!-- EAP Newsletter  -->
        <th align=center valign=top width=200 nowrap>
<@else>
        <!-- Articles -->
        <th align=center valign=top width=300 nowrap>
</@if>
<p><font><b><@column name=art_categories.art_cat></b><br><br>
</th>
<@PURGE NAME=DOC_ID SCOPE=USER>
<@rows>
   <TR ALIGN=LEFT VALIGN=TOP width=300>
                <TD><p><font>
                <a href="#" OnClick="PopUpWindow('<@COLUMN 
articles.art_id>')"><u><@COLUMN "articles.art_title"></u></a>
                        <!-- Give Troy Delect Button -->
                        <@if expr=<@var name=userid>=55>
                        </td>
                        <td>
                        <FORM NAME=DEL_ART METHOD=POST 
ACTION="<@CGI><@APPFILE>?_function=art_delete&art_id=<@COLUMN 
articles.art_id>&<@userreferenceargument>">
                        <input type=hidden name="category" value=<@arg 
category>>
                        <INPUT TYPE=SUBMIT NAME="Submit" VALUE="Delete">
                        </td>
                        <td>
                        </FORM>
                        </@if>
                <br>
                </TD>     
   </TR>
</@rows>

<!-- Give EAP userlevel Add new PDF button -->
<@if expr=<@var name=userlevel>=EAP>
<tr>
        <td><p><font>
        <br><br>
        <FORM NAME=ART_ADD METHOD=POST 
ACTION="<@CGI><@APPFILE>?_function=art_add&<@userreferenceargument>">
        <input type=hidden name="category" value=<@arg category>>
        <INPUT TYPE=SUBMIT NAME="Submit" VALUE="Add New PDF">
        </FORM>
        </td>
</tr>
</@if>
        
</TABLE>

Reply via email to