1. Gzim Ramizi
  2. PowerServer
  3. Wednesday, 26 June 2024 06:49 AM UTC

Hi all

what really happens in the background and what is true? i have queried two current AI engines and get different answers. Does it depend on whether you are making a new application or deploying an existing one?

 

We are using PB/PS 2022 R3. 

 

Our input to the AI engine:

When I convert a power builder application to Power Server, the DataWindows still look exaxtly the same way as before. Are they really rendered with HTML, CSS, and JavaScript?

 

The output:

 

ChatGPT

When you convert a PowerBuilder application to PowerServer, the DataWindows do indeed maintain their original look and feel, which might give the impression that they haven't changed. However, they are actually being rendered using modern web technologies such as HTML, CSS, and JavaScript.

Here’s a brief explanation of how this works:

  1. DataWindow Conversion: During the conversion process, the DataWindows are transformed from their original PowerBuilder format to web-compatible formats. This means their definitions are converted into HTML for structure, CSS for styling, and JavaScript for functionality.
  2. Rendering: In the PowerServer environment, the converted DataWindows are rendered by the browser using these web technologies. This is why they appear the same as in the original PowerBuilder application – the conversion process ensures that the appearance and behavior are preserved.
  3. JavaScript Libraries: PowerServer uses specific JavaScript libraries that replicate the behavior of PowerBuilder DataWindows. These libraries handle the interactions, data binding, and other functionalities, ensuring a seamless user experience.
  4. Styling and Layout: The CSS ensures that the styling and layout of the DataWindows are consistent with what you had in PowerBuilder. This includes fonts, colors, alignments, and other visual aspects.
  5. Interactivity: JavaScript is used to handle the interactive elements of the DataWindows, such as data manipulation, event handling, and other dynamic behaviors.

The conversion process is designed to be as transparent as possible to the end user, so while the underlying technology changes, the user interface remains consistent. This approach minimizes the learning curve and ensures a smooth transition from a desktop application to a web application.

In summary, yes, the DataWindows are indeed rendered using HTML, CSS, and JavaScript after the conversion to PowerServer, even though they retain the same appearance and functionality as in the original PowerBuilder application.

Google Gemini

No, while Power Server offers some improvements over PowerBuilder for web applications, DataWindows in Power Server are not rendered with HTML, CSS, and JavaScript.

Thank you in advance for your comments.

 

Here's a breakdown of how DataWindows work in both environments:

  • PowerBuilder: DataWindows are native controls within the PowerBuilder application. They are rendered using the application's own graphics engine and don't rely on web technologies.
  • Power Server: While Power Server can create web applications, DataWindows here still maintain their native rendering approach. They are not converted into HTML, CSS, and JavaScript for display in a web browser.

However, Power Server offers some advantages for DataWindow presentation in web applications:

  • Data Window Web ActiveX control: Power Server can leverage the Data Window Web ActiveX control to present DataWindows within a web page. This control acts as a bridge between the server-side Power Server application and the client-side web browser.
  • Enhanced data access: Power Server can improve data access for DataWindows in web applications by providing connectivity to various data sources.

If you're specifically looking to achieve web-based rendering with HTML, CSS, and JavaScript for your DataWindows, you might need to explore alternative solutions beyond Power Server. Some options include:

  • Third-party reporting tools: Several third-party tools can generate HTML, CSS, and JavaScript output from your DataWindow designs.
  • Custom development: You could develop a custom solution that translates DataWindow definitions into web-compatible formats.

For a more in-depth comparison of PowerBuilder and Power Server for web development, consider searching for resources on "[PowerBuilder vs PowerServer web development]"

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 26 June 2024 12:24 PM UTC
  2. PowerServer
  3. # Permalink

Hi Gzim;

  The information that you have presented in this post is totally wrong. The new PowerServer as of 2021 is based on Cloud Native Technology and has nothing to do with CSS, JS, HTML, etc. PowerBuilder 2021 & higher has been redesigned as well to be based on Cloud Native Technology as well to compliment the new PowerServer technology. This technology suite is based on C++ on the PB App client side and C# on the PS side.

FYI: https://www.appeon.com/products/powerserver

Regards ... Chris 

Comment
There are no comments made yet.
Gzim Ramizi Accepted Answer Pending Moderation
  1. Thursday, 27 June 2024 06:29 AM UTC
  2. PowerServer
  3. # 1

Many thanks to you all for the clarification. That was helpful.

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 26 June 2024 17:04 PM UTC
  2. PowerServer
  3. # 2

PowerServer is not HTML app.  It is a native app but with cloud architecture.  Just like on your mobile phone you install a real app to your phone but it is not client/server app it gets data over the Internet from a server.  At a high level, PowerServer is exactly same architecture.

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 26 June 2024 14:13 PM UTC
  2. PowerServer
  3. # 3

The more niche and recent the information you ask an LLM the more likely it is to hallucinate.

PowerServer applications (2021 and later) are running PowerBuilder code on the client machines. DWs and controls are rendered the exact same way a C/S app would. PowerServer extracts the data access logic into a middle layer (the Web API) and facilitates the distribution and update of the apps (with the Cloud App Launcher). The rest of the app is a regular PowerBuilder app.

 

Regards,
Francisco

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.