Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, February 19, 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 .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: Saleslogix, Form change event, it should change also list to display corresponding documents of current opportunity.
venkat
Posts: 16
 
Saleslogix, Form change event, it should change also list to display corresponding documents of current opportunity.Your last visit to this thread was on 1/1/1970 12:00:00 AM
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 ...

[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): 2/19/2025 4:34:44 PM