Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
作为一名前 NetSuite 员工,我一次又一次地对此感到沮丧,即使在内部,除了开发文档中已发布的 pdf 之外,也没有好的参考资料。
获取代码片段和如何做事的线索的最佳位置之一是 NS 用户组以及不太好的示例应用程序。
其中很多都是通过反复试验来完成的。 我发现开发 Web 服务比客户端和服务器端脚本编写更令人沮丧。
乙
As a ex NetSuite employee I was frustrated by this time and time again, even internally there is no good refs other than the published pdf's in dev docs.
One of the best places for snippets of code and clues of how to do things is the NS User Groups as well as the not so good sample apps.
A lot of it is done with trial and error. I have found developing web services a little lest frustrating than the client and server side scripting.
B
在此处找到了一些示例代码+文档。 我将 netsuite 与一些基于 kohana 的网站集成。 我提出了两个用于简化开发的片段,一个 getNetsuiteConnection()< /a> 方法和用于获取给定记录中的自定义字段列表的代码段。
更新:
最近发现了更多资源(主要针对通过 PHP 框架使用 NetSuite)。
08/12 更新: 如果您使用 ruby,请查看 这个 gem 实现了 NetSuite SOAP API 的一部分。
Found some sample code + documentation here. I integrate netsuite with some kohana based site. I've thrown up two snippets that I use for easing development, a getNetsuiteConnection() method and a snippet used for getting a list of custom fields in a given record.
Update:
Found some more resources recently (mostly targeted at using NetSuite via the PHP framework).
08/12 Update: If you are working with ruby, checkout this gem which implements a portion of the NetSuite SOAP API.
Netsuite 脚本快速提示
在使用 SuiteScript 时,我们在 NetSuite 中有不同的字段类型和表单字段,但为了从这些字段中获取值,我们有通用函数。
这些函数总是以字符串类型返回值。 即使对于日期和数字类型的字段也是如此。
因此,当操作返回的值时,应该(必须)将它们转换为正确的类型以避免错误。
例如,我们可以对数字数据应用 parseInt 或 parseFloat。
请注意 ParseInt 可以返回 NaN,因此更有效的方法是使用这些类型的函数
对于日期类型字段,我们可以使用标准 Netsuite 函数
A Quick Netsuite Scripting Tip
When working on SuiteScript, we have different field types and and form fields in NetSuite but to get values from these we have generic functions
These functions always return values as type string. Even for Date and Numeric type of fields.
So when manipulating values returned one should(have to) convert them to right types to avoid bugs.
For example we may apply parseInt or parseFloat for Numeric data.
Beware that ParseInt can return NaN so a more efficient way is to use these type of functions
For date type fields we may use standard Netsuite functions
用户群体是多么宝贵的资源,我怎么强调都不为过。 我不断地从 NetSuite 员工那里得到答案,其中包括创建者 Evan。 订阅各种论坛并提出问题。 请务必提及您正在做什么、尝试过什么以及您对正在尝试的过程的任何想法。 我发现当我遵循这个公式时我得到了答案。 我公司的其他人只会问如何做某事,很少得到任何帮助。
请注意,许多内容在 SuiteScript 和/或 Web 服务中没有记录或不受支持,并且两者之间的支持列表不一致。
I can't stress enough what a great resource the user group is. I constantly get answers there, many by NetSuite employees, including the creator Evan. Subscribe to the various forums and ask questions. Be sure to mention what you are doing, what you have tried and any thoughts you have on the process you are attempting. I find that when I follow that formula I get answers. Others at my company will just ask how to do something and rarely get any help.
Be aware that many things are not either documented or are not supported in SuiteScript and/or Web Services and the supported list is not consistent between the two.
这有点像一场噩梦。 帮助中心部分可供参考。
https://system.netsuite.com/app/help/helpcenter.nl ?主题=帮助
It is a bit of a nightmare. The help-center section is useful for reference.
https://system.netsuite.com/app/help/helpcenter.nl?topic=help
我支持 Corey 使用 NS 用户组(最近迁移到 https://usergroup.netsuite.com/ users/index.php?我在哪里等待批准)。 此外,支付 NS 电话支持费用也有助于解决问题。 除了 NS 提供的支持/资源之外,linkedin NS 用户组也相当不错。 我发现 stackoverflow 结果对于 NetSuite 问题没有多大用处,可能是因为缺乏对系统的了解。
NetSuite for Dummies 从功能角度来看是 NetSuite 的一个很好的参考,但为开发人员提供的内容很少。 对于开发人员,我建议在此处查看 NS 开发人员指南 https://system.netsuite.com/core/media/media.nl?id=5732122&c=NLCORP&h=5fca4bf5dd825a28ab41&_xt=.pdf&addrcountry =US(旧但仍然相关)。 开发人员指南包含许多与帮助部分相同的信息(尽管帮助部分更新了,但没有有效的搜索)。
I second Corey in utilizing the NS user group (recently migrated to https://usergroup.netsuite.com/users/index.php? where I am waiting on approval). Also paying the premium for NS phone support has been helpful in resolving issues. Outside of NS provided support/resources, the linkedin NS user group is pretty decent. I don't find much use out of stackoverflow results for NetSuite problems, probably for the lack of understanding of the system.
NetSuite for Dummies is a good reference for NetSuite in the functional perspective, but offers very little to developers. For Devs, I'd suggest checking out the NS developers guide here https://system.netsuite.com/core/media/media.nl?id=5732122&c=NLCORP&h=5fca4bf5dd825a28ab41&_xt=.pdf&addrcountry=US (old but still relevant). The developers guide contains much of the same information as the help section (albeit the help section is more up to date, but does not have effective searching).