Đăng nhập
www.adoxx.org
Welcome
Download
Tutorial
Olive Webinar
Introduction Webinar
Interaction with external API webinar
ADOxx Training Registration
ADOxx Training Overview
Frequently Asked Questions
Developer Community
Realization Cases
Falcon
Building Blocks_
Documentation
Introduction to ADOxx
Modelling Language Implementation
Mechanisms and Algorithms Implementation on ADOxx
ADOxx Development Tools And Services
ADOxx Development Languages
ADOxx Development Languages: Syntax Support in Notepad++
ADOxx Development Languages: Syntax Support in Microsoft Visual Studio Code
AdoScript Documentation
CoChaCo4ADOxx
Contact
ADOxx.org
Frequently Asked Questions
Fachhochschule Nordwestschweiz FHNW
Change GraphRep based on count
Trang chủ diễn đàn
Bài gửi mới nhất
Thống kê
Câu trả lời
(
Bỏ đánh dấu
)
Là câu trả lời
« Quay về Fachhochschule Nordwestschweiz FHNW
Change GraphRep based on count
Luồng thảo luận [
Trước
|
Tiếp theo
]
Change GraphRep based on count
Pascal Sibold
13:35 01/12/2016
RE: Change GraphRep based on count
Pascal Sibold
14:07 01/12/2016
RE: Change GraphRep based on count
Cho phép người dùng chưa đăng ký
12:00 05/12/2016
RE: Change GraphRep based on count
Pascal Sibold
13:48 05/12/2016
RE: Change GraphRep based on count
Pascal Sibold
15:42 05/12/2016
Pascal Sibold
Thứ hạng:
New Member
Đã gửi:
13
Tham gia từ:
13/11/2016
Bài gửi mới nhất
Change GraphRep based on count
Câu trả lời
13:35 01/12/2016
Hello
I have a modelling element, which should change it's appearance based on how many checkboxes are checked while each checkbox is an attribute (enumeration). When adding the modelling element to a new model in the modelling toolkit, the initial shape has to be shown (without any checkboxes checked). Whenever the user does changes on the checkbox, the appearance shall change.
Is there any script or anything available to solve this? GraphRep code for each of the different "states" is available.
Thanks and best regards,
Pascal
Đăng nhập để bình chọn.
Trên cùng
Pascal Sibold
Thứ hạng:
New Member
Đã gửi:
13
Tham gia từ:
13/11/2016
Bài gửi mới nhất
RE: Change GraphRep based on count
Câu trả lời
14:07 01/12/2016 gửi bài phản hồi tới Pascal Sibold.
Here an example of the checkboxes on the element:
Các đính kèm:
checkboxes.png
(85,5k)
Đăng nhập để bình chọn.
Trên cùng
Cho phép người dùng chưa đăng ký
RE: Change GraphRep based on count
Câu trả lời
12:00 05/12/2016 gửi bài phản hồi tới Pascal Sibold.
Dear Pascal,
One way to do this is to include files with the GraphRep Code depending on the values of the attributes.
For an example I will take the second group “Physical Transfer Status”.
In the AttrRep you have the following attributes:
GROUP "Physical Transfer Status"
ATTR "Hospital approval" ctrltype:check checked-value:"Yes" unchecked-value:"No"
ATTR "Reha approval" ctrltype:check checked-value:"Yes" unchecked-value:"No"
ATTR "Patient in reha" ctrltype:check checked-value:"Yes" unchecked-value:"No"
ENDGROUP
To achieve the change of the appearance depending on checked boxes you can operate with If...Else statements. The GraphRep of your modelling element could look as follows:
GRAPHREP
AVAL hoap:"Hospital approval"
AVAL reap:"Reha approval"
AVAL painre:"Patient in reha"
IF (hoap="Yes" AND reap="Yes" AND painre="Yes") {
@INCLUDE "db:\\appearance1_GraphRep.leo"
}
ELSIF (hoap="No" AND reap="Yes" AND painre="Yes") {
@INCLUDE "db:\\appearance2_GraphRep.leo"
}
ELSE {
@INCLUDE "db:\\appearance3_GraphRep.leo"
}
I hope I could help.
Đăng nhập để bình chọn.
Trên cùng
Pascal Sibold
Thứ hạng:
New Member
Đã gửi:
13
Tham gia từ:
13/11/2016
Bài gửi mới nhất
RE: Change GraphRep based on count
Câu trả lời
13:48 05/12/2016 gửi bài phản hồi tới Cho phép người dùng chưa đăng ký.
Hello
I also solved it myself today with nearly the same solution but yours is even better with referencing to the .leo file only.
Thanks a lot!
Regards,
Pascal
Đăng nhập để bình chọn.
Trên cùng
Pascal Sibold
Thứ hạng:
New Member
Đã gửi:
13
Tham gia từ:
13/11/2016
Bài gửi mới nhất
RE: Change GraphRep based on count
Câu trả lời
15:42 05/12/2016 gửi bài phản hồi tới Pascal Sibold.
If there is a solution, which scales better (e.g. on count of amount of clicked checkboxes), I would still be interested. For the example with the checkboxes I have shown, there are just too many possibilities.
Đăng nhập để bình chọn.
Trên cùng