【发布时间】:2015-10-27 01:32:55
【问题描述】:
我正在尝试在 Siebel Open UI 中实现特定代码,该代码可以访问表中特定列的属性值。当我在控制台中运行相同的代码时,我得到了所需的值。但是当在 PR 文件中实现时,我得到的属性值是未定义的。以下是我的代码:
TilesPR.prototype.ShowUI = function()
{
console.log("Inside show ui");
SiebelAppFacade.TilesPR.superclass.ShowUI.call( this );
var pm = this.GetPM();
var placeholder= pm.Get( "GetFullId" );
console.log('The fullId is '+placeholder);
var table_id=placeholder.split('A')
console.log('The table_id is '+table_id[1]);
var table_string='s_'+table_id[1]+'_l';
console.log("The table_string value is "+table_string);
$('#'+table_string).css('border','2px solid black');//This code works
var i=0;
$('#'+table_string+' tbody tr').each(function()
{
console.log("Inside the function");
i++;
var x=i+'Account_Status';
console.log(x);
$('#'+x).attr('name');
var valuee= $('#'+x).attr('name');
console.log(valuee);//Gives me undefined all the time
});
};
有人可以帮我解决一下这个情况吗?在此先感谢
【问题讨论】:
标签: javascript jquery-ui siebel