Uso de Get y Set y como abrir documentos doc, pdf, etc con App Inventor 2

1,357 views
Skip to first unread message
Assigned to taifu...@gmail.com by me

josemanue...@gmail.com

unread,
Jan 28, 2014, 8:01:36 AM1/28/14
to mitappinv...@googlegroups.com
To whom it may help:

First of all good afternoon and thank you in advance for what I may be able to contribute, the problem I have is that I can not open a document hosted in a web page through the WebViewer not know if there will you do differently or I'm missing something development, thanks.

I would also like to know how to collect the data to a web page to display in my app, thanks.

Sincerely,

Jose Manuel Ares Bustabad

Taifun

unread,
Jan 28, 2014, 8:50:31 AM1/28/14
to mitappinv...@googlegroups.com, josemanue...@gmail.com
the webviewer is no full browswer, there are restrictions...
what kind of document are you talking about?
probably this helps How to view a pdf document

to get the complete source of a webpage, use the web component
web.url = <theUrlYou LikeToGetTheSourceFrom.com>
web.get
then parse the result for the info you need
you can reduce the amount of information using this solution 

Taifun


Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.


josemanue...@gmail.com

unread,
Jan 28, 2014, 10:11:45 AM1/28/14
to mitappinv...@googlegroups.com, josemanue...@gmail.com
El martes, 28 de enero de 2014 14:50:31 UTC+1, Taifun escribió:
> the webviewer is no full browswer, there are restrictions...
> what kind of document are you talking about?
>
> probably this helps How to view a pdf document
>
>
>
> to get the complete source of a webpage, use the web component
>
>
> web.url = <theUrlYou LikeToGetTheSourceFrom.com>
>
> web.get
>
> then parse the result for the info you need
> you can reduce the amount of information using this solution 
> How to import data from a webpage using YQL and XPATH
>
>
>
> Taifun
>
>
>
>
>
>
>
>
> Trying to push the limits of App Inventor!
> Snippets and
> Tutorials from
> Pura Vida Apps by
> Taifun.

Hola Taifun, gracias por tu pronta respuesta, todo se trat de que quiero que a partir de mi aplicación y pulsando sobre un boton webviwer el usuario reciba un docx o pdf de una página web, gracias.

En lo que me mandas he hecho lo del Webviewer y no me baja el documento ni me lo muestra en google docs.

A parte me gustaría que accedieran a esa página web y traer datos que están alojados en su distintas subpáginas de esa web, gracias.

Atentamente,

Jose

Taifun

unread,
Jan 28, 2014, 10:33:54 AM1/28/14
to mitappinv...@googlegroups.com, josemanue...@gmail.com
Hola Taifun, gracias por tu pronta respuesta, todo se trat de que quiero que a partir de mi aplicación y pulsando sobre un boton webviwer el usuario reciba un docx o pdf de una página web, gracias.
in this case you can use the web component instead, example: http://puravidaapps.com/filedownload.php

A parte me gustaría que accedieran a esa página web y traer datos que están alojados en su distintas subpáginas de esa web, gracias.
as already said: to get the complete source of a webpage, use the web component
web.url = <theUrlYou LikeToGetTheSourceFrom.com>
web.get
then parse the result for the info you need
you can reduce the amount of information using this solution 

josemanue...@gmail.com

unread,
Jan 28, 2014, 11:07:49 AM1/28/14
to mitappinv...@googlegroups.com, josemanue...@gmail.com
> How to import data from a webpage using  YQL and XPATH
>
>
> Taifun

Hola Taifun, en appinventor 2 no hay ninguno de esos componentes para utilizar, te adjunto mi códgio que es muy simple a ver si tu ves que es lo que falla y como poder arreglarlo, gracias.

When Screen6.Initialize
do
call WebViewer1.GoToUrl join "http://docs.google.com//viewer?url="
"http://adsportingdehortaleza.com/wp-content/uploads/2013/10/RESULTADOS-DE-LA-JORNADA-25-ENERO-2014.docx"

Atentamente,

Jose

Taifun

unread,
Jan 28, 2014, 11:20:04 AM1/28/14
to mitappinv...@googlegroups.com, josemanue...@gmail.com
in AI2 you can find the web component in the conncectivity drawer
Taifun

Taifun

unread,
Jan 28, 2014, 11:24:43 AM1/28/14
to mitappinv...@googlegroups.com, josemanue...@gmail.com
Reply all
Reply to author
Forward
0 new messages