如何在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 行动:无行动 结果:失败 问题:manageleactions不存在或不是操作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
推荐答案
很难说出确切的步骤.解决依赖项时,您必须继续尝试. 如何部署所有对象都互相引用时的Force 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
.最简单的方法是转到目标环境,然后使用设置->创建->选项卡为此对象创建选项卡.然后,应用程序部署应该可以正常运行,并且您可以根据需要-稍后下载选项卡定义文件.
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屋!