CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Break a long record to many tabs using TabbedView and TabbedTab

Print topic Send  topic

Author Message
Aleister

Posts: 73
Posted: 10/16/2008, 12:18 PM

Hello,

Does anyone know how can we break a looooong record to many tabs using TabbedView and TabbedTab?

Thank you,
George
View profile  Send private message
andy


Posts: 183
Posted: 10/17/2008, 1:16 AM

Hi George

You can spread different fields of the same record over different tabs.
To do this you can place a new Record on each tab and make sure that the record is synched to the same record.
e.g.
WHERE ID=ID
(ID=URL variable)
The only problem is that if you will need to Submit (Save) changes for each form (tab) separately.
You can experiment having one Save button which onclick submits all forms and therefore saves all records and all changes on all tabs. (To avoid confusion hide or delete the actual Submit buttons on each form/tab.)

Is this what you meant?
_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
View profile  Send private message
Aleister

Posts: 73
Posted: 10/17/2008, 10:02 AM

Thank you for your reply andy.

Well, yes and no. I think it might work the way you describe but it seems that it will need a lot of hacking for every record page that I need to use tabbed interface (I like the tab idea so there will be many long records to break to tabs).

In this case it might be best to find a ready-made javascript to do it and forget TabbedTab and TabbedView.

Isn't there an easier way to work this kind of stuff with TabbedTab and TabbedView (or an alternative)?
View profile  Send private message
Waspman

Posts: 948
Posted: 10/17/2008, 1:02 PM

How long is looooong?

T
_________________
http://www.waspmedia.co.uk
View profile  Send private message
Aleister

Posts: 73
Posted: 10/17/2008, 2:10 PM

Quote Waspman:
How long is looooong?

T
The records I am interested to break are about four screens moving up/down (in 1650x1050).
View profile  Send private message
cleyan


Posts: 136
Posted: 10/17/2008, 10:21 PM

I use Tab Pane from webfx

is an old script but it works, is only javascript not ajax

http://webfx.eae.net/dhtml/tabpane/tabpane.html

see example
http://webfx.eae.net/dhtml/tabpane/demo.html

I have to edit a table with a lot of fields and I divide in 4 tabs and work fine

I hope it helps you

Regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
andy


Posts: 183
Posted: 10/17/2008, 10:36 PM

Hi Carlos

Nice looking tab implementation. One question:
Are you able to put your divs (tabs) within the form
i.e. one form, multiple tabs?
_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
View profile  Send private message
Aleister

Posts: 73
Posted: 10/18/2008, 2:39 AM

Thank you Carlos, the script looks great! I will try it and see how it works with CCS records.

I also found a jQuery alternative, it is wizard like but with little CSS modification it easily looks like tabbed interface. I didn't tried it yet with CCS records:

Plugin: http://plugins.jquery.com/project/WizardForm
Demo: http://www.sagecraft-studios.com/jquery/wizard-form-demo.html
View profile  Send private message
Waspman

Posts: 948
Posted: 10/19/2008, 6:08 AM

Sorry, Aleister
I meant how many fields makes you say the record is very long?

I've just split one record of 200 field into 4 tabs in CCS and it worked brilliant. Plus you get all the benefits of being able to hide and show stuff in each panel.

When Yes fix the "keep current tab after submission" issue it'll be the dogs dangly bits:-O

T

_________________
http://www.waspmedia.co.uk
View profile  Send private message
Aleister

Posts: 73
Posted: 10/19/2008, 9:41 AM

Hello Waspman,

They are about 40-50 fields.

How did you managed to split them in CCS? I mean did you take an existing long record and did a selective copy/paste into tabs (correcting html tags)? You opened the source in an external editor and did it by hand? Did you used another method?

Thank you.
View profile  Send private message
Waspman

Posts: 948
Posted: 10/20/2008, 1:06 AM

It's a learner profile in a training system so the first tab has a record form with all the fields that relate to personal data, the next tab has a record form with all the fields that hold course data and so on. All the fields are from the one record in the table. They are just four record forms spread across the four tabs, nothing clever. A couple have data that only relates to certain learners and I hide and show panels for this.

I choose to submit each one separately cos they do have actions attached if certain things happen. But you could easily update/insert all forms simultaneously.

As I always say, it can't be hard cos I can do it. There are some CCS wizards on here that would use magic to achieve it, but for me...it's got to be VERY simple:-P

_________________
http://www.waspmedia.co.uk
View profile  Send private message
Aleister

Posts: 73
Posted: 10/20/2008, 8:52 AM

Thank you Waspman,

I am trying to do it in a single form/record so I think I will use a third party tabbed interface to split the record in DIVs and show them as tabs.
View profile  Send private message
cleyan


Posts: 136
Posted: 10/20/2008, 9:38 AM

I put several div into one record form, and I put the buttond below the tabs, so the tabs don't affect the form, only is a visual aspect, also i put some extra tabs (div) into panels and I show that based on some data or if the record is new or old, etc.

regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.