iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
var grid = ISGetObject("WebGrid1"); var table = grid.Tables[tblName]; var htmlTable = table.GetElement(WG40.BODY, WG40.HTMLTABLE); var footerAmount1 = table.getFooterCellByName(htmlTable.rows.length - 1, "sel");
I get an error on line "getFooterCellByName", Object doesn't support this property or method.
Do you have any ideas ?
Waiting for your kind reply.
Thank you.
xin8
hi xin8,
i found the solution for this,
here some snippet code to share:
var grid = ISGetObject("WebGrid1");
var table = grid.GetRootTable();
var htmlTable = table.GetElement(WG40.COLFOOTER, WG40.HTMLTABLE);
var fotter1= htmlTable.cells[1];
hope it may help you.
regards,
yc ooi
Thanks Yudi, Handy and Ooi for the help.
I have changed
var footerAmount1 = ISGetObject("WebGrid1").Tables["tableName"].GetFooterCellByName(htmlTable.rows.length - 1, "sel");
to
var footerAmount1 = ISGetObject("WebGrid1").GetRootTable().GetElement(WG40.COLFOOTER, WG40.HTMLTABLE).cells[4];
and it works.
Regards
Hello Xin8,
We do have that method, but it should be like that. You need to know that the method is case-sensitive.You should use GetFooterCellByName. However, I am not sure that the current table stucture has this methods. Would you mind to send me a simple runable sample that similiars with your current WebGrid structure?
Regards,Handy
Hello Handy Surya,
Thanks for your reply.
I have tried GetFooterCellByName but still didn't work.
I attached a sample for the snippet code.
Regards,
May I know the purpose of using the GetFooterCellByName method on your page? Do you need to do something like re-calculate the sum of a column in RootTable when row is changed?
If that so, please try to use the new client-side API shown in following snippet code to get the same result.
var RootTable = grid.RootTable; var FooterElement = RootTable.GetElement(WG40.COLFOOTER, WG40.HTML); var FooterText = FooterElement.childNodes[1].childNodes[1].innerText;
Hope this helps.
Unfortunately, your sample does not help at all. As I said before, I need to know at least your WebGrid structure. The element is created based on your WebGrid structure. So, I would need the structure and it should be also runable.Btw, haven't I said that the method in javascript is case-sensitive?There is no method, getFooterCellByName but it should be GetFooterCellByName. Besides, that method is not existed in Tables, but it is only available in SubTables. Please refer into ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/WebGridSubTables Reference.html in our WebGrid Documentation.FYI, there is also another way to obtain the footer element. I also attached my simple sample as references. In my sample, I update footer 3 which is calculated from footer1 and footer2.Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname