add-error and check-errors not working in minilang services

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

add-error and check-errors not working in minilang services

Foo Shyn Chung
Hi all,

I found that the add-error and check-errors behavior in the minilang
services is not working. Found the following email archive but after patch
to it, it is still not working.

http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html

Anyone has any idea what is wrong?

FYI the code i'm using is 12.04. I tried with using the latest trunk and
still getting the same problem.

Thanks
FooShyn
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Jacques Le Roux
Administrator
Which Release.revision are you using (bottom of backend screens)

Jacques

From: "Foo Shyn Chung" <[hidden email]>

> Hi all,
>
> I found that the add-error and check-errors behavior in the minilang
> services is not working. Found the following email archive but after patch
> to it, it is still not working.
>
> http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html
>
> Anyone has any idea what is wrong?
>
> FYI the code i'm using is 12.04. I tried with using the latest trunk and
> still getting the same problem.
>
> Thanks
> FooShyn
>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Foo Shyn Chung
Hi Jacques,

Didn't see any revision number at the bottom. I'm using the Tomahawk theme.

Any other way to check the revision?

Thanks
FooShyn

On Tue, Jul 3, 2012 at 3:39 PM, Jacques Le Roux <
[hidden email]> wrote:

> Which Release.revision are you using (bottom of backend screens)
>
> Jacques
>
> From: "Foo Shyn Chung" <[hidden email]>
>
>  Hi all,
>>
>> I found that the add-error and check-errors behavior in the minilang
>> services is not working. Found the following email archive but after patch
>> to it, it is still not working.
>>
>> http://ofbiz.135035.n4.nabble.**com/Re-svn-commit-r1331811-**
>> ofbiz-trunk-framework-**minilang-src-org-ofbiz-**minilang-method-callops-
>> **AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>
>> Anyone has any idea what is wrong?
>>
>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>> still getting the same problem.
>>
>> Thanks
>> FooShyn
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Jacques Le Roux
Administrator
If you are Internet connected, try to run "ant svninfo"' you should then see the info

Jacques

From: "Foo Shyn Chung" <[hidden email]>

> Hi Jacques,
>
> Didn't see any revision number at the bottom. I'm using the Tomahawk theme.
>
> Any other way to check the revision?
>
> Thanks
> FooShyn
>
> On Tue, Jul 3, 2012 at 3:39 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Which Release.revision are you using (bottom of backend screens)
>>
>> Jacques
>>
>> From: "Foo Shyn Chung" <[hidden email]>
>>
>>  Hi all,
>>>
>>> I found that the add-error and check-errors behavior in the minilang
>>> services is not working. Found the following email archive but after patch
>>> to it, it is still not working.
>>>
>>> http://ofbiz.135035.n4.nabble.**com/Re-svn-commit-r1331811-**
>>> ofbiz-trunk-framework-**minilang-src-org-ofbiz-**minilang-method-callops-
>>> **AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>
>>> Anyone has any idea what is wrong?
>>>
>>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>>> still getting the same problem.
>>>
>>> Thanks
>>> FooShyn
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Foo Shyn Chung
run into an error

Execute failed: java.io.IOException: Cannot run program "svn":
CreateProcess error=2, The system cannot find the file specified

Thanks
FooShyn

On Tue, Jul 3, 2012 at 4:35 PM, Jacques Le Roux <
[hidden email]> wrote:

> If you are Internet connected, try to run "ant svninfo"' you should then
> see the info
>
>
> Jacques
>
> From: "Foo Shyn Chung" <[hidden email]>
>
>> Hi Jacques,
>>
>> Didn't see any revision number at the bottom. I'm using the Tomahawk
>> theme.
>>
>> Any other way to check the revision?
>>
>> Thanks
>> FooShyn
>>
>> On Tue, Jul 3, 2012 at 3:39 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>  Which Release.revision are you using (bottom of backend screens)
>>>
>>> Jacques
>>>
>>> From: "Foo Shyn Chung" <[hidden email]>
>>>
>>>  Hi all,
>>>
>>>>
>>>> I found that the add-error and check-errors behavior in the minilang
>>>> services is not working. Found the following email archive but after
>>>> patch
>>>> to it, it is still not working.
>>>>
>>>> http://ofbiz.135035.n4.nabble.****com/Re-svn-commit-r1331811-****
>>>> ofbiz-trunk-framework-****minilang-src-org-ofbiz-****
>>>> minilang-method-callops-
>>>> **AddErrora-td4625501.html<htt**p://ofbiz.135035.n4.nabble.**
>>>> com/Re-svn-commit-r1331811-**ofbiz-trunk-framework-**
>>>> minilang-src-org-ofbiz-**minilang-method-callops-**
>>>> AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>> >
>>>>
>>>>
>>>> Anyone has any idea what is wrong?
>>>>
>>>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>>>> still getting the same problem.
>>>>
>>>> Thanks
>>>> FooShyn
>>>>
>>>>
>>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Adrian Crum-3
In reply to this post by Foo Shyn Chung
Could you provide some sample code please?

-Adrian

On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:

> Hi all,
>
> I found that the add-error and check-errors behavior in the minilang
> services is not working. Found the following email archive but after patch
> to it, it is still not working.
>
> http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html
>
> Anyone has any idea what is wrong?
>
> FYI the code i'm using is 12.04. I tried with using the latest trunk and
> still getting the same problem.
>
> Thanks
> FooShyn
>


Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Foo Shyn Chung
<if-empty field="parameters.estimatedStartDate">
            <add-error>
                <fail-message message="The FromDate is missing"/>
            </add-error>
            <check-errors/>
        </if-empty>

Got this from the HumanRes services createPublicHoliday. It didn't work
although i tried to create a public holiday without passing in the
estimated start date.

Or did i test it wrongly?

Thanks
FooShyn

On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
[hidden email]> wrote:

> Could you provide some sample code please?
>
> -Adrian
>
>
> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>
>> Hi all,
>>
>> I found that the add-error and check-errors behavior in the minilang
>> services is not working. Found the following email archive but after patch
>> to it, it is still not working.
>>
>> http://ofbiz.135035.n4.nabble.**com/Re-svn-commit-r1331811-**
>> ofbiz-trunk-framework-**minilang-src-org-ofbiz-**minilang-method-callops-
>> **AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>
>> Anyone has any idea what is wrong?
>>
>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>> still getting the same problem.
>>
>> Thanks
>> FooShyn
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Adrian Crum-3
That code is correct and it should work. I will look into it.

-Adrian

On 7/3/2012 10:10 AM, Foo Shyn Chung wrote:

> <if-empty field="parameters.estimatedStartDate">
>              <add-error>
>                  <fail-message message="The FromDate is missing"/>
>              </add-error>
>              <check-errors/>
>          </if-empty>
>
> Got this from the HumanRes services createPublicHoliday. It didn't work
> although i tried to create a public holiday without passing in the
> estimated start date.
>
> Or did i test it wrongly?
>
> Thanks
> FooShyn
>
> On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
> [hidden email]> wrote:
>
>> Could you provide some sample code please?
>>
>> -Adrian
>>
>>
>> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>>
>>> Hi all,
>>>
>>> I found that the add-error and check-errors behavior in the minilang
>>> services is not working. Found the following email archive but after patch
>>> to it, it is still not working.
>>>
>>> http://ofbiz.135035.n4.nabble.**com/Re-svn-commit-r1331811-**
>>> ofbiz-trunk-framework-**minilang-src-org-ofbiz-**minilang-method-callops-
>>> **AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>
>>> Anyone has any idea what is wrong?
>>>
>>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>>> still getting the same problem.
>>>
>>> Thanks
>>> FooShyn
>>>
>>>
>>


Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Foo Shyn Chung
Thanks Adrian. Please keep me updated ya.

Thanks
FooShyn

On Tue, Jul 3, 2012 at 5:32 PM, Adrian Crum <
[hidden email]> wrote:

