set relation n-n
- Single Page
Posted 27 June 2012 - 08:12 AM
1. BIDANGJABATANDIBUKA
- ID_BID
- ID_REKRUTMEN
- QUOTA
2. BIDANGPROGRAMSTUDI
- ID_BIDANG
- ID_REKRUTMEN
- ID_PS
3. PROGRAMSTUDI
- ID_PS
- NAMA_PS
My question is, how insert bidangprogramstudi use relation n-n?
please help me,
Posted 17 October 2012 - 15:57 PM
Posted 30 October 2012 - 14:04 PM
Check this,
[img]http://www.grocerycrud.com/assets/uploads/general/relation-n-n.png[/img]
[color=#282828][font=helvetica, arial, sans-serif]BIDANGPROGRAMSTUDI -> [/font][/color][color=#282828][font=helvetica, arial, sans-serif]add field priority INT(11) and[/font][/color][color=#282828][font=helvetica, arial, sans-serif] no primary_id[/font][/color][color=#282828][font=helvetica, arial, sans-serif] [/font][/color][color=#282828][font=helvetica, arial, sans-serif]= film_actor[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]BIDANGJABATANDIBUKA.[/font][/color][color=#282828][font=helvetica, arial, sans-serif]ID_BID = [/font][/color][color=#282828][font=helvetica, arial, sans-serif]BIDANGPROGRAMSTUDI.[/font][/color][color=#282828][font=helvetica, arial, sans-serif]ID_BIDANG <- is relation[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]PROGRAMSTUDI = actor[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]BIDANGJABATANDIBUKA = film[/font][/color]
$crud->set_relation_n_n('jabatan_studies', 'BIDANGPROGRAMSTUDI','PROGRAMSTUDI','ID_BIDANG','ID_REKRUTMEN','NAMA_PS','priority');
Semoga bermanfaat.
Posted 30 October 2012 - 19:53 PM
Posted 26 November 2012 - 06:47 AM
[quote name='victor' timestamp='1353786658' post='4427']
I think that to use the "add_action" in this case is the most optimum way.
For example you have one field "position" which you need edit.
But for example other developer may have more fields
which them wants to edit.
And fields may have different types.
I have no idea how to organize it all in one page and that it was convenient.
Sorry, my English is poor.
[/quote]
/topic/963-extra-fields-in-mn-tables/