Hi,
I’m working on a project where I have a dashboard page which displays multiple tablepanes that are populated with results obtained by individual queries (the system itself is an Ensemble instance, if that matters). Because of the way I request data, the resultsets that are processed by Ensemble come back with some rows that have basic information (the name of one of the systems that the dashboard is targeting) but that isn’t needed for users, so I want to hide rows that have null values on one of the important columns. Does tablepane support an easy way to conditionally hide rows based on a hard-coded condition?
Thanks,
Jesse Porch
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
--
What will happen if the column mentioned is not present in the table?
Thanks for the input. I ended using the condition as Roberto suggested, and discovered that if the column it mentions doesn’t exist then nothing is hidden. This allowed me to extend our tablepane component to have a column that lets the user flag rows to be hidden (the column itself is already being hidden by logic in our class). Overall, things seem to be painless, so thanks again!
Jesse
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Thanks for the input. I ended using the condition as Roberto suggested, and discovered that if the column it mentions doesn’t exist then nothing is hidden. This allowed me to extend our tablepane component to have a column that lets the user flag rows to be hidden (the column itself is already being hidden by logic in our class). Overall, things seem to be painless, so thanks again!
Jesse
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
Jesse,
We did something similar to hide rows but unfortunately the navigator bar still displays the total number of records regardless. I also noticed that if you start paging through the records some pages have no data associated as all records on this page are hidden etc..
Only work around is not to have navigator bar from what I can see.
Jon GoodySent from my iPhone
Thanks for the input. I ended using the condition as Roberto suggested, and discovered that if the column it mentions doesn’t exist then nothing is hidden. This allowed me to extend our tablepane component to have a column that lets the user flag rows to be hidden (the column itself is already being hidden by logic in our class). Overall, things seem to be painless, so thanks again!
Jesse
From: intersystems-zen@googlegroups.com [mailto:intersystems-zen@googlegroups.com] On Behalf Of Derek Day
Sent: Monday, March 12, 2012 7:51 PM
To: intersystems-zen@googlegroups.com
Subject: Re: [InterSystems-Zen] Hiding rows in a tablepane
Right, we probably want to add the condition, the same way we are currently adding columns....
On Monday, March 12, 2012, Benjamin Spead <Benjamin.Spead@intersystems.com> wrote:
> What will happen if the column mentioned is not present in the table?
>
>
>
> From: intersystems-zen@googlegroups.com [mailto:intersystems-zen@googlegroups.com] On Behalf Of Derek Day
> Sent: Monday, March 12, 2012 7:35 PM
> To: intersystems-zen@googlegroups.com
> Subject: Re: [InterSystems-Zen] Re: Hiding rows in a tablepane
>
>
>
> That's what I was trying to remember! Thanks, Roberto.
>
>
>
> Jesse I think this should work -- the condition element is just a child element of the tablePane.
>
> ~Derek
>
> On Mon, Mar 12, 2012 at 6:20 PM, Roberto <rcah...@gmail.com> wrote:
>
> If you want to just hide a row, you can use the <condition> element, with a css:
>
>
>
> <condition colName="Amount"
> predicate="EQ"
> value="0" rowStyle="display:none;"/>
>
>
>
> -Roberto
>
> On Monday, March 12, 2012 5:27:50 PM UTC-4, Jesse Porch wrote:
>
> Hi,
>
> I’m working on a project where I have a dashboard page which displays multiple tablepanes that are populated with results obtained by individual queries (the system itself is an Ensemble instance, if that matters). Because of the way I request data, the resultsets that are processed by Ensemble come back with some rows that have basic information (the name of one of the systems that the dashboard is targeting) but that isn’t needed for users, so I want to hide rows that have null values on one of the important columns. Does tablepane support an easy way to conditionally hide rows based on a hard-coded condition?
>
>
>
> Thanks,
>
> Jesse Porch
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google..com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google..com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google..com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSystems-ZEN@googlegroups.com
To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSystems-ZEN@googlegroups.com
To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
You can hide those too Jon if you want:
#navBar .tnbrFound {display:none;}
<tableNavigatorBar id="navBar" showPageSize="true" tablePaneId="table" />
-Roberto
On Thursday, March 15, 2012 7:38:10 PM UTC-4, Jon Goody wrote:
Jesse,
We did something similar to hide rows but unfortunately the navigator bar still displays the total number of records regardless. I also noticed that if you start paging through the records some pages have no data associated as all records on this page are hidden etc..
Only work around is not to have navigator bar from what I can see.
Jon GoodySent from my iPhone
Thanks for the input. I ended using the condition as Roberto suggested, and discovered that if the column it mentions doesn’t exist then nothing is hidden. This allowed me to extend our tablepane component to have a column that lets the user flag rows to be hidden (the column itself is already being hidden by logic in our class). Overall, things seem to be painless, so thanks again!
Jesse
From: intersystems-zen@googlegroups.com [mailto:intersystems-zen@googlegroups.com] On Behalf Of Derek Day
Sent: Monday, March 12, 2012 7:51 PM
To: intersystems-zen@googlegroups.com
Subject: Re: [InterSystems-Zen] Hiding rows in a tablepane
Right, we probably want to add the condition, the same way we are currently adding columns....
On Monday, March 12, 2012, Benjamin Spead <Benjamin.Spead@intersystems.com> wrote:
> What will happen if the column mentioned is not present in the table?
>
>
>
> From: intersystems-zen@googlegroups.com [mailto:intersystems-zen@googlegroups.com] On Behalf Of Derek Day
> Sent: Monday, March 12, 2012 7:35 PM
> To: intersystems-zen@googlegroups.com
> Subject: Re: [InterSystems-Zen] Re: Hiding rows in a tablepane
>
>
>
> That's what I was trying to remember! Thanks, Roberto.
>
>
>
> Jesse I think this should work -- the condition element is just a child element of the tablePane.
>
> ~Derek
>
> On Mon, Mar 12, 2012 at 6:20 PM, Roberto <rcah...@gmail.com> wrote:
>
> If you want to just hide a row, you can use the <condition> element, with a css:
>
>
>
> <condition colName="Amount"
> predicate="EQ"
> value="0" rowStyle="display:none;"/>
>
>
>
> -Roberto
>
> On Monday, March 12, 2012 5:27:50 PM UTC-4, Jesse Porch wrote:
>
> Hi,
>
> I’m working on a project where I have a dashboard page which displays multiple tablepanes that are populated with results obtained by individual queries (the system itself is an Ensemble instance, if that matters). Because of the way I request data, the resultsets that are processed by Ensemble come back with some rows that have basic information (the name of one of the systems that the dashboard is targeting) but that isn’t needed for users, so I want to hide rows that have null values on one of the important columns. Does tablepane support an easy way to conditionally hide rows based on a hard-coded condition?
>
>
>
> Thanks,
>
> Jesse Porch
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google..com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google..com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google..com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSystems-ZEN@googlegroups.com
To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSystems-ZEN@googlegroups.com
To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
> To post to this group, send email to InterSystems-ZEN@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-ZEN-unsubscribe@googlegroups.com