You need to sign in to do that
Don't have an account?
Heather_Hanson
Convert Products to Assets with Record Types
We use the "Convert Products to Assets" app from app exchange. I have emailed them, but got no response so wondering if anyone can help me with my problem. I have found no other cases where people were trying to do what I'm trying to do and I'm having trouble getting it to work.
We recently decided we need 2 record types for our Assets so when we use the convert products to assets, we need the Visualforce page to include the option to indicate the correct Record Type. It should be fairly easy since the page is already built so copy and paste the code, put the correct field value and voila, but record type is a special kind of field so it is not working. I tried RecordType.Id too to see if that would work, but no luck....any suggestions would be appreciated!!
Sample code below and I included what I tried for the Record Type ID.
We recently decided we need 2 record types for our Assets so when we use the convert products to assets, we need the Visualforce page to include the option to indicate the correct Record Type. It should be fairly easy since the page is already built so copy and paste the code, put the correct field value and voila, but record type is a special kind of field so it is not working. I tried RecordType.Id too to see if that would work, but no luck....any suggestions would be appreciated!!
Sample code below and I included what I tried for the Record Type ID.
<apex:column > <apex:facet name="header"> <div class="slds-text-title_caps">{!$ObjectType.Asset.Fields.SerialNumber.Label}</div> </apex:facet> <apex:inputField value="{!val.asset.SerialNumber}" styleClass="{!IF(val.asset.Quantity > 0,'','field-disabled')}"/> </apex:column> <apex:column headerValue="Record Type"> <apex:facet name="header"> <div class="slds-text-title_caps">{!$ObjectType.Asset.Fields.RecordType.Id.Label}</div> </apex:facet> <apex:inputField value="{!val.asset.RecordType.Id}" styleClass="{!IF(val.asset.Quantity > 0,'','field-disabled')}"/> </apex:column>
Thanks for your help!
All Answers
Unknown property '$ObjectType.Asset.fields.RecordType.'
https://salesforce.stackexchange.com/questions/18153/how-to-select-both-record-type-and-picklist-in-a-vf-page
Thanks for your help!