Arnold Cota · May 21, 2020 go to post

Thanks Laura! I tried this but I get an error when I execute it.  Its almost like its trying to run the output HTML on the page, which it may be?  I was just trying to store the HTML in a variable but it includes all the related JS for the table as well.

#dim tblPane as %ZEN.Component.tablePane
set tblPane = %page.%GetComponentById("userTable")
set tblContent = tblPane.%DrawHTML()

Arnold Cota · May 21, 2020 go to post

There is a getRowData function but it seems to only be available from Javascript?  Is there a way to pass this variable rowData back to my enclosing ObjectScript function?

&js<
var table zenPage.getComponentById("userTable");
var rowData table.getRowData(0);
if (rowData)
{
alert(rowData);
}
else
{
alert("no row data");
}
>

Arnold Cota · May 27, 2020 go to post

Nice! This worked for me.  I removed the (MAXLEN) and it still worked.  I am not sure how big my string will be, but I have enough to move forward.  Thank you!

Arnold Cota · May 27, 2020 go to post

A follow up...how can I set this Property via  JS?  None of these work :(

&js<

#(%page.currentTableRow)# = "test"

%page.currentTableRow = "test"

zenPage.currentTableRow = "test"

>

Arnold Cota · Aug 16, 2021 go to post

Thank you!  Have you thought about forgot username?  Our system doesnt use email for user name, we use a value based on a combination of facility and user's name and when folks dont log on everyday they can forget it.