how can i create dialog based on Query to have dynamics filters .. like invent counting journal form

how can i create dialog based on Query to have dynamics filters .. like invent counting journal form
Depends on where you're going to use it (like using it in Batch), but in general you can get your user's choices with QueryRun.Prompt()
docs.microsoft.com/.../dynamics.ax.application.queryrun.prompt