Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

VS Tools Integration

(0) ShareShare
ReportReport
Posted on by 85

Another issue...

Using the Company Location Lookup.  Smart List form.  All other Lookups I have used in this manner require a form.Procedures.Initialze.Invoke(ill named and poorly documented params).  This one does not have the Initialize method, so how do you load the form with the values from the table?

companyAddress.Tables.SyLocationMstr.RangeRemove();

form.Tables.SyLocationMstr.Get();

form.Tables.SyLocationMstr.Fill();

nothing seems to work.  Suggestions?

*This post is locked for comments

  • tglux Profile Picture
    85 on at
    RE: VS Tools Integration

    This particular lookup does not have an Initialize method, so the sample provided does not apply.

  • tglux Profile Picture
    85 on at
    RE: VS Tools Integration

    This may be the direction I need to go, but from C#, I cannot set the properties (report as readonly) and I have not yet determined if it is possible to call a dex script from C#.

  • Suggested answer
    soma Profile Picture
    24,410 on at
    RE: VS Tools Integration

    Calling GP lookup window from VSTools codding we need to consider the parameter values for each lookups (based on Dexterity coding).

    Please have a look on the below link.

    msdn.microsoft.com/.../ff621456.aspx

    Hope this helps!!!

  • Tim W Profile Picture
    2,925 on at
    RE: VS Tools Integration

    From a dexterity perspective if I wanted to open a lookup I always disliked the Initialize procedure ones as they tried to emulate object code in a fairly non OOP environment.  This one is a more old school lookup call where you set values in a field then run the script.  In contrast this one is probably tougher then a standard Initialize procedure if it's a VSTools call as you probably need to set a value in a field then run a script.

    Here is a script log after the window opens (form pre, win pre), I would try to set a value in the 'Location_Lookup Sort_By_CHG on form Location_Lookup' field and then invoke the change script on the field to see if you can hook into the display logic.  I'm not setup with VSTools on this install or I'd try it but the native dexterity code (if you were opening the native window) would open the window, set the value of 'Sort By' then run the 'Sort By' script to display records. 

    Not sure this actually helps but let me know if not and I'll see if I can get motivated to test it out.

    Tim 

    'ASI_LU_Location_Lookup_Initialize'
                    'ASI_Check_Registration()', 0, 0
                    'ASI_Using_Alternate_Form()', 0, "Location_Lookup"
                        'isTestMode() of form [731]', 0
                    'Location_Lookup ASI_LU_Set_View_Prompt_CHG on form Location_Lookup'
                'ASI_LU_Location_Lookup_Initialize'
                    'ASI_Check_Registration()', 0, 0
                    'ASI_Using_Alternate_Form()', 0, "Location_Lookup"
                        'isTestMode() of form [731]', 0
                    'Location_Lookup ASI_LU_Set_View_Prompt_CHG on form Location_Lookup'
                'Location_Lookup Sort_By_CHG on form Location_Lookup'

       

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 GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans