Inviewedit in xpages view control?

Has anybody already tried to realized an inviewedit functionality withing an xpage view control? any suggestions on how to do that?

I’ve used google and searched the designer wiki. Any help appreciated.

Subject: Re: Inviewedit in XPages

I haven’t done it with a view control, I’mot sure if that’s possible because your data sources are NotesViewEntries, so I don’t think it’s possible to save a NotesViewEntry.

What I have done is used a repeat control based on documents in a Notes View. If you use a custom control for each ‘row’ of the repeat, with a NotesDocument datasource defined in that custom control, with action as Edit Document, and UNID as compositeData.docUNID. Then set a property for the custom control called docUNID. Then for each row in the repeat control, include this custom control, passing getDocumentID() for the relevant row. You will now be able to have computed values, edit boxes and any other type of editable field, to allow a version of InViewEdit.

There’s a simple action of Save Data Sources, which will save them all, or you ca use th global save() function.

Regards

Paul

Subject: ah. repeat control.

That actually is helpful, thanks a lot Paul :-)I will try that.

Subject: repeat control?

Seriously, I already feel like a total dumbnut. But as much as I try I am not able to get a repeat control to work.

Helpfile says it’s as simple as picking a domino view as data source and bind it to a column within the view. when I try that I get an error like:

Error getting property ‘UniqueID’ from bean of type lotus.domino.local.View

I configured everything without changing the source of the page, which is:

<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>

<xp:this.data>

	<xp:dominoView var="xspDispatcher" viewName="xspDispatcher"></xp:dominoView>

</xp:this.data>

<xp:panel id="mainRepeat">



	

<xp:repeat id="repeatDispatcher" rows="30" value="#{xspDispatcher.UniqueID}" var="dispatcherCollection" indexVar="dispatcherIndex">

	<xp:text escape="true" id="computedField1" value="#{dispatcherCollection.Description}"></xp:text></xp:repeat></xp:panel>

</xp:view>

What is it that makes it so difficult for me to get anything, even the simplest things, to work with xpages. Any help on that one?

Subject: similar example

Similar to Paul’s approach, I use a collection of docids in this example: http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/GROC-7FMJ3J

The Survey tool example on my site also uses a similar technique.

-John

Subject: Solved.

Thanks Paul and John. After I found out that the JVM on my developer server was somehow crippled I switched to another server and the repeat control works just fine.

I was also able to implement the inviewedit function as you suggested. Finally it seems I’m getting somewhere with xpages, too. Thanks again!