call local websocket service from webui client

91 views
Skip to first unread message

norber...@multimageweb.com

unread,
Feb 10, 2016, 3:31:29 AM2/10/16
to iDempiere, Michal Žilinčár
Hi,

we are evaluating the solution https://github.com/johnlauer/serial-port-json-server
Looks this is opportunity how we can print from webui client to local printer (instead e.g. remote printing to printers trough firewalls)

Use case: User is logged in to Webui click to "print" button then browser will call a local server which has websocket communication.

My question is: can we make Websocket call from Webuil Login ?

norbert

redhuan d. oon

unread,
Feb 10, 2016, 6:07:26 PM2/10/16
to iDempiere, mi...@zitec.sk
It was my very first Compiere project in 2004 done from Java Client to serial port: http://compiere.red1.org/POSred.zip
I think the simple approach can work, at least in my case, i hacked into the 'Complete' action button to just simply issue an output to that port.
Today i think it will be a fragment to the Web UI plugin or some IFactory already there to implement UI behaviour.

Heng Sin Low

unread,
Feb 10, 2016, 9:04:10 PM2/10/16
to idem...@googlegroups.com
you can use javascript to make web socket call so that should be possible.

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees and may not be reviewed or used in any way by other recipients. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message and any attachments thereto from your system.

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/4a6832b5-7c41-4694-9c49-7759288ad9b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patric

unread,
Feb 11, 2016, 1:50:30 AM2/11/16
to iDempiere
Hi,

we also need this function.
In the zk forum are posts with code samples.
Print documents without show the content
They hide the content and they hide the print dialog.

Best regards

Patric
(Hans Auler GmbH)

Reply all
Reply to author
Forward
0 new messages