Spanish [BANanoVuetifyAD3] Dudas y consultas varias que puedan ir surgiendo con este ¿framework?

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
Empiezo con una "tonta" pero que me molesta mucho ya que hace inmenso y con un montón de líneas en rojo el log durante la compilación.
¿Habrá manera de evitar el que aparezcan todos estos errores o al menos alguno?
El primero parece que es de un tipo y el resto de otro. Con lo cual, supongo que requerirán soluciones diferentes:
Log::
Reading B4J INI in C:\Users\Portatil\AppData\Roaming\Anywhere Software\B4J to find Additional Libraries folder...
Found Additional Libraries folder: C:\Dropbox\xxxx\B4x\AddtionalLibraries
Starting to transpile...
Building C:\laragon\www\bvad3signin\scripts\app.js
Loading layout emptylayout...
Loading layout home...
Loading layout login...
Loading layout logindetails...
Loading layout view1...
Loading layout view2...
Loading layout baselayout...
Processing b4xlib: bananovuetifyad3
java.io.FileNotFoundException: C:\B4X\B4J\BANANO~1\SignIn\B4J\Objects\b4xlibs_BANano\bananovuetifyad3\B4J\manifest.txt (El sistema no puede encontrar la ruta especificada)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
    at java.base/java.io.FileReader.<init>(FileReader.java:60)
    at com.ab.banano.BANano.ProcessB4XLib(Unknown Source)
    at com.ab.banano.BANano.a(Unknown Source)
    at com.ab.banano.BANano.a(Unknown Source)
    at com.ab.banano.BANano.Build(Unknown Source)
    at b4j.example.main._appstart(main.java:114)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:96)
    at b4j.example.main.start(main.java:37)
    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
    at java.base/java.lang.Thread.run(Thread.java:834)
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method OpenWait will not work in old browsers!
[WARNING]: The method ExecuteWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method OpenWait will not work in old browsers!
[WARNING]: The method ExecuteWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method ThenWait will not work in old browsers!
[WARNING]: The method ElseWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method CallInlinePHPWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CheckInternetConnectionWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method ThenWait will not work in old browsers!
[WARNING]: The method ElseWait will not work in old browsers!
[WARNING]: The method ThenWait will not work in old browsers!
[WARNING]: The method ElseWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: [VuetifyApp,initialize, around line: 1352] DependsOnAsset: vue.min.js is not recognized as a valid asset!
 Possible reasons: case sensitive, not added with AddCSSFile, AddJavascriptFile or AddJavascriptES6File...
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CheckInternetConnectionWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method CallAjaxWait will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
[WARNING]: The method Await will not work in old browsers!
Adding Layout baselayout used by pgindex
[WARNING]: The method adddesignercreateviewafterwait will not work in old browsers!
[WARNING]: The method addcodeafterwait will not work in old browsers!
[WARNING]: The method adddesignercreateviewsetpropwait will not work in old browsers!
[WARNING]: The method execute will not work in old browsers!
[WARNING]: The method mysqlexecute will not work in old browsers!
[WARNING]: The method sqliteexecute will not work in old browsers!
[WARNING]: The method alasqlexecute will not work in old browsers!
[WARNING]: The method mssqlexecute will not work in old browsers!
[WARNING]: The method firestore_connect will not work in old browsers!
[WARNING]: The method firestoreexecute will not work in old browsers!
[WARNING]: The method connect will not work in old browsers!
[WARNING]: The method execute will not work in old browsers!
[WARNING]: The method firestoreexecute will not work in old browsers!
[WARNING]: The method pickdirectorynamewait will not work in old browsers!
.....
[/QUOTE]
 

Star-Dust

Expert
Licensed User
Longtime User
Los logos son producidos por compilación. Son simples alertas de compatibilidad con navegadores antiguos.

Se pueden ignorar pero no se pueden eliminar.
 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
Los logos son producidos por compilación. Son simples alertas de compatibilidad con navegadores antiguos.