> That code is correct and it should work. I will look into it.
>
> -Adrian
>
>
> On 7/3/2012 10:10 AM, Foo Shyn Chung wrote:
>
>> <if-empty field="parameters.**estimatedStartDate">
>>              <add-error>
>>                  <fail-message message="The FromDate is missing"/>
>>              </add-error>
>>              <check-errors/>
>>          </if-empty>
>>
>> Got this from the HumanRes services createPublicHoliday. It didn't work
>> although i tried to create a public holiday without passing in the
>> estimated start date.
>>
>> Or did i test it wrongly?
>>
>> Thanks
>> FooShyn
>>
>> On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
>> adrian.crum@sandglass-**software.com <[hidden email]>>
>> wrote:
>>
>>  Could you provide some sample code please?
>>>
>>> -Adrian
>>>
>>>
>>> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>>>
>>>  Hi all,
>>>>
>>>> I found that the add-error and check-errors behavior in the minilang
>>>> services is not working. Found the following email archive but after
>>>> patch
>>>> to it, it is still not working.
>>>>
>>>> http://ofbiz.135035.n4.nabble.****com/Re-svn-commit-r1331811-****
>>>> ofbiz-trunk-framework-****minilang-src-org-ofbiz-****
>>>> minilang-method-callops-
>>>> **AddErrora-td4625501.html<htt**p://ofbiz.135035.n4.nabble.**
>>>> com/Re-svn-commit-r1331811-**ofbiz-trunk-framework-**
>>>> minilang-src-org-ofbiz-**minilang-method-callops-**
>>>> AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>> >
>>>>
>>>>
>>>> Anyone has any idea what is wrong?
>>>>
>>>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>>>> still getting the same problem.
>>>>
>>>> Thanks
>>>> FooShyn
>>>>
>>>>
>>>>
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Adrian Crum-3
I can confirm the <check-errors> element is working correctly in the
trunk. I would suggest putting a <log> element inside the <if-empty>
element to confirm the <check-errors> element is being executed.

-Adrian

On 7/3/2012 11:57 AM, Foo Shyn Chung wrote:

> Thanks Adrian. Please keep me updated ya.
>
> Thanks
> FooShyn
>
> On Tue, Jul 3, 2012 at 5:32 PM, Adrian Crum <
> [hidden email]> wrote:
>
>> That code is correct and it should work. I will look into it.
>>
>> -Adrian
>>
>>
>> On 7/3/2012 10:10 AM, Foo Shyn Chung wrote:
>>
>>> <if-empty field="parameters.**estimatedStartDate">
>>>               <add-error>
>>>                   <fail-message message="The FromDate is missing"/>
>>>               </add-error>
>>>               <check-errors/>
>>>           </if-empty>
>>>
>>> Got this from the HumanRes services createPublicHoliday. It didn't work
>>> although i tried to create a public holiday without passing in the
>>> estimated start date.
>>>
>>> Or did i test it wrongly?
>>>
>>> Thanks
>>> FooShyn
>>>
>>> On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
>>> adrian.crum@sandglass-**software.com <[hidden email]>>
>>> wrote:
>>>
>>>   Could you provide some sample code please?
>>>> -Adrian
>>>>
>>>>
>>>> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>>>>
>>>>   Hi all,
>>>>> I found that the add-error and check-errors behavior in the minilang
>>>>> services is not working. Found the following email archive but after
>>>>> patch
>>>>> to it, it is still not working.
>>>>>
>>>>> http://ofbiz.135035.n4.nabble.****com/Re-svn-commit-r1331811-****
>>>>> ofbiz-trunk-framework-****minilang-src-org-ofbiz-****
>>>>> minilang-method-callops-
>>>>> **AddErrora-td4625501.html<htt**p://ofbiz.135035.n4.nabble.**
>>>>> com/Re-svn-commit-r1331811-**ofbiz-trunk-framework-**
>>>>> minilang-src-org-ofbiz-**minilang-method-callops-**
>>>>> AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>>>
>>>>> Anyone has any idea what is wrong?
>>>>>
>>>>> FYI the code i'm using is 12.04. I tried with using the latest trunk and
>>>>> still getting the same problem.
>>>>>
>>>>> Thanks
>>>>> FooShyn
>>>>>
>>>>>
>>>>>
>>


Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Foo Shyn Chung
I see. Anyway that i can patch to the branch? Because i'm using the 12.04
branch, and I'd applied the changes you mentioned in the email that i
posted, but still it doesn't work.

The file that i'd patch is the CheckErrors and the MiniLangValidate classes

Thanks
FooShyn

