This topic is locked
[SOLVED]

 Add Tab in Designer mode

9/12/2019 5:52:30 AM
PHPRunner General questions
A
AndrewMark author

I am in the Designer section.
It allows me to "Add Tab" on Add pages, but not on List pages.
I have a List page that acts as an inline add on another tables Add page. Hence the List page effectively acts as an Add page.
How can I "Add Tabs" on the List page that I can then add my input fields onto the different Tabs ? (in the same way as the Add page in Designer).
Or Alternatively is there a way to use the Add page as an inline add instead of a List page?

Sergey Kornilov admin 9/12/2019

You cannot add tabs to the list page. Inline Add is a special single-line mode.
You can use Add in popup and use tabs there.

M
Mark Kramer 9/12/2019



I am in the Designer section.
It allows me to "Add Tab" on Add pages, but not on List pages.
I have a List page that acts as an inline add on another tables Add page. Hence the List page effectively acts as an Add page.
How can I "Add Tabs" on the List page that I can then add my input fields onto the different Tabs ? (in the same way as the Add page in Designer).
Or Alternatively is there a way to use the Add page as an inline add instead of a List page?


You can use code like this in your "List page: Before process" to display tabs on the List page, the the tab pulls the record up which can have "Edit", "Copy", etc. You need to to query them from somewhere. Here is some code for inspiration.
$sql = "SELECT * FROM `` ;

$rs = CustomQuery($sql);

while ($data = db_fetch_array($rs)) {
$pageObject->addTab("[color="#FF0000"]Student='".$data["."'",

$data["[color="#FF0000"]Student"], $data["Student"]);
}
Change "Red" values to suit your needs. Also you can make the query a lot more complexed but this gives you a basic Idea. This may not be what you are looking for totaly but it will put tabs across the top of a list page. Hope it helps... With enough code,aynthing is possible <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=88785&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

A
AndrewMark author 9/12/2019

thank you for the help