Interaccion entre un programa bbj y el navegador

9 views
Skip to first unread message

Eddy Flores

unread,
Jan 21, 2026, 11:15:56 AMJan 21
to mund...@googlegroups.com
Buen día a todos , de que forma puedo hacer que al ejecutar el programa bbj en el navegador pueda obtener información del mismo, por ejemplo tengo un archivo html y si lo abro en el navegador me genera un Id y me almacena esa variable en el navegador, pero necesito leer esa variable desde mi programa en bbj.

Stephan Wald

unread,
Jan 21, 2026, 1:20:41 PMJan 21
to mund...@googlegroups.com
Hi,

you can embed BBj DWC in a HTML page and then use BBjSysGui::executeScript to interact with it.

DWC Embedded Deployment

In BBj 21.13+, a published DWC app can be deployed as a custom web page saved to basis/htdocs/:

<!doctype html>

<html lang="en">

<noscript>Embedded DWC webapp 'hello' is offline.</noscript>

<meta charset="UTF-8">

<title>DWC Embedded Hello</title>

<head>

</head>

<body>

<div id="bbj-dwc"></div>

<script type="text/javascript" src="/dwcembed/hello.js"></script>

</body>

</html>

The <script> line tells the /embeddwc/ servlet to start the DWC app named hello, adding it to the "bbj-dwc" div. This html file should be saved to the htdocs directory under the basis home directory; it can be accessed with a URL in the format http://localhost:8888/files/myhtml.html

N.B.: DWC apps, like BUI apps, expect to be the only BASIS web app on a given web page. This deployment option can be used to add custom metadata to the <head> section of the web page; it can't be used to run multiple DWC apps on a single web page. To run multiple DWC apps on a single web page, they should be loaded from <iframe> elements that link to the standard DWC app URL.

See also

ppa. Stephan Wald

Head of Development


BASIS Europe GmbH

Nell-Breuning-Allee 6 | 66115 Saarbruecken, Germany
Phone: +49 681 9 68 14-23 |  US +1 
(505) 585-1358Fax +49 681 9 68 14-33

Managing Director: Nico Spence | Company Register HRB Saarbruecken 16820
www.basis-europe.eu

Follow me on LinkedIn



On Wed, 21 Jan 2026 at 17:15, Eddy Flores <eofg...@gmail.com> wrote:
Buen día a todos , de que forma puedo hacer que al ejecutar el programa bbj en el navegador pueda obtener información del mismo, por ejemplo tengo un archivo html y si lo abro en el navegador me genera un Id y me almacena esa variable en el navegador, pero necesito leer esa variable desde mi programa en bbj.

--
Has recibido este mensaje porque estás suscrito al grupo "MundoBBx" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a mundobbx+u...@googlegroups.com.
Para ver este debate, visita https://groups.google.com/d/msgid/mundobbx/CAPk6G%2B8ZyUFbq%3Dm8g2yzCaJ4jYJL14OCUxBm%3DNnYfeY4Om-OpA%40mail.gmail.com.

Eddy Flores

unread,
Jan 21, 2026, 1:29:35 PMJan 21
to mund...@googlegroups.com
Gracias, se me olvido comentar que mi version es bbj 17.10

Stephan Wald

unread,
Jan 21, 2026, 2:14:42 PMJan 21
to mund...@googlegroups.com


ppa. Stephan Wald

Head of Development


BASIS Europe GmbH

Nell-Breuning-Allee 6 | 66115 Saarbruecken, Germany
Phone: +49 681 9 68 14-23 |  US +1 
(505) 585-1358Fax +49 681 9 68 14-33

Managing Director: Nico Spence | Company Register HRB Saarbruecken 16820
www.basis-europe.eu

Follow me on LinkedIn


m Pizarro

unread,
Jan 21, 2026, 11:42:34 PMJan 21
to mund...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages