hi,
I have simple table that I want to display in nicely formatted html that would have one of the columns editable (with or without existing data) and so user could simply tab out of editable field and get to the same editable field on the next row. At the bottom of the table I would like to display SAVE button.
For start, here is the stored proc code:
SELECT 'dbr.hideheader';
SELECT 'dbr.search', 0;
SELECT 'dbr.hidecolumn', 'ID';
SELECT 'dbr.css', '.divtable { display:table; border:1px solid #666666;border-spacing:2px 2px;display:inline-block;empty-cells:show; }'; SELECT 'dbr.css', '.divrow { display:table-row;width:auto;clear:both; }'; SELECT 'dbr.css', '.partnumber { float:left;display:table-cell;width:200px;border:1px solid black;padding:2px;height:14px;width:95;}'; SELECT 'dbr.css', '.serialnum { float:left;display:table-cell;width:200px;border:1px solid black;padding:2px;height:14px;width:95;}';
SELECT 'dbr.divify', 'divtable'; SELECT 'dbr.hidecolumns', 'divrow'; SELECT 'dbr.rowclass', 'divrow';
SELECT 'dbr.record', 'begin', 'serialsrow';
SELECT 'dbr.editable', '[serialnum]', 'sp_DBR_SerialsScans_edit_serial', 'inID=[ID]', 'inSerialNum=[serialnum]', 'options={width:150,height:12}'; SELECT ID, partnumber, serialnum, 'divrow' FROM ssn.partserialsstaging order by partnumber, serialnum desc; SELECT 'dbr.record', 'end';
SELECT 'dbr.template', '#ScanSerialsDetails';
SELECT "dummy"; SELECT 'dbr.button','SAVE'; SELECT 'dbr.report', 'sp_DBR_SaveSerials', 'inLogin=[inLogin]', 'saved'; SELECT 'dummy result set for the button';
So I have a record #serialsrow and I show it in my template as a table with border etc.
Right now in my template all I have is this:
{#serialsrow}
However, I have few issues.
I need to show my editable field "always in the edit mode", i.e. so it would be obvious without clicking on it that is it editable, even if field has no value. I would like user to be table to navigate using tab key (in fact they want to use barcode scanner instead of manual typing on that screen).
Also, my SAVE button under the table is not visible for some reason.
Thank you!