Link to home
Start Free TrialLog in
Avatar of ashish_arp
ashish_arp

asked on

datawindow to java conversion

is there any free tool available that converts the PB datawindows to java.
Avatar of EAServer
EAServer

no, PowerJ, an old Sybase Java IDE, had a java version of the datawindow.  It didn't support everything but it had the core functionality.  Sybase isn't developing PowerJ anymore, but you can go to their website to find out more about its status.  

Another option...You can deploy a nonvisual object that uses a datastore to EAServer and invoke that from a java client using CORBA.  You can pass the data using a resultset object.
Avatar of ashish_arp

ASKER

i've seen some sites claiming that they can convert datawindows to Java  or to xml successfully. What type of logic they may be using. any guesses??

Thanx in advance
Yes, http://www.xmlsp.com/ has a toolkit for doing this.  It is something they wrote themselves by looking at and analyzing the underlying source code of a datawindow.  And I don't think that it is free or completely automated, but you can certainly go to their website and get the details.  I don't want to speak to the specifics of their tool because I am not familar with it.

As for XML, that can be done in PowerScript.  You can communicate with the IE XML parser and create your XML structure for a datawindow.  PowerBuilder 9 will include the ability to export a datawindow to XML natively.

i have generated a javascript file from the
datawindow painter, but if i include this file into
html , nothing happens. what i want to ask is, how can i display the datawindow contents into html file.

[i'm having contact.js file and written folowin html

<html>

<head>
<title>John Smith's homepage</title>
<link href="Contact.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="Contact.js"></script>
</head>

<body>
Hello World, I'm Ashish
</body>

</html>

but it is not working]

thankx in advance
Ashish
ASKER CERTIFIED SOLUTION
Avatar of EAServer
EAServer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial