new action in toolbar

225 views
Skip to first unread message

Natalia

unread,
Jun 9, 2016, 3:48:32 PM6/9/16
to iDempiere

Hello! I am creating new action in button. I want to create plugin in eclipse. Eclipse offers me diffrents templates  What template i must use? 

thanks

Orlando Curieles

unread,
Jun 9, 2016, 5:20:02 PM6/9/16
to iDempiere

Solutions Ocean.

unread,
Jun 9, 2016, 5:42:54 PM6/9/16
to idem...@googlegroups.com
for that you can simply write a process and attach it to this button...

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/f873e52c-e613-43d7-808b-d5e3f3273905%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

redhuan d. oon

unread,
Jun 9, 2016, 5:47:37 PM6/9/16
to iDempiere
You can do that easily and instantly using Aladdin http://red1.org/adempiere/viewtopic.php?f=45&t=1821#p8785
There is a movie at the bottom.


On Friday, 10 June 2016 04:42:54 UTC+7, Kashif Baig wrote:
for that you can simply write a process and attach it to this button...
On Fri, Jun 10, 2016 at 12:48 AM, Natalia <pe...@pisem.net> wrote:

Hello! I am creating new action in button. I want to create plugin in eclipse. Eclipse offers me diffrents templates  What template i must use? 

thanks

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.

Natalia

unread,
Jun 9, 2016, 5:57:34 PM6/9/16
to iDempiere
How can i write process? i must add new pakage or i must add new plugin? Some people advised to use plugin, but i dont know, i doubt and i am asking you - what is better? 
And other question: when i create plugin must i bild project another one? 

пятница, 10 июня 2016 г., 0:42:54 UTC+3 пользователь Kashif Baig написал:

redhuan d. oon

unread,
Jun 9, 2016, 8:35:16 PM6/9/16
to iDempiere
Just follow my turorial or movie to see it happen then you can grasp it.
It can be many processes within a same plugin with your other new models. Of course you segregate them according to domain separation or simple think of them as a separate normal human functions so that humans can easily understand and thus communicate how they like each function to be. It is a matter of giving visibility and usability to the users not the developers. You can give me your real examples, and i can advise if they should be together or separate. 

Natalia

unread,
Jun 10, 2016, 8:10:56 AM6/10/16
to iDempiere
Thanks for help! I will try...

Natalia