Se pueden ignorar pero no se pueden eliminar.
Ya me suponía, pero la primera línea del error, hace referencia a que falta un fichero.

B4X:
java.io.FileNotFoundException: C:\B4X\B4J\BANANO~1\SignIn\B4J\Objects\b4xlibs_BANano\bananovuetifyad3\B4J\manifest.txt (El sistema no puede encontrar la ruta especificada)
¿Le falta a todo el mundo?
¿Es un problema mío?, ¿tengo que descargar el fichero de algún sitio?, ¿puedo generarlo yo mismo con algún contenido en concreto?

Luego la verdad es que la página parece funcionar correctamente.

Hasta ahora he llegado probar/compilar con éxito hasta la versión 3 de los forms que @mashian está publicando estos días:
 

Star-Dust

Expert
Licensed User
Longtime User
Si se refiere a Manifest.txt, es un archivo necesario que debe insertarse en las bibliotecas B4XLIB.
Se utiliza para indicar la versión, el autor y las dependencias.

Como en el ejemplo de abajo
Version=0.01
Author=Star-Dust
Supported Platforms=B4J
B4J.DependsOn=BANano
IDE Comment=Great!!
 

Mashiane

Expert
Licensed User
Longtime User
Hola

Durante la compilación, tendrá registros blancos (normales) y rojos (advertencias). Algunos de los registros rojos se pueden eliminar a través de las opciones del transpilador.

Existe un problema conocido en el que la librería b4x precompilada no funciona en otras PC. Esto es lo que estás experimentando. Por lo tanto, he proporcionado el código fuente de cómo ponerse en marcha.

Siga las instrucciones en Github, hay una sección allí que habla sobre la compilación de BVAD3.b4xlib en su dispositivo. Esto eliminará el error necesario manifext.txt.

Se habla un poco en el foro sobre este error específico y las posibles causas y soluciones.

 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
Hola

Durante la compilación, tendrá registros blancos (normales) y rojos (advertencias). Algunos de los registros rojos se pueden eliminar a través de las opciones del transpilador.

Existe un problema conocido en el que la librería b4x precompilada no funciona en otras PC. Esto es lo que estás experimentando. Por lo tanto, he proporcionado el código fuente de cómo ponerse en marcha.

Siga las instrucciones en Github, hay una sección allí que habla sobre la compilación de BVAD3.b4xlib en su dispositivo. Esto eliminará el error necesario manifext.txt.

Se habla un poco en el foro sobre este error específico y las posibles causas y soluciones.

Tras compilar la librería BVAD3.b4xlib (salta error de BNANO7 pero le cambié para que utliizara la 6.59) parece que el error del manifest.txt no encontrado se solucionó.

Por otro lado, al compilar la nueva versión Creating Vuetify Forms using BANanoVuetifyAD3 - Part 5, el montón de líneas de error remarcadas en rojo han desaparecido.

Muchas gracias!!!
 

Star-Dust

Expert
Licensed User
Longtime User
También agregué un pequeño índice en la primera publicación.

Si tienes alguna duda o quieres cubrir algún tema, escribe aquí. Preferiblemente no temas complejos como toda una App. Pero nociones únicas
 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
También agregué un pequeño índice en la primera publicación.

Si tienes alguna duda o quieres cubrir algún tema, escribe aquí. Preferiblemente no temas complejos como toda una App. Pero nociones únicas
Yo tengo pendiente estudiar el ejemplo de login que publicó Mashiane en su momento, y que recientemente parece que lo actualizó con algún cambio...
 

Star-Dust

Expert
Licensed User
Longtime User
El ejemplo de Masha es muy complejo. Se han agregado las nuevas componentesy se ha modificado porque ahora no se necesita BindState para conectar componentes a Vuetify. Tampoco requiere oncreated para ejecutar un sub en la creación de la página.

También hay otros pequeños cambios. Sin embargo, prefiero ir paso a paso con ejemplos que tratan de una cosa a la vez.
 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
