Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

how to filter records based on checkbox?

Posted on by 46

Hey how r you?
Is there any one?
I want to get filter data on JBN pls guide me anyone?
I want When, I click on check box then record filtered show. In this time all JBN show in pic but, I want click check box show limited record like posted show.

list mention below in Image.

pastedimage1655119560806v1.png

  • Ahmad0751 Profile Picture
    Ahmad0751 46 on at
    RE: how to filter records based on checkbox?

    Thanks for response. I will try.

    If you send me any sample using picture.

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: how to filter records based on checkbox?

    If I'm not wrong, you have records(dataSource) at the form and When you click (the new unbound checkBox), you want saw filtered records.

    Then, you can add a range to form datasource. You can add range at Ds.executeQuery (before super) but you must call executeQuery from checkbox (you can call it fromm clicked or modified)

    Just dont forgot executeQuery can be called from other methods so you must manage your range (use findOrCreateRange and clearRange)

  • Ahmad0751 Profile Picture
    Ahmad0751 46 on at
    RE: how to filter records based on checkbox?

    Okay I'll send you screen shot and then explain.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: how to filter records based on checkbox?

    It's difficult to guess that you already know and what you're struggling with if you just describe the whole scenario and don't ask questions.

    If you know that you must modify the lookup and you know how to use query range, then what exactly you need? Are you saying that you are actually unable to design the righ database query? If so, you should have told us!

    Unforunately it's not clear to me what you mean by "relevant JBN number linked with checked/Posted that shown". Please elaborate.

  • Ahmad0751 Profile Picture
    Ahmad0751 46 on at
    RE: how to filter records based on checkbox?

    I am familiar with lookup, but I want when I click on check box then relevant JBN number linked with checked/Posted that shown or unchecked JBN not show.

    Thanks

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: how to filter records based on checkbox?

    You won't do anything when the checkbox is ticked, because that's not when the lookup is shown. What you need to do is adding a query range when building the lookup. If you aren't familiar with lookups, look at How to: Add a Lookup Form to a Control, and notice how they added the range for CustGroup field.

  • Ahmad0751 Profile Picture
    Ahmad0751 46 on at
    RE: how to filter records based on checkbox?

    yes it's a lookup field but I want when i click on check box button then show only posted record that mention in image or blue circle.

    Thank's Martin Drab for response.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: how to filter records based on checkbox?

    You screenshot shows a lookup of JournalNum field. Does it mean that you want to filter records in the lookup form ands not in the grid of Payment journal form?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans