Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8805641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:55:10+00:00 2026-06-14T01:55:10+00:00

Do you have any idea how can I use xp:fileDownload control in a xp:repeat

  • 0

Do you have any idea how can I use xp:fileDownload control in a xp:repeat control ?

I binded xp:repeat control to view. So I am available to get NotesViewEntry per line.

But I didnt get attachments using var variable in xp:fileDownload control.

I placed xp:repeat in xp:panel and created data document in panel object. I placed fileDownload control inside this panel. And binded document data source to fileDownload.

Not worked !

Have an idea ?

I have 10 documents and every document has one more attachment. I want to show these files using filedownload control.

<xp:this.data>
<xp:dominoView var="viewReviews" viewName="vwLookupGoruslerHepsi"></xp:dominoView>
</xp:this.data>

<xp:repeat id="repeat1" value="#{viewReviews}" var="viewEntry">
<xp:table style="width:100%;border:1px solid #ddd;margin-bottom:5px;"
    cellpadding="2">
    <xp:tr valign="top">
        <xp:td rowspan="5" style="width:250px">
            <xp:text id="computedField9" tagName="h4" escape="true">
                <xp:this.value><![CDATA[#{viewEntry["GorusBildirecek_CN"]}]]></xp:this.value>
            </xp:text>
        </xp:td>
    </xp:tr>
    <xp:tr valign="top">
        <xp:td>
            <xp:panel id="panelGorusEkler">
                <xp:this.data>
                    <xp:dominoDocument var="docGorus" formName="frmGorus"
                        action="openDocument" documentId="#{javascript:viewEntry.getNoteID()}">
                    </xp:dominoDocument>
                </xp:this.data>
                <xp:text escape="true" id="computedField1"
                    value="#{docGorus.GorusBildiren_OU1_NAME}">
                </xp:text>
                <xp:fileDownload rows="30" id="fileDownload3"
                    var="rowFile" indexVar="rowIndex" value="#{docGorus.Ekler}">
                </xp:fileDownload>
            </xp:panel>
        </xp:td>
    </xp:tr>
</xp:table>
</xp:repeat>

Thanks

Alternative Solution fileDownloadLinks in xp:repeat Control

Alternative way to solve this need.

I added a column which includes @AttachmentNames values. (Column Name : $Ekler)

<xp:tr valign="top">
<xp:this.rendered><![CDATA[#{!empty viewEntry["$Ekler"]}]]></xp:this.rendered>
<xp:td>
    <xp:repeat id="repeat2" value="#{viewEntry.$Ekler}" var="embeddedFile">
        <xp:link escape="true" id="link1" style="margin-right:10px">
            <xp:this.text><![CDATA[#{javascript:var aSizes:Array = ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB'];
            var embedFile:NotesEmbeddedObject = viewEntry.getDocument().getAttachment(embeddedFile);
            var calcnr:Number = Math.floor(Math.log(embedFile.getFileSize())/Math.log(1024));
            var fSize = (embedFile.getFileSize()/Math.pow(1024, Math.floor(calcnr))).toFixed(2)+" "+ aSizes[calcnr];
            return embedFile.getName() + " (" + fSize + ")"}]]></xp:this.text>
            <xp:this.value><![CDATA[#{javascript:"/" + facesContext.getExternalContext().getRequestContextPath() + "/xsp/.ibmmodres/domino/OpenAttachment/" + facesContext.getExternalContext().getRequestContextPath() + "/" + viewEntry.getDocument().getUniversalID() + "/Ekler/" + embeddedFile;}]]></xp:this.value>
        </xp:link>
    </xp:repeat>
</xp:td>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:55:11+00:00Added an answer on June 14, 2026 at 1:55 am

    If you’re using a dominoDocument datasource, I’m pretty sure you’ll need to set ignoreRequestParam=”true” if you’re passing a documentId in. Otherwise it looks to the query string parameter. Then the file download should work.

    For the second option, is the column set to show multiple values as separate entries? If the repeat is receiving a comma-delimited string value, it won’t work: repeats expect a collection, not a single string. Check to make sure your columnValues() property of the NotesViewEntry is multi-value. Even then, I’d expect it to fail if there’s only one attachment.

    Rather than using a column value, pass the repeat the NotesEmbeddedObject collection retrieved directly from viewEntry.getDocument(). Each element in your repeat will then be a NotesEmbeddedObject.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anybody have any idea about how to mix sounds in iphone.We can use OpenAl
I don't have any idea how can I create a custom UIPickerView with an
Does anyone have any idea on how can you create a product filtering query
Does anyone have any idea if you can find source JARs on Maven repositories?
does any of you have any info/idea on how can I test my application
Anyone have any idea why my jQuery carousel is working fine at the bottom
Anyone have any idea how to connect to their FTP server? I am using
Anyone have any idea how I would go about converting a timestamp in milliseconds
Anyone have any idea about CASlotProxy Class in Cocoa (iOS SDK)? I found it
Anyone have any idea why shuffle() would only return 1 item? when using: $array2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.