Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3340853
By: woodchuck5
hihi Henner,
i'm trying to fix the code in the DatabaseEventFactoryImpl class but i'm stuck.
i decided to simply 'refresh/reload' the current page when this situation occurs
(ie. when KeyInfo is null). so i did the following in the affected part of
the createEvent() function:
if(null == kInfo)
{
EventInfo reloadEventInfo = new
EventInfo(EventType.EVENT_NAVIGATION_RELOAD, ReloadEvent.class.getName());
int tableId = StringUtil.getEmbeddedStringAsInteger(action, 2,
'_');
constructorArgs = new Object[] {
config.getTable(tableId),
request,
config
};
event = getEvent(reloadEventInfo,
new Class[] {
Table.class,
HttpServletRequest.class,
DbFormsConfig.class
},
constructorArgs);
}
else
{
// args are: tableId, keyId, request, config
constructorArgs = new Object[] {
new Integer(kInfo.getTableId()),
kInfo.getKeyId(),
request,
config
};
event = getEvent(einfo, keyInfoConstructorArgsTypes,
constructorArgs);
}
however, the problem is i can't figure out how to keep DbForms from going to
the next page of data results. that is, it seems to function like the "Next"
(pagination) button now.
how do i create a 'reload/refresh' event that will keep the user on their
current
pagination page?
thanks in advance!
woodchuck
p.s. i am working on 1.14 rev of the DatabaseEventFactoryImpl class... i
checked
and this is the same as the 1.15 rev... i don't know why there is a different
rev number but the code is the same...
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=55830
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms