点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)专家们, 我正在下拉菜单中尝试...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)专家们, 我正在下拉菜单中尝试...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
专家们,
我正在下拉菜单中尝试过去的24个月,并将上个月设置为默认值。 感谢 Mustafa Bensan 找到了以下脚本,但我无法按降序或限制对月份进行排序 值到24个月。 你们其中一个可以帮忙吗?
var curr_date = APPLICATION.getInfo()。dateNowInternalFormat;
var curr_year = curr_date.substring(0,4);
var curr_year_num = Convert.stringToInt(curr_year);
var curr_month = curr_date.substring(4,6);
var previous_month_key ="";
var month_key ="";
var years = [""];
years.pop();
var months = [" Jan"," Feb"," Mar"," Apr"," May"," Jun"," Jul"," Aug"," Sep"," Oct"," Nov" ," Dec"];
var curr_month_index = Convert.stringToInt(curr_month)-1;
如果(curr_month_index == 0){
curr_year = Convert.floatToString(curr_year_num-1," 0000");
curr_month_index = 12;
}
years.push(curr_year_num-1 +"");
years.push(curr_year_num-2 +"");
months.forEach(function(month,index){
如果(索引 { }); years.forEach(function(year,index){ months.forEach(function(month,index){ DROPDOWN_4.setSelectedValue(previous_month_key);
month_key = curr_year + Convert.floatToString(index + 1.0," 00");
DROPDOWN_4.addItem(month_key,months [index] +"" + curr_year);
previous_month_key = month_key;
}
month_key =年+ Convert.floatToString(index + 1.0," 00");
DROPDOWN_4.addItem(month_key,months [index] +"" +年);
});
});
谢谢塔米,我们正在使用Lumira Designer 2.3
一周热门 更多>