FilterPageBuilder doesnt show fields in webclient
FilterPageBuilder doesnt show any fields when using the webclient. The same code is working with the windows client.


build 13.0.24267
what is the status?
The owning team asked for sample code to reproduce this issue. Could you please provide such a sample?
Hi @StanislawStempin
I think @Pieterheinevdm accidently posted the sample to the wrong topic. I'll post his sample here, as we are having the same issue:
procedure ExampleUseFilterPageBuilder() Result:Text
var
TableMetadata: Record "Table Metadata";
FilterPageBuilder: FilterPageBuilder;
begin
TableMetadata.GET(27);
FilterPageBuilder.ADDTABLE(TableMetadata.Caption,TableMetadata.ID);
if FilterPageBuilder.RUNMODAL then
Result := FilterPageBuilder.GETVIEW(TableMetadata.Caption,true);
end;
The FilterPageBuilder in the web client does not allow to a add/remove filter fields on the page. Selecting a sort order (key) is also not possible.

We received a reply from the Client team: Currently, WebClient does not support adding filter lines on Request or Filter pages from the UI. App developers need to set chosen set of filter fields from code for the user.
So for now closing it as by design. This will be improved in the future.
:( we need this on a variable table number. For example a user must select the filter he/she wants on table 27 or on table 18 or on table XYZ etc. So we cannot predict which fields the user wants, he/she must select the fields and set the filters.
Hi, I've just incurred in this error, and I quote for what @Pieterheinevdm said. In RTC works as usual but in the web client did not.
Are there any updates for this topic?
Thanks
The workaround is: adding just one (for example the first field of the table) field to the FilterPageBuilder
Example: FilterPageBuilder.ADDFIELD(TableMetadata.Caption,Fld."No.");
Met vriendelijke groet,
Pieter-Heine van der Meulen Technisch Consultant [cid:[email protected]]
ABECON INFORMATIESYSTEMEN B.V.B.A. Kerkstraat 106, 9050 GENTBRUGGE | T +32 9 252 19 79 | W www.nav365.be http://www.nav365.be/ | www.abecon.be http://www.abecon.be/ | M +31(0)6 11 62 86 85
[Dare to be different]
http://www.abecon.be Van: stefanoPrimo [email protected] Verzonden: donderdag 14 maart 2019 17:36 Aan: Microsoft/AL [email protected] CC: Pieter-Heine van der Meulen [email protected]; Mention [email protected] Onderwerp: Re: [Microsoft/AL] FilterPageBuilder doesnt show fields in webclient (#3728)
Hi, I've just incurred in this error, and I quote for what @Pieterheinevdmhttps://github.com/Pieterheinevdm said. In RTC works as usual but in the web client did not.
Are there any updates for this topic?
Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/AL/issues/3728#issuecomment-472952540, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APSmEVWfpejxNbJ_4L2bInYff5kTP25rks5vWnp3gaJpZM4Wpa5J.
We have the same issue in all standard report. If there is not enought pre-enter field as filter, we cannot add some. Or if there is others dataitem without specified filters, it is not possible to add some new filter.
This is quite a big issue for our customers.