Using an Item plugin I can easily format an item value to whatever I want for display.
However, how can I do the reverse: Take the user's input and apply some transformation to it, before / when it gets submitted?
I could use an "After Submit Computation", but that means I have to duplicate the logic for each item. It would be nice to have this centralized in the plugin itself.
Perhaps there could be some sort of "Pre-Process" callback function in the plugin definition, that received the actual value and could return a modified value ?
Or perhaps this could be done as part of the validation callback, by adding a "modified_value" attribute to the t_page_item_validation_result record ?
in the validation callback you could use apex_util.set_session_state to modify the page items value. We do that ourself in the "Number Field" native item type plug-in.
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins