Book a Demo

Author Topic: How to refresh properties of elements loaded in EA  (Read 4909 times)

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
How to refresh properties of elements loaded in EA
« on: March 07, 2014, 09:47:10 am »
Some of data in the window with properties of element are not the same like date in the structure of this object. How in the Project Browser can I refresh the data of element or the best of the whole project? "Reload Current Package" or re-open (close and open) EAP nothing change in this case, I try it early. Please help.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #1 on: March 07, 2014, 11:35:44 am »
Can you explain in more detail what you are actually doing?

q.

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #2 on: March 07, 2014, 02:29:51 pm »
If "Reload package" and "reopening" project didn't help, there is a high probability that the notes(or properties) for the element wasn't set.

One usual mistake I do is, Selecting an element and adding Notes to it (in the Notes window), but then realize that the notes was added to the diagram, and not the actual diagram object that I intended to select..


PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #3 on: March 07, 2014, 07:18:11 pm »
I write addins to verify the correctness of EAP.
In this EAP I have a few examples of errors/differences of displayed data and object structures.
I find the steps in the scenariosteps of element (UseCase) with no name, no uses and results parameters (and another too) and they are not displayed (even empty) in window with Property of this element, the numbering of the steps are skipped.
Another difference... element name is different in window (EA) and in the object structure.
It looks like buffering changes (but hard, saved in this state). Save this changes is not required before closing EAP in EA. Opened EAP in next time is same, this undisplayed differences they are still.
Sometimes EA detected changes of state (and asc to save) but it's only if you edited this item in this moment.
It is hard to show and to correct this mistakes in EA (to use program, not addins) when they are invisible. They are visible only in object structure but it is not easy way to ea users who only created eap (define use case).
Can I (this user) use same "magic" option in EA to correct (save) this unsaved changes (refresh whole EAP)?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #4 on: March 07, 2014, 09:11:58 pm »
I still do not see the real problem. There are a number of properties you don't see in the UI. That's correct. And there is no way to make EA show them except you do something like Geerts EA Explorer.

If you are going to change these hidden values I don't see any problem. Just update the object and call update. Eventually you need to refresh the project browser using RefreshModelView (which of course only affects the visible properties).

q.

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #5 on: March 07, 2014, 09:38:08 pm »
Quote
I still do not see the real problem. There are a number of properties you don't see in the UI. That's correct. And there is no way to make EA show them except you do something like Geerts EA Explorer.

If you are going to change these hidden values I don't see any problem. Just update the object and call update. Eventually you need to refresh the project browser using RefreshModelView (which of course only affects the visible properties).

q.


Thank you for answer, I will try with addins, I know this way but I look for way from UI.
I'm sorry that it's not clearly :( I have problem with properties witch are visible in UI. I wrote steps in scenario for element type UseCase, names elements etc. These properties are shown in many places in UI and have different values in described situations.

PiotrS

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #6 on: March 07, 2014, 10:54:19 pm »
More information after small exercises  :) ...
I wrote and execute small addin, only with RefreshModelView(0) and in this situation not work :( this described earlier differences in scenariosteps of UC-element are still in EAP. In UI still is ok, but in dbase not (added step with empty name, uses, references but with set "level").
When I edited this scenario its ended with information:
"Warning: You have unsaved 'Scenarios' information!
Do you wish to save these changes?
Yes/No/Cancel"
and when i chose "Yes" everything is OK. Differences are removed and the scenario is corect.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to refresh properties of elements loaded i
« Reply #7 on: March 08, 2014, 02:29:09 am »
You might have a look in my Scripting book where I explain how to create scenario steps via automation.

q.