Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要以视觉力量为“在编辑模式下,所有字段默认情况下都应该是可编辑的”编写代码。即,您可以在字段之间进行制表符。我使用过内联编辑,但它一次编辑一个字段,并且我在字段之间设置标签。nybdy 知道 hw cn 是这样实现的吗?
请务必指定您的 pageBlock 组件处于编辑模式。然后将所有输入字段放在该 pageBlock 中:
<apex:pageBlock id="pageBlock" mode="edit"> <apex:inputField value="{!obj.Field1__c}" /> <apex:inputField value="{!obj.Field2__c}" /> ... <apex:inputField value="{!obj.FieldN__c}" /> </apex:pageBlock>