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 appeon. No 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

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