Adds an input to the CLIC header.
The object of the input.
Disables inputs at the CLIC header.
CLIC Detail Only - In a list, this method does not make sense, so it is implemented just as an empty method there.
export const quotesDetailOpen = ({ quoteAPI }) => {
quoteAPI.disableHeaderInputs('Customer'); // or ['Customer', ...]
}
Gets an input by inputName from the CLIC header.
export const quotesDetailOpen = async ({ quoteAPI }) => {
const clicInput = await quoteAPI.getHeaderInput('Customer');
console.log(clicInput);
}
The name of the input.
Returns an input value from the CLIC header.
export const quotesDetailOpen = async ({ quoteAPI }) => {
const clicInputValue = await quoteAPI.getHeaderInputValue('Customer');
console.log(clicInputValue);
}
The name of the input.
Gets an output by outputName from the CLIC header.
export const quotesDetailOpen = async ({ quoteAPI }) => {
const clicOutput = await quoteAPI.getHeaderOutput('outputName');
console.log(clicOutput);
}
The name of the output.
Returns an output result from the CLIC header.
export const quotesDetailOpen = async ({ quoteAPI }) => {
const clicOutputResult = await quoteAPI.getHeaderOutputResult('outputName');
console.log(clicOutputResult);
}
The name of the output.
Gets a value from the CLIC header. Use it to obtain properties such as version, externalRef, calculationStatus, etc.
export const quotesDetailOpen = async ({ quoteAPI }) => {
const quoteStatus = await quoteAPI.getHeaderValue('quoteStatus');
console.log(quoteStatus) // 'DRAFT'
}
The name of the property which you want obtain.
Fetches items as a page from CLIC by queryData and limit.
Triggers a recalculation at the CLIC object.
By default, it is decided if the recalculation is triggered as async by Async actions threshold,
which is defined in Administration > Configuration >….
You can force the trigger as async by passing true
to the forceAsync
parameter.
Optional
forceAsync: booleanThe recalculation will we triggered as an async job.
Disables CLIC detail buttons in the header/items tabs. The options are:
Header tab: submit
, calculate
, startCreationWorkflow
, nextStepCreationWorkflow
, backStepCreationWorkflow
, finishCreationWorkflow
, finishCreationWorkflowAndSubmit
, withdraw
, markOfferAsLost
, convertToDeal
, reconvertToDeal
, revoke
, createNewRevision
, emailing
, emailingAndSignature
, createOpportunity
, assignOpportunity
, assignAccount
, duplicate
, remove
.
Items tab:
Header action buttons: add_items
, browse_items
, add_recommended_items
, addFolder
, massEdit
, copyAllItemsToClipboard
, importItemsToClipboard
.
Selection context buttons: deleteItems
, duplicateItems
, moveItemsToFolder
.
CLIC Detail Only - In a list, this method does not make sense, so it is implemented just as an empty method there.
export const quotesDetailOpen = ({ quoteAPI }) => {
// When a user opens a Quote, it has disabled buttons Recalculate, Duplicate and Assign Account
quoteAPI.setDisabledButtons(['calculate', 'assignAccount', 'duplicate']);
}
Sets an input value at the CLIC header.
export const quotesDetailOpen = async ({ quoteAPI }) => {
// Simple inputs
await quoteAPI.setHeaderInputValue('ProjectID', 'Some ID');
await quoteAPI.setHeaderInputValue('ProjectName', 'Project Name');
// Input with configurator
await quoteAPI.setHeaderInputValue('Configurator_Documents', {
InvoiceMethod: 'Invoice method',
OpportunityOwner: 'Name',
OpportunityOwnerEmail: 'Email',
OpportunityOwnerPhone: 'Phone',
OpportunityOwnerTitle: 'Title'
});
}
The name of the input.
Sets an output result at the CLIC header.
export const quotesDetailOpen = async ({ quoteAPI }) => {
const clicOutputResult = await quoteAPI.setHeaderOutputResult('outputName', 'Test value');
console.log(clicOutputResult);
}
The name of the output.
The result value of the output.
Updates a field at the CLIC header. Use it to update properties such as expiryDate, externalRef, additionalInfo1, etc
export const quotesDetailNew = async ({ quoteAPI }) => {
await quoteAPI.setHeaderValue('label', 'Updated label from intercepted method');
}
The name of field at the CLIC header.
The value of the field which will be set.
Updates multiple line item inputs values at once.
export const quotesDetailOpen = async ({ quoteAPI }) => {
await quoteAPI.setLineItemInputValues('product-1', {Quantity: 3, Customer: 'CD-0001'});
}
Sets the CLIC object as read-only in UI.
CLIC Detail Only - In a list, this method does not make sense, so it is implemented just as an empty method there.
export const quotesDetailOpen = ({ quoteAPI }) => {
quoteAPI.setReadOnly(true);
}
Generated using TypeDoc
This is API for working with Quotes, Contracts, Rebate Agreements and Compensation Plans. It works with lists and details of these entities.
Name of this API will vary based on the module where you are using it. For quotes it will be:
compensationPlanAPI
contractAPI
rebateAgreementAPI
quoteAPI
If you use the interceptor methods
quotesDetailCreateNewRevision
,quotesDetailCopy
and the same alternatives for Contracts, Rebate Agreements and Compensation Plans, you will get this API under the namesquoteOriginAPI
,quoteNewRevisionAPI
orquoteCopyAPI
(similar pattern for others).All these variables contains an object which implement this
ClicInterceptorAPI
type.