We added a button on the toolbar that open a post-it.
People prefer this rathan than the chat where updating is not possible.
It works for swing and webUI.
I've just noticed a bug when saving on 'HTML' tab in webUI.
2Pack is in attachment.
#2 is easy, you can register a validator (AbstractEventHandler) like this:
and do the delete on doHandleEvent
#1 is a little harder, I think we need to extend the IAction interface (probably create a new one like IActionImage)
The IActionImage interface would provide the execute method but also a method to determine if the botton is pushed or not (isButtonPushed)
The Actions.getActionImage must call the IActionImage.isButtonPushed and return the [actionId]24.png or [actionId]X24.png accordingly
For #2, means that after every delete, there will be a sql statement which will be executed (something like DELETE FROM PostIt WHERE AD_Table_ID = ? AND Record_ID = ?)
For #1, yes, it seems to be a good idea (and not only for post it, but for any button added by plugins).
Hi, revisiting this.
I attached a patch IDEMPIERE-905_v41.patch that is working for version 4.1
Now, question is, OK to add to 4.1? Or better next version?
Some potential improvements:
allow search for "Has PostIt" (same could be applied for Has Attachment - Has Chat)
delete postit when cleared and/or implement a button to delete it
Haven't tested your patch (i don't have 4.1 locally), but I think it could be integrated in 4.1 as it is harmless.
Improvements you are describing can be done in the following months.
The "allow search for PostIt/Attachment/Chat" could be an option for windows and info windows (like the filter on Thunderbird) ; see screenshot