Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, May 2, 2024 
 
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: Embedding a .NET Control in SalesLogix
David Nunnally
Posts: 206
 
Embedding a .NET Control in SalesLogixYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Nov 10 10:35 AM

I need to do something very similar to Ryan's screencast Bonus Sample - Embedding a .NET Control in SalesLogix. I have replicated what Ryan did but I also need to return a single string value back to the calling SLX form. How can I accomplish this? Basically I have a text box on a Opp tab with a string value. Next to it a button. When clicked I need to open a SLX form that contains the .Net control passing it the value of the text box. Then when you click save on the just opened SLX form it passes the new value back to the calling Opp tab. The part of passing the new value back to the calling Opp tab is where I need help.


 


Thanks

[Reply][Quote]
Terry
Posts: 14
 
Re: Embedding a .NET Control in SalesLogixYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Apr 11 12:44 PM
fiogf49gjkf0d

Expose a Public Property in the slxwrapper of your .Net extension that you can use to store the value you want.


I don this with 2 properties


CanLoad is a boolean that determines whether or not the .net extension can load and execute properly


ExceptionMessage is a string property that is used to display the exception message if can load is false


Example


Inside the run method ot the ,net extension


try

{

//Code to Load the extension, controls etc

CanLoad = true;

}

catch (Exception ex)

{

CanLoad = false;

ExceptionMessage = ex.Message

}


Inside of slx form that runs the the .net extension


Assuming DotNetControl is properly instantiated as a .net extension label1 is a label control whose visible property is set to false and Edit1 is a text Edit control whose visible properly is set to false


If DotNetControl.CanLoad = False Then

        Label1.Caption = "The Dashboard could not load. Copy and Paste the error below and send it to IT"

        Label1.Visible = True

        Edit1.Text = DotNetControl.ExceptionMessage

        edit1.Visible = True

    End If


 

[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 © 2024 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): 5/2/2024 6:36:22 AM