2/19/2025 3:58:13 PM
|
|
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!
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
|
|
|
|
Saleslogix, Form change event, it should change also list to display corresponding documents of current opportunity.
Posted: 29 Oct 09 11:37 PM
|
am working on a .NET Extension, and In Saleslogix, Put it Form change event, it should change also list to display corresponding documents of current opportunity.
I wrote code like
option explicit
Dim loader Dim Args(4)
Sub AXFormChange(Sender)
Args(0)=Form.HWND Args(1)="Server=abcd;Database=SalesLogix_Eval;Trusted_Connection=True;" Args(2)="ACCOUNT" Args(3)=Application.BasicFunctions.CurrentAccountID If Application.GlobalInfo.IndexOf("UserObject")= -1 Then loader = Application.Managed.Create ("PRCKB", "PRCKB.Knowledgebase") Application.Managed.Run loader, Args Application.GlobalInfo.Add "UserObject", Loader
Else loader = Application.GlobalInfo("UserObject") loader = Nothing End If End Sub
In loader Class I wrote like this ...
public class Loader { Knowledgebase _ctrl = null; public void Init(object handle, string ConnectionString, string EntityType, string EntityID) { if (handle != null) { IntPtr hwnd = new IntPtr((int)handle); if (_ctrl == null) _ctrl = new Knowledgebase(); _ctrl.ConnectionString = ConnectionString; _ctrl.EntityID = EntityID; _ctrl.EntityType = EntityType;
Win32.SetParent(_ctrl.Handle, hwnd); ResizeControl(hwnd); } } private void ResizeControl(IntPtr handle) { Win32.RECT rect; Win32.GetWindowRect(handle, out rect); if (Win32.GetWindowRect(handle, out rect) && _ctrl != null) { _ctrl.Size = rect.Size; } }
public string ID { set { if (_ctrl != null) { _ctrl.Name = value; } } }
public string ConnectionString { set { if (_ctrl != null) { _ctrl.ConnectionString = value; } } }
public string EntityType { set { if (_ctrl != null) { _ctrl.EntityType = value; } } }
public string EntityID { set { if (_ctrl != null) { _ctrl.EntityID = value; } } }
But I didnot get Please help me...
It is very urgent ...
|
|
|
|
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!
|
|
|
|
|
|
|
|