google apps script - Get value of textbox in a table (GAS) -


i know discussed sooo many times, can't value of textbox placed in table. know how value of textbox (e.parameter.textboxname), it's working without problems.

the difference have gadget containing 5 tabs, each intro text , table. each table contains approximately 30 rows, each 2 textboxes , button submit value of 2 textboxes in specific row spreadsheet. working fine, names (and ids well) unique, problem when submit textboxes, "undefined" (in spreadsheet).

i guess problem lays somewhere in complexity of script, this:

function buttonclick(e) {     var app = uiapp.getactiveapplication();     var thevalue = e.parameter.textboxname;     ...something... } 

..is not enough define textbox is. i'm getting button id without problem with

var buttid = new string(e.parameter.source); 

i'm trying head around couple of days without results. i'm not gas , i'm out when comes objective programming. have ideas how value? can id of table if helps, use then?

thank in advance!

edit: tried .addcallbackelement(textbox) textbox - i'm getting error. tried .addcallbackelement(textbox) submit button .addcallbackelement(button) , i'm still getting "undefined".

the callbackelement must added to handler, not widget nor button.

the easiest (and safest) way done correctly choose highest level parent callbackelement.

i case tab panel or panel contains 5 tabs if used one.

note there might a lot of widgets in same ui without causing issue... have app 200 textboxes works flawlessly , i'm not aware of limit nor if limit exists...


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -