HOW TO draw dataCombos in tablePanes

36 views
Skip to first unread message

Thiago Gonzaga – Shift (Desenvolvimento)

unread,
Jan 30, 2012, 11:17:46 AM1/30/12
to intersys...@googlegroups.com

Hello guys,

 

I want to draw dataCombos in tablePanes, I’ve tried to do that “onDrawCell” but it doesn’t work, the component is drawn but the dropdownlist doesn’t show up when typing. Do you guys have any idea, how could I do that?

 

Regards,

 

Descrição: Descrição: Descrição: C:\Documents and Settings\rfigueira\Meus documentos\Temp\logo.jpg

Thiago Gonzaga

Desenvolvimento
Shift - Informática para laboratórios
PABX: 55 (17) 2136-1555 | FAX: 55 (17) 2136-1590

 

Descrição: Descrição: Descrição: C:\Documents and Settings\rfigueira\Meus documentos\Temp\1.jpg

Visite-nos em www.shift.com.br

Descrição: Descrição: Descrição: C:\Documents and Settings\rfigueira\Meus documentos\Temp\2.jpg

Siga-nos em www.twitter.com/shift20anos

Descrição: Descrição: Descrição: C:\Documents and Settings\rfigueira\Meus documentos\Temp\3.jpg

Responsabilidade ambiental: pense antes de imprimir

 

 

Sansin

unread,
Feb 8, 2012, 10:16:07 AM2/8/12
to InterSystems: Zen Community
Thiago,

I know just one way to use zen component inside tablepane's cells.
You can use the follow example:

Method DrawCell(pTable As %ZEN.Component.tablePane, pName As %String,
pSeed As %String) As %Status
{
Set dataCombo = ##class(%ZEN.Component.dataCombo).%New()
Set dataCombo.sql = "SELECT Field1,Field1 FROM table where Field2
%STARTSWITH ? ORDER BY Field2"
Set dataCombo.sqlLookup = "SELECT Field2 FROM table WHERE Field1
= ?"
Set dataCombo.size = 10
Set dataCombo.editable = 1
Set dataCombo.searchKeyLen = 20
Set dataCombo.comboType = "timer"
Set grupo = ##class(%ZEN.Component.group).%New()
Do grupo.%AddChild(dataCombo)
Do grupo.%DrawHTML()
Quit $$$OK
}

I hope will be usefull.

Regards,

On 30 jan, 14:17, Thiago Gonzaga – Shift (Desenvolvimento)
<thiago.gonz...@shift.com.br> wrote:
> Hello guys,
>
> I want to draw dataCombos in tablePanes, I’ve tried to do that “onDrawCell” but it doesn’t work, the component is drawn but the dropdownlist doesn’t show up when typing. Do you guys have any idea, how could I do that?
>
> Regards,
>
> [cid:image001....@01CCDF59.BC85CAF0]
>
> Thiago Gonzaga
> Desenvolvimento
> Shift - Informática para laboratórios
> PABX: 55 (17) 2136-1555 | FAX: 55 (17) 2136-1590
>
> [cid:image002....@01CCDF59.BC85CAF0]
>
> Visite-nos emwww.shift.com.br<http://www.shift.com.br/>
>
> [cid:image003....@01CCDF59.BC85CAF0]
>
> Siga-nos emwww.twitter.com/shift20anos<http://www.twitter.com/shift20anos>
>
> [cid:image004....@01CCDF59.BC85CAF0]
>
> Responsabilidade ambiental: pense antes de imprimir
>
>  image001.jpg
> 3KExibirDownload
>
>  image002.jpg
> < 1KVisualizarFazer download
>
>  image003.jpg
> < 1KVisualizarFazer download
>
>  image004.jpg
> < 1KVisualizarFazer download
Reply all
Reply to author
Forward
0 new messages