The interesting thing is, that when I want to update (not delete) the
attribute...it works fine, but when I want delet, than it does not work,
cause of th "+"-signs.
The only difference is, that there is a hyperlink used to send the parameter
(for delete) to the service. By updating the data, there is a submit-button
in use.
what is the difference? Why in one case it add the "+" signs, and in the
other case, it does not?
Robert G. wrote
>
> Hello,
>
> I refer i.ex. to ProductCategoryAttribute
> There is a primary Key named "attrName" (id-long-ne, but I changed to
> id-ne).
>
> when I safe a as attrName a String like: "This String" it safes the value.
> But when I want to delete this attribute, I get an error, that it is not
> found. Now I realised, that when the service gets the value from database
> it makes this string: "This*+*String", so it inserts a "+" instead of the
> whitespace --> of course now it cannot find the corresponding
> entityinstance.
>
> How can I work arround there? I tried sth like:
> <set field="attrName"
> from-field="${bsh:parameters.attrName.replaceAll('+',' '}" />
> but it does not work.
> If this would work, I do not like this solution, cause when I have to
> handle lots of values, this is not a nice work around.
>
> Has PK Fields have to be a single string? Cause I wanted to name the
> attribute correctly, just as I show it in my eccommerce application, so if
> I have to use a single string, I need to add e new column to that entity.
>
> What would you do?
>
> Thanks
>
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/Problem-with-Primary-Key-String-tp4635353p4635361.html
Sent from the OFBiz - User mailing list archive at Nabble.com.