• kevjay
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

for example if i have a very large list of records and i want to edit one record in a pop window for example. after editing the record and closing the popup i find i have to reload the entire list again.

 

is there anyway i can just reload the only record i edited so that the page load time is not so long due to loading the entire lista again and again after editing a record?

Has anyone been able to associate a custom object to OpportunityLineIte?

 

I'm trying to associate a custom object (BOM_Item__c) to OpportunityLineItems, preferably via a Master-Detail connection but a Lookup connection would also be ok.

 

I've tried to do this via the salesforce web setup interface. When trying to create a Lookup or Master-Detail connection the OpportunityLineItem is not among the selectable objects.

 

When I try to create the connection via the Force.com integration in Eclipse I also get errors (see below).

Is the OpportunityLineItem not a normal object? If that's the case is there some other way I can achieve the same result?

 

Any help would be much appreciated!

 

Thanks!

/Ola

 

Custom object:

 

<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<deploymentStatus>Deployed</deploymentStatus>
<description>Part of the Bill Of Material for the associated Opportunity Line Item</description>
<fields>
<fullName>Opportunity__c</fullName>
<label>Opportunity</label>
<referenceTo>Opportunity</referenceTo>
<relationshipLabel>BOM Items</relationshipLabel>
<relationshipName>BOM_Items</relationshipName>
<relationshipOrder>0</relationshipOrder>
<type>MasterDetail</type>
<writeRequiresMasterRead>true</writeRequiresMasterRead>
</fields>
<fields>
<fullName>OpportunityLineItem__c</fullName>
<label>BOM OpportunityLineItem</label>
<referenceTo>OpportunityLineItem</referenceTo>
<relationshipLabel>Line Item BOM Item</relationshipLabel>
<relationshipName>Line_Item_BOM_Item</relationshipName>
<type>Lookup</type>
</fields>
<label>BOM Item</label>
<listViews>
<fullName>All</fullName>
<filterScope>Everything</filterScope>
<label>All</label>
</listViews>
<nameField>
<label>BOM Item Name</label>
<type>Text</type>
</nameField>
<pluralLabel>BOM Items</pluralLabel>
<searchLayouts/>
<sharingModel>ControlledByParent</sharingModel>
</CustomObject>

 

 

 

 

Deploy error:

# Deploy Results:
   File Name:    objects/BOM_Item__c.object
   Full Name:  BOM_Item__c.OpportunityLineItem__c
   Action:  NO ACTION
   Result:  FAILED
   Problem: Custom Object Definition ID: bad value for restricted picklist field: OpportunityLineItem

  • August 14, 2009
  • Like
  • 0