Here's one idea and some code - I 've compiled the code in my head, and it seems to
run OK in my mind, but my head might not be
compatible with your java compiler, so it
may need a few fixes.
1) Create a member variable...
int m_iHighestValue = 0;
2) Create a hidden object on the page (NOT in repeated).
**hidBiggest**
3) Create a function to compare two values and return the highest...
protected static int getBigger(int a_iFirst, a_iSecond) {
int iBigger = a_iFirst;
if (a_iFirst < a_iSecond) { iBigger = a_iSecond);
return iBigger;
}
4) on the static text onBeforeHtmlOutput() event do the following...
CSpStaticText st = (CSpStaticText) event.getSource();
int iValue = st.getValue().intValue();
m_iHighestValue = getBigger(m_iHighestValue, iValue);
setDisplayFieldValue(hidBiggest, new CSpInteger(m_iHighestValue));
5) You can use the wizard of the button/href to send the value to the next page.
Hope this helps.
"sameer" <[EMAIL PROTECTED]> wrote:
>
>hi guys,
> i have one problem. i want to read a static field which is attached to datafield
from a repeated page.after reading i want to get the maximum value of this field
which is integer.then i need to pass it to the next page and display it in the text
field.
>it is urgent.
>thanks in advance
>sameer
>
_________________________________________________________________________
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]