There are 2 ways to deal with that from lookups. For the one Raj suggested, you 
should use something like you will find in the
FormWidgetExampleForms.xml file at line 291. Of course in your case you will 
use the hidden field. I hope it's clear enough now.

Another way, but it's maybe not what you are looking for, is to use another 
(not well documented yet) new feature in OFBiz which
allow to show the "name" (description at large) beside (at right for now) the 
lookups while still allowing to enter the data Id in
the lookup field. For that look at the line 288: it uses the 
client-autocomplete-field.

The requirement is the same: to handle mandatory Ids (prim keys) but also allow 
to show the information the user is aware about
(name, description, etc.)

You may also hide the lookup field by using size=0. But it's a specific case when you want to see only a button and no field, not related to your problem I guess.

You will have to update to trunk at r942576. Else it will show tomorrow in 
trunk demo...

HTH

Jacques

From: "Raj Saini" <rajsa...@gmail.com>
Swetha,

I don't think you can hide the product id it is used to look up the product. 
However, one way to achieve this is to pass the
product id in as a hidden form variable in your page but this will need 
customization.

Thanks,

Raj

On 08/05/10 19:10, swetha wrote:
Hi,
Here i am giving sample url rewriting code of my doubt, i am using apache..

RewriteRule ^/(.*)/(.*).html$
ajp://localhost:000/ecart/control/product/~product_name=$2 [P,L]
ProxyHTMLURLMap
^(.*)/ecart/control/product/~product_id=(.*)/~product_name=(.*);(.*)$
$1/$2/$3.html [R]
ProxyHTMLURLMap
^(.*)/ecart/control/product/~product_id=(.*)/~product_name=(.*)$
$1/$2/$3.html [R]

In this I want to display only product_name in url of my application. How
can i hide product_id


Suggest me.........
[Go to top]





Reply via email to