You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacek Wagner <ja...@berkeley.edu> on 2008/12/01 17:55:27 UTC

hyperlink & submit in widget form

Hi,

Is it possible to merge submit and hyperlink. In other words I would 
like to have form where a single click will update a form/table and pass 
control to the next  screen.

Jacek

Re: Possible error in ofbiz?

Posted by David E Jones <da...@hotwaxmedia.com>.
Actually no, it is just a simple-method warning to let you know there  
is no value when an operation implied there would be.

-David


On Dec 2, 2008, at 1:57 PM, BJ Freeman wrote:

> could also mean that there is no field by that name.
>
> Jacek Wagner sent the following on 12/2/2008 8:38 AM:
>> It was one of the most confusing messages in the log.
>> .... Field value not found with name productPrice in Map with  
>> name ....
>>
>> really meant that  query did not  return  any  value; data not syntax
>> problem
>>
>> BJ Freeman wrote:
>>> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
>>>
>>> no producPrice in the Entity.
>>> try price.
>>> also
>>> https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
>>>
>>> to find the FK names which are not fields.
>>>
>>> Jacek Wagner sent the following on 12/1/2008 5:24 PM:
>>>
>>>> All,
>>>>
>>>> Below are two almost identical simple methods. When tested thru
>>>> WebToolsService/Service Reference the first getBirthdayParty  
>>>> works the
>>>> second
>>>> getProductPrice produces exception 2008-12-01 17:13:17,641
>>>> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
>>>> Field value not found with name productPrice in Map with name
>>>>
>>>>   <simple-method method-name="getBirthdayParty"
>>>> short-description="Retrieve birthday party information">
>>>>       <!-- find the birthday party record -->
>>>>       <make-value value-name="lookupPKMap"
>>>> entity-name="RegistrationBirthdayParty"/>
>>>>       <set-pk-fields map-name="parameters" value- 
>>>> name="lookupPKMap"/>
>>>>       <find-by-primary-key entity-name="RegistrationBirthdayParty"
>>>> map-name="lookupPKMap" value-name="bpiValue"/>
>>>>       <field-to-result field-name="bpiValue"
>>>> result-name="bpinformation"/>
>>>>   </simple-method>
>>>>     <simple-method method-name="getProductPrice"
>>>> short-description="Retrieve product price information">
>>>>       <!-- find product price record -->
>>>>       <make-value value-name="lookupPKMap"
>>>> entity-name="ProductPrice"/>              <set-pk-fields
>>>> map-name="parameters" value-name="lookupPKMap"/>
>>>>       <find-by-primary-key entity-name="ProductPrice"
>>>> map-name="lookupPKMap" value-name="productPrice"/>
>>>>       <field-to-result field-name="productPrice" result- 
>>>> name="pprice"/>
>>>>   </simple-method>
>>>>
>>>> Jacek
>>>>
>>>>
>>>>
>>>>
>>
>>
>>


Re: Possible error in ofbiz?

Posted by BJ Freeman <bj...@free-man.net>.
could also mean that there is no field by that name.

Jacek Wagner sent the following on 12/2/2008 8:38 AM:
> It was one of the most confusing messages in the log.
> .... Field value not found with name productPrice in Map with name ....
> 
> really meant that  query did not  return  any  value; data not syntax
> problem
> 
> BJ Freeman wrote:
>> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
>>
>> no producPrice in the Entity.
>> try price.
>> also
>> https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
>>
>> to find the FK names which are not fields.
>>
>> Jacek Wagner sent the following on 12/1/2008 5:24 PM:
>>  
>>> All,
>>>
>>> Below are two almost identical simple methods. When tested thru
>>> WebToolsService/Service Reference the first getBirthdayParty works the
>>> second
>>> getProductPrice produces exception 2008-12-01 17:13:17,641
>>> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
>>> Field value not found with name productPrice in Map with name
>>>
>>>    <simple-method method-name="getBirthdayParty"
>>> short-description="Retrieve birthday party information">
>>>        <!-- find the birthday party record -->
>>>        <make-value value-name="lookupPKMap"
>>> entity-name="RegistrationBirthdayParty"/>
>>>        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>>>        <find-by-primary-key entity-name="RegistrationBirthdayParty"
>>> map-name="lookupPKMap" value-name="bpiValue"/>
>>>        <field-to-result field-name="bpiValue"
>>> result-name="bpinformation"/>
>>>    </simple-method>
>>>      <simple-method method-name="getProductPrice"
>>> short-description="Retrieve product price information">
>>>        <!-- find product price record -->
>>>        <make-value value-name="lookupPKMap"
>>> entity-name="ProductPrice"/>              <set-pk-fields
>>> map-name="parameters" value-name="lookupPKMap"/>
>>>        <find-by-primary-key entity-name="ProductPrice"
>>> map-name="lookupPKMap" value-name="productPrice"/>
>>>        <field-to-result field-name="productPrice" result-name="pprice"/>
>>>    </simple-method>
>>>
>>> Jacek
>>>
>>>
>>>
>>>     
> 
> 
> 

