Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
RE: Filtering MODEL_SELECT_BOX list
Answer
4/4/16 6:29 AM
Hello,

What about if I'm working on a BPMN model (it is active) and I want a MODEL SELECT BOX with some other specific BPMN models to be appeared?
I tried the commands:
1CC "CoreUI" MODEL_SELECT_BOX opened-models
and 
1CC "CoreUI" MODEL_SELECT_BOX loaded-models

But it also appears the active BPMN model that i' working on and i don't want it.Is there a solution for this? 

RE: Filtering MODEL_SELECT_BOX list
Answer
4/11/16 7:43 AM as a reply to Ioanna Ramoutsaki.
Hi,
You can solve this by closing the active model. Therefore it would not be in the list of the opened/loaded models:

1CC "Modeling" GET_ACT_MODEL
2SET nActiveModel: (modelid)
3CC "Modeling" CLOSE modelid: (nActiveModel)

If you need the model after the export again opened than open the model as follows:

1CC "Modeling" OPEN modelids: (STR nActiveModel)

RE: Filtering MODEL_SELECT_BOX list
Answer
4/14/16 7:15 AM as a reply to Mehmet Albayrak.
Hello,

I tried the above solution but I get the following errors (see the attachments) and finally a crash dump file which closes the program.
I don't know how to fix them. Is there a solution for them? The MOCevent.asc is a script which you had suggested me in order to solve the error: anotbk-889.
I also send you my own library and the script file which has the problem (lines: 237-253 and 652-756). 

Thank you in advance.

With regards,Ioanna
Attachment

Attachment

Attachment

Attachments: MOCeventERROR.PNG (26.4k), MOCeventERROR0.PNG (21.8k), MOCeventERROR1.PNG (10.2k), event_AfterEditAttributeValue.asc (31.2k), extendigSeMFIS1.abl (22,199.8k)

RE: Filtering MODEL_SELECT_BOX list
Answer
4/20/16 7:43 AM as a reply to Ioanna Ramoutsaki.
Hi,
As the event MOCTimer (from your previous scenario) is reading if the Notebook of the instance is open or not, the model, which contains this instance, has to be loaded. This is the reason why there are 'undefined' parameters, because the values cannot be read. In order to fix them you have to choose one of the two functionalities.