|
WD21 - Table / Filter / Included between 2 bounds |
Iniciado por Mister ANDRE MARTINI, out., 19 2016 7:51 PM - 7 respostas |
| |
| | | |
|
| |
Membro registado 203 mensagems Popularité : +25 (25 votes) |
|
Publicado em outubro, 19 2016 - 7:51 PM |
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 |
| |
| |
| | | |
|
| | |
| |
Membro registado 203 mensagems Popularité : +25 (25 votes) |
|
Publicado em outubro, 25 2016 - 6:25 PM |
| |
| |
| | | |
|
| | |
| |
Membro registado 123 mensagems Popularité : +46 (46 votes) |
|
Publicado em outubro, 25 2016 - 10:50 PM |
Andre , na DOC. não existe opção para esse caso. infelizmente
-- Atte. Willian Fernando |
| |
| |
| | | |
|
| | |
| |
Publicado em outubro, 28 2016 - 4:39 PM |
Hi Andre. Did you try with hFilter function before refresh the table? |
| |
| |
| | | |
|
| | |
| |
Membro registado 203 mensagems Popularité : +25 (25 votes) |
|
Publicado em outubro, 28 2016 - 5:39 PM |
| |
| |
| | | |
|
| | |
| |
Publicado em junho, 26 2018 - 3:28 PM |
Oi Andre, conseguiu fazer o filtro de datas na tabela por programação? Estou com o mesmo problema. Muito obrigado! |
| |
| |
| | | |
|
| | |
| |
Publicado em agosto, 31 2018 - 8:46 PM |
TableEnableFilter(TABLE.COL_DATA_1,filterGreaterOrEqual,EDT_DATA_INICIAL) TableEnableFilter(TABLE.COL_DATA_2,filterLessOrEqual,EDT_DATA_FINAL)
|
| |
| |
| | | |
|
| | |
| |
Membro registado 1 mensagem |
|
Publicado em agosto, 31 2018 - 9:00 PM |
// 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 |
| |
| |
| | | |
|
| | | | |
| | |
|