13
questions
1
vote
1
answer
41
views
MDD validation bug with >=
I use this validation rule in the MDD:
compare(maxSizeOfGroup, minSizeOfGroup) {maxSizeOfGroup >= minSizeOfGroup} :
"The maximum number of people can't be smaller than the minimum number!"
Yet I ...
0
votes
1
answer
47
views
Makumba Config - Do not include JS/CSS
While working on a bootstrap implementation for Karamba! I get many conflicts from Makumba's default JS library prototype, which is conflicting with the one bootstrap is using - jQuery.
Is there a ...
1
vote
0
answers
43
views
Alternative to triggerEvent attribute in mak:addForm
According to the documentation, the triggerEvent attribute can be used in mak:form, mak:newForm or mak:editForm. I would like however to use the same feature in mak:addForm, but it doesn't seem to ...
2
votes
1
answer
69
views
Makumba - select first value in a subset
I'm trying to select the latest activity organised by an LBG for all LBGs.
currently my code looks like this:
<mak:list from="r2.lbgs l" orderBy="l.lbg.name" where="l.toDate = nil and l.lbg....
1
vote
1
answer
49
views
MDD uniqueness validation rule
I'm wondering how makumba is handling uniqueness validation rules between multiple fields, when there are null fields involved.
For instance:
a = not null not empty char...
b = ptr ...
unique(a, b)
...
2
votes
1
answer
106
views
Makumba list sorting by a subset
Let's say we have the following Student.mdd:
person=not null ptr general.Person
interests=set general.ActivityField
education=set
education->university=not null ptr general.University
...
2
votes
1
answer
71
views
Makumba - MDD functions
I was looking at the MDD function documentation and wondered if there is the possibility to have some kind of control flow inside MDD functions.
In a type definition there's a type that has a pointer ...
1
vote
1
answer
65
views
Makumba - hidden set input field
I was wondering what is the naming convention for a hidden set mak:input field on the resulting HTML page.
I've tried hunting one down with in the source, but with no success so far.
2
votes
2
answers
54
views
Manipulation with date functions in makumba
trying out date functions. Want to list posts only 10 days old, older than that, I won't show. I have this query:
dayOfYear($now)-dayOfYear(p.TS_create)<10 and year($now)=year(p.TS_create)
inside ...
2
votes
2
answers
82
views
Manipulating with date functions in makumba (adding or substracting hours)
I want to get current date +/- some hours.
According to docummentation, one of those should work:
date_sub(now(), interval 1 hour)
date_sub(current_time(), interval 1 hour)
but it doesn't. I use ...
3
votes
2
answers
123
views
Makumba - set emptiness on a where clause
I'm wondering if there's a way to check for set emptiness in a mak:list's where clause.
I'd like to avoid having to mak:list the set in question just to mak:lastCount its size.
1
vote
1
answer
62
views
Makumba - how to set null to pointer value with API
I'm wondering what would be the best way to set a NULL (or NIL) value to a pointer in makumba using the API?
I've tried something like this:
Dictionary<String,Object> emptyActivity = new ...
2
votes
2
answers
92
views
makumba - Creating related entities at the same time
I would like to know if it's possible to somehow create two related entities at the same time (one submit) using makumba.
Looking at the example on the website let's say I have a Company.mdd:
name = ...