Tech Articles


Getting PowerFilter to work with Powerserver Web


In order to use PowerFilter in Powerserver Web you need to change 3 things to work around appeon problems.        

1) Structure comment 

Powerserver Web does not support comments in structures and will skip processing the entire structure.  So your structure won’t be in your deployed application and powerfilter won’t work at all.  So, you have to delete all the comments in the 2 structures in powerfilter.  
 

Structure Comment


2) datawindow text object expressions 
 

Both the visible and the text value expressions don't operate the way they do in powerbuilder.   The visible expression seems to be ignored entirely if the visible checkbox is checked.  You can get this to work by removing the checkmark on the visible property.  The visible expression will work then.  You may notice that the TEXT value has an expression too.  That seems to be ignored completely in appeonNo changes are needed for text value.


 

Text Visible expression

The easy way to select this object is to click on the t_blank text object in the control name list.   The t_blank text object is underneath all the columns
 

3) TRIM(string, boolean)

Powerserver Web trim support is limited to just the string argument.  The 2nd argument (boolean) will remove all white space when set to true.  This is the case for the left/right trim functions too.   Powerfilter uses trim.  Powerfilter has additional code to replace the CR/LF with spaces which is needed to remove CR/LF inside the string.  So it already removes CR/LF from the start and end of the string. Change the trim to the one without the TRUE, and handle removing other white space such as tabs with replace.
 

Trim function only partially supported in appeon

 

 

 

Comments (0)
There are no comments posted here yet

Find Articles by Tag

Validation Text PBDOM JSONGenerator DevOps Window DLL ActiveX .NET DataStore UI Themes Jenkins Encoding MessageBox WebBrowser SnapObjects OAuth Elevate Conference Database Object PowerScript (PS) External Functions Database Painter Database Menu Mobile ODBC Web API JSON Import JSON InfoMaker Automated Testing COM Testing Debugging OAuth 2.0 PowerBuilder RichTextEdit Control Debug REST Repository TLS/SSL Encryption CI/CD Open Source Windows OS Variable PowerBuilder (Appeon) .NET Assembly Performance Script Database Connection Interface IDE DataWindow JSON Model GhostScript Platform Export PowerBuilder Compiler C# Messagging Syntax SqlExecutor SqlModelMapper Expression Event Oracle Trial TFS Graph PostgreSQL ODBC driver File Icon SDK Database Table Error Export JSON PowerServer Mobile JSONParser WinAPI DataWindow Charts SQL PDFlib OLE Configuration Service NativePDF iOS RibbonBar Builder Import PDF API CoderObject Branch & Merge Azure Filter Sort Android Linux OS Bug TortoiseGit Event Handling PFC UI Modernization DataType Resize SVN Array Deployment 64-bit UI RESTClient Application Source Code XML .NET Std Framework PostgreSQL SOAP Transaction Excel Migration HTTPClient Web Service Proxy Data Source Control PowerServer Web Git Database Table Data BLOB CrypterObject Authorization SQL Server DragDrop Database Table Schema SnapDevelop Authentication Database Profile Outlook Class 32-bit OrcaScript License Debugger Design Event Handler Installation Windows 10 Icons TreeView RibbonBar Stored Procedure