org-scn-design-studio-community / lumiradesignercommunityext

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

Issue with Simple Date Component #13

Closed JonasDuclos closed 7 years ago

JonasDuclos commented 7 years ago

Hello all,

I have installed SDK Community on my local Lumira 2.0 SP02, but i'm not able to run my application which use SIMPLEDATE Component.

It seems Lumira 2.0 is not able to use rollDays function

"Message: org.mozilla.javascript.EcmaError: ReferenceError: "internal_setDateByIndex" is not defined. (DATE.rollDays()#7) Stack trace: com.sap.ip.bi.zen.rt.framework.jsengine.JsEngineException: org.mozilla.javascript.EcmaError: ReferenceError: "internal_setDateByIndex" is not defined. (DATE.rollDays()#7)"

I'm not 100% sure my extension is well installed, you can see it here. (i took this link : https://github.com/org-scn-design-studio-community/lumiradesignercommunityext/blob/master/releases/org.scn.community.sdk.extensions.zip?raw=true, link found here : https://blogs.sap.com/2017/08/18/scn-lumira-designer-2.0-sdk-components/)

image

Best regards !

Jonas.

entmike commented 7 years ago

Hey Jonas,

Thanks for reporting the problem. The good news for you is that it's not your problem. The bad news for me is that I'll need to fix something :)

Give me a day or 2 and I can create a fix.

JonasDuclos commented 7 years ago

Good to know i'm not responsible for this issue :D Thank for your responsiveness, i appreciate !

Good luck for this !

entmike commented 7 years ago

Hey Jonas,

Give it another try when you have time and let me know if it's fixed for you, now.

JonasDuclos commented 7 years ago

Hello Mike,

I tried to re-download your extension but i have an issue when i try to install it

image

I failed somewhere ?

entmike commented 7 years ago

I will take a look today. Perhaps try redownloading it and removing it the old version of the extension in the meantime.

Sent from my Windows phone.

On Oct 25, 2017, at 2:32 AM, JonasDuclos notifications@github.com wrote:

Hello Mike,

I tried to re-download your extension but i have an issue when i try to install it

I failed somewhere ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JonasDuclos commented 7 years ago

Done but unsuccessfully :(

entmike commented 7 years ago

Ok yeah I screwed up the build. I pushed a fix up if you could try to download once more and try again.

JonasDuclos commented 7 years ago

Great !

But i'm sorry, still have an issue. Seems you fixed rollDays but there is the same issue for rollDays (and i guess for others functions in this component)

Message: org.mozilla.javascript.EcmaError: ReferenceError: "getYear" is not defined. (DATE.internal_rollMonths()#11) Stack trace: com.sap.ip.bi.zen.rt.framework.jsengine.JsEngineException: org.mozilla.javascript.EcmaError: ReferenceError: "getYear" is not defined. (DATE.internal_rollMonths()#11)

entmike commented 7 years ago

Let's try again. I missed a spot, you are right. Ready for you to download and try again.

JonasDuclos commented 7 years ago

Nice ! Works perfectly !

Big thank for your support Mike !

entmike commented 7 years ago

Glad to be able to help. Sorry for the bugs. Lumira 2.0 changed the way script scope worked, so I'm only hearing these issues as people are using the script APIs. Please feel free to report any new issues you encounter going forward! Going to close this issue as it sounds like it's been corrected.

Thanks!