unread,
Jun 10, 2016, 9:46:32 AM6/10/16
to iDempiere
Thanks. I created plugin, but i have done mistakes possible :( 
I don t understand that point 


In total, i got that 


what is wrong?
Thanks

пятница, 10 июня 2016 г., 0:20:02 UTC+3 пользователь Orlando Curieles написал:

Orlando Curieles

unread,
Jun 10, 2016, 9:56:11 AM6/10/16
to iDempiere
You need put the qualified name of your plugin process some just like:

  com.ingeint.process.task1.fillproject

 Regards.

Natalia

unread,
Jun 10, 2016, 10:05:29 AM6/10/16
to iDempiere
where? I put it in field classname. that field doesn't right?

пятница, 10 июня 2016 г., 16:56:11 UTC+3 пользователь Orlando Curieles написал:

Orlando Curieles

unread,
Jun 10, 2016, 10:13:00 AM6/10/16
to iDempiere
Please check this video 


 Regards

redhuan d. oon

unread,
Jun 10, 2016, 9:42:35 PM6/10/16
to iDempiere
If you follow the link i gave you everything is automatically done for you without need to bother except start coding your logic. Here is the link again - http://red1.org/adempiere/viewtopic.php?f=45&t=1821#p8785

greetings from Dak Lat, Vietnam (on tour with Hiep LQ)

Natalia

unread,
Jun 11, 2016, 12:08:49 PM6/11/16
to iDempiere
Thanks, very very! It helped almost!  I tryed it and i created plugin and process, but i can't finish. Programm wrote 
Failed to create new process instance for plugin2.myProsess.  
Where  shoud be created this error? may be in eclepse?
How can i search   this bag?

пятница, 10 июня 2016 г., 17:13:00 UTC+3 пользователь Orlando Curieles написал:

Natalia

unread,
Jun 11, 2016, 3:37:36 PM6/11/16
to iDempiere
in addition, i got log and massages in console

log
!SESSION 2016-06-11 22:22:14.813 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ru_RU
Framework arguments:  -product org.adempiere.server.server_product
Command-line arguments:  -product org.adempiere.server.server_product -data /home/pena/workspace/../runtime-server.product -dev file:/home/pena/workspace/.metadata/.plugins/org.eclipse.pde.core/server.product/dev.properties -os linux -arch x86_64 -consoleLog -console

!ENTRY org.eclipse.osgi 4 0 2016-06-11 22:22:17.620
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: idempiere.properties file missing. Path=/home/pena/workspace/idempiere.properties
at org.adempiere.server.Application.start(Application.java:44)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

concole
июн 11, 2016 10:26:35 PM org.compiere.util.Language getLanguage
INFO: Adding Language=ru, Country=RU, Locale=ru_RU
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://167.fwk899855594:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://167.fwk899855594:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
июн 11, 2016 10:26:35 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @2362ms
июн 11, 2016 10:26:35 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome
WARNING: Unable to locate the jetty.home folder /home/pena/workspace/jettyhome
!SESSION 2016-06-11 22:26:33.361 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ru_RU
Framework arguments:  -product org.adempiere.server.server_product
Command-line arguments:  -product org.adempiere.server.server_product -data /home/pena/workspace/../runtime-server.product -dev file:/home/pena/workspace/.metadata/.plugins/org.eclipse.pde.core/server.product/dev.properties -os linux -arch x86_64 -consoleLog -console

!ENTRY org.eclipse.osgi 4 0 2016-06-11 22:26:35.739
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: idempiere.properties file missing. Path=/home/pena/workspace/idempiere.properties
at org.adempiere.server.Application.start(Application.java:44)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
An error has occurred. See the log file
/home/pena/workspace/.metadata/.plugins/org.eclipse.pde.core/server.product/1465673193519.log.
osgi> 

what is folder? jetty.home folder  or may be something wrong in properties
(java.lang.IllegalStateException: idempiere.properties file missing. Path=/home/pena/workspace/idempiere.properties)

суббота, 11 июня 2016 г., 19:08:49 UTC+3 пользователь Natalia написал:

redhuan d. oon

unread,
Jun 11, 2016, 7:13:27 PM6/11/16
to iDempiere
You have not specifically said whether you are using my Aladdin or not. And your error 'idempiere.properties file missing. Path=/home/pena/workspace/idempiere.properties' means you may not have run install.app from your Eclipse.
Small question i have is what kind of OS are you using? Mac OSX or Linux?

Natalia

unread,
Jun 12, 2016, 4:54:41 AM6/12/16
to iDempiere
I use lihux suse and this is my first experience linux in total, and i need to learn create plugins my own. It is very complicated.  I am only starting to program in adempiere, but i will do it. Thanks for help. i dont have helpers except this forum. 

воскресенье, 12 июня 2016 г., 2:13:27 UTC+3 пользователь redhuan d. oon написал:
Message has been deleted

Natalia

unread,
Jun 12, 2016, 1:51:29 PM6/12/16
to iDempiere
I have done it another one very carefuly like in video, but i got  the same error. I think this is other problemm, but i dont know where could i dig solution. :'(

log
!SESSION 2016-06-12 20:50:18.706 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ru_RU
Framework arguments:  -product org.adempiere.server.server_product
Command-line arguments:  -product org.adempiere.server.server_product -data /home/pena/workspace/../runtime-server.product -dev file:/home/pena/workspace/.metadata/.plugins/org.eclipse.pde.core/server.product/dev.properties -os linux -arch x86_64 -consoleLog -console

!ENTRY org.eclipse.osgi 4 0 2016-06-12 20:50:21.092
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: idempiere.properties file missing. Path=/home/pena/workspace/idempiere.properties
at org.adempiere.server.Application.start(Application.java:44)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)


пятница, 10 июня 2016 г., 17:13:00 UTC+3 пользователь Orlando Curieles написал:

Natalia

