Java VisualForce编程不会产生输出
我是Java VisualForce编程不会产生输出,java,salesforce,visualforce,Java,Salesforce,Visualforce,我是SalesForce的新手,在VisualForce工作。我开发了下面的代码,看起来它没有给出正确的输出。你能告诉我这里出了什么问题吗?花了两天时间,我看不到任何提示。请导游 <apex:page standardController="account" recordSetVar="arecs"> <apex:pageBlock > <apex:pageBlockSection title="List of Accounts">
SalesForce
的新手,在VisualForce
工作。我开发了下面的代码,看起来它没有给出正确的输出。你能告诉我这里出了什么问题吗?花了两天时间,我看不到任何提示。请导游
<apex:page standardController="account" recordSetVar="arecs">
<apex:pageBlock >
<apex:pageBlockSection title="List of Accounts">
<!-- This works as loop -->
<apex:pageBlockTable value="{!arecs}" var="item">
<apex:column value="{!item.id}" />
<apex:column value="{!item.name}" />
<apex:column value="{!item.createddate}" />
<apex:column value="{!item.Phone}"/>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!arecs}" var="rec">
<apex:column value="{!rec.Industry}"/>
<apex:column value="{!rec.Type}"/>
<apex:column value="{!rec.Rating}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
我获得的课程结果:
导致此问题的原因可能有多种。以免一次排除一个问题
您正在使用的标准集合控制器将使用当前的活动列表视图来过滤记录。
在“帐户”选项卡上,选择显示一些记录的列表视图,然后尝试重新加载此visualforcee页面。
(选择列表视图并点击Go!
)导致此问题的原因可能有多种。以免一次排除一个问题
您正在使用的标准集合控制器将使用当前的活动列表视图来过滤记录。
在“帐户”选项卡上,选择显示一些记录的列表视图,然后尝试重新加载此visualforcee页面。
(选择列表视图并点击Go!
)我希望您运行代码所使用的配置文件能够访问帐户对象。否则你的代码就没有问题了。我建议你再试一次。下面是我在我的开发组织上尝试的代码:
<apex:page standardController="account" recordSetVar="arecs">
<apex:pageBlock >
<apex:pageBlockSection title="List of Accounts">
<!-- This works as loop -->
<apex:pageBlockTable value="{!arecs}" var="item">
<apex:column value="{!item.id}" />
<apex:column value="{!item.name}" />
<apex:column value="{!item.createddate}" />
<apex:column value="{!item.Phone}"/>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!arecs}" var="rec">
<apex:column value="{!rec.Industry}"/>
<apex:column value="{!rec.Type}"/>
<apex:column value="{!rec.Rating}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
我希望运行代码所使用的配置文件能够访问帐户
对象。否则你的代码就没有问题了。我建议你再试一次。下面是我在我的开发组织上尝试的代码:
<apex:page standardController="account" recordSetVar="arecs">
<apex:pageBlock >
<apex:pageBlockSection title="List of Accounts">
<!-- This works as loop -->
<apex:pageBlockTable value="{!arecs}" var="item">
<apex:column value="{!item.id}" />
<apex:column value="{!item.name}" />
<apex:column value="{!item.createddate}" />
<apex:column value="{!item.Phone}"/>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!arecs}" var="rec">
<apex:column value="{!rec.Industry}"/>
<apex:column value="{!rec.Type}"/>
<apex:column value="{!rec.Rating}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
谢谢你的意见,但我不太明白你的意思。您能告诉我需要在哪里更改吗?您是否使用系统管理员配置文件?帐户对象的组织范围共享默认值是什么?谢谢你的意见,但我不太明白你的意思。您能告诉我需要在哪里更改吗?您是否使用系统管理员配置文件?帐户对象的组织范围共享默认值是什么?不,我正在使用Prod。不确定发生了什么。我删除了所有帐户,并新建了它,这很有效。但我们当然需要确定它发生的原因。根本原因是必须在这里。不,我正在使用Prod。不确定发生了什么。我删除了所有帐户,并新建了它,这很有效。但我们当然需要确定它发生的原因。根本原因就在这里。