tablePane filter settings

24 views
Skip to first unread message

Keith

unread,
Nov 10, 2009, 5:31:40 PM11/10/09
to InterSystems: Zen Community
I have a tablePane where I would like to set the default value. The
value I would like to set it to is stored in a %session.Data variable.
I've been trying to set FilterValue, but it only seems to like literal
strings. Is there away to pass the %session.Data variable into here?

Keith

Neerav Verma

unread,
Nov 10, 2009, 6:27:20 PM11/10/09
to intersys...@googlegroups.com
in value you can set the session value
<tablePane value = "#(%session.X)#">

Thank You,

Neerav Verma
http://www.linkedin.com/in/vneerav
------------------------------------------------------
Marie von Ebner-Eschenbach  - "Even a stopped clock is right twice a day."

Derek Day

unread,
Nov 10, 2009, 8:11:29 PM11/10/09
to intersys...@googlegroups.com
Hi Keith. Check out the documentation or Community articles on Zen Run Time Expressions. I think it will give you what you are looking for.

Derek

Keith

unread,
Nov 12, 2009, 12:25:30 PM11/12/09
to InterSystems: Zen Community
Neerav,

Thanks for the info. What I am trying to set is the 'filterValue' on
the top of one of the tablPane columns. When I put in "#
(%session.EmployeeSiteName)#". It works, except the value that shows
up in the filter is #(%session.EmployeeSiteName)# and not the actual
value of the session.Data variable.

Keith

On Nov 10, 3:27 pm, Neerav Verma <vnee...@gmail.com> wrote:
> in value you can set the session value
> <tablePane value = "#(%session.X)#">
>
> Thank You,
>
> Neerav Vermahttp://www.linkedin.com/in/vneerav
> ------------------------------------------------------
> Marie von Ebner-Eschenbach<http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac....>
> - "Even a stopped clock is right twice a day."
>
>
>
> On Tue, Nov 10, 2009 at 5:31 PM, Keith <keith.o.b...@boeing.com> wrote:
>
> > I have a tablePane where I would like to set the default value. The
> > value I would like to set it to is stored in a %session.Data variable.
> > I've been trying to set FilterValue, but it only seems to like literal
> > strings. Is there away to pass the %session.Data variable into here?
>
> > Keith- Hide quoted text -
>
> - Show quoted text -

Keith

unread,
Nov 12, 2009, 12:51:13 PM11/12/09
to InterSystems: Zen Community
Neerav,

It occurs to me that I also need to change my filterType from 'text'
to something else for this to work. I tried 'custom' and it bombed.
What would be the correct type?

Keith
> > - Show quoted text -- Hide quoted text -

Neerav Verma

unread,
Nov 30, 2009, 2:29:03 PM11/30/09
to intersys...@googlegroups.com

What you need is to set the parameter of the tablepane query

<tablePane id="tblChild"
   queryClass="RCM.Revenue.Charge.ChargeDAO"
   queryName="GetLineItemCharges"
   useSnapshot="true"
   showFilters="true"
   showQuery="false"
   pageSize="5"
   bodyHeight="13.0em"
   headerLayout="filtersOnTop"
   valueColumn="ID"
   maxRows="100"
   useKeys="true"
    showRowNumbers="true"
   onselectrow="zenPage.rowSelectedChild(zenThis,which);">
   <parameter value="#(%page.OID)#"/>

You can replace %page to session


Thank You,

Neerav Verma
http://www.linkedin.com/in/vneerav
------------------------------------------------------
Stephen Leacock  - "I detest life-insurance agents: they always argue that I shall some day die, which is not so."

--
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

Reply all
Reply to author
Forward
0 new messages