⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Dropdwon Sort by Tittle



neocastelli

neocastelli
  • profile picture
  • Member

Posted 24 December 2012 - 21:17 PM

Need help to sort data by dropdown list on Title.

I have Location,

Store 1 and Store 2, and i want to sort data by Store 1 or Store 2 and both.


Thanks

victor

victor
  • profile picture
  • Member

Posted 25 December 2012 - 01:17 AM

You can use a callback function as solution

neocastelli

neocastelli
  • profile picture
  • Member

Posted 25 December 2012 - 01:44 AM

Hello Victor, the callback funtion can overrive the data. but i dont know how to override thw tittle.

thanks

victor

victor
  • profile picture
  • Member

Posted 25 December 2012 - 09:03 AM

Can you explain your problem in more detail?

neocastelli

neocastelli
  • profile picture
  • Member

Posted 25 December 2012 - 12:22 PM

Hello Victor, see the attached picture to be more clear :D.

Thanks

[attachment=406:dropdown_table.PNG]

victor

victor
  • profile picture
  • Member

Posted 25 December 2012 - 12:34 PM

You can use for all columns or for "store" only?
Is it one table or do you have two tables?

neocastelli

neocastelli
  • profile picture
  • Member

Posted 25 December 2012 - 12:47 PM

[quote name='victor' timestamp='1356438878' post='4877']
You can use for all columns or for "store" only?
Is it one table or do you have two tables?
[/quote]

Hello Victor, just for Store only.

The Table qty_location is:
Column 1: ID
Column 2: Product_id
Column 3: Quantity
Column 4: Location_id

i have also a relation to show the name of location, but this is not a problem.

Table Locations:

Column 1: ID
Column 2: Code
Column 3: Name

the location_id from qty_location is related with id from locations. but i will not use this relation im using the call back option to override the name of location.

Thanks

victor

victor
  • profile picture
  • Member

Posted 25 December 2012 - 12:55 PM

/topic/1067-updated-14112012-grid-view-with-dropdown-list-of-categories-in-header-library/

neocastelli

neocastelli
  • profile picture
  • Member

Posted 25 December 2012 - 13:47 PM

[quote name='victor' timestamp='1356440106' post='4879']
http://www.grocerycr...header-library/
[/quote]

Hello Victor, sorry but i dont know from where to start, this is a reference for categories adding a new library, i think that for my issue can be another solution more easy.

Thanks