category name instead category id

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

category name instead category id

swetha
Hi,
   I need to pass category name instead of category Id. In my application category Id is primary key. when i passed categoryname and send a request, it is giving error like "Category not found for Category ID !"

Can u give an idea how to hide categoryId and have to display category name.
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

Rishi Solanki
Please post more information what you want to achieve.

Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com


On Wed, May 5, 2010 at 1:16 PM, swetha <
[hidden email]> wrote:

>
> Hi,
>   I need to pass category name instead of category Id. In my application
> category Id is primary key. when i passed categoryname and send a request,
> it is giving error like "Category not found for Category ID !"
>
> Can u give an idea how to hide categoryId and have to display category
> name.
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2130570.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

swetha
In my application at user side some category's are displaying. If we click on a particular category image, it should go to the next page. suppose for that url is <a href="http://localhost:xxxx/ecart/control/category/~category_id=BROWSEMEN">http://localhost:xxxx/ecart/control/category/~category_id=BROWSEMEN. Here category Id is primary key. now i want to display category name in place of category Id and remaining pages should work properly. I kept category id in hidden form and fetch category name from the database. Then it is displaying category name but when we click on particular category image it is showing that "category not found for particular category Id".
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

Jacques Le Roux
Administrator
In reply to this post by swetha
Do you mean from a lookup?

Jacques

From: "swetha" <[hidden email]>

>
> Hi,
>   I need to pass category name instead of category Id. In my application
> category Id is primary key. when i passed categoryname and send a request,
> it is giving error like "Category not found for Category ID !"
>
> Can u give an idea how to hide categoryId and have to display category name.
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2130570.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

Ravindra Mandre-2
In reply to this post by swetha
you can pass categoryId and then show category name <display description>
 (if you are using form widget)  or
<option
value="${listVariableName.categoryId}">${listVariableName.get("fieldName",locale)}</option>
if you are using ftl



HTH

Regards
Ravindra Mandre

On Wed, May 5, 2010 at 1:16 PM, swetha <
[hidden email]> wrote:

>
> Hi,
>   I need to pass category name instead of category Id. In my application
> category Id is primary key. when i passed categoryname and send a request,
> it is giving error like "Category not found for Category ID !"
>
> Can u give an idea how to hide categoryId and have to display category
> name.
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2130570.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

swetha
In reply to this post by Jacques Le Roux
yes

On 5 May 2010 21:59, Jacques Le Roux [via OFBiz] <[hidden email]> wrote:
Do you mean from a lookup?

Jacques

From: "swetha" <[hidden email]>

>
> Hi,
>   I need to pass category name instead of category Id. In my application
> category Id is primary key. when i passed categoryname and send a request,
> it is giving error like "Category not found for Category ID !"
>
> Can u give an idea how to hide categoryId and have to display category name.
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2130570.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>




View message @ http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2131241.html
To unsubscribe from category name instead category id, click here.




--
Thanks & Regards
Swapna Dondeti
www.palindromesoftware.com
<input onclick="jsCall();" id="jsProxy" type="hidden">
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

Anurag Walia
Have u got the solution?
 
Regards
Anurag Walia
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

Jacques Le Roux
Administrator
In reply to this post by swetha
Could you explain more what you want exactly to do.
Because I guess you will always need to pass the categoryId as it's a primary key...

Jacques

From: "swetha" <[hidden email]>

> yes
>
> On 5 May 2010 21:59, Jacques Le Roux [via OFBiz] <
> [hidden email]<ml-node%[hidden email]>
>> wrote:
>
>> Do you mean from a lookup?
>>
>> Jacques
>>
>> From: "swetha" <[hidden email]<http://user/SendEmail.jtp?type=node&node=2131241&i=0>>
>>
>>
>> >
>> > Hi,
>> >   I need to pass category name instead of category Id. In my application
>> > category Id is primary key. when i passed categoryname and send a
>> request,
>> > it is giving error like "Category not found for Category ID !"
>> >
>> > Can u give an idea how to hide categoryId and have to display category
>> name.
>> >
>> > --
>> > View this message in context:
>> http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2130570.html
>> > Sent from the OFBiz - User mailing list archive at Nabble.com.
>> >
>>
>>
>>
>> ------------------------------
>>  View message @
>> http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2131241.html
>> To unsubscribe from category name instead category id, click here< (link removed) ==>.
>>
>>
>>
>
>
> --
> Thanks & Regards
> Swapna Dondeti
> www.palindromesoftware.com
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2132089.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

swetha
In reply to this post by Anurag Walia
Not yet now
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

Anurag Walia
This post was updated on .
Hi, have u tried for this one? i think this is easy solution href="findCategory?categoryId=${categoryList.categoryId}">${categoryList.get("categoryName")} Anurag walia
Reply | Threaded
Open this post in threaded view
|

Re: category name instead category id

swetha
Hi, thanks for your suggestion.
I am getting category name and it is displaying but internally it is searching for category id and when we click on category name it is showing error message saying category not found for category id

On 10 May 2010 09:20, Anurag Walia [via OFBiz] <[hidden email]> wrote:
Hi,
have u tried for this one?
i think this is easy solution
${categoryList.get("categoryName")}


Anurag walia


View message @ http://ofbiz.135035.n4.nabble.com/category-name-instead-category-id-tp2130570p2164912.html
To unsubscribe from Re: category name instead category id, click here.




--
Thanks & Regards
Swapna Dondeti
www.palindromesoftware.com
<input onclick="jsCall();" id="jsProxy" type="hidden">