unread,
Jun 12, 2016, 4:29:23 PM6/12/16
to iDempiere
I tried.  When i'm saving model design it is writing "Error: java.io.FileNotFoundException: /home/pena/Dev/idempiere/plugin.myprocess.aladdin/org/my/process/MySpecialProcess.java (Нет такого файла или каталога) - dont exist this file or folder".   I know exactly! Folder exist. I created it!  empty folder - /home/pena/Dev/idempiere/plugin.myprocess.aladdin/

суббота, 11 июня 2016 г., 4:42:35 UTC+3 пользователь redhuan d. oon написал:

redhuan d. oon

unread,
Jun 12, 2016, 7:44:23 PM6/12/16
to iDempiere
I can help you easily if you answer my questions first:
1. Are you using my Aladdin plugin?
2. Are you using Eclipse?
3. DId you run setup.sh or install.app in Eclipse?

Natalia

unread,
Jun 12, 2016, 8:15:31 PM6/12/16
to iDempiere
1. Are you using my Aladdin plugin? yes
2. Are you using Eclipse? yes
3. DId you run setup.sh or install.app in Eclipse? setup.sh & in console

понедельник, 13 июня 2016 г., 2:44:23 UTC+3 пользователь redhuan d. oon написал:

redhuan d. oon

unread,
Jun 13, 2016, 8:17:51 AM6/13/16
to iDempiere
3. No, you must run install.app from Eclipse.

Natalia

unread,
Jun 13, 2016, 8:41:15 AM6/13/16
to iDempiere
it doesnt work



понедельник, 13 июня 2016 г., 15:17:51 UTC+3 пользователь redhuan d. oon написал:

redhuan d. oon

unread,
Jun 13, 2016, 9:38:50 AM6/13/16
to iDempiere

You are not running install.app. Look at my screen.

Natalia

unread,
Jun 13, 2016, 2:41:44 PM6/13/16
to iDempiere
i do it the same, but it doesnt work. It give me list of prolem and then log with exception.

понедельник, 13 июня 2016 г., 16:38:50 UTC+3 пользователь redhuan d. oon написал:

Natalia

unread,
Jun 13, 2016, 2:45:36 PM6/13/16
to iDempiere
Thanks for help! Do you have teamwiever and skype?

понедельник, 13 июня 2016 г., 16:38:50 UTC+3 пользователь redhuan d. oon написал:

redhuan d. oon

unread,
Jun 14, 2016, 7:06:49 AM6/14/16
to iDempiere

You should go to Plug-ins tab, click on Add Required Plug-Ins, and Validate Plug-ins. If error appears then, it could be your remote dependencies were not resolved and fetched during Buckminster Materialization step. You have to do import via Buckminster again.

Natalia

unread,
Jun 14, 2016, 7:43:11 PM6/14/16
to iDempiere

Thanks! I started to do it again. But now, when i do install.app  it ask me about System password. How can i reset it? i dont know this password. 


вторник, 14 июня 2016 г., 14:06:49 UTC+3 пользователь redhuan d. oon написал:

redhuan d. oon

unread,
Jun 14, 2016, 9:17:08 PM6/14/16
to iDempiere
It is not needed as DB user password is correct. Just click Save and it will work.
That password is for your PostgreSQL Database system password you set there. But since you say DB Already Exists, and it confirms your DB user password, that is all it needs to check your DB.

Natalia

unread,
Jun 18, 2016, 9:14:36 AM6/18/16
to iDempiere
I can't connect to database. I corrected file pg_hba.conf in console

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust    
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the  
# replication privilege.
#local   replication     postgres                                peer  
#host    replication     postgres        127.0.0.1/32            ident     
#host    replication     postgres        ::1/128                 ident
    

but it didt help me

where can i correct yet?

среда, 15 июня 2016 г., 4:17:08 UTC+3 пользователь redhuan d. oon написал:

Alfredo Flores Aybar

unread,
Jun 18, 2016, 12:14:20 PM6/18/16
to iDempiere
HI Natalia, maybe i can help you,

bottm ipv4 local connections type this

"host all all 192.168.10.1/24 md5" (with out "")

in my case the subred is 10, chek your ip  and set it

Regards.
Reply all
Reply to author
Forward
0 new messages