Skip to Content
avatar image
Former Member

Radio Button Group by Key returns null

I have a radio button group by key that correctly displays in my view the two values defined.

Context          
  EmployeeTime
    ClockDate
    ClockTimeHr
    ClockTimeMin
    ClockType <==== datatype is type	spiritaero.com.dogs.attendtrack.rpt.group.datatype.ClockType
    EmployeeName

In my DoModifyView I set the selected key value

wdContext.currentEmployeeTimeElement().setClockType(ClockType._CLOCK_IN);

ClockType has two possible values

CLOCKIN

CLOCKOUT

All displays fine on the view. However, when trying to interrigate the bound value it contains null.

if (wdContext.currentAddEmployeeTimeElement().getClockType().equals(ClockType._CLOCK_IN))

Thoughts?

Diane

Edited by: Diane Fuller on Dec 15, 2008 8:40 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 15, 2008 at 05:37 PM

    First, why do you set the value in wdDoModifyView() and not in a non-static method of the controller?

    In your code example you read the value from a node named "AddEmployeeTime" but you set the value on a node named "EmployeeTime". Is that correct?

    Armin

    Add comment
    10|10000 characters needed characters exceeded