Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - harbourfish

Pages: [1]
1
It works! Thank you very much!

2
Now, I select multiple packages in the EA. In my add-in code, I can only find m_Repository.GetTreeSelectedPage() method, which only returns one selected package. How to get multiple packages which I select in the EA?Any one could help me?

3
Quote
Hi
In that case Geert is correct - these values dont appear in the DB
-------------------------------
Anyway,Thank you very much.

4
Quote
Hi
The difficulty and priority fields are stored in the PDATA3 and PDATA2 fields in the t_object table.

HTH
-----------------------------
I call R.SQLQuery() to get the XML String. But I found that it only displays the specified value in a specified item. I think you make misunderstanding about it. What I want is that the difficulty field and priority field contain which values? I want to list all the optional values of one field.

5
Quote
Hi,

Have you looked at the API documentation regarding GetReferenceList()?
I don't see "Difficulty" as an allowed value, so no wonder you get an error.
As mentioned before, only the values that are managed in the database can be requested this way.
Other value types often are hardcoded.

Geert
----------------------------------------------
Okay. Thank you very much. I did realize most of these fields needs to be hardcoded if no other ways getting values of them, but I'm not sure about it.

6
It seems "Status" is okay. But when I try to get the values of "Difficulty", error occurs. So how to get all the values of other fields, like "Difficulty", "Priority" and so on. It turns out a trouble for me.

7
Can anyone show me the sample code. I just want get the information of the field named "Status", such as its type, its name and so on, and get all the values of it. Can anyone can show me? Thank you in advanced.

8
Quote
Well, it depends.
If the values for those fields can be managed they are stored in the database. In that case you can get them either by using Repository.GetReferenceList() or by querying them from the database directly using Repository.SQLQuery().

Geert

_____________________________________

Thx.For the field named Status in the Property Page of a Requirement item metioned above, How to get the values of this field, Could you give me some code sample?

9
 :'([size=11]I'm developing a C# Add in. Now I need to list some field choices of a field. for example, there is a requirement item in Requirements Model package in EA. Double click the item, it will display some properties of the item. like Status, Difficulty, Priority and so on. I call them "fields".In these fields, they contains some field choices. As Status field, it contains "Approved", "Implemented", "Mandotory" and so on. So how could I get all these fields and their choices in my code?
Which methods provided by EA I could use to get all these information?
Thx in advanced.[/size]

10
Quote
You can't.
We've requested that a while ago, but no response so far.
Please vote for the request by sending a request of your own to Sparx using the "feature request" link on the bottom of the page.

Geert
--------------------
thank you.

11
The doc is helpless.
Now, we can define menu item use "&MenuItem" string in event EA_GetMenuItems(), but how to how to define hot key for menu item in Add-in? for this one "&MenuItem", its hot key should be 'M'. So how
to define it?  :'(

12
Quote
Hi
Place an item in the menu with a value of a single hyphen ('-')

HTH

Graham
---------------------------------------------------
It works well. Thx.

13
We can define the menu item in EA_GetMenuItems(), but how to add a menu separator? Can anyone show me the sample code? Thx.

Pages: [1]