El ejemplo de Masha es muy complejo. Se han agregado las nuevas componentesy se ha modificado porque ahora no se necesita BindState para conectar componentes a Vuetify. Tampoco requiere oncreated para ejecutar un sub en la creación de la página.

También hay otros pequeños cambios. Sin embargo, prefiero ir paso a paso con ejemplos que tratan de una cosa a la vez.
Pues nada, me lo tomo con calma y me espero tranquilamente a tus entregas para ir aprendiendo poco a poco.
Un saludo.
 

Mashiane

Expert
Licensed User
Longtime User
Dedique un tiempo a hojear el fregadero de la cocina. La mayor parte de lo que hay está hecho en un 90% con el diseñador abstracto y un código muy nuevo. Aqui esta el link.

Este curso le dará una idea de todos los componentes que se han hecho en la biblioteca. En todos ellos, acabo de replicar lo que está en los ejemplos del sitio web de Vuetify TAL CUAL, sin embargo, usando las propiedades abstractas del diseñador que son las mismas que las de la API de Vuetify.


 
Last edited:

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
Dedique un tiempo a hojear el fregadero de la cocina. La mayor parte de lo que hay está hecho en un 90% con el diseñador abstracto y un código muy nuevo. Aqui esta el link.

Este curso le dará una idea de todos los componentes que se han hecho en la biblioteca. En todos ellos, acabo de replicar lo que está en los ejemplos del sitio web de Vuetify TAL CUAL, sin embargo, usando las propiedades abstractas del diseñador que son las mismas que las de la API de Vuetify.


Ya lo descargué en su momento y lo estuve ojeando.
Volveré a descargarlo a ver si poco a poco voy aprendiendo cosas.
Gracias.
 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
El ejemplo de Masha es muy complejo. Se han agregado las nuevas componentesy se ha modificado porque ahora no se necesita BindState para conectar componentes a Vuetify. Tampoco requiere oncreated para ejecutar un sub en la creación de la página.

También hay otros pequeños cambios. Sin embargo, prefiero ir paso a paso con ejemplos que tratan de una cosa a la vez.
He estado probando las novedades que pusiste en el hilo: https://www.b4x.com/android/forum/posts/871644/ y la parte de grabar y recuperar datos me funciona perfectamente, pero la de llamar a la función de php me salta el siguiente mensaje:

B4X:
Access to XMLHttpRequest at 'http://localhost/ecommerce/ecommerce.php' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
app.js:26147 POST http://localhost/ecommerce/ecommerce.php net::ERR_FAILED 404

¿Tienes idea de como podré solucionarlo?. Supongo que tiene algo que ver con la configuración de seguridad donde esté alojada la web. Yo para las pruebas estoy utilizando USBWebserver_v8.6.

Muchas gracias por tu paciencia y ayuda.
 

Star-Dust

Expert
Licensed User
Longtime User
Por supuesto, te falta la base de datos. Esas instrucciones acceden a la base de datos en una tabla que se llama acceso y lee los campos de usuario y contraseña. Supongo que no sabes PHP
 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
Por supuesto, te falta la base de datos. Esas instrucciones acceden a la base de datos en una tabla que se llama acceso y lee los campos de usuario y contraseña. Supongo que no sabes PHP
Php se poco, la verdad...
Pero el error que te paso me salta llamando a un función de php simple que únicamente me tiene que devolver el valor que le paso.

No intento hacer la validación del usuario, ni el md5 que pones en el ejemplo.
 

Star-Dust

Expert
Licensed User
Longtime User
Php se poco, la verdad...
Pero el error que te paso me salta llamando a un función de php simple que únicamente me tiene que devolver el valor que le paso.

No intento hacer la validación del usuario, ni el md5 que pones en el ejemplo.
no entendí bien entonces que te pasa. Sin embargo, he agregado un ejemplo.

Debe configurar correctamente BANano.PHPHost en el módulo Principal para que acceda al archivo PHP. El servidor debe soportar PHP
 
Last edited:
Top