Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Validate parameters from Quick Query

(0) ShareShare
ReportReport
Posted on by 324

I have a Quick Query with a DrillProgram, when I click on the contextual menu, I have the program openning correctly with the fields feeded for the query. 

My problem is that I need to know when the program open if I have the parameters or not to change the process. 

Here is what I tried:

  • Form1_Load :
    • ApplGetParms is empty
    • ApplGetParmValue(PRMSECTION_VBRDT,"VENDID") is empty
    • Value in cVendId is empty
  • Form1_Display
    • ApplGetParms is empty
    • ApplGetParmValue(PRMSECTION_VBRDT,"VENDID") is empty
    • Value in cVendId is empty
  • cVendID_Chk
    • ApplGetParms is empty
    • ApplGetParmValue(PRMSECTION_VBRDT,"VENDID") is empty
    • Value in cVendId is feeded with value but there is no way to know if it's the user who typed it or it's comming from the Quick Query

Is anyone have an idea of what I can do to know if the information is comming from the QQ?

I'm using SL 2011 FP1.

Thanks,

Alex.

*This post is locked for comments

  • AlexDupuis Profile Picture
    324 on at
    RE: Validate parameters from Quick Query

    Worked like a charm, thank you very much for your fast help.

  • Verified answer
    Erich Strelow F Profile Picture
    16 on at
    RE: Validate parameters from Quick Query

    The ApplGetParms calls are useless in this scenario. You can go back to the god ol' GetCommandLine() Win32 call.

    Check out <www.motobit.com/.../&gt;

    You would have to parse the arguments passed. This approach may have portability issues, but in SL 2011 it sure works.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

#1
Community Member Profile Picture

Community Member 136

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 102 Super User 2025 Season 1

#3
REUser Profile Picture

REUser 8

Featured topics

Product updates

Dynamics 365 release plans