On Tue, Jul 3, 2012 at 9:09 PM, Adrian Crum <
[hidden email]> wrote:

> I can confirm the <check-errors> element is working correctly in the
> trunk. I would suggest putting a <log> element inside the <if-empty>
> element to confirm the <check-errors> element is being executed.
>
> -Adrian
>
>
> On 7/3/2012 11:57 AM, Foo Shyn Chung wrote:
>
>> Thanks Adrian. Please keep me updated ya.
>>
>> Thanks
>> FooShyn
>>
>> On Tue, Jul 3, 2012 at 5:32 PM, Adrian Crum <
>> adrian.crum@sandglass-**software.com <[hidden email]>>
>> wrote:
>>
>>  That code is correct and it should work. I will look into it.
>>>
>>> -Adrian
>>>
>>>
>>> On 7/3/2012 10:10 AM, Foo Shyn Chung wrote:
>>>
>>>  <if-empty field="parameters.****estimatedStartDate">
>>>>
>>>>               <add-error>
>>>>                   <fail-message message="The FromDate is missing"/>
>>>>               </add-error>
>>>>               <check-errors/>
>>>>           </if-empty>
>>>>
>>>> Got this from the HumanRes services createPublicHoliday. It didn't work
>>>> although i tried to create a public holiday without passing in the
>>>> estimated start date.
>>>>
>>>> Or did i test it wrongly?
>>>>
>>>> Thanks
>>>> FooShyn
>>>>
>>>> On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
>>>> adrian.crum@sandglass-**softwa**re.com <http://software.com> <
>>>> adrian.crum@sandglass-**software.com<[hidden email]>
>>>> >>
>>>>
>>>> wrote:
>>>>
>>>>   Could you provide some sample code please?
>>>>
>>>>> -Adrian
>>>>>
>>>>>
>>>>> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>>>>>
>>>>>   Hi all,
>>>>>
>>>>>> I found that the add-error and check-errors behavior in the minilang
>>>>>> services is not working. Found the following email archive but after
>>>>>> patch
>>>>>> to it, it is still not working.
>>>>>>
>>>>>> http://ofbiz.135035.n4.nabble.******com/Re-svn-commit-**r1331811-****
>>>>>> ofbiz-trunk-framework-******minilang-src-org-ofbiz-****
>>>>>> minilang-method-callops-
>>>>>> **AddErrora-td4625501.html<**htt**p://ofbiz.135035.n4.**nabble.**
>>>>>> com/Re-svn-commit-r1331811-****ofbiz-trunk-framework-**
>>>>>> minilang-src-org-ofbiz-****minilang-method-callops-**
>>>>>>
>>>>>> AddErrora-td4625501.html<http:**//ofbiz.135035.n4.nabble.com/**
>>>>>> Re-svn-commit-r1331811-ofbiz-**trunk-framework-minilang-src-**
>>>>>> org-ofbiz-minilang-method-**callops-AddErrora-td4625501.**html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>>>> >
>>>>>>
>>>>>> Anyone has any idea what is wrong?
>>>>>>
>>>>>> FYI the code i'm using is 12.04. I tried with using the latest trunk
>>>>>> and
>>>>>> still getting the same problem.
>>>>>>
>>>>>> Thanks
>>>>>> FooShyn
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Adrian Crum-3
I will be back-porting the Mini-language overhaul to the Release 12
branch some time next week.

-Adrian

On 7/3/2012 3:34 PM, Foo Shyn Chung wrote:

