To anyone who can help,
Just when I thought I had the hang of intake something goes wrong and I
don't have a single idea where to start looking. Basically I have now
successfully used intake to validate an empty form and pre-populate a
form, then validate (Just the once mind) now the code below is from a
second attempt, the code validates a new empty form but does not
pre-populate the form, but I don't know why as it works for a new form,
even when attempting to pre-populate I can access all the fields as can
bee seen on the third line of my code so everything is correctly
delivered by the screen class via the context. Does anyone have any
ideas?
#if($editjob)
#set($Jobgroup=$intake.Jobgroup.mapTo($editjob))
Job Details: $editjob.CustomerId, $editjob.QuotationId,
$editjob.Type, $editjob.Details, $editjob.Date, $editjob.Time,
$editjob.Milage
#else
#set($Jobgroup=$intake.Jobgroup.Default)
#end
This was in the Velocity.log:
2003-03-12 21:18:41,015 - RHS of #set statement is null. Context will
not be modified. screens/JobForm.vm [line 33, column 1]
I just don't understand why on this form the RHS of statement should be
null.
Regards,
Stuart Townhill.