solop-develop / frontend-core

ADempiere-Vue is a new UI for ADempiere ERP, CRM & SCM. It is based on Vue and uses the UI Toolkit element-ui. It is a great UI for ADempiere ERP, CRM & SCM, based on the newest development stack of Vue, built-in i18n solution, typical templates for enterprise applications, lots of awesome features. This project was forked from Vue-Element-Admin originally write by PanJiaChen / 花裤衩 over MIT license and was changed to GNU/GPL v3 by Yamel Senih after forked granted by PanJiaChen / 花裤衩 on the issue "Extend as GNU/Gpl v3 License #1434".
https://solop-develop.github.io/frontend-core
GNU General Public License v3.0
0 stars 7 forks source link

[Bug Report] Callout with `MRule` script not working #2582

Closed jesusalbujas closed 3 weeks ago

jesusalbujas commented 3 weeks ago

Bug report

When executing a callout script from UI it gives error

Steps to reproduce

  1. [xxx]
  2. [xxx]
  3. [xxxx]

Screenshot or Gif(截图或动态图)

image

When you select a Product in the Fixed Asset window, the contents of the Serial Number field in the Product window should be automatically copied to the Serial Number field in the Fixed Asset window.

image

javax.script.ScriptException: Sourced file: inline evaluation of: ``import org.compiere.util.DB; String serNo = ""; String productType = "";  if (A_ . . . '' : Error in method invocation: Method getValue( java.lang.String ) not found in class'org.spin.grpc.service.UserInterface' : at Line: 5 : in file: inline evaluation of: ``import org.compiere.util.DB; String serNo = ""; String productType = "";  if (A_ . . . '' : A_Tab .getValue ( "M_Product_ID" ) 
 in inline evaluation of: ``import org.compiere.util.DB; String serNo = ""; String productType = "";  if (A_ . . . '' at line number 5
        at bsh.engine.BshScriptEngine.evalSource(BshScriptEngine.java:92)
        at bsh.engine.BshScriptEngine.eval(BshScriptEngine.java:46)
        at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
        at org.spin.grpc.service.UserInterface.processCallout(UserInterface.java:2787)
        at org.spin.grpc.service.UserInterface.lambda$runcallout$25(UserInterface.java:2689)
        at org.compiere.util.Trx.run(Trx.java:529)
        at org.compiere.util.Trx.run(Trx.java:497)
        at org.spin.grpc.service.UserInterface.runcallout(UserInterface.java:2593)
        at org.spin.grpc.service.UserInterface.runCallout(UserInterface.java:2564)
        at org.spin.backend.grpc.user_interface.UserInterfaceGrpc$MethodHandlers.invoke(UserInterfaceGrpc.java:2086)
        at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182)
        at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35)
        at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23)
        at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40)
        at io.grpc.Contexts$ContextualizedServerCallListener.onHalfClose(Contexts.java:86)
        at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:356)
        at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:861)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

Link to minimal reproduction(最小可在线还原demo)

Expected behavior

When you select a Product in the Fixed Asset window, the contents of the Serial Number field in the Product window should be automatically copied to the Serial Number field in the Fixed Asset window.

Other relevant information

Additional context