09-29-2009 03:13 AM
I have created few custom fields in ACT! Opportunity table i.e., TBL_OPPORTUNITY. Then I have added a tab named 'SalesOrder' at Opportunity view (since I am using ACT! 2010). This tab have a textbox , which should display the custom field value. But I am unable to bind it to the custom field which I have created. Please advice, how to bind the controls with the opportunity fields so as to save and retrieve field value ?
Thanks in advance.
09-30-2009 04:57 AM
Are you trying to do this thorugh the SDK with a custom control or through the UI.... why not just use the layout designer?
09-30-2009 07:18 AM
Yes, we are doing it through the SDK with a custom control and we won't be doing it using the layout designer.
Do you have any info about it ?
09-30-2009 07:41 AM
I haven't written many custom controls but basically have a look at the samples in the sdk, these definately work so you should be able to twek them slightly to do what you want, this is what I have always done in the past. You need to implement IMutableEntityListBoundControl instead of IContactListBoundControlfor v12.
02-24-2010 07:41 AM
I just did this
//Get the Number of Guests
OpportunityManager instance = new OpportunityManager(this.ActApp.ActFramework);
Guid Guids = new Guid;
Guids = this.ActApp.ApplicationState.CurrentOpportunity.ID;
Act.Shared.Collections.SortCriteria usortCriteria = null;
OpportunityList uOList = default(OpportunityList);
uOList = instance.GetOpportunities(Guids, usortCriteria);
uField2 = ACT.DBS.BEO.Classes.Act_Findfunctions.FindOppFieldDesriptor("NO_Guests", this.ActApp);
int uDfltGuestCount = (int)uField2.GetValue(uOList);
if (this.GuestNumberTextBox.Text == null || this.GuestNumberTextBox.Text == "0" || this.GuestNumberTextBox.Text == "")
this.GuestNumberTextBox.Text = Convert.ToString(uDfltGuestCount);