如何在 Force.com 中部署现有项目 [英] How to Deploy an existing project in Force.com
问题描述
我正在使用 Eclipse IDE 我提供了一个 src 文件夹,其中包含我必须将此代码保存到我的开发组织中的代码.我是如何尝试解决这个问题的1.首先我创建了一个 Force.com 项目2.然后我复制给定的src(Ctrl + c)文件夹并粘贴(Ctrl + v)到我在eclipse中的项目中3.我通过右键单击项目添加了元数据组件Force.com >添加/删除元数据组件
i am using eclipse IDE i am provided with an src folder which contains code i have to save this code into my development org. How i am trying to approach this 1.first i created a Force.com project 2.then i copy given src(Ctrl+c) folder and paste(Ctrl+v) in to my project in eclipse 3. i added metadata components by right clicking on project Force.com >Add/remove metadata components
4.然后我右键单击我的项目Force.com >部署到服务器
4.then i right click on my project Force.com >Deploy to server
我收到失败错误
文件名:applications/Rule.app全名:规则行动:没有行动结果:失败问题:在字段中:选项卡 - 未找到名为 Rule__c 的 CustomTab
File Name: applications/Rule.app Full Name: Rule Action: NO ACTION Result: FAILED Problem: In field: tab - no CustomTab named Rule__c found
文件名:objects/RuleAction_c.object全名:RuleAction_c行动:没有行动结果:失败问题:manageuleactions 不存在或不是操作 Edit 的有效覆盖.
File Name: objects/RuleAction_c.object Full Name: RuleAction_c Action: NO ACTION Result: FAILED Problem: manageruleactions does not exist or is not a valid override for action Edit.
文件名:pages/ManageRuleActions.page全名:ManageRuleActions行动:没有行动结果:失败问题:SObject RuleAction 的 Notify_User_c_c
File Name: pages/ManageRuleActions.page Full Name: ManageRuleActions Action: NO ACTION Result: FAILED Problem: Invalid field Notify_User_c for SObject RuleAction_c
谁能告诉一个合适的路径如何在开发组织中保存整个src文件夹代码
can any one please tell a suitable path how to save the whole src folder code in development org
推荐答案
很难说具体的步骤.在解决依赖关系的同时,您必须继续尝试.如何部署一个当所有对象相互引用时强制 ID 应用是一个关于类似问题的问题.
Hard to say exact steps. You'll have to keep trying while resolving the dependencies. How to deploy a Force ID app when all objects are referencing each other is a question about similar problem.
第一个应该相当简单.您可能有 applications/Rule.app
,但看起来您缺少 tabs/Rule__c.tab
.最简单的方法是转到您的目标环境并使用 Setup -> Create -> Tabs 为该对象创建选项卡.然后应用部署应该可以工作,如果需要 - 您可以稍后下载选项卡定义文件.
First one should be fairly simple. You might have applications/Rule.app
but looks like you're missing tabs/Rule__c.tab
. Easiest would be to go to your target environment and use Setup -> Create -> Tabs to create the tab for this object. Then the app deployment should work and if you want - you can download the tab definition file later.
接下来的两个 - 尝试启动将同时推送 objects/RuleAction__c.object
和 pages/ManageRuleActions.page
的部署.如果它仍然不起作用 - 像我对这个类似问题的回答一样拆分您的操作(暂时注释掉 VF 页面的正文或从目标文件中删除编辑操作覆盖定义).
Next two - try to initiate a deployment that would push both objects/RuleAction__c.object
and pages/ManageRuleActions.page
at the same time. If it still doesn't work - split your actions like in my answer to this similar question (temporarily comment out the body of VF page or remove the edit action override definition from the object file).
这篇关于如何在 Force.com 中部署现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!