|
WD21 - Table / Filter / Included between 2 bounds |
Iniciado por Mister ANDRE MARTINI, 19,oct. 2016 19:51 - 7 respuestas |
| |
| | | |
|
| |
Miembro registrado 203 mensajes Popularité : +25 (25 votes) |
|
Publicado el 19,octubre 2016 - 19:51 |
Olá pessoal,
no windev 21, numa Table com uma coluna tipo data é possível fazer um filtro por período com data inicial e final conforme imagens abaixo
Alguém sabe como implementar isso via programação?
O que eu descobri até agora ... fiz este filtro de período e utilizei a função abaixo para ver o filtro salvo
sFilterList is string = TableFilteredColumn(TABLE_Cre) FOR EACH STRING sFilter OF sFilterList SEPARATED by CR sCol is string = ExtractString(sFilter, 1, ";") nType is int = ExtractString(sFilter, 2, ";") sVal is string = ExtractString(sFilter, 3, ";") Trace(sCol, nType, sVal) END
o retorno foi o seguinte: COL_Vencimento 32082 20160501<TAB>20161019
Depois fiz um filtro utilizando a opção Contém e executei o mesmo código acima para ver o filtro salvo o retorno foi o seguinte COL_Numero_do_documento 31980 PED1
Daí tentei usar a função TableEnableFilter com a constante 32082 conforme retorno da função TableFilteredColumn
TableEnableFilter(TABLE_Cre.COL_Vencimento,32082,EDT_StartDate + TAB + EDT_EndDate)
deu erro dizendo que a constante 32082 não existe
Alguém sabe como implementar isso via programação?
-- André Martini IS2 Automotive http://www.is2.inf.br/is2automotive/index.html IS2 Construtive http://www.is2.inf.br/is2construtive/index.html IS2 Store http://www.is2.inf.br/is2store/index.html IS2 Gerent http://www.is2.inf.br/is2gerent/index.html |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 203 mensajes Popularité : +25 (25 votes) |
|
Publicado el 25,octubre 2016 - 18:25 |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 123 mensajes Popularité : +46 (46 votes) |
|
Publicado el 25,octubre 2016 - 22:50 |
Andre , na DOC. não existe opção para esse caso. infelizmente
-- Atte. Willian Fernando |
| |
| |
| | | |
|
| | |
| |
Publicado el 28,octubre 2016 - 16:39 |
Hi Andre. Did you try with hFilter function before refresh the table? |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 203 mensajes Popularité : +25 (25 votes) |
|
Publicado el 28,octubre 2016 - 17:39 |
| |
| |
| | | |
|
| | |
| |
Publicado el 26,junio 2018 - 15:28 |
Oi Andre, conseguiu fazer o filtro de datas na tabela por programação? Estou com o mesmo problema. Muito obrigado! |
| |
| |
| | | |
|
| | |
| |
Publicado el 31,agosto 2018 - 20:46 |
TableEnableFilter(TABLE.COL_DATA_1,filterGreaterOrEqual,EDT_DATA_INICIAL) TableEnableFilter(TABLE.COL_DATA_2,filterLessOrEqual,EDT_DATA_FINAL)
|
| |
| |
| | | |
|
| | |
| |
Miembro registrado 1 mensaje |
|
Publicado el 31,agosto 2018 - 21:00 |
// Basta duplicar a coluna da data que deseja filtrar, após isso // no botão que deseja filtrar, coloque assim:
TableEnableFilter(TABLE.COL_DATA_1,filterGreaterOrEqual,EDT_DATA_INICIAL) TableEnableFilter(TABLE.COL_DATA_2,filterLessOrEqual,EDT_DATA_FINAL)
-- FABRÍCIO ALMEIDA Programador WINDEV, WEBDEV e WINDEV Mobile E-mail: fabricioalmeida.contato@gmail.com Skype: cursoswindev@gmail.com |
| |
| |
| | | |
|
| | | | |
| | |
|