Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DomainType #78

Open
outkaj opened this issue Sep 12, 2019 · 3 comments
Open

Add support for DomainType #78

outkaj opened this issue Sep 12, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@outkaj
Copy link
Contributor

outkaj commented Sep 12, 2019

now we have a DomainType in ol-core which can look something like

 [[Amount:DomainType(
  variableType: Number;
  condition: this > 0;
  errorMessage:"amount must be greater than 0!"
)]]
[[amount:Amount]]

it also works with expressions like

[[Amount:DomainType(
variableType: Number;
condition: this > 0;
errorMessage:"amount must be greater than 0!"
)]]
[[amount:Amount]]
[[amount2:Amount]]
[[@amount expression=amount - amount2]]
[[amount expression]]

@jtrein could you quickly look into adding support for this at some point before our next app release? many thanks!

@outkaj outkaj added the enhancement New feature or request label Sep 12, 2019
@jtrein
Copy link
Contributor

jtrein commented Sep 26, 2019

This looks fun! I'll try to get something together today, or tomorrow, to test out.

@jtrein
Copy link
Contributor

jtrein commented Sep 26, 2019

@jdville03 I missed the latest release I bet...?

@jdville03
Copy link
Member

That's ok. I'm not really familiar with this new DomainType. I don't think anyone has tested what would would happen if it got included in a template now, but seems like there will be failures because not handled by elements.

@jtrein jtrein changed the title add support for DomainType Add support for DomainType Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants