Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Passing unbaound control to Business Rule
Ron Buchanan
Posts: 72
 
Passing unbaound control to Business RuleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Feb 09 4:18 PM
Is there a way to pass an unbound control (such as text box) from a form to a Event such as AfterUpdate?
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: Passing unbound control to Business RuleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Feb 09 8:01 AM
I may have been too cryptic before.

I have a form that has an unbound textbox (mNotes). I'm trying to use the unbound textbox to write a history record. I'm attempting to do this through the AA. I realize that AA Business Rules and Events do not recoginize controls in the UI. Is there a way to accomplish this through AA?

Thanks,
Ron
[Reply][Quote]
Mark B
Posts: 6
 
Re: Passing unbound control to Business RuleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Mar 09 6:56 AM
Hi Ron,

Did you ever get a viable method for this one? I've hit the same problem (Although Im using 2 lookups instead of a text box), but I also need to trap the values in these unbound controls and use them in an underlying entity event.

Cheers,
Mark
[Reply][Quote]
Ron Buchanan
Posts: 72
 
Re: Passing unbound control to Business RuleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Mar 09 10:26 AM
Mark,
Sorry for the delay. My requirement went away, but yes it's a documented defect.

I ended up writing code into each of the different (7) views that wrote the history record (memNotes is my unbound control). Obviously not the ideal.:

Sage.Entity.Interfaces.IContact con = this.BindingSource.Current as Sage.Entity.Interfaces.IContact;
try {


//add entity record
IHistory objH = Sage.Platform.EntityFactory.Create();
//set name values
objH.ContactName = con.NamePFL;
objH.AccountName = con.AccountName;
objH.ContactId = con.Id;
objH.AccountId = con.Account;
strNote = memNotes.txt
if (strNote.Length > 255) {

objH.Notes = strNote.Substring(0,255);
}
else {
objH.Notes = strNote;
}
if ((this.txtStatusCode.Text == "ST")) {
objH.Description = "Short-Term Inactive Stage";
}
else {
if ((this.txtStatusCode.Text == "LT")) {
objH.Description = "Long-Term Inactive Stage";
}
else {
objH.Description = "Inactive Stage";
}
}
objH.LongNotes = strNote;
objH.Priority = "None";
objH.Category = "Personnel Information";
objH.StartDate = DateTime.Now;
objH.Duration = 0;
objH.BaseType=262148;
objH.Timeless = false;
objH.Description = form.pklStatus.Text;
objH.Attachment = false;

//obj.History.Add(objH)
//write the record
objH.Save();


}
catch (Exception ex){
this.DialogService.ShowMessage("History Update FAILED - "+ ex.Message.ToString(),"History Update" );
}

Cheers,
Ron
[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/18/2025 10:42:52 PM