Elipse Knowledgebase



KB-28808: Pesquisa no Gráfico

Descrição:

Como fazer uma busca no gráfico e atualizar ele,de acordo com as datas definidas.

Solução:

Criar dois setpoints um como TextoInicial e outro como TextoFinal.
No data inicial fazer uma associação bidirecional no value com a propriedade do gráfico HorScaleBegin.
No data final fazer uma associação bidirecional no value com a propriedade do gráfico HorScaleEnd.


Criar um filtro na consulta no e3 time stamp:
For maior que #<%DataInicial%># e menor que #<%DataFinal%>#


Inserir um botão para fazer a pesquisa,e criar um script no evento click:


'Referencia os setpoints
 DataIni = Screen.Item("TextoInicial").Value
 DataFim = Screen.Item("TextoFinal").Value

 Set consulta = Screen.Item("E3Chart1").Item("Consulta1")


'Seta as variáveis da consulta
consulta.SetVariableValue "DataInicial",DataIni
consulta.SetVariableValue "DataFinal",DataFim



Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post Comment for "KB-28808: Pesquisa no Gráfico"

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.

   Name:
   Email:
* Comment:
* Enter the code below:

 

Article Details

Last Updated
8th of July, 2010

Autor

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue