Ok I've looked at the code and decided it is correct and that it is
the form definition that needs to change.
When a form of type="single" is being used and default-map-name is set
then you cannot pull values straight off the context using the form
field's name or entry-name attributes, they are only applicable to
entries in the default map. Since 684244 the same is now true for
list forms, so if you want to access fields in the context map you
need to use the description attribute of the display element or any
other attribute that supports ${} notation for retrieving field
values.
So for the trial balance form this:
<field name="debit" entry-name="absolutePostedBalance"
use-when="showDebit"><display type="currency"
currency="${currencyUomId}"/></field>
now becomes this:
<field name="credit" use-when="showCredit"><display
description="${absolutePostedBalance}" type="currency"
currency="${currencyUomId}"/></field>
If anybody thinks that sounds crazy let me know otherwise I'll go
through and check all of the list forms and correct any needing it.
Regards
Scott
2008/8/26 Scott Gray <[EMAIL PROTECTED]>:
> Hi Jacopo
>
> You're right about the data being pulled in the form rather than
> screen, my look was perhaps a little too quick :-)
>
> Even though you said you would look at this I was curious so I took a
> look myself and the problem is actually from a change I made to the
> form widget in rev. 684244.
>
> I'm having a another look at the code now and will commit a fix shortly.
>
> Regards
> Scott
>
> 2008/8/25 Jacopo Cappellato <[EMAIL PROTECTED]>:
>> no, it was actually working fine and I the service is probably called from
>> the action section of the form.
>>
>> I will have a look at this.
>>
>> Jacopo
>>
>> On Aug 25, 2008, at 7:33 AM, Scott Gray wrote:
>>
>>> I had a quick look and the screen definition appears to be missing the
>>> service call that would pull up all the values, the screen def could
>>> have just been copied from another originally and the service never
>>> implemented...
>>>
>>> Regards
>>> Scott
>>>
>>> 2008/8/25 Enrique Ruibal <[EMAIL PROTECTED]>:
>>>>
>>>> I think there is an error in this report format, as I am sure it was
>>>> working
>>>> before...
>>>>
>>>> -Enrique Ruibal
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/No-values-in-Trial-Balance-report-tp19136068p19138145.html
>>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>>
>>>>
>>
>>
>