PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
[WEBDEV 19] Retornar JSON para uma tabela
[WEBDEV 19] Retornar JSON para uma tabela
Started by pedrosao, Feb., 21 2015 3:06 AM - No answer
Connect yourself…
pedrosao
#1
Registered member
42 messages
Popularité : +7 (7 votes)
Posted on February, 21 2015 - 3:06 AM
A função JSonExecute permite chamar uma URL que retorna um objeto JSON (JavaScript Object Notation). Esta função é executado na seção Browser do editor do Webdev. No entanto se o objeto é uma tabela de elementos, não podemos simplesmente declarar:
MeusContatos is dynamic object
Nesta caso, devemos usar a seguinte declaração:
pcl
Meuscontatos is dynamic
object
=
new
"Object"
//Execucao
pcl
Meuscontatos
:
tab
Resultat
=
JSONExecute
(
"URL"
)
//Percorre a tabela
FOR i
=
1
TO
Dimension
(
pcl
Meuscontatos
:
tab
Resultat
)
ListAdd
(
LISTA_elementos
,
pcl
Meuscontatos
:
tab
Resultat
[i]
:
nome
+
" "
+
pcl
Meuscontatos
:
tab
Resultat
[i]
:
caracteristic
)
END
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text