edutraini Posted June 8, 2022 Report Share Posted June 8, 2022 Boa tarde Pessoal Tenho um tela feita com xbrowse e array aonde mostra as cotacoes que sao feitas diariamente Um cliente me pediu para deixar on line ou seja cada vez que alguem fizer uma cotacao essa tela tem que atualizar ou seja tenho que gerar um array novamente Hoje eu fecho a tela de cotacao e abro de novo Existe alguma forma de fazer isso automaticamente Quote Link to comment Share on other sites More sharing options...
Marca Posted June 8, 2022 Report Share Posted June 8, 2022 Basta refazer o Browse Edu Depois que recriar o Array faça o seguinte oBrow:aArrayData := NovoArray() oBrow:Refresh() oBrow:SetFocus() Quote Link to comment Share on other sites More sharing options...
edutraini Posted June 8, 2022 Author Report Share Posted June 8, 2022 Obrigado Marcelo Resolvido Quote Link to comment Share on other sites More sharing options...
Wellington Vieira Posted June 8, 2022 Report Share Posted June 8, 2022 Boa tarde, Edu nesta tela que deve ser uma dialog quando abrir esta TELA você pode colocar uma ON INIT e chamar uma função com um TIMER. ex. define dialog ODIALOG title "" from 000,000 to 650,595 pixel private otimer_atualiza ..... ...array ou browse ... activate dialog ODIALOG center on init ( atualiza_browse_timer() ) otimer_atualiza:end() function atualiza_browse_timer() define timer otimer_atualiza interval 70 action( atuliza_browse() ) activate timer otimer_atualiza rerturn nil function atuliza_browse() // comandos para atualizar o browse ou array.... return nil Fiz na correria, mas acredito que seja isso. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.