org-scn-design-studio-community / lumiradesignercommunityext

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

BYOData Not working with Lumira Designer 2.0 #9

Open mosamna opened 7 years ago

mosamna commented 7 years ago

Dears,

Bring Your Own Data is not working and I am reciving the below error message: Message: org.mozilla.javascript.EcmaError: ReferenceError: "balanceDimension" is not defined. (SIMULATION_RESULT_DS.addRow()#4)

System information: eclipse.buildId=@qualifier@ java.version=1.8.0_131 java.vendor=SAP AG BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: BusinessObjects Lumira Designer Command-line arguments: -os win32 -ws win32 -arch x86_64 BusinessObjects Lumira Designer

thank you for your support.

entmike commented 7 years ago

Thanks, I'll take a look at this one. Sorry for all the bugs, they changed some scope stuff in 2.0.... I'll get to it in my free time this weekend hopefully.

entmike commented 7 years ago

Actually, can you confirm you are using a version from the past week? I think maybe this is fixed.

mosamna commented 7 years ago

Yeah I am using the latest release. I am combining DataIterator with BYO Data Components to merge multiple datasources. the bug in addRow function, line 139. keyword 'this' is missing.

entmike commented 6 years ago

Sorry for delay in responding. Looking now.

entmike commented 6 years ago

Fix pushed up. Ready for you to try again.

mosamna commented 6 years ago

Thank you for your usual support. I will update you back.

mosamna commented 6 years ago

Dear Mike, Sorry I was late in testing, because I waiting for our system admin to download the latest plugin. the previous issue is resolved however another error popped up

Message: org.mozilla.javascript.EcmaError: ReferenceError: "kfIndex" is not defined. (VE_SUMM_DS.balanceDimension()#7)

I think it is in line 120 while(dims.length<kfIndex){

entmike commented 6 years ago

Arg! You're right... Pushing this fix today along with a few others.

entmike commented 6 years ago

I've pushed a fix, if you could re-test.

PhilippeChartier commented 6 years ago

Hello,

I started testing latest BYOD for Lumira 2.0. I managed to display BYOD data in the spreadsheet component. :-)

But the On Result Set Changed event does not seem to work. I did a simple test (TEXT_1.setText("loaded");) and nothing happens.

Btw, we already noticed that On Result Set Changed event was working in BYOD 2.0 for DS 1.5 but it stopped working in BYOD 3.0 for DS 1.6. Maybe it's the same bug in BYOD for Lumira 2.0?..

Thanks in advance !

mosamna commented 6 years ago

I have tested the latest release. It is working fine for me now.

thank you for your high support.

PhilippeChartier commented 6 years ago

Hi Mosamna

The On Result Set Changed event is working for you? Is it working when you execute locally (localhost from Designer) and/or on BI Platform?

For now, I can only execute locally (localhost) - because I'm waiting for my admins to install Lumira server add-on - and the On Result Set Changed event is not reacting...

Thanks in advance !

mosamna commented 6 years ago

Hi PhilippeChartier,

I haven't used OnResultChaged event in my application, but I tested the functionality today and it is not firing. I am currently testing the SDK locally as I am aslo waiting for the system admin to install the extensions in the BO server.

thank you.

MattHawkinsATL commented 6 years ago

The latest commit fixes a number of issues, thanks! It appears that BYOD AddRow works with two parameters, but if you supply the optional 3rd parameter it throws a script error.

...
Message: org.mozilla.javascript.EcmaError: ReferenceError: "deleteRow" is not defined. (DS_1.addRow()#3)
Stack trace: com.sap.ip.bi.zen.rt.framework.jsengine.JsEngineException: org.mozilla.javascript.EcmaError: ReferenceError: "deleteRow" is not defined. (DS_1.addRow()#3)
    at com.sap.ip.bi.zen.rt.framework.jsengine.rhino.RhinoJsEngine.handleError(RhinoJsEngine.java:194)
...
entmike commented 6 years ago

Hey, Matt. Another bug with a lack of a 'this' addition on my end in script. I'll get it corrected in the next commit.

entmike commented 6 years ago

Alright, should be fixed if you want to grab the latest.

entmike commented 6 years ago

Following up - Is this working, now?

MattHawkinsATL commented 6 years ago

Yes works great - Thanks Mike!

Pieterdezeeuw commented 5 years ago

Hi Mike,

We are on Lumira 22.0.1. I'm using the BYOD example with a button to add a row. Following statement doesn't work on the BI platform and it throws a scripting error. BYOD.addRow("Grocery,Juice", "100,1.25"); "Error during script processing. Contact the Application Designer to resolve the issue"

Any idea?

Thanks in advance.

Pieter