> I see. Anyway that i can patch to the branch? Because i'm using the 12.04
> branch, and I'd applied the changes you mentioned in the email that i
> posted, but still it doesn't work.
>
> The file that i'd patch is the CheckErrors and the MiniLangValidate classes
>
> Thanks
> FooShyn
>
> On Tue, Jul 3, 2012 at 9:09 PM, Adrian Crum <
> [hidden email]> wrote:
>
>> I can confirm the <check-errors> element is working correctly in the
>> trunk. I would suggest putting a <log> element inside the <if-empty>
>> element to confirm the <check-errors> element is being executed.
>>
>> -Adrian
>>
>>
>> On 7/3/2012 11:57 AM, Foo Shyn Chung wrote:
>>
>>> Thanks Adrian. Please keep me updated ya.
>>>
>>> Thanks
>>> FooShyn
>>>
>>> On Tue, Jul 3, 2012 at 5:32 PM, Adrian Crum <
>>> adrian.crum@sandglass-**software.com <[hidden email]>>
>>> wrote:
>>>
>>>   That code is correct and it should work. I will look into it.
>>>> -Adrian
>>>>
>>>>
>>>> On 7/3/2012 10:10 AM, Foo Shyn Chung wrote:
>>>>
>>>>   <if-empty field="parameters.****estimatedStartDate">
>>>>>                <add-error>
>>>>>                    <fail-message message="The FromDate is missing"/>
>>>>>                </add-error>
>>>>>                <check-errors/>
>>>>>            </if-empty>
>>>>>
>>>>> Got this from the HumanRes services createPublicHoliday. It didn't work
>>>>> although i tried to create a public holiday without passing in the
>>>>> estimated start date.
>>>>>
>>>>> Or did i test it wrongly?
>>>>>
>>>>> Thanks
>>>>> FooShyn
>>>>>
>>>>> On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
>>>>> adrian.crum@sandglass-**softwa**re.com <http://software.com> <
>>>>> adrian.crum@sandglass-**software.com<[hidden email]>
>>>>> wrote:
>>>>>
>>>>>    Could you provide some sample code please?
>>>>>
>>>>>> -Adrian
>>>>>>
>>>>>>
>>>>>> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>>>>>>
>>>>>>    Hi all,
>>>>>>
>>>>>>> I found that the add-error and check-errors behavior in the minilang
>>>>>>> services is not working. Found the following email archive but after
>>>>>>> patch
>>>>>>> to it, it is still not working.
>>>>>>>
>>>>>>> http://ofbiz.135035.n4.nabble.******com/Re-svn-commit-**r1331811-****
>>>>>>> ofbiz-trunk-framework-******minilang-src-org-ofbiz-****
>>>>>>> minilang-method-callops-
>>>>>>> **AddErrora-td4625501.html<**htt**p://ofbiz.135035.n4.**nabble.**
>>>>>>> com/Re-svn-commit-r1331811-****ofbiz-trunk-framework-**
>>>>>>> minilang-src-org-ofbiz-****minilang-method-callops-**
>>>>>>>
>>>>>>> AddErrora-td4625501.html<http:**//ofbiz.135035.n4.nabble.com/**
>>>>>>> Re-svn-commit-r1331811-ofbiz-**trunk-framework-minilang-src-**
>>>>>>> org-ofbiz-minilang-method-**callops-AddErrora-td4625501.**html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>>>>> Anyone has any idea what is wrong?
>>>>>>>
>>>>>>> FYI the code i'm using is 12.04. I tried with using the latest trunk
>>>>>>> and
>>>>>>> still getting the same problem.
>>>>>>>
>>>>>>> Thanks
>>>>>>> FooShyn
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>


Reply | Threaded
Open this post in threaded view
|

Re: add-error and check-errors not working in minilang services

Foo Shyn Chung
Ok. Thanks lots.

Thanks
FooShyn

On Tue, Jul 3, 2012 at 10:48 PM, Adrian Crum <
[hidden email]> wrote:

