This content has been marked as final. Show 2 replies
Forms uses the standard Clipboard Manager of the operating system to handle the value captured by the COPY/CUT_REGION and PASTE_REGION built-ins. There are no parameters to these built-ins to enable you to clear the contents of the Clipboard Manager. Therefore, I suggest you add a "Dummy" non-base table item to your form and set the height and width to 0 so it is not visble at run-time. Then modify your code to navigate to the "Dummy" item and call COPY_REGION - in affect nulling the value of the Clipboard Manager. For example:
As to setting the "Current Record Visual Attribute" property of a TList - I'm not sure there is a native way to accomplish this. You might be able to do this with a Pluggable Java Component (PJC). Check out Oracle Forms PJCs/Java Beans web site for numerous PJC examples.
:TEMP_BLOCK.SELECTED_KEYWORD:= :TEMP_BLOCK.source; GO_ITEM('TEMP_BLOCK.SELECTED_KEYWORD'); SELECT_ALL; COPY_REGION; GO_ITEM('MESSAGE_FORMAT.different_item'); PASTE_REGION; /* Clear the Clipboard Manager */ Go_Item('TEMP_BLOCK.DUMMY'); Copy_Region; /* Make sure you navigate back to the previous */ /* item so the user experience doesn't change. */ GO_ITEM('MESSAGE_FORMAT.different_item');
Hope this helps.
I have already tried that and trying it again . Yes when you think of it it should work, but it does not. You're missing SELECT_ALL.
I am trying to handle it differently..Enabling disabling the buttons based on if they select a value or not. There is a blue line ( a blue highlight that shows up) when you select a value on the TLIST and as you move accross the records through scroll bar, the highlight jumps to that value on different record if there is one and if there is not that same value , then no highlight. is there a way to remove that highlight? thanks