repeated1_OnBeforeRowDisplayEvent would have been closer, but not colse
enough.
Even at this point the field value has not been set, so you will see the
value from the previous row.
Solution: (stolen from Curt's mail yesteday) {
.you could do things manually in onBeforeRowDisplayEvent:
-- get reference to results set (getLastResults)
-- get rowIndex from the event argument
-- use rowIndex and column position as arguments to get the value from the
results set
}
skip if different user.
Good luck.
Aby
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 23, 1999 5:01 PM
> To: [EMAIL PROTECTED]
> Subject: [ND] Filtering an DataObject ?
>
> Hi,
>
> I want to filter a DataObject using the UserId variable session.
>
> i.e. If the field name of the dataobject is equal to the userId variable
> session so Show the record, if no than hide
> then SKIP the record.
>
> I'm trying to use the OnDisplay Event of the Repeated Object.
>
> int command = PROCEED;
>
> // User Session Variable
> String UserID =
> CSpider.getUserSessionObject("ssUserID").stringValue();
> // TextBox with the Field to be compared.
> String User_Name =
> getDisplayFieldValue("*hdUserName").stringValue();
>
> // If different don�t show the record.
> if (UserID.trim() != User_Name.trim())
> {
> command = SKIP;
> }
>
> return (command);
>
> It doesn't work. the "User_Name" variable is ever empty. ???????
>
>
> Help
>
_________________________________________________________________________
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]