RushiShroff
Programmer
Well I have parent child relationship between categories and subcategories in my master table.
Table : Application
Fields :
Application_Id
Application_Name
Application_Parent_Id
Here Appcation_Id indicates Id of a particular cat or sub category.
Name indiactes name and most important last one parent is indicates the parent ID of that sub category.
Like
1 Business 0
2 Technology 0
3 Accounting 0
4 IT 1
5 ERP 4
So first 3 are main categories.
Business has one sub cat IT and it has also one ERP.
Table : Product
Now I am inserting this ID in my transaction table Products.
To indicate which ID it has.
Like if my product is PeopleSoft I will insert 5 in the Field Application.
I am offering search also in the site.
There I am searching on the basis of first 2 categories and subcategories.So in first combo I select all categories having parent application ID 0(Main)
When user selects some main cat, after submitting page I list all sub categories for that category.(Parent 1 or selected)
In my mechanism,how can I perform search if I have selected
Business as main category and no choice for sub category ?
I want ERP to come as a result ?
Or it may be some sub branch of ERP also which is listed then I also want it to come as my result.
Think and answer ....!
Only experts please !
Rushi Shroff Rushi@emqube.com
"Life is beautiful."
Table : Application
Fields :
Application_Id
Application_Name
Application_Parent_Id
Here Appcation_Id indicates Id of a particular cat or sub category.
Name indiactes name and most important last one parent is indicates the parent ID of that sub category.
Like
1 Business 0
2 Technology 0
3 Accounting 0
4 IT 1
5 ERP 4
So first 3 are main categories.
Business has one sub cat IT and it has also one ERP.
Table : Product
Now I am inserting this ID in my transaction table Products.
To indicate which ID it has.
Like if my product is PeopleSoft I will insert 5 in the Field Application.
I am offering search also in the site.
There I am searching on the basis of first 2 categories and subcategories.So in first combo I select all categories having parent application ID 0(Main)
When user selects some main cat, after submitting page I list all sub categories for that category.(Parent 1 or selected)
In my mechanism,how can I perform search if I have selected
Business as main category and no choice for sub category ?
I want ERP to come as a result ?
Or it may be some sub branch of ERP also which is listed then I also want it to come as my result.
Think and answer ....!
Only experts please !
Rushi Shroff Rushi@emqube.com
"Life is beautiful."