如何从具有某些字段来源的按钮导航到自定义记录?(suitescript 2.0)
how to get navigated to a custom record from a button with some field sourced?(suitescript 2.0)
我正在我的客户端脚本中执行此操作,该脚本由 UE 脚本按钮的功能调用。
var createEstimatorURL = url.resolveRecord({
recordType: 'customrecord_awt_estimator_hdr',
recordId: '',
isEditMode: true,
params: {
'project': project,
'customer': customer,
'createdBy': createdBy,
'projectStatus': projectStatus,
'subsid': subsid,
'awtEstRef': awtEstRef
}
});
从解析记录中获取 URL 后,我正在做 newWindow = window.open(createEstimatorURL);
记录在创建模式下打开(尚未保存),但如何获取我作为参数发送的字段?请帮忙
它们在打开的新页面上您的上下文的请求参数中。
你可以使用这个位
context.request.parameters['*']
,
其中 *
是您的参数名称,以获取它们。
我正在我的客户端脚本中执行此操作,该脚本由 UE 脚本按钮的功能调用。
var createEstimatorURL = url.resolveRecord({
recordType: 'customrecord_awt_estimator_hdr',
recordId: '',
isEditMode: true,
params: {
'project': project,
'customer': customer,
'createdBy': createdBy,
'projectStatus': projectStatus,
'subsid': subsid,
'awtEstRef': awtEstRef
}
});
从解析记录中获取 URL 后,我正在做 newWindow = window.open(createEstimatorURL);
记录在创建模式下打开(尚未保存),但如何获取我作为参数发送的字段?请帮忙
它们在打开的新页面上您的上下文的请求参数中。
你可以使用这个位
context.request.parameters['*']
,
其中 *
是您的参数名称,以获取它们。