Htlm View showing upload or not links from differents views

Htlm View showing upload or not links from differents views

Hi,
I have a HTML view that summarize datas and uploads from some views as:


    myAnswer  =  FormA [ID == input.recId.toLong()];
    myAnswer1  =  FormB  [FieldUnique == myAnswer.FieldUnique.toLong()];
    myAnswer2 =  FormC  [FieldUnique == myAnswer.FieldUnique.toLong()];

So when I want to put a download link in the HTML View I write this code:

            <td NOWRAP>&nbsp;&nbsp;<a href="https://creatorexport.zoho.com/DownloadFile.do?filepath=/<%=myAnswer.UploadField%>&sharedBy=IM&appLinkName=NAMEAPP&viewLinkName=NAMEVIEWFORMB"><%=tempVariable%></a></td>

I choice to put TEMPVARIABLE to show or not a link for download if user have not upload a file:
  
        if (myAnswer1.NameUploadField ==  null)
        {
            tempVariable = " ";
        }
        else
        {
            tempVariable = "link";
        }

My question: Now in the HTML view I have alls upload fields showing downloadable "link" not only that really have a file uploaded from user and only from the form selected (FormB or FormC because FormA open FormB and FormC when people select a service).
Anyone have experimented something like this?
Thanks in advance.



Mike