web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Verified answer
    Erich Strelow F Profile Picture
    16 on at

    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.

  • AlexDupuis Profile Picture
    324 on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans