The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Code executed on setting ModalResult
Posted: 17 Apr 06 7:59 AM
|
fiogf49gjkf0d When ModalResult is assigned mrOK, some custom code is run, Profiler captures the queries it makes. But I can't figure out where this code is stored. Can anybody give me a hint as to how the ModalResult property works? What procedure is called when the property's value is set? Thanks. |
|
|
|
Re: Code executed on setting ModalResult
Posted: 17 Apr 06 11:10 AM
|
fiogf49gjkf0d This is likely the code that launches the form, not the code behind the form. For example. there may be code associated to the menu item that launches the form that checks to see how the user closed the form.
Timmus |
|
|
|
Re: Code executed on setting ModalResult
Posted: 18 Apr 06 10:00 AM
|
fiogf49gjkf0d It is Add Account Screen that causes the code to be run. The Insert Contact/Account menu calls Insert:ContactAccount but it seems to be built in. However, when Add Account Screen is closed, quieries are executed that reference a custom table. I have no clue how to find where these queries are created. |
|
|
|
Re: Code executed on setting ModalResult
Posted: 18 Apr 06 10:22 AM
|
otc inhaler for wheezing albuterol sulphate link fiogf49gjkf0d My development server which runs my virtual machines just crashed last night so I currently have no means of tracking this down for you. However, if memory serves me correctly, you want to look into global scripts. Global scripts enable you to handle function calls such as "Insert:ContactAccount". You should find a Global Script that launches the form you are working with.
Also note that there is an initial form where the user chooses whether or not they are add a new contact for new account, new contact for existing account, etc. Have you checked the code behind that form?
Timmus |
|
|
|
Re: Code executed on setting ModalResult
Posted: 18 Apr 06 12:32 PM
|
buy naltrexone canada buy naltrexone online cheap read low dose naltrexone buy uses for naltrexone naltrexone alcoholism medication fiogf49gjkf0d I've searched System:Insert New ContactAccount, System:Add_Contact_And_Account, and System:Global Contacts but I didn't find anything that could be responsible for those queries. System:Add_Contact_And_Account calls AddContactAndAccount, which is a built-in procedure. But I wish I knew how AddContactAndAccount calls that custom code. Or does something else do it? |
|
|
|
Re: Code executed on setting ModalResult
Posted: 18 Apr 06 1:08 PM
|
fiogf49gjkf0d What are the queries, Eugene? Are you talking about inserts? If so this is probably just the databinding engine. Do you have controls on the forms that are bound to the custom tables in question? |
|
|
| |
|