Forum

Add an attribut in ...
 
Notifications
Clear all

Add an attribut in Milestone

2 Posts
2 Users
0 Reactions
4,586 Views
(@luigy)
Posts: 10
Active Member
Topic starter
 
[#987]

Hi,

I try to add a feature in Project'Or Ria. In page Milestone, I wan to add an indication N/A in a listbox yes/no.

Can you help me?

Thanks for your answers.


 
Posted : 27 Feb 2013 18H03
(@babynus)
Posts: 14952
Member Admin
 

You need to :
- define new table with possible values, with just fields id as int(12) and name as varchar(100) . let's call it yesno table
- fill in this table with expected values. 1=>yes, 2=>no
- add a Class Yesno in /model, with id and name fields (copy an existing one for help)
- upgrade table milestone to add field idYesno as int(12) (format is important)
- modify Class Milestone to add field idYesno where you want to see it (after / before an existing field)
That's all.
Run the application : your new field appears as a listbox (exactely a Filtering Select widget from Dojo Framwork)

It magic ! 😛


 
Posted : 28 Feb 2013 1H57
Share:

Scroll to Top