Robert F Harwood commented on Jan 13, 2012

Re: How to get the documents selected in a View panel in Xpage

checked

vijayasree lakkala commented on Mar 28, 2011

in image upload attachment is the rich text field name in form

vijayasree lakkala commented on Mar 28, 2011

This coding is for uploading the image and displaying it in image place holder..click the imageplace holder and code this in image resource..

var imageName="placeholder_female.gif";

if(!profileDoc.isNewNote())

{

var al:java.util.List=profileDoc.getAttachmentList("attachment");

if(!al.isEmpty())

{

var eo:NotesEmbeddedObject=al.get(0);

imageName=eo.getHref();

}

}

return(imageName);

vijayasree lakkala commented on Mar 28, 2011

Re: How to get the documents selected in a View panel in Xpage

var viewPanel=getComponent("viewPanel1");

var docIDArray=viewPanel.getSelectedIds();

for(i=0;i < docIDArray.length; i++)

{

var docId=docIDArray[i];

var doc=database.getDocumentByID(docId);

doc.replaceItemValue("pubStatus","1");

doc.save();

}

vijayasree lakkala commented on Mar 28, 2011

How to get the documents selected in a View panel in Xpage and change the field value to move that document to another view..this is based on selection formula there is a two views.with this coding we are changing the field values and moving the documents to another view

var viewPanel=getComponent("viewPanel1");

var docIDArray=viewPanel.getSelectedIds();

for(i=0;i < docIDArray.length; i++)

{

var docId=docIDArray[i];

var doc=database.getDocumentByID(docId);

doc.replaceItemValue("pubStatus","1");

doc.save();

}

Arne Menting commented on Jul 15, 2010

How to get the documents selected in a View panel in Xpage

Is there a convenient way to provide a "pick only one entry" behavior, like using the "Display value as link" option? I tried to do different approaches, but most were either not possible with a view control or so cluttered that it would not be easy to maintain it over time.

Paul S. Withers commented on Aug 12, 2009

Other properties?

This gets the note IDs. Is there a method for getting the UNIDs?

alex chenyuan commented on Nov 11, 2008

How to access the list of selected documents via serverside JavaScript libraries?

Thanks Jim.

At the last of the section "Use a Check Box for Row Selection and Deletion", you mentioned that "Note that when a View Column has the Check Box option enabled, the list of selected documents are passed in hidden fields to the server. It is possible to access the list of selected documents via the built in XPages JavaScript libraries. A subsequent article will detail how to access these documents and perform operations on them."

Could you please tell me how to access the list of selected documents via the built in XPages JavaScript libraries

Jim Quill commented on Nov 11, 2008

Using the built in Simple Action "Delete Selected Documents"

Alex,

see the article { Link }

In the section "Use a Check Box for Row Selection and Deletion" you can see an example of how to use the built in Simple Actions (Document category) to delete documents that are selected using the check box feature.

You can also see how to do it in the video here { Link }