org-scn-design-studio-community / lumiradesignercommunityext

Lumira Designer SCN Community Extensions
Apache License 2.0
3 stars 2 forks source link

Script functions not working for FioriBar SCN Lumira Designer 2.0 SDK #19

Open mlr1 opened 6 years ago

mlr1 commented 6 years ago

Hello

Problem: Script functions on FIORIBAR are not working any more with SCN Lumira Designer 2.0 SDK!

No one of the following function is working:

Error message:

com.sap.ip.bi.zen.rt.framework.jsengine.JsEngineException: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (FIORIBAR_1.addRightHeaderButton()#10) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoJsEngine.handleError(RhinoJsEngine.java:194) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoJsEngine.doRunScript(RhinoJsEngine.java:88) at com.sap.ip.bi.zen.rt.framework.jsengine.AbstractJsEngine.runScript(AbstractJsEngine.java:12) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoJsEngine.runScriptWithErrorLogging(RhinoJsEngine.java:106) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoScriptInterpreterBialService.runScript(RhinoScriptInterpreterBialService.java:182) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoScriptInterpreterBialService.interprete(RhinoScriptInterpreterBialService.java:136) at com.sap.ip.bi.base.command.impl.Command.interprete(Command.java:191) at com.sap.ip.bi.webapplications.runtime.impl.page.Page.processScriptCommand(Page.java:4067) at com.sap.ip.bi.webapplications.runtime.impl.page.Page.processCommandSequence(Page.java:3872) at com.sap.ip.bi.webapplications.runtime.impl.page.Page.doProcessRequest(Page.java:2105) at com.sap.ip.bi.webapplications.runtime.impl.page.Page._processRequest(Page.java:670) at com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4332) at com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4324) at com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.doProcessRequest(Controller.java:1241) at com.sap.ip.bi.webapplications.runtime.impl.controller.Controller._processRequest(Controller.java:1095) at com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:1061) at com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:1) at com.sap.ip.bi.server.runtime.sevice.impl.BIRuntimeServerService._handleRequest(BIRuntimeServerService.java:519) at com.sap.ip.bi.server.runtime.sevice.impl.BIRuntimeServerService.handleRequest(BIRuntimeServerService.java:967) at com.sap.ip.bi.server.execution.engine.runtime.LocalBIExecutionService.executeRequest(LocalBIExecutionService.java:34) at com.sap.ip.bi.zen.rt.client.handler.designer.LocalExecutionAdapter.executeRequest(LocalExecutionAdapter.java:39) at com.sap.ip.bi.zen.rt.client.handler.RuntimeRequestHandler.handleRequest(RuntimeRequestHandler.java:28) at com.sap.ip.bi.zen.rt.client.handler.designer.DesignerRuntimeRequestHandler.handleRequest(DesignerRuntimeRequestHandler.java:33) at com.sap.ip.bi.zen.rt.client.handler.MainHandler.executeBiRequest(MainHandler.java:69) at com.sap.ip.bi.zen.rt.client.handler.MainHandler.handleRegularRequest(MainHandler.java:57) at com.sap.ip.bi.zen.rt.client.handler.MainHandler.handleRequest(MainHandler.java:35) at com.sap.ip.bi.zen.rt.client.handler.PathHandler.handleRequest(PathHandler.java:54) at com.sap.ip.bi.zen.rt.client.handler.designer.DesignerPathHandler.handleRequest(DesignerPathHandler.java:56) at com.sap.ip.bi.zen.rt.client.handler.AbstractSupportabilityHandler.handleRequest(AbstractSupportabilityHandler.java:25) at com.sap.ip.bi.zen.rt.client.handler.AbstractFrontServlet.handleRequest(AbstractFrontServlet.java:73) at com.sap.ip.bi.zen.rt.client.handler.AbstractFrontServlet.handleRequest(AbstractFrontServlet.java:29) at com.sap.ip.bi.zen.rt.client.handler.AbstractFrontServlet.doPost(AbstractFrontServlet.java:24) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at com.sap.ip.bi.zen.rt.client.handler.AbstractFrontServlet.service(AbstractFrontServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl$LegacyServlet.service(HttpServiceRuntimeImpl.java:1232) at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153) at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50) at com.sap.ip.bi.zen.webserver.designer.ZenSessionFilter.doFilter(ZenSessionFilter.java:57) at org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl$LegacyFilterFactory$LegacyFilter.doFilter(HttpServiceRuntimeImpl.java:1191) at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:118) at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45) at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:71) at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:98) at org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl.doDispatch(HttpServiceRuntimeImpl.java:372) at org.eclipse.equinox.http.servlet.internal.servlet.ProxyServlet.service(ProxyServlet.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:357) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:808) Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (FIORIBAR_1.addRightHeaderButton()#10) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712) at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3725) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1483) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1239) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.CustomContextFactory.doTopCall(CustomContextFactory.java:77) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1172) at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1139) at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoJsEngine.doRunScript(RhinoJsEngine.java:78) ... 62 more

Thank you for your help.

Mirjam

mlr1 commented 6 years ago

Hello

Does anybody has an idea how to solve the issue? I really need help very fast! We have productive applications running, which cannot be used right now.

Thank you. Mirjam

franckblais commented 6 years ago

Hello,

I'll have a look this evening if Mike is not faster than me, we'll let you know. Sorry for the inconvenience.

On Mon, Nov 20, 2017 at 1:22 AM, mlr1 notifications@github.com wrote:

Hello

Does anybody has an idea how to solve the issue? I really need help very fast! We have productive applications running, which cannot be used right now.

Thank you. Mirjam

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/org-scn-design-studio-community/lumiradesignercommunityext/issues/19#issuecomment-345602318, or mute the thread https://github.com/notifications/unsubscribe-auth/AJpiS4-JFB9HmggpIGXQkgT1Erd_zbYjks5s4RqWgaJpZM4Qh4i7 .

-- Franck BLAIS

entmike commented 6 years ago

I am quite busy with other tasks for the next week or 2, so if Franck can help out, that would be great.

franckblais commented 6 years ago

I think it's almost the same issues as the past few weeks.

I'll just probably need some help to generate the package since my eclipse decided that I am not worthy enough to let me do it! I'll try to fix it again but it's a bit annoying.

On Mon, Nov 20, 2017 at 10:51 AM, Mike Howles notifications@github.com wrote:

I am quite busy with other tasks for the next week or 2, so if Franck can help out, that would be great.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/org-scn-design-studio-community/lumiradesignercommunityext/issues/19#issuecomment-345737229, or mute the thread https://github.com/notifications/unsubscribe-auth/AJpiS61PFCs10vkMRbPX5elQs_Jvo0zkks5s4aAKgaJpZM4Qh4i7 .

-- Franck BLAIS

franckblais commented 6 years ago

Hellu mlr1,

I am not even able to reproduce the error, nor getting the Fiori bar to display anything from scripts. Could you send me the app you're using? I have been using the latest build.

Btw, the Fiori Toolbar is working fine. Could you check if it would fit your requirements, for now?

mlr1 commented 6 years ago

Hello Frank

Thank you for your answer. I have exactly the same behavior. The Fiori bar does not respond to the script commands at all. It displays only the item which are added directly to the component on design time.

We use the Fiori bar in many application. Using the Fiori Toolbar is not an option.

As a workaround we add all items directly to the component (not in script).

entmike commented 6 years ago

I'm alive again. For now. I assume this is still broken for you @mlr1. Have you given up using it or would you like me to make a fix?

franckblais commented 6 years ago

On my side, I tried to understand the issue but couldn't find time to complete. From what I saw, I am wondering if the methods on UI5 component have been modified, causing the issue.

Sorry for not being so much of a help.

On Fri, Dec 8, 2017 at 10:07 AM, Mike Howles notifications@github.com wrote:

I'm alive again. For now. I assume this is still broken for you @mlr1 https://github.com/mlr1. Have you given up using it or would you like me to make a fix?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/org-scn-design-studio-community/lumiradesignercommunityext/issues/19#issuecomment-350285682, or mute the thread https://github.com/notifications/unsubscribe-auth/AJpiS-Qx0ZvL3YPCQzMBLyF-4LuKXbX2ks5s-VCWgaJpZM4Qh4i7 .

-- Franck BLAIS

mlr1 commented 6 years ago

hi entmike, I'm still using the FIORIBAR in many applications. I can not do a redesign for all these applications. Currently we use the FIORIBAR without any script functions and this works for us. But we would appreciate if the script functions of the FIORIBAR would work again.

mlr1 commented 6 years ago

hello @franckblais, hello @entmike

could you find a solution for the problem described above?

Thank you for your help.

entmike commented 6 years ago

I thought I fixed this a while back. Have you downloaded a recent version of this plugin? I will have a look, though.

mlr1 commented 6 years ago

Yes, I installed the recent version of this plugin. I still get the following error:

_com.sap.ip.bi.zen.rt.framework.jsengine.JsEngineException: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (FIORIBAR1.addRightHeaderButton()#10#10, Component Manager functions not working)