on 10-27-2015 10:00 AM
Hi, I have a Form with FormContainer. I am setting a json model to the form.
A sample is goes like this:
contract: {
visible: {
contractType: true,
validUntil: true,
contractInfo: true
},
enabled: {
contractType: false,
validUntil: false,
contractInfo: false
},
required: {
contractType: false,
validUntil: false,
contractInfo: false
}
},
salary: [{
visible: {
validFrom: true,
validUntil: true,
payType: true,
salarySum: true,
addSalaryBtn: false
}
}],
...
I am having no problem setting contract model part to formelements like (oUIProperties is the model name i have when setting the json model to the form):
visible: "{oUIProperties>/contract/visible/contractType}"
Question 1: Can I set a model for FormContainer? (If i try setting a model it says that mBindProperty is unknown or smth).
Question 2: How can I set properties which are in an array? The salary part of the model can have more than 1 element, since I can create more than 1 salary FormContainer and I want to bind the properties by accessing the salary array-s object properties.
heh, turned out to be quite simple:
visible: "{oUIProperties>/salary/0/visible/validFrom}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.