This topic is locked

Tabs on List page

5/30/2020 8:17:22 AM
PHPRunner General questions
P
pmaya author

Hi everyone,

has anyone figured out a way to present search results a block but with tabs?

Not sure why 'add tab' function is only available in add, edit view pages.
I would love to able to present search data as a tab section. Anyone have any ideas on how to do this? I have tried cutting and pasting code multiple times from the view page to the search page, but it doesn't work. Thoughts please?
Pete
have a good day,

Peter

rdf 5/31/2020



Hi everyone,

has anyone figured out a way to present search results a block but with tabs?

Not sure why 'add tab' function is only available in add, edit view pages.
I would love to able to present search data as a tab section. Anyone have any ideas on how to do this? I have tried cutting and pasting code multiple times from the view page to the search page, but it doesn't work. Thoughts please?
Pete
have a good day,

Peter


Hi pmaya,
Check this PHP Runner Tips And Tricks Youtube channel. It might not be the right answer but one way to add Tabs dynamically on a list page.
PHP Runner V10 Dynamic Tabs

P
pmaya author 6/1/2020

Thank you RDF. Thank you very much for taking the time to respond. I did watch that video as well as many others by Corrie. They are fantastic.

But with the dynamic tabs option, it creates a tab for each record. What I need is a tab each for a couple of Grid elements.

For example Product Name and Product Description.

So its a List page design with two tabs and each to present a different grid element. Fantastic for a mobile layout, as it allows to maximise on available screen space.
Hope that makes sense,
Thanks again,
Pete



Hi pmaya,
Check this PHP Runner Tips And Tricks Youtube channel. It might not be the right answer but one way to add Tabs dynamically on a list page.
PHP Runner V10 Dynamic Tabs

Admin 6/2/2020

The dynamic tabs option does not create a tab for each record.
You really need to provide some sort of a visual that explains what you trying to achieve.

P
pmaya author 6/2/2020



The dynamic tabs option does not create a tab for each record.
You really need to provide some sort of a visual that explains what you trying to achieve.


Hi Admin, My apologies. I understand where you are coming from. The link below shows what I am trying to achieve.

What I want is the search results to present grid fields within a couple of tabs as it would on a 'view' page.
http://demo.asprunner.net/roshandias1988_gmail_com/Project_TAB/school_subjects_list.php?q=(Subject~equals~Bachelor%20of%20Biomedical%20Science)
On the example on the link, the various grid fields do present on different cells. The 'subject' in one cell, the subject descript on another, and the Youtube video on another cell etc, etc. But this is taking up too much space.
What I am trying to do is get these grid fields to present as it would on a 'view' page.

The Youtube Video to appear on the 'Video' tab and 'Subject', Subject Description' and 'price' etc all to appear on the second tab called 'Subject Description'.
Hope that provides some clarity.
Thank you very much. I appreciate the help a great deal.
Roshan

fhumanes 6/2/2020

Hello:
I'm going to try to explain what you could do without changing the operation of PHPRunner.
I have understood that you have a table with multiple blocks of information:

b1.- The video information.

b2.- The description and some other information.

b3.- Other information that you want to show in flaps.
You can make PHPRunner views for each of these blocks (b1, b2, b3, ...), where you maintain the 1 to 1 relationship between the blocks for dependency and navigation between them.
The b1, would be the Master of records and the rest B2, b3, ..., would be the Slaves of B1.
According to your example, together with the presentation of B1, it could show the dependent registers and thus you would have the Tab effect you are looking for.
Cheers,

P
pmaya author 6/4/2020



Hello:
I'm going to try to explain what you could do without changing the operation of PHPRunner.
I have understood that you have a table with multiple blocks of information:

b1.- The video information.

b2.- The description and some other information.

b3.- Other information that you want to show in flaps.
You can make PHPRunner views for each of these blocks (b1, b2, b3, ...), where you maintain the 1 to 1 relationship between the blocks for dependency and navigation between them.
The b1, would be the Master of records and the rest B2, b3, ..., would be the Slaves of B1.
According to your example, together with the presentation of B1, it could show the dependent registers and thus you would have the Tab effect you are looking for.
Cheers,


Thank you very much fhumanes, for taking the time to respond. Very nice of you. Let me play around with what you have suggested.
I think my main issue is NOT being able to describe what I am trying to do, in a coherent manner. Sorry about that. Let me try again.
I have a list of Schools, and subjects offered at these.

When someone searches for a subject, I want the search results data (Subject name, School name, Subject Description, the video, price etc) to appear on the List page not as rows on a table but within TWO tabs. For example, the 'the Video' in one tab and the rest of the grid fields in the second. Of course, I would like these to appear on the List page below the 'Search function'.
Given PHPRunner allows for tabs to be created in the view page, I thought I could just cut and paste the code from there, to the List page. But that doesn't seem to work. Maybe I am not cutting and pasting correctly.
Below is a link to the page I have created (as per above I have cut and pasted the code for the TABS from the View page into the List page). But as you can see, the Tabs show up, but not the data.
http://demo.asprunner.net/roshandias1988_gmail_com/Project_TAB_list_page1/school_subjects_list.php?q=(Subject~equals~Bachelor%20of%20Biomedical%20Science)
BTW, I do recognise your name and photo from the excellent piece you did on the COVID stats via RAPID API. I did my own by using your post as guidance. THANK YOU!
Peter Roshan

fhumanes 6/4/2020

The image I use to be able to explain what I am offering you.


It is a master -> detail, with the same information, but in detail they are views of PHPrunner.
In the search you can put all the fields you want, even if they are not shown.
Cheers,

fernando