I have not done what you did.
We have use a vector to load a repeat without a data object.

Here is a few thoughts:-

1. If there are within the same web event, the data object data created by the first 
page should be there for the second page without having to pass anything. 
GetDataObject of the same data object will give you all the previous results.

2. sample code for manually setting the value of a repeat from a vector:

//[[SPIDER_EVENT<Repeated1_onBeforeInitEvent>
        public int Repeated1_onBeforeInitEvent(CSpInitEvent event)
        {
                ((CSpRepeated)event.getSource()).clear();
                return (PROCEED);
        }
        //]]SPIDER_EVENT<Repeated1_onBeforeInitEvent>

        //[[SPIDER_EVENT<Repeated1_onBeforeRowDisplayEvent>
        public int Repeated1_onBeforeRowDisplayEvent(CSpDataDrivenVisualEvent event)
        {
                ++iReferencesNo;
                if( iReferencesNo >= cCandidateView.lReferences.vReferences.size() ) 
                        return (SKIP);
                return (PROCEED);
        }
        //]]SPIDER_EVENT<Repeated1_onBeforeRowDisplayEvent>

This is for a static text object inside the repeat:-

//[[SPIDER_EVENT<MREF_RF_REFNM_onBeforeDisplayEvent>
        public int MREF_RF_REFNM_onBeforeDisplayEvent(CSpDisplayEvent event)
        {
                ((CSpStaticText)(event.getSource())).setValue( 
((CReferences)cCandidateView.lReferences.vReferences.elementAt(iReferencesNo)).rf_refnm
 );
                ((CSpStaticText)event.getSource()).setUserDefinedHtml(
                        CUtilityM.contructUserDefinedHtml( 
(CSpDisplayField)event.getSource(), 
                        cCS. rf_refnm_visible, cCS. rf_refnm_enabled) );
                return PROCEED; 
                
        }
        //]]SPIDER_EVENT<MREF_RF_REFNM_onBeforeDisplayEvent>


"Juan Devarie" <[EMAIL PROTECTED]> wrote:
>
>hi all,
>
>Objective:
>Note: going after a Hierarchy database.
>We have dataobject that returns multiple records. When it returns one record we want 
>to redirect the the results to another ND page (without executing the dataobject 
>twice). 
>
>Alternative 1:
>execute() dataobject on btn_webEvent. getNumOfRows() & direct to appropriate page.
>pass reference of dataobject to ND Page 
>bound to the dataobject(ND Page is displayed in a Frameset).
>
>Alt 1 problem:
>have had no success setting the bound dataobject(repeated). Has anyone done this or 
>have suggestions.
>


_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to