<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Carlos,<div class=""><br class=""></div><div class="">I think you might want to look at the defaults controller and model, as well as the sequence controller and model. If you really just need a single string value, you may want to dispense with the JSONModel stuff completely and just have your backend endpoint take a single parameter and update the model.</div><div class=""><br class=""></div><div class="">You can look at the DefaultValues model for an example of how to just have 1 row in the table.</div><div class=""><br class=""></div><div class="">For the frontend, you’re probably better off not using the handle_crud helper if you don’t use JSONModel, and just have the controller prepare and send an update request to the backend. The default_values example might help here too:</div><div class=""><a href="https://github.com/archivesspace/archivesspace/blob/master/frontend/app/models/default_values.rb" class="">https://github.com/archivesspace/archivesspace/blob/master/frontend/app/models/default_values.rb</a></div><div class=""><br class=""></div><div class="">Brian</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 12, 2015, at 5:54 PM, Carlos Lemus <<a href="mailto:carlos.lemus@unlv.edu" class="">carlos.lemus@unlv.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">Hello,</span><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">What I want to accomplish is to create a form, possibly in the system_menu_controller, that will allow me to create certain fields/settings with user-input values, save those values, and then let me access them at different points in my plugin. </div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">What I've tried so far:</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">I've tried to mimic a bit of the accessions_summary_reports and the hello_world plugin. However, these seem both to be able to continuously create new objects in the schema database pertaining to it, but I just want to have one empty field for the settings that can just be updated instead of having to create multiple settings. I have tried something similar with the defaults, but I don't think I implemented them correctly.</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">Here is a github link to my trial</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><a href="https://github.com/l3mus/ArchivesSpace-authority-project/tree/master/plugin_settings" target="_blank" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(102,17,204)" class="">https://github.com/l3mus/ArchivesSpace-authority-project/tree/master/plugin_settings</a><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">I hope that was clear enough, please let me know if I need to clarify more.</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">I'm just looking for some direction on what I could be doing. How could I approach doing this? I'm I looking in the right direction? Or is there a better example that can help me form this? </div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">Thank you,</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class=""><br class=""></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px" class="">Carlos Lemus</div></div>
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></div></body></html>