在哪里领料单的问题?你想在某个地方或什么地方使用它?
尽管您会(或不会)回答我的问题,但我会为您发布一些提示。希望他们能以某种方式帮助你。
例如,你有你的所有领域的sObject。 在Visualforce页面中,我会做下一件事情。
<apex:pageBlockSection id="myContentSection" title="My Content Section" columns="1">
<apex:inputField value="{!myObject.Id}" >
<apex:actionSupport event="onchange" action="pullObjectById" reRender="myContentSection" />
</apex:inputField>
<apex:inputField value="{!myObject.Name}"/>
<apex:inputField value="{!myObject.Balance}"/>
<apex:inputField value="{!myObject.Amount}"/>
<apex:inputField value="{!myObject.Paid}"/>
</apex:pageBlockSection>
在控制器类会有一个方法
public myObjectType myObject {get;set;}
public PageReference pullObjectById() {
myObject = [ select Id, Name, Balance, Amount, Paid from myObjectTable where Id =:myObject.Id];
return null;
}
所以,当你选择从查找窗口中的对象,你将有你的填充网页上的所有其他领域。
你的意思是你有一个如上所述的信息表,当你点击你想从其他单元格的值复制到页面上的其他输入字段的名称?或者你想在选定的记录顶点进行一些计算,然后将结果返回到页面? – 2011-12-16 23:26:54