Post-it functionality

Description

Hi,

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.

Code is here :
https://bitbucket.org/nmicoud/idempiere-nm/commits/9a2a6e393b0f781a3ba395873c1840aabfc38fd7

2Pack is in attachment.

Regards,

Nicolas

Environment

None

Activity

Show:
Carlos Ruiz
March 4, 2015, 11:05 PM

,

#2 is easy, you can register a validator (AbstractEventHandler) like this:
registerEvent(IEventTopics.PO_AFTER_DELETE);
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

Regards,

Carlos Ruiz

Nicolas Micoud
March 5, 2015, 7:53 AM

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).

Regards,

Nicolas

Carlos Ruiz
November 24, 2016, 8:05 PM

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?

WDYT?

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

Regards,

Carlos Ruiz

Nicolas Micoud
November 25, 2016, 8:05 AM

Hi ,
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

Thanks,

Nicolas

Carlos Ruiz
November 11, 2017, 1:07 PM

Assignee

Nicolas Micoud

Reporter

Nicolas Micoud

Labels

Tested By

None

Components

Fix versions

Priority

Minor
Configure