QBOrderService
Methods
get(id) → {dict}
- id (int) - Order ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
QBSampleService
Methods
get(id) → {dict}
- id (int) - Sample ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
QBTestService
Methods
get(id) → {dict}
- id (int) - Test ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(test_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
render_chart(<chart_name>, test_entity, [config_override={}]) → {String}
Returns a string that is the patch to your rendered chart.
QBInvoiceService
Methods
get(id) → {dict}
- id (int) - Invoice ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
QBBatchService
Methods
get(id) → {dict}
- id (int) - Batch ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(batch_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
QBInventoryItemService
Methods
get(id) → {dict}
- id (int) - Inventory Item ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
QBInventoryStockService
Methods
get(id) → {dict}
- id (int) - Inventory Stock ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(inventory_stock_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
QBEquipmentService
Methods
get(id) → {dict}
- id (int) - Equipment ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
QBRecordService
Methods
get(id) → {dict}
- id (int) - Log Entry ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(record_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
QBLogTypeService
Methods
get(id) → {dict}
- id (int) - Log Type ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
QBLogEntryService
Methods
get(id) → {dict}
- id (int) - Log Entry ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(log_entry_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
QBBatchObjectProtocolStepService
Methods
get(id) → {dict}
- id (int) - Log Entry ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(batch_object_protocol_step_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
QBTestObjectProtocolStepService
Methods
get(id) → {dict}
- id (int) - Log Entry ID
get_list(filter_params) → {generator}
- filter_params (dict) - filter options
render_worksheet(test_object_protocol_step_entity) → {HTMLString}
Returns an HTML String that can easily be rendered in any template (Reports, Printdocs, etc.). This function will work with both QWML Worksheet Types and Spreadsheet Worksheet Types
NOTE:
If you are rendering a Spreadsheet Worksheet Type, you will need to include the following code in your <style> tag at the top of your template for the styles to be properly applied from your worksheet config:
{{ QBGlobals.SPREADSHEET_WORKSHEET_STYLES }}
Example Usage
{% set batch_id = 123 %}
{% set batch = QBBatchService().get(batch_id) %}
{{ batch.id }}
Prints:
123
Comments
0 comments
Please sign in to leave a comment.