ns-export
Version:
Export Record Type metadata to JSON
754 lines (714 loc) • 30.4 kB
HTML
<html>
<head>
<link href="../../jquery-ui.css" rel="stylesheet">
<link href="../../schema-browser.css" rel="stylesheet">
<script src="../../javascript/jquery-1.10.2.min.js"></script>
<script src="../../javascript/jquery-ui.min.js"></script>
<script src="../../menudefs.js"></script>
<script src="../../javascript/menubuilder.js"></script>
<script>
(function( $ ){
//plugin buttonset vertical
$.fn.buttonsetv = function() {
$(':radio, :checkbox, :button', this).wrap('<div style="margin: 1px"/>');
$(this).buttonset();
$('label:first', this).removeClass('ui-corner-left').addClass('ui-corner-top');
$('label:last', this).removeClass('ui-corner-right').addClass('ui-corner-bottom');
mw = 0; // max witdh
$('label', this).each(function(index){
w = $(this).width();
if (w > mw) mw = w;
})
$('label', this).each(function(index){
$(this).width(mw);
})
};
})( jQuery );
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
}
</script>
<style>
.custom-combobox {
position: relative;
display: inline-block;
}
.custom-combobox-toggle {
position: absolute;
top: 0;
bottom: 0;
margin-left: -1px;
padding: 0;
/* support: IE7 */
*height: 1.7em;
*top: 0.1em;
}
.custom-combobox-input {
margin: 0;
padding: 0.3em;
}
</style>
<script>
(function( $ ) {
$.widget( "custom.combobox_with_optgroup", {
_create: function() {
this.wrapper = $( "<span>" )
.addClass( "custom-combobox" )
.insertAfter( this.element );
this.element.hide();
this._createAutocomplete();
this._createShowAllButton();
},
_createAutocomplete: function() {
var selected = this.element.find( ":selected" ),
value = selected.val() ? selected.text() : "";
this.input = $( "<input>" )
.appendTo( this.wrapper )
.val( value )
.attr( "title", "" )
.addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" )
.autocomplete({
delay: 0,
minLength: 0,
source: $.proxy( this, "_source" )
})
.tooltip({
tooltipClass: "ui-state-highlight"
})
;
this._on( this.input, {
autocompleteselect: function( event, ui ) {
ui.item.option.selected = true;
window.location.href=ui.item.href;
// this._trigger( "select", event, {
// item: ui.item.option
// });
},
autocompletechange: "_removeIfInvalid"
});
this.input.data("uiAutocomplete")._renderMenu = function(ul, items) {
var self = this,
currentCategory = "";
var itemCounter=100;
$.each(items, function(index, item) {
itemCounter=itemCounter+1;
if (item.category != currentCategory) {
if (item.category) {
ul.append("<li class='custom-autocomplete-category'>" + item.category + "</li>");
}
currentCategory = item.category;
}
self._renderItem= function( ul, item ) {
return $( "<li>").attr("class",item.class)
.append( $( "<a>" ).attr("href",item.href).text( item.label ) )
.appendTo( ul );
};
self._renderItemData(ul, item);
});
};
},
_createShowAllButton: function() {
var input = this.input,
wasOpen = false;
$( "<a>" )
.attr( "tabIndex", -1 )
.attr( "title", "Show All" )
.tooltip()
.appendTo( this.wrapper )
.button({
/* icons: {
primary: "ui-icon-triangle-1-s"
},*/
text: false
})
.removeClass( "ui-corner-all" )
.addClass( "custom-combobox-toggle ui-corner-right" )
.mousedown(function() {
wasOpen = input.autocomplete( "widget" ).is( ":visible" );
})
.click(function() {
input.focus();
if ( wasOpen ) {
return;
}
input.autocomplete( "search", "" );
});
},
_source: function( request, response ) {
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" );
response( this.element.find( "option" ).map(function() {
var text = $( this ).text();
if ( this.value && ( !request.term || matcher.test(text) ) )
return {
label: text,
value: text,
option: this,
class: $(this).attr("class"),
href: $(this).attr("href"),
category: $(this).closest("optgroup").attr("label")
};
}) );
},
_removeIfInvalid: function( event, ui ) {
if ( ui.item ) {
return;
}
var value = this.input.val(),
valueLowerCase = value.toLowerCase(),
valid = false;
this.element.find( "option" ).each(function() {
if ( $( this ).text().toLowerCase() === valueLowerCase ) {
this.selected = valid = true;
return false;
}
});
if ( valid ) {
return;
}
this.input
.val( "" )
.attr( "title", value + " not found" )
.tooltip( "open" );
this.element.val( "" );
this._delay(function() {
this.input.tooltip( "close" ).attr( "title", "" );
}, 2500 );
this.input.data( "ui-autocomplete" ).term = "";
},
_destroy: function() {
this.wrapper.remove();
this.element.show();
},
getInput: function(){
return this.input;
}
});
})( jQuery );
</script>
</head>
<body>
<div id='header'></div>
<script>
$(function() {
$('#header').html(createHeader('script','record__location','../..'));
});
</script>
<div id='leftpanel'></div>
<script>
$(function() {
$('#leftpanel').html(createLeftPanel('script','record__location','../..'));
});
</script>
<script type="text/javascript">
$().ready(function(){
$(".jtable th").each(function(){
$(this).addClass("ui-state-default");
});
$(".jtable td").each(function(){
$(this).addClass("ui-widget-content");
});
});
</script>
<div id="contentPanel">
<H1>Location</H1>
<H3>Internal ID: location</H3>
<H2>Fields</H2>
<table class="jtable">
<tr><th class="rt_fname">Internal ID</th><th class="rt_ftype">Type</th><th class="rt_fdle">nlapiSubmitField</th><th class="rt_flabel">Label</th><th class="rt_freq">Required</th><th class="rt_fhelp">Help</th></tr>
<tr id="field_addr1">
<td class="rt_fname">addr1</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Address 1</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Enter the address for this location the way it should appear on all forms.</td>
</tr>
<tr id="field_addr2">
<td class="rt_fname">addr2</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Address 2</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Enter an optional second address line for this location the way it should appear on all forms.</td>
</tr>
<tr id="field_addr3">
<td class="rt_fname">addr3</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel"></td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_addressee">
<td class="rt_fname">addressee</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Addressee</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Enter the company name for this location that should show on labels and transactions.This name appears under the name you enter in the Attention field.</td>
</tr>
<tr id="field_addrphone">
<td class="rt_fname">addrphone</td>
<td class="rt_ftype">phone</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Phone</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_addrtext">
<td class="rt_fname">addrtext</td>
<td class="rt_ftype">address</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Address</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_attention">
<td class="rt_fname">attention</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Attention</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Enter the person at this address who should be notified of receipt of documents or goods. </td>
</tr>
<tr id="field_city">
<td class="rt_fname">city</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">City</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Enter the city for this location the way it should appear on all forms.</td>
</tr>
<tr id="field_country">
<td class="rt_fname">country</td>
<td class="rt_ftype">select</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Country</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Select the country for this location.</td>
</tr>
<tr id="field_externalid">
<td class="rt_fname">externalid</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">ExternalId</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_isinactive">
<td class="rt_fname">isinactive</td>
<td class="rt_ftype">checkbox</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Location is Inactive</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_logo">
<td class="rt_fname">logo</td>
<td class="rt_ftype">select</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Logo</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">In order to retrieve a list of available values for this field, use the GetSelectValue operation. For more information, see getSelectValue of the Platform Guide.</td>
</tr>
<tr id="field_makeinventoryavailable">
<td class="rt_fname">makeinventoryavailable</td>
<td class="rt_ftype">checkbox</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Make Inventory Available</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_makeinventoryavailablestore">
<td class="rt_fname">makeinventoryavailablestore</td>
<td class="rt_ftype">checkbox</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Make Inventory Available in Web Store</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_name">
<td class="rt_fname">name</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Name</td>
<td class="rt_freq">true</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_override">
<td class="rt_fname">override</td>
<td class="rt_ftype">checkbox</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Override</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Set to TRUE in order to set a value for the addrText field.</td>
</tr>
<tr id="field_parent">
<td class="rt_fname">parent</td>
<td class="rt_ftype">select</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Sublocation of</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">In order to retrieve a list of available values for this field, use the GetSelectValue operation. For more information, see getSelectValue of the Platform Guide.</td>
</tr>
<tr id="field_returnaddr">
<td class="rt_fname">returnaddr</td>
<td class="rt_ftype">address</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Address</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_returnaddress1">
<td class="rt_fname">returnaddress1</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Address1</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_returnaddress2">
<td class="rt_fname">returnaddress2</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Address2</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_returncity">
<td class="rt_fname">returncity</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">City</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_returncountry">
<td class="rt_fname">returncountry</td>
<td class="rt_ftype">select</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Country</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_returnstate">
<td class="rt_fname">returnstate</td>
<td class="rt_ftype">select</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">State</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_returnzip">
<td class="rt_fname">returnzip</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Zip</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_state">
<td class="rt_fname">state</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">State/Province</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Select or enter the state or province for the address at this location.
The text you can enter in this field depends on your setting for the Allow
Free Form States in Addresses preference. To set this preference, go to <_TABNAME=ADMI_GENERAL_>
&gt; General Preferences. Check the Allow Free-Form States in Addresses box
and then click Save.
<ul>
<li>When you disable free-form text entry in the State/Province field, any text
you enter is converted to standard state or province identifiers.
</li>
<li>When you enable free-form text entry in the State/Province field, you can
enter any text and it is not converted to standard state or province identifiers.</li></td>
</tr>
<tr id="field_subsidiary">
<td class="rt_fname">subsidiary</td>
<td class="rt_ftype">select</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Subsidiary</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_tranprefix">
<td class="rt_fname">tranprefix</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Transaction Prefix</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp"></td>
</tr>
<tr id="field_zip">
<td class="rt_fname">zip</td>
<td class="rt_ftype">text</td>
<td class="rt_fdle">false</td>
<td class="rt_flabel">Zip</td>
<td class="rt_freq">false</td>
<td class="rt_fhelp">Enter the postal code for this location the way it should appear on all forms.</td>
</tr>
</table>
<H2>Tabs</H2>
<table class="jtable">
<tr><th class="rt_tname">Name</th><th class="rt_tlabel">Label</th></tr>
<tr>
<td class="rt_tname">addressbook</td>
<td class="rt_tlabel">Address</td>
</tr>
<tr>
<td class="rt_tname">history</td>
<td class="rt_tlabel">System Notes</td>
</tr>
<tr>
<td class="rt_tname">returnsaddrtab</td>
<td class="rt_tlabel">Return Address</td>
</tr>
<tr>
<td class="rt_tname">translation</td>
<td class="rt_tlabel">Translation</td>
</tr>
</table>
<H2>Search Filters</H2>
<table class="jtable">
<tr><th class="rt_iname">Internal ID</th><th class="rt_itype">Type</th><th class="rt_ilabel">Label</th></tr>
<tr>
<td class="rt_iname">address</td>
<td class="rt_itype">textarea</td>
<td class="rt_ilabel">Address</td>
</tr>
<tr>
<td class="rt_iname">city</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">City</td>
</tr>
<tr>
<td class="rt_iname">country</td>
<td class="rt_itype">select</td>
<td class="rt_ilabel">Country</td>
</tr>
<tr>
<td class="rt_iname">county</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">County/State</td>
</tr>
<tr>
<td class="rt_iname">externalid</td>
<td class="rt_itype">select</td>
<td class="rt_ilabel">External ID</td>
</tr>
<tr>
<td class="rt_iname">externalidstring</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">External ID (Text)</td>
</tr>
<tr>
<td class="rt_iname">formuladate</td>
<td class="rt_itype">date</td>
<td class="rt_ilabel">Formula (Date)</td>
</tr>
<tr>
<td class="rt_iname">formulanumeric</td>
<td class="rt_itype">float</td>
<td class="rt_ilabel">Formula (Numeric)</td>
</tr>
<tr>
<td class="rt_iname">formulatext</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">Formula (Text)</td>
</tr>
<tr>
<td class="rt_iname">internalid</td>
<td class="rt_itype">select</td>
<td class="rt_ilabel">Internal ID</td>
</tr>
<tr>
<td class="rt_iname">internalidnumber</td>
<td class="rt_itype">integer</td>
<td class="rt_ilabel">Internal ID (Number)</td>
</tr>
<tr>
<td class="rt_iname">isinactive</td>
<td class="rt_itype">checkbox</td>
<td class="rt_ilabel">Inactive</td>
</tr>
<tr>
<td class="rt_iname">isoffice</td>
<td class="rt_itype">checkbox</td>
<td class="rt_ilabel">Staffed Location</td>
</tr>
<tr>
<td class="rt_iname">makeinventoryavailable</td>
<td class="rt_itype">checkbox</td>
<td class="rt_ilabel">Make Inventory Available</td>
</tr>
<tr>
<td class="rt_iname">makeinventoryavailablestore</td>
<td class="rt_itype">checkbox</td>
<td class="rt_ilabel">Make Inventory Available in Web Store</td>
</tr>
<tr>
<td class="rt_iname">name</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">Name</td>
</tr>
<tr>
<td class="rt_iname">phone</td>
<td class="rt_itype">phone</td>
<td class="rt_ilabel">Phone</td>
</tr>
<tr>
<td class="rt_iname">state</td>
<td class="rt_itype">select</td>
<td class="rt_ilabel">State/Province</td>
</tr>
<tr>
<td class="rt_iname">subsidiary</td>
<td class="rt_itype">multiselect</td>
<td class="rt_ilabel">Subsidiary</td>
</tr>
<tr>
<td class="rt_iname">tranprefix</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">Transaction Prefix</td>
</tr>
<tr>
<td class="rt_iname">zip</td>
<td class="rt_itype">text</td>
<td class="rt_ilabel">Zip</td>
</tr>
</table>
<H2>Search Columns</H2>
<table class="jtable">
<tr><th class="rt_cname">Internal ID</th><th class="rt_ctype">Type</th><th class="rt_clabel">Label</th></tr>
<tr>
<td class="rt_cname">address1</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Address 1</td>
</tr>
<tr>
<td class="rt_cname">address2</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Address 2</td>
</tr>
<tr>
<td class="rt_cname">address3</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Address 3</td>
</tr>
<tr>
<td class="rt_cname">city</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">City</td>
</tr>
<tr>
<td class="rt_cname">country</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Country</td>
</tr>
<tr>
<td class="rt_cname">externalid</td>
<td class="rt_ctype">select</td>
<td class="rt_clabel">External ID</td>
</tr>
<tr>
<td class="rt_cname">formulacurrency</td>
<td class="rt_ctype">currency</td>
<td class="rt_clabel">Formula (Currency)</td>
</tr>
<tr>
<td class="rt_cname">formuladate</td>
<td class="rt_ctype">date</td>
<td class="rt_clabel">Formula (Date)</td>
</tr>
<tr>
<td class="rt_cname">formuladatetime</td>
<td class="rt_ctype">datetime</td>
<td class="rt_clabel">Formula (Date/Time)</td>
</tr>
<tr>
<td class="rt_cname">formulanumeric</td>
<td class="rt_ctype">float</td>
<td class="rt_clabel">Formula (Numeric)</td>
</tr>
<tr>
<td class="rt_cname">formulapercent</td>
<td class="rt_ctype">percent</td>
<td class="rt_clabel">Formula (Percent)</td>
</tr>
<tr>
<td class="rt_cname">formulatext</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Formula (Text)</td>
</tr>
<tr>
<td class="rt_cname">internalid</td>
<td class="rt_ctype">select</td>
<td class="rt_clabel">Internal ID</td>
</tr>
<tr>
<td class="rt_cname">isinactive</td>
<td class="rt_ctype">checkbox</td>
<td class="rt_clabel">Inactive</td>
</tr>
<tr>
<td class="rt_cname">isoffice</td>
<td class="rt_ctype">checkbox</td>
<td class="rt_clabel">Staffed Location</td>
</tr>
<tr>
<td class="rt_cname">makeinventoryavailable</td>
<td class="rt_ctype">checkbox</td>
<td class="rt_clabel">Make Inventory Available</td>
</tr>
<tr>
<td class="rt_cname">makeinventoryavailablestore</td>
<td class="rt_ctype">checkbox</td>
<td class="rt_clabel">Make Inventory Available in Web Store</td>
</tr>
<tr>
<td class="rt_cname">name</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Name</td>
</tr>
<tr>
<td class="rt_cname">namenohierarchy</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Name (no hierarchy)</td>
</tr>
<tr>
<td class="rt_cname">phone</td>
<td class="rt_ctype">phone</td>
<td class="rt_clabel">Phone</td>
</tr>
<tr>
<td class="rt_cname">state</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">State/Province</td>
</tr>
<tr>
<td class="rt_cname">subsidiary</td>
<td class="rt_ctype">multiselect</td>
<td class="rt_clabel">Subsidiary</td>
</tr>
<tr>
<td class="rt_cname">tranprefix</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Transaction Prefix</td>
</tr>
<tr>
<td class="rt_cname">zip</td>
<td class="rt_ctype">text</td>
<td class="rt_clabel">Zip</td>
</tr>
</table>
<p> </p>
</div>
<script>
$(function() {
wrapBodyDiv('script','contentPanel');
});
</script>
</body>
</html>