Databases Reference
In-Depth Information
newRow.find('[type=checkbox]').remove();
html RowHighlight($(newRow).get(0),"#9E0200");
// Delete Cloned Row
newLink = $(newRow).find('img')[0];
newLink.src = '/i/del.gif';
$(newLink).parent().removeAttr('onclick');
$(newLink).parent().get(0).onclick = function() {
fn delete(this)};
}
</script>
Figure 3-38 shows the results after clicking a few clone icons.
Figure 3-38. Tabular Form— cloning rows
This script can easily be extended to create empty rows as well. You could also change the IDs of the
new items (currently those are copied). Please, use this with caution. It is suitable for Excel-like data
management only, where you have a plain grid of text-only items and would like to easily multiply the
rows without taking much care of the data integrity. I could imagine using it in combination with
collections.
Summary
Tabular Forms are one of the greatest features in APEX. Without this functionality, APEX 4 simply
wouldn't be as successful as it is. However, there is still potential to improve on this feature and make it
even better. Desirable improvements include
Multiple Tabular Forms per page
Dynamic Actions for Tabular Form elements
Increasing the number of arrays
More options for adding/copying rows
Item options equal to those of page items
Search WWH ::




Custom Search