Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 2025 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: API-functions
n0013
Posts: 26
 
API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 08 10:19 PM
?????? ?? ?????? ??? ?????????
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 08 10:19 PM
?????? ?? ?????? ??? ?????????
Really on a forum there are no experts
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 08 10:19 PM
?????? ?? ?????? ??? ?????????
Really on a forum there are no experts
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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?
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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?
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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


[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jul 08 11:37 PM
Thank Phil
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 5:47 PM
I do not understand this question, sorry.
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 10:31 PM
Then other question if it is possible!?
How to write down in an Edit-field the data
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 10:32 PM
Then other question if it is possible!?
How to write down in an Edit-field the data
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
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 ....
[Reply][Quote]
n0013
Posts: 26
 
Re: API-functionsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 11:33 PM
Thank, I have understood!
Other question?
SalesLogix works...
To what process SalesLogix addresses more often?
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/24/2025 6:23:17 PM