Hi All,
I have a dialog box that I display when a user is inside a table and selects the menu option that I added. What I am stump on now is how I get the oid of the table so that I can then set attributes on the table tag depending on the option selected in the dialog.
Here is the javascript function I am trying to write, maybe javascript is not the best option for this so if you have other solutions I will take them into consideration also.
function getTableid()
{
var table_oid=0;
var caretCellId = Acl.eval("tbl_oid_cell(oid_caret())");
Acl.eval("tbl_obj_attr_get( caretCellId, 'OID', table_oid )");
Application.alert("inside get Table id "+caretCellId +"-"+table_oid);
return table_oid;
}
I am getting a numberfor the caretCellId, but the table_oid is always 0.
Thanks,
Ellen
Thanks Clay,
After I sent the messageI wondered if that was the wayI should go 🙂
I will get busy on this option.
Ellen