Turning Document Types into sub-tabs  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Turning Document Types into sub-tabs

Postby DannyC » Wed Sep 30, 2020 2:42 pm

Question from client which I haven't even attempted but thought I'd post here immediately...

Instead of single Documents tab where we select the document type from the configured list, how about sub tabs under documents for each type?
Possible? Difficult?

For this particular scenario, I think it might be under Contacts, but same concept would/could apply to inventory, debtors, sales orders etc. Anywhere where we have a documents tab.
User avatar
DannyC
Senpai
Senpai
 
Posts: 635
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 29

Re: Turning Document Types into sub-tabs

Postby Mike.Sheen » Wed Sep 30, 2020 2:45 pm

Sure, it's possible - can't imagine it being terribly difficult, either.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755

Re: Turning Document Types into sub-tabs

Postby SBarnes » Wed Sep 30, 2020 3:12 pm

It might be more intuitive and easier to replicate the current tab but have a combo which filters the document type because if you have a lot of document types it would get messy and confusing. I suppose it depends on what the customer is trying to achieve.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Turning Document Types into sub-tabs

Postby DannyC » Wed Sep 30, 2020 4:33 pm

if you have a lot of document types it would get messy and confusing

Yep, agreed. For this client they not gonna have more than 4 or 5 types so should be OK. Any more and I'd hesitate to do this tweak.

I like having the single Documents tab as is now, then sub tabs underneath.

I'll see if I can fiddle about with a plugin on my own but I might lean on others expertise in the next few days (I'm looking at you Stuart, Mike & Scott!)
User avatar
DannyC
Senpai
Senpai
 
Posts: 635
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 29

Re: Turning Document Types into sub-tabs

Postby Scott.Pearce » Wed Sep 30, 2020 4:42 pm

I'd leave the normal Documents tab there (perhaps hidden), and add my very own replacement "Documents" tab to house the sub-tabs.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Turning Document Types into sub-tabs

Postby Mike.Sheen » Wed Sep 30, 2020 4:50 pm

DannyC wrote:I'll see if I can fiddle about with a plugin on my own


If you want an example of adding a tab to an existing tab control via plugin, have a look at the Magento Integration plugin which ships with demo data as standard - line 675 - it adds tabs and the respective tab panel and puts a grid on each tab.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755

Re: Turning Document Types into sub-tabs  Topic is solved

Postby SBarnes » Wed Sep 30, 2020 7:58 pm

Alternately Mike provided a plugin example here viewtopic.php?f=26&t=855&p=4741&hilit=contacts#p4741.

There is also the poor man's version where you can just turn the filter on on the documents grid.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron