4 <& /util/import_javascript.mas, classes => [ 'brapi.Table' ] &>
6 <h4>MarkerProfile Search</h4>
8 <div id="brapi_markerprofile_search_home_div">
10 <input name="brapi_markerprofile_search_germplasmDbId" id="brapi_markerprofile_search_germplasmDbId" class="form-control" type="text" placeholder="GermplasmDbId" />
11 <input name="brapi_markerprofile_search_studyDbId" id="brapi_markerprofile_search_studyDbId" class="form-control" type="text" placeholder="StudyDbId" />
12 <input name="brapi_markerprofile_search_methodDbId" id="brapi_markerprofile_search_methodDbId" class="form-control" type="text" placeholder="MethodDbId" />
13 <button class="btn btn-primary" name="brapi_markerprofile_search_submit" id="brapi_markerprofile_search_submit">Search</button>
17 <div id="brapi_markerprofile_search_result_div">
25 jQuery(document).ready(function() {
26 jQuery("#brapi_markerprofile_search_submit").click(function() {
28 'url': jQuery('#brapi_home_url_select').val()+'/brapi/v1/markerprofiles?germplasmDbId='+jQuery("#brapi_markerprofile_search_germplasmDbId").val()+'&studyDbId='+jQuery("#brapi_markerprofile_search_studyDbId").val()+'&methodDbId='+jQuery("#brapi_markerprofile_search_methodDbId").val(),
30 'success': function(response) {
31 console.log(response);
32 brapi_create_paginated_table(response.result.data, response.metadata.pagination, 'brapi_markerprofile_search_result_div', jQuery('#brapi_home_url_select').val()+'/brapi/v1/markerprofiles', undefined);
35 error: function(response) {
36 alert('An error occurred');