Re: Possible error in ofbiz?

Posted by Jacek Wagner <ja...@berkeley.edu>.
It was one of the most confusing messages in the log. 

.... Field value not found with name productPrice in Map with name ....

really meant that  query did not  return  any  value; data not syntax 
problem

BJ Freeman wrote:
> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
> no producPrice in the Entity.
> try price.
> also
> https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
> to find the FK names which are not fields.
>
> Jacek Wagner sent the following on 12/1/2008 5:24 PM:
>   
>> All,
>>
>> Below are two almost identical simple methods. When tested thru
>> WebToolsService/Service Reference the first getBirthdayParty works the
>> second
>> getProductPrice produces exception 2008-12-01 17:13:17,641
>> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
>> Field value not found with name productPrice in Map with name
>>
>>    <simple-method method-name="getBirthdayParty"
>> short-description="Retrieve birthday party information">
>>        <!-- find the birthday party record -->
>>        <make-value value-name="lookupPKMap"
>> entity-name="RegistrationBirthdayParty"/>
>>        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>>        <find-by-primary-key entity-name="RegistrationBirthdayParty"
>> map-name="lookupPKMap" value-name="bpiValue"/>
>>        <field-to-result field-name="bpiValue" result-name="bpinformation"/>
>>    </simple-method>
>>      <simple-method method-name="getProductPrice"
>> short-description="Retrieve product price information">
>>        <!-- find product price record -->
>>        <make-value value-name="lookupPKMap"
>> entity-name="ProductPrice"/>              <set-pk-fields
>> map-name="parameters" value-name="lookupPKMap"/>
>>        <find-by-primary-key entity-name="ProductPrice"
>> map-name="lookupPKMap" value-name="productPrice"/>
>>        <field-to-result field-name="productPrice" result-name="pprice"/>
>>    </simple-method>
>>
>> Jacek
>>
>>
>>
>>     


Re: Possible error in ofbiz?

Posted by BJ Freeman <bj...@free-man.net>.
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
no producPrice in the Entity.
try price.
also
https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
to find the FK names which are not fields.

Jacek Wagner sent the following on 12/1/2008 5:24 PM:
> All,
> 
> Below are two almost identical simple methods. When tested thru
> WebToolsService/Service Reference the first getBirthdayParty works the
> second
> getProductPrice produces exception 2008-12-01 17:13:17,641
> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
> Field value not found with name productPrice in Map with name
> 
>    <simple-method method-name="getBirthdayParty"
> short-description="Retrieve birthday party information">
>        <!-- find the birthday party record -->
>        <make-value value-name="lookupPKMap"
> entity-name="RegistrationBirthdayParty"/>
>        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>        <find-by-primary-key entity-name="RegistrationBirthdayParty"
> map-name="lookupPKMap" value-name="bpiValue"/>
>        <field-to-result field-name="bpiValue" result-name="bpinformation"/>
>    </simple-method>
>      <simple-method method-name="getProductPrice"
> short-description="Retrieve product price information">
>        <!-- find product price record -->
>        <make-value value-name="lookupPKMap"
> entity-name="ProductPrice"/>              <set-pk-fields
> map-name="parameters" value-name="lookupPKMap"/>
>        <find-by-primary-key entity-name="ProductPrice"
> map-name="lookupPKMap" value-name="productPrice"/>
>        <field-to-result field-name="productPrice" result-name="pprice"/>
>    </simple-method>
> 
> Jacek
> 
> 
> 

Re: Possible error in ofbiz?

Posted by guo weizhan <gu...@gmail.com>.
It seems you didn't get the entity correctly. Check the parameters to see is
there the right parameters you passed.

2008/12/2 Jacek Wagner <ja...@berkeley.edu>

> All,
>
> Below are two almost identical simple methods. When tested thru
> WebToolsService/Service Reference the first getBirthdayParty works the
> second
> getProductPrice produces exception 2008-12-01 17:13:17,641
> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ] Field
> value not found with name productPrice in Map with name
>
>   <simple-method method-name="getBirthdayParty" short-description="Retrieve
> birthday party information">
>       <!-- find the birthday party record -->
>       <make-value value-name="lookupPKMap"
> entity-name="RegistrationBirthdayParty"/>
>       <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>       <find-by-primary-key entity-name="RegistrationBirthdayParty"
> map-name="lookupPKMap" value-name="bpiValue"/>
>       <field-to-result field-name="bpiValue" result-name="bpinformation"/>
>   </simple-method>
>     <simple-method method-name="getProductPrice"
> short-description="Retrieve product price information">
>       <!-- find product price record -->
>       <make-value value-name="lookupPKMap" entity-name="ProductPrice"/>
>         <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>       <find-by-primary-key entity-name="ProductPrice"
> map-name="lookupPKMap" value-name="productPrice"/>
>       <field-to-result field-name="productPrice" result-name="pprice"/>
>   </simple-method>
>
> Jacek
>
>

Possible error in ofbiz?

Posted by Jacek Wagner <ja...@berkeley.edu>.
All,

Below are two almost identical simple methods. When tested thru 
WebToolsService/Service Reference the first getBirthdayParty works the 
second
getProductPrice produces exception 2008-12-01 17:13:17,641 
(http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ] 
Field value not found with name productPrice in Map with name

    <simple-method method-name="getBirthdayParty" 
short-description="Retrieve birthday party information">
        <!-- find the birthday party record -->
        <make-value value-name="lookupPKMap" 
entity-name="RegistrationBirthdayParty"/>
        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
        <find-by-primary-key entity-name="RegistrationBirthdayParty" 
map-name="lookupPKMap" value-name="bpiValue"/>
        <field-to-result field-name="bpiValue" result-name="bpinformation"/>
    </simple-method>
   
    <simple-method method-name="getProductPrice" 
short-description="Retrieve product price information">
        <!-- find product price record -->
        <make-value value-name="lookupPKMap" 
entity-name="ProductPrice"/>       
        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
        <find-by-primary-key entity-name="ProductPrice" 
map-name="lookupPKMap" value-name="productPrice"/>
        <field-to-result field-name="productPrice" result-name="pprice"/>
    </simple-method>

Jacek


Re: hyperlink & submit in widget form

Posted by Jacek Wagner <ja...@berkeley.edu>.
BJ Freeman wrote:
> the way this is handled in ofbiz is thru the controller.
> you submit is a url to a request-map then then can be directed to a new view
>
> Jacek Wagner sent the following on 12/1/2008 8:55 AM:
>   
>> Hi,
>>
>> Is it possible to merge submit and hyperlink. In other words I would
>> like to have form where a single click will update a form/table and pass
>> control to the next  screen.
>>
>> Jacek
>>
>>
>>     
Works just like I wanted. Thank you.

Re: hyperlink & submit in widget form

Posted by BJ Freeman <bj...@free-man.net>.
the way this is handled in ofbiz is thru the controller.
you submit is a url to a request-map then then can be directed to a new view

Jacek Wagner sent the following on 12/1/2008 8:55 AM:
> Hi,
> 
> Is it possible to merge submit and hyperlink. In other words I would
> like to have form where a single click will update a form/table and pass
> control to the next  screen.
> 
> Jacek
> 
> 

Re: hyperlink & submit in widget form

Posted by madppiper <pa...@mutschler.ch>.

Can't you forward with the correct parameters after processing the form
data?



Jacek Wagner wrote:
> 
> Hi,
> 
> Is it possible to merge submit and hyperlink. In other words I would 
> like to have form where a single click will update a form/table and pass 
> control to the next  screen.
> 
> Jacek
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-a-screen-parameter-for-beanshell-usage-tp20734025p20779385.html
Sent from the OFBiz - User mailing list archive at Nabble.com.