我有一个场景,其中lov具有很高的值为" package" and type =" to_new_package",我必须获取低点的值,而低点有8个记录。我必须显示每个记录的所有8个记录及其组件成本。所有这些都应作为将输出的显示消息消失。请让我知道该怎么做。
var ssearchexp =" [type] ='" " package_plan" "'''an and [high] ='" potpageplan "''';setSearchExpr(ssearchexp(;executeQuery((;var isrecord = firstrecord((;while(isRecord({slow = getfieldValue(" low"(;outputs.setProperty(" new_package_plan",slow(;outputs.setProperty("错误代码"," 00"(;outputs.setProperty(" errordesc"," success"(;i = i 1;isrecord = nextrecord((;}
这仅存储1个记录...我希望显示所有八个记录!
这应该让您开始
var sSearchExp = "[Type]= '" + "PACKAGE_PLAN" + "' AND [High] = '" + PACKAGEPLAN + "'";
var Slow = "";
SetSearchExpr(sSearchExp);
ExecuteQuery();
var isRecord = FirstRecord();
while (isRecord) {
Slow += GetFieldValue("Low");
Slow += " ";
i = i + 1;
isRecord = NextRecord();
}
Outputs.SetProperty("NEW_PACKAGE_PLAN", Slow);
Outputs.SetProperty("ErrorCode", "00");
Outputs.SetProperty("ErrorDesc", "Success");
此示例代码将向下打印值:
var boAsset = TheApplication().GetBusObject("List Of Values");
var bcAsset = boAsset.GetBusComp("List Of Values");
with (bcAsset)
{
ActivateField("Value");
var sSearchExp = "[Type]= 'AAG_TABLE_TYPE'";
var Slow = "";
SetSearchExpr(sSearchExp);
ExecuteQuery();
var isRecord = FirstRecord();
while (isRecord)
{
Slow += GetFieldValue("Value");
Slow += "n";
isRecord = NextRecord();
}
TheApplication().RaiseErrorText(Slow);
}
输出:
AAG Account
AAG Holdg
AAG Portf
AAG Txn
将Slow += "n";
更改为Slow += " ";
将侧面打印值。
希望您在这里得到技巧。