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!
|
|
API-functions
Posted: 18 Jul 08 4:37 AM
|
Hello I from Russia. Excuse for my Enghlish. Please, prompt how to work with API-functions in Architect-e? Write one example. |
|
|
| |
|
Re: API-functions
Posted: 21 Jul 08 10:19 PM
|
?????? ?? ?????? ??? ????????? Really on a forum there are no experts |
|
|
|
Re: API-functions
Posted: 21 Jul 08 10:19 PM
|
?????? ?? ?????? ??? ????????? Really on a forum there are no experts |
|
|
|
Re: API-functions
Posted: 21 Jul 08 10:49 PM
|
I think you've asked a question that is to broad and non-specific. What is it that you want to do? Do you have a specific scenario of something you'd like to accomplish? You'll get much better results asking a more specific question.
-Ryan |
|
|
|
Re: API-functions
Posted: 21 Jul 08 11:32 PM
|
Hi, Ryan
In VB6 there are API-functions. And in Architector-e it is possible to work with API-functions? How them to declare? For example in VB6 there is a function:
Public Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
How this function will look in Architector-e?
Thanks! |
|
|
|
Re: API-functions
Posted: 22 Jul 08 1:43 AM
|
When you say "API Functions" are you referring to SalesLogix API functions or declaring Win32 API functions for use in SalesLogix scripts?
If you're asking about declaring Win32 API functions in SalesLogix scripts, SalesLogix uses standard VBScript. VBScript does not include the ability to add DLL declares. You would either need to 1) wrap the API calls in a COM-exposed DLL 2) create a .NET extension to perform the API call via interop and use that from the SLX script (would need to be v7 or higher) or 3) Use a SalesLogix legacy script to perform the API call and associated declare (legacy scripts are Cypress Enable Basic, not VBScript, and can include DLL declares just the same way you do in VB6).
-Ryan |
|
|
|
Re: API-functions
Posted: 22 Jul 08 3:19 AM
|
Thank Ryan!
Then, please prompt how to open form Contact Detail if form Account Detail is open With the help of operator Call? |
|
|
|
Re: API-functions
Posted: 22 Jul 08 3:24 AM
|
Procedura open form Account Detail:
Sub AXFormOpen(Sender) dim objMainView, objDetail set objMainView = Application.MainViews.Add("System:Contact Detail", 0, false) set objDetail = objMainView.DetailsView call objDetail.AXFormOpen (Sender) 'Here there is a mistake end sub
Prompt why? |
|
|
|
Re: API-functions
Posted: 22 Jul 08 9:01 PM
|
Try something like this:
Sub AXFormOpen(Sender) dim objMainView, objDetail set objMainView = Application.MainViews.Add("System:Contact Detail", 0, false) set objDetail = objMainView.DetailsView
If objMainView.ShowModal = mrOK then 'display the form here and return if OK clicked
Else 'form closed - OK not clicked
End If end sub
|
|
|
| |
|
Re: API-functions
Posted: 23 Jul 08 12:42 AM
|
And still...
To what process SalesLogix addresses more often? It is necessary for me at process performance (for example, form ContactDetail is opened and the user does something in this form), the reference to other procedure?
Thank |
|
|
|
Re: API-functions
Posted: 23 Jul 08 5:47 PM
|
I do not understand this question, sorry. |
|
|
|
Re: API-functions
Posted: 23 Jul 08 10:31 PM
|
Then other question if it is possible!? How to write down in an Edit-field the data |
|
|
|
Re: API-functions
Posted: 23 Jul 08 10:32 PM
|
Then other question if it is possible!? How to write down in an Edit-field the data |
|
|
|
Re: API-functions
Posted: 23 Jul 08 10:51 PM
|
Are you trying to allow the direct editing of address data from the Contact Detail form?
The fact that one contact can have multiple addresses makes it very difficult to achieve this. But you could do it using a chunk of coding - it won't be a quick job though 
But I may still have misunderstood your question .... |
|
|
|
Re: API-functions
Posted: 23 Jul 08 11:33 PM
|
Thank, I have understood! Other question? SalesLogix works... To what process SalesLogix addresses more often? |
|
|
|