Hello,
in my application, I have a page where there are two kinds of items:
those displayed in a repeated and those displayed only once (without a repeated that
is).
The DO picks up them up from three different tables (just in case it helps to solve
the problem).
Here's the problem: I want some data "Stocks" to be displayed
on this page only once, and I want other data "Articles" to be displayed in
a repeated (as many times as I input it on the previous page).
The articles should be chosen in DO by today's date. For some reason, my articles
data gets displayed very well the first time I unput it, but, on the second time,
after I insert
the next article, it gets overwritten by the next article I input.
I am attaching the page where I input the articles and I'm attaching my code for the
"Results"
page where I get articles displayed, displayed.
Please, if anybody knows what's wrong with my code, please reply.
Thanks in advance,
Rimma
//[[SPIDER_EVENT<this_onBeforeDisplayEvent>
public int this_onBeforeDisplayEvent(CSpDisplayEvent event)
{
CSpValue date = CSpider.getUserSessionObject("sesDate");
CSpSelect doViewResults = (CSpSelect) CSpider.getDataObject
("doViewResults");
doViewResults.clearDynamicCriteria ();
doViewResults.addDynamicCriterion ("dataAndStockPrices_Date",
CSpCriteriaSQLObject.EQUAL_TO_STR_OPERATOR, date);
doViewResults.addDynamicCriterion ("textArticles_Date",
CSpCriteriaSQLObject.EQUAL_TO_STR_OPERATOR, date);
CSpRepeated my_repeated = (CSpRepeated)
getCommonRepeated("Repeated1");
my_repeated.clear();
doViewResults.execute ();
return (PROCEED);
}
//]]SPIDER_EVENT<this_onBeforeDisplayEvent>
_________________________________________________________________________
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]