8/18/2025 10:26:33 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 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.
|
|
|
| |
|
Re: Passing unbound control to Business Rule
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 |
|
|
|
Re: Passing unbound control to Business Rule
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 |
|
|
|
Re: Passing unbound control to Business Rule
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 |
|
|
|
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!
|
|
|
|
|
|
|
|