> I will be back-porting the Mini-language overhaul to the Release 12 branch
> some time next week.
>
> -Adrian
>
>
> On 7/3/2012 3:34 PM, Foo Shyn Chung wrote:
>
>> I see. Anyway that i can patch to the branch? Because i'm using the 12.04
>> branch, and I'd applied the changes you mentioned in the email that i
>> posted, but still it doesn't work.
>>
>> The file that i'd patch is the CheckErrors and the MiniLangValidate
>> classes
>>
>> Thanks
>> FooShyn
>>
>> On Tue, Jul 3, 2012 at 9:09 PM, Adrian Crum <
>> adrian.crum@sandglass-**software.com <[hidden email]>>
>> wrote:
>>
>>  I can confirm the <check-errors> element is working correctly in the
>>> trunk. I would suggest putting a <log> element inside the <if-empty>
>>> element to confirm the <check-errors> element is being executed.
>>>
>>> -Adrian
>>>
>>>
>>> On 7/3/2012 11:57 AM, Foo Shyn Chung wrote:
>>>
>>>  Thanks Adrian. Please keep me updated ya.
>>>>
>>>> Thanks
>>>> FooShyn
>>>>
>>>> On Tue, Jul 3, 2012 at 5:32 PM, Adrian Crum <
>>>> adrian.crum@sandglass-**softwa**re.com <http://software.com> <
>>>> adrian.crum@sandglass-**software.com<[hidden email]>
>>>> >>
>>>>
>>>> wrote:
>>>>
>>>>   That code is correct and it should work. I will look into it.
>>>>
>>>>> -Adrian
>>>>>
>>>>>
>>>>> On 7/3/2012 10:10 AM, Foo Shyn Chung wrote:
>>>>>
>>>>>   <if-empty field="parameters.******estimatedStartDate">
>>>>>
>>>>>>                <add-error>
>>>>>>                    <fail-message message="The FromDate is missing"/>
>>>>>>                </add-error>
>>>>>>                <check-errors/>
>>>>>>            </if-empty>
>>>>>>
>>>>>> Got this from the HumanRes services createPublicHoliday. It didn't
>>>>>> work
>>>>>> although i tried to create a public holiday without passing in the
>>>>>> estimated start date.
>>>>>>
>>>>>> Or did i test it wrongly?
>>>>>>
>>>>>> Thanks
>>>>>> FooShyn
>>>>>>
>>>>>> On Tue, Jul 3, 2012 at 5:04 PM, Adrian Crum <
>>>>>> adrian.crum@sandglass-****softwa**re.com <http://software.com> <
>>>>>>
>>>>>> adrian.crum@sandglass-**softwa**re.com <http://software.com><
>>>>>> adrian.crum@sandglass-**software.com<[hidden email]>
>>>>>> >
>>>>>> wrote:
>>>>>>
>>>>>>    Could you provide some sample code please?
>>>>>>
>>>>>>  -Adrian
>>>>>>>
>>>>>>>
>>>>>>> On 7/3/2012 7:27 AM, Foo Shyn Chung wrote:
>>>>>>>
>>>>>>>    Hi all,
>>>>>>>
>>>>>>>  I found that the add-error and check-errors behavior in the minilang
>>>>>>>> services is not working. Found the following email archive but after
>>>>>>>> patch
>>>>>>>> to it, it is still not working.
>>>>>>>>
>>>>>>>> http://ofbiz.135035.n4.nabble.********com/Re-svn-commit-****
>>>>>>>> r1331811-****
>>>>>>>> ofbiz-trunk-framework-********minilang-src-org-ofbiz-****
>>>>>>>> minilang-method-callops-
>>>>>>>> **AddErrora-td4625501.html<****htt**p://ofbiz.135035.n4.****
>>>>>>>> nabble.**
>>>>>>>> com/Re-svn-commit-r1331811-******ofbiz-trunk-framework-**
>>>>>>>> minilang-src-org-ofbiz-******minilang-method-callops-**
>>>>>>>>
>>>>>>>> AddErrora-td4625501.html<http:****//ofbiz.135035.n4.nabble.**com/**<http://ofbiz.135035.n4.nabble.com/**>
>>>>>>>> Re-svn-commit-r1331811-ofbiz-****trunk-framework-minilang-src-****
>>>>>>>> org-ofbiz-minilang-method-****callops-AddErrora-td4625501.****html<
>>>>>>>> http://ofbiz.135035.n4.**nabble.com/Re-svn-commit-**
>>>>>>>> r1331811-ofbiz-trunk-**framework-minilang-src-org-**
>>>>>>>> ofbiz-minilang-method-callops-**AddErrora-td4625501.html<http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1331811-ofbiz-trunk-framework-minilang-src-org-ofbiz-minilang-method-callops-AddErrora-td4625501.html>
>>>>>>>> >
>>>>>>>>
>>>>>>>> Anyone has any idea what is wrong?
>>>>>>>>
>>>>>>>> FYI the code i'm using is 12.04. I tried with using the latest trunk
>>>>>>>> and
>>>>>>>> still getting the same problem.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> FooShyn
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>
>
>