[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

datawindow to java conversion

Posted on 2003-02-25
7
Medium Priority
?
1,292 Views
Last Modified: 2013-12-26
is there any free tool available that converts the PB datawindows to java.
0
Comment
Question by:ashish_arp
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:EAServer
ID: 8018483
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.
0
 

Author Comment

by:ashish_arp
ID: 8022777
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
0
 
LVL 2

Expert Comment

by:EAServer
ID: 8026945
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.

0
 

Author Comment

by:ashish_arp
ID: 8055380
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
0
 
LVL 2

Accepted Solution

by:
EAServer earned 120 total points
ID: 8058607
ashish_arp

Javascript is not java, and the javascript generated by the datawindow is used for functions that the HTML datawindow my call during formatting, editmask processing, and data validation.

If you really want to see the datawindow in HTML, then set the behaviors that you want on the various tabs in the datawindow (HTML Generation Tab).  Check the HTML datawindow property on the general tab.  Then in code access the dw_control.Object.DataWindow.Data.HTML property

string ls_Html

ls_html = dw_control.Object.DataWindow.Data.HTML

then you can write ls_html out to a file and open it in a browser.  Chances are ls_html will be bigger than 32K which is the max you can write to a file at one time, so you'll probably have to do a loop of some sort to write to the file.

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

640 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question