?
Solved

datawindow to java conversion

Posted on 2003-02-25
7
Medium Priority
?
1,238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

771 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