This topic is locked

Single link for all details.....Hide tab

7/26/2015 1:41:19 PM
PHPRunner General questions
W
wpl author

Hi all,
testing the very interesting new feature of PHPRunner 8.1 "Show single link for all details",

the question came into my mind: how could I possibly hide specific detail tabs when the tab div gets opened?
And, not to forget: great new features in the beta release of Runner 8.1!
Regards

need2sleepDevClub member 7/27/2015



Hi all,
testing the very interesting new feature of PHPRunner 8.1 "Show single link for all details",

the question came into my mind: how could I possibly hide specific detail tabs when the tab div gets opened?
And, not to forget: great new features in the beta release of Runner 8.1!
Regards


I believe you are talking about the "Fields" Tab. Any field that is checked off in the "List" section will show up. So if you want to hide the "ID" field when viewing details table, uncheck "ID" in the "List" column of the "Fields" tab.
I was wondering where this new feature was "Show single link for all details". I found it in the Tables section under relationships.

W
wpl author 7/27/2015

Need2Sleep,
thanks for joining. But - I am not talking about the 'Fields' tab. I do not want to hide fields, I completely want to hide one or more of the details tables of a record dynamically. Like so:
master (record on list page)

|

|detail1|detail2|detail3|detail4 (these are the detail tabs)
I want to look it like:
master

|

|detail1|detail4 (scenario one)
master

|

|detail2|detail4 (scenario two)
Regards



I believe you are talking about the "Fields" Tab. Any field that is checked off in the "List" section will show up. So if you want to hide the "ID" field when viewing details table, uncheck "ID" in the "List" column of the "Fields" tab.
I was wondering where this new feature was "Show single link for all details". I found it in the Tables section under relationships.

need2sleepDevClub member 7/27/2015



Need2Sleep,
thanks for joining. But - I am not talking about the 'Fields' tab. I do not want to hide fields, I completely want to hide one or more of the details tables of a record dynamically. Like so:
master (record on list page)

|

|detail1|detail2|detail3|detail4 (these are the detail tabs)
I want to look it like:
master

|

|detail1|detail4 (scenario one)
master

|

|detail2|detail4 (scenario two)
Regards


I see what you are saying. In the relations section you would uncheck "Show details links on the List Page" on whichever table you don't want to show.
Do you want to customize this so that certain users see Scenario 1 and certain users see Scenario 2?

W
wpl author 7/27/2015

Need2Sleep,
as I said, I want to do this dynamically and not per user or group. The same user may, depending on the context, see or not see eg. 'detail1'.
Thanks



I see what you are saying. In the relations section you would uncheck "Show details links on the List Page" on whichever table you don't want to show.
Do you want to customize this so that certain users see Scenario 1 and certain users see Scenario 2?

need2sleepDevClub member 7/27/2015

I see what you are saying now. I can see myself needing this feature too. I hope there is some feature to add in the Events section to show/hide specific details tables based on conditions.



Need2Sleep,
as I said, I want to do this dynamically and not per user or group. The same user may, depending on the context, see or not see eg. 'detail1'.
Thanks

W
wpl author 7/27/2015

Need2Sleep,
that's exactly what I'm after.
Regards



I see what you are saying now. I can see myself needing this feature too. I hope there is some feature to add in the Events section to show/hide specific details tables based on conditions.

T
taumic 7/28/2015

Hello,
perhaps I can help.
Please try this:
In "List Page: After record processed"



if ( condition .... )

{

$record["detail1_dtable_link"]=false;

$record["detail2_dtable_link"]=false;

$record["detail3_dtable_link"]=false;

$record["detail4_dtable_link"]=false;

}

else

{

$record["detail1_dtable_link"]=true;

$record["detail2_dtable_link"]=true;

$record["detail3_dtable_link"]=true;

$record["detail4_dtable_link"]=true;

}


Greetings
Michael

W
wpl author 7/28/2015

Michael,
thanks for joining in. That's how it worked in recent versions up to PHPRunner 8.0 and how I too used to solve this task. But with the new feature of a "single link for all details" this will not any longer work. Hence my question.
Thanks for sharing



Hello,
perhaps I can help.
Please try this:
In "List Page: After record processed"



if ( condition .... )

{

$record["detail1_dtable_link"]=false;

$record["detail2_dtable_link"]=false;

$record["detail3_dtable_link"]=false;

$record["detail4_dtable_link"]=false;

}

else

{

$record["detail1_dtable_link"]=true;

$record["detail2_dtable_link"]=true;

$record["detail3_dtable_link"]=true;

$record["detail4_dtable_link"]=true;

}


Greetings
Michael

W
wpl author 8/24/2015



Hi all,
testing the very interesting new feature of PHPRunner 8.1 "Show single link for all details",

the question came into my mind: how could I possibly hide specific detail tabs when the tab div gets opened?
And, not to forget: great new features in the beta release of Runner 8.1!
Regards


Again hi to all,
really not a single idea to solve this question?
Thanks for any contribution