- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
2011 年 9 月 5 日更新:问题已解决 -- 查看底部的详细信息
我已经安装了 NetSuite 插件,但是当我按下 CTRL+SPACE 时,我没有收到任何代码建议。有许多以“nlapi”开头的 NetSuite 功能,但 Code Assist 不提供任何帮助。
这是为了与 Javascript 编辑器一起使用。
这适用于 Aptana Ver 2。如何让它在 Ver 3 中运行?
更新:我已将 NetSuite SuiteScript_API.js 文件添加到我的项目中,但我仍然没有完成任何代码。我相信该文件符合 ScriptDoc 规范,因此它应该可以工作。
这是该文件的示例:
/**
* Return a new record using values from an existing record.
* @governance 10 units for transactions, 2 for custom records, 4 for all other records
*
* @param {string} type The record type name.
* @param {int} id The internal ID for the record.
* @param {Object} initializeValues Contains an array of name/value pairs of defaults to be used during record initialization.
* @return {nlobjRecord} Returns an nlobjRecord object of a copied record.
*
* @since 2007.0
*/
function nlapiCopyRecord(type, id, initializeValues) { ; }
感谢我的一位同事,我已经弄清楚如何使代码辅助工作/使用 NetSuite SuiteScirpt API 文件来提供代码完成。
Code Completion works differently in the new version. Right-click on your project and choose Properties, then go to Project Natures and make it a Web project.
Then, absolutely all .js files in your project will be indexed for auto-completion, including the SuiteScript API file if it's in your project.
We have a large number of .js files, so I'd rather be able to select which file to reference for auto-complete. Version 3 doesn't currently allow that, unlike Version 2
最佳答案
版本 3.0.5 在这方面发生了变化,可能会让您更接近您想要的。
首先,您可以从索引中排除文件和整个目录,方法是右键单击它们,选择“索引”,然后选择“从索引中排除”。
接下来,在 3.0.5 中,有一种将库与 Web 项目相关联的新机制。右键单击该项目,选择“项目构建路径”。您应该看到可以与项目索引相关联的文件列表。例如,如果您安装了 javascript-jquery ruble,您将看到 jQuery 1.4.2 和 1.6.2 的条目。可以通过卢布将新条目添加到列表中。在 javascript-jquery ruble 菜单中选择“编辑此包”以查看其工作原理的示例。例如:
bundle 'myBundle' do |bundle|
bundle.project_build_path["My Library 1.0"] =
"#{File.dirname($0)}/support/myLib.sdocml"
end
此示例在项目构建路径中创建一个名为“My Library 1.0”的新条目,并指向项目中名为 myLib.sdocml 的文件,其中 bundle.rb 文件位于名为 support 的文件夹中。您可以将一个简单的 bundle.rb 文件添加到您的项目中,以使您的 api 文件出现在类似于上面的列表中。
请注意,您可能需要使用 Commands->Bundle Development->Update User Bundles 来确保您拥有所有 bundle 的最新版本。
喂,凯文
关于javascript - Code Assist 不适用于 Eclipse Ver 3 的 Aptana Ver 3 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7296109/
2011 年 9 月 5 日更新:问题已解决 -- 查看底部的详细信息 我在使用 Aptana Ver 3.0.4 中的 Code Assist 时遇到问题。 Eclipse 3.7.0 的插件。 我
我正在开发 API,它给我 PDF(1.7 版)作为响应,我的项目正在使用不支持解析 PDF 1.7 版的 zend pdf 库。 所以我决定转换 PDF 版本以与 Zend Pdf 兼容。 有什么方
我尝试在 Android Studio 上构建和使用 FFmpeg 库。 我的环境 Windows 7 64 位、Cygwin64、Android Studio 2.1.2、FFmpeg 3.1.1、
假设我有 3 个表:Standard_Code 以及 Report and Transactions。 Standard_Code table field name: Code Values
将查询字符串附加到样式表末尾有什么作用?我经常看到: some-stylesheet.css?ver=1.2.3 谢谢。 最佳答案 通常人们用它来防止缓存 CSS 文件。 服务器软件(例如 Apach
我正在尝试从批处理文件中检查OS版本,并且遇到以下问题。 线 FOR /F "tokens=*" %%i IN ('ver') DO (SET var=%%i) 从批处理文件执行时将冻结cmd,而命令
我试图安装最新的VMWare PowerCLI,但出现错误:Install-Module:术语“Install-Module”未被识别为cmdlet的名称,功能... 一些挖掘显示我没有安装Power
从之前的版本移至 pgadmin4 ver3 后,在查询窗口中编辑文本时,我不再能够看到光标。 我可以突出显示文本,但如果我在文本行内移动任何位置,则光标不会出现。它有时会出现在行尾,但一旦我向左箭头
我只是在寻找一些关于 hibernate 如何使用 ver 列处理冲突的文档。 到目前为止的理解:对一行的更改意味着更改的行插入了新的版本号 -- 这是通过“select max(ver)+1”完成的
在我的 Android 游戏中,子弹出现的速度太快而且彼此距离太近!我怎样才能调整他们的行为?这是 a picture of it 动画对象类 package game.objects.animati
在C++17 template deduction guide not used for empty parameter set? 之后,在模板推导指南中遇到了另一个怪事(遗憾的是,该错误 https
我正在尝试创建一个表,该表将在服务器中使用 phpmyadmin 按年份范围进行分区: mysql Ver 15.1 Distrib 5.5.60-MariaDB, for Linux (x86_6
我想知道版本命名的具体作用是什么? 喜欢 jquery.js?ver=1.4.4 我的意思是如果我使用像这样的 cdn jquery/1.4.4/jquery.min.js?ver=1.4.4但是另一
在 postman 工作(原始格式数据与 application/json 类型)带 Guzzle 6 url-http://vm.xxxxx.com/v1/hirejob/ { "c
我已经在这个问题上工作了 6 个小时,但我似乎看不到它。这是index.html 中的片段: dataArray(总是工作正常): (function() { 'us
我正在尝试在 Google 文档上上传大文件。我遇到了Resumable Upload . 但是我如何在 Google API Ver 2 中实现它呢? 谢谢 最佳答案 根据我在 API 的 V2 和
最近我的团队遇到了一个奇怪的情况。去年年底,我们从 IE 8 迁移到 IE 11。我们的应用程序现在设计为在 IE 11 企业模式下工作。 如果用户使用的是 IE 8,我们需要显示一个 javascr
我的应用程序在 Android 4.0+ 版本上运行良好,但是当我尝试在版本 4.0 上启动它时出现错误。 2.3有什么建议么?android:minSdkVersion="8"android:tar
我最近购买了一个主题,该主题包含以下 HTML 代码; 所以,我想知道?ver=3.7.1的用法是什么。感谢您的帮助。 最佳答案 资源在每个 URL 的基础上被缓存。通过在发布新版本时更改查询字符
我需要在我的事件方法中做两个事件。一个是需要返回 total_workers 字段的值。但也需要返回 ID,因为当我们覆盖该方法时,它在 OpenERP 中是必要的要求。然后必须返回 2 东西。请告诉
我是一名优秀的程序员,十分优秀!