Hyperlink  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Hyperlink

Postby Riyaz » Sun Dec 20, 2020 1:05 am

Hi There

Is it possible to open jiwa screens via hyperlink concept, to be opened from another exe software.
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Hyperlink

Postby SBarnes » Sun Dec 20, 2020 11:06 am

It depends on what specifically you are trying to do below is a link to an example that Mike provided in being able to call Jiwa from Powershell, the other option is if you can start up Jiwa from a process is you are able to specify on a given user what screens to open at startup in user maintenance.

viewtopic.php?f=27&t=167&p=432&hilit=powershell#p432

Alternatively you could try passing in command line arguments when starting Jiwa and then based upon the command line arguments have a plugin do something once Jiwa is open to get the comand line arguments in a Winforms application the following works, I would assume it should probably work in a plugin although I've never tried it.

Code: Select all
string[] args = Environment.GetCommandLineArgs();
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Hyperlink

Postby Riyaz » Mon Dec 21, 2020 8:48 am

Hi Stuart

Thanks for your reply, basically trying to see if we can have shortcuts to Jiwa screens from another exe, basically Jiwa is logged in and open , now from another exe can we open any screen such as create sales order , or a specific tab of debtor maintenance screen, etc basically shortcuts or bookmarks.
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Hyperlink  Topic is solved

Postby SBarnes » Mon Dec 21, 2020 9:17 am

You can create orders externally from another .net program you just need to reference the business logic dlls, and the main Jiwa application dll and the odbc one then login with code and create the order and fill it in and save it.

To control the user interface that's a whole different ball game, you would need to build some sort of inter-process communication mechanism such as using a socket or something like having the non Jiwa side write commands into a table and then have a plugin on a timer poll the table and execute the commands and then delete that command from the table once processed.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Hyperlink

Postby Mike.Sheen » Mon Dec 21, 2020 12:47 pm

SBarnes wrote:To control the user interface that's a whole different ball game, you would need to build some sort of inter-process communication mechanism such as using a socket


Yep, this would be the way to go.

Create a custom URI Scheme in Windows (just a few registry entries) and this should launch your own custom .exe which will accept the hyperlink as a parameter, and then using Windows socket or similar send a message.

A plugin in Jiwa will establish a socket to listen on - and receive messages from the custom .exe which you could then act on.

This gets messy on RDS environments where you have multiple Jiwa.exe's running and listening on the same socket / port - you'd have to layer your own protocol within the message to include the Windows username at least and the listener discards all messages not containing that user - or something like that.

Interesting little problem - but I'd budget on a week of time to get it working right - and even then it's a bit clunky in that you need to install a custom executable and custom URI scheme registry entries on each machine running Jiwa.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Hyperlink

Postby Riyaz » Mon Dec 21, 2020 5:41 pm

Thanks Mike and Stuart, that helps
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests