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. |
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. > |
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".
|
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. > |
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. > |
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? -- Thanks & Regards Swapna Dondeti www.palindromesoftware.com <input onclick="jsCall();" id="jsProxy" type="hidden"> |
Have u got the solution?
Regards Anurag Walia |
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. > |
In reply to this post by Anurag Walia
Not yet now
|
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
|
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, -- Thanks & Regards Swapna Dondeti www.palindromesoftware.com <input onclick="jsCall();" id="jsProxy" type="hidden"> |
Free forum by Nabble | Edit this page |