...
...
Expand |
---|
Expand |
---|
title | How to enable horizontal scroll bar for a widget? |
---|
|
You can explicitly enable horizontal scroll bar for a widget through CSS. Let's consider a grid widget shown in the following screen shot taken from the sample application, ModelHouse.
Image Removed
Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css.
To enable horizontal scroll bar for the grid widget, perform the following:
Open the market-jqtbs-ltr.css file and add the following code in it:
Code Block |
---|
|
.CT_CARD_SUMMARY_WGT .table-wrapper-container
{
overflow-x: scroll;
}
/* where CT_CARD_SUMMARY_WGT is the widget ID. */ |
Save the changes to market-jqtbs-ltr.css file.Refresh the browser and verify if the horizontal scroll bar appears on the widget as shown in the following screenshot:
Image Removed Expand |
---|
title | How to hide the column headers and filter bar of a grid widget? |
---|
|
You can hide the column headers of a grid widget through CSS. Let's consider a grid widget shown in the following screen shot taken from the sample application, ModelHouse.
Image Removed
Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css.
To hide the column headers and the filter bar of a grid widget, perform the following:
Open the market-jqtbs-ltr.css file and add the following code in it:
Code Block |
---|
|
/* The following CSS code snippet is for hiding the column headers of a grid. */
.CT_CARD_SUMMARY_WGT .table-wrapper-container thead
{
display: none;
}
/* The following CSS code snippet is for hiding the filter bar of a grid. */
.CT_CARD_SUMMARY_WGT .ct-padding-filter-container
{
display: none;
}
/* Here, CT_CARD_SUMMARY_WGT is the widget ID. */
|
Save the changes to market-jqtbs-ltr.css file.Refresh the browser and verify if the column headers and filter bar of the widget are hidden as shown in the following screenshot:
Image Removed Expand |
---|
title | How to hide a specific column header in a grid, such as plus icon column header in Grouped Grid? |
---|
|
You can hide a specific column header in a grid, such as plus icon header column in Grouped Grid through CSS. Let's consider a grid widget shown in the following screen shot taken from the sample application, ModelHouse.
Image Removed
Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css.
To hide hide a specific column header in a grid, perform the following:
Open the market-jqtbs-ltr.css file and add the following code in it.
Code Block |
---|
|
.CT_ACC_SUMMARY_WGT table tr th:first-child .ct-row-expand
{
display: none;
}
/* where CT_ACC_SUMMARY_WGT is the widget ID. */ |
Save the changes to market-jqtbs-ltr.css file.Refresh the browser and verify if the specific column header (plus icon in this example) is hidden as shown in the following screenshot.Image Removed
Expand |
---|
title | How to hide the forms title in a form wizard? |
---|
|
You can hide the forms title in form wizard through CSS. Let's consider a form wizard shown in the following screen shot taken from the sample application, ModelHouse.
Image Removed
Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css.
To hide the forms title in a form wizard, perform the following:
Open the market-jqtbs-ltr.css file and add the following code in it:
Code Block |
---|
|
[data-item-id="FORM_TRANSFER"] [data-wizard-id="progress-steps-FORM_TRANSFER"] span.ct-tab__txtspan
{
display: none;
}
/* where FORM_TRANSFER is the form wizard ID. */ |
Save the changes to market-jqtbs-ltr.css file.Refresh the browser and verify if the forms title are hidden as shown in the following screenshot:Image Removed
Expand |
---|
title | How to hide a specific form's title in a form wizard? |
---|
|
You can hide a specific form's title in a form wizard through CSS. Let's consider a form wizard shown in the following screen shot taken from the sample application, ModelHouse.
Image Removed
Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css. Consider that in the form wizard shown in the screen shot you want to hide the "Add Payee" title alone.
To hide a specific form's title in a form wizard, perform the following:
Open the market-jqtbs-ltr.css file and add the following code in it.
Code Block |
---|
|
[class*=wizard-view-] .PAYEE_FORM_tabItem span.ct-tab__txtspan
{
display: none;
}
/* where PAYEE_FORM is the "Add Payee" form ID. */ |
Save the changes to market-jqtbs-ltr.css file.Refresh the browser and verify if the specific form's title ('Add Payee' in this example) is hidden as shown in the following screenshot:Image Removed
Expand |
---|
title | How to adjust the width of the tab panels in a form wizard? |
---|
|
You can adjust the width of the tab panels in a form wizard through CSS. Let's consider a form wizard shown in the following screen shot taken from the sample application, ModelHouse.
Image Removed
Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css.
To adjust the width of the tab panels in a form wizard, perform the following:
Open the market-jqtbs-ltr.css file and add the following code in it.
Code Block |
---|
|
[data-item-id="FORM_TRANSFER"] [class*=wizard-view-]{
display: inherit;
}
[data-item-id="FORM_TRANSFER"] [class*=wizard-view-].nav-tabs li {
width: 250px;
}
/* where, FORM_TRANSFER is the form wizardtitle | Data fetch from DB table throws error |
---|
| Scenarios: - Data fetch from DB table throws error in logs
- Upgrading to latest CT binaries throws error in logs
For above scenarios, check for the following pattern in the error logs: Code Block |
---|
| Cause: java.sql.SQLSyntaxErrorException
Cause: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
Cause: java.sql.SQLSyntaxErrorException: Unknown column
Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;
Cause: java.sql.SQLSyntaxErrorException: ORA-00904: "COLUMN_NAME": invalid identifier
java.sql.BatchUpdateException: ORA-00904: "COLUMN_NAME": invalid identifier |
For any exception of the above pattern, check the ctdblogs to find the SQL ID of the query that is failing. If the query is related to functional database/schema, fix the query. If the query is within CT or includes a CT table, check if all the incremental scripts were applied properly. Even then if not resolved, inform the CT Platform support team. |
Expand |
---|
title | Unable to deploy application due to SASS compilation failure |
---|
| Canvas Technology platform supports SASS from 19.1 version. While SASS compiles successfully on Windows servers, in some non-Windows systems (e.g. HP Unix or iOS) SASS compilation fails during deploying the application. In these cases, you must copy the CSS files from the correctly deployed development or testing environment (Windows) and store those in the failed environment (non-Windows). You must then remove the SASS references in the CSSConfig.xml file and use plain CSS instead to successfully deploy the application on non-Windows environments.
Perform the following steps:
Copy the CSS files from the correctly deployed Windows environment.Store the CSS files to the specific location on the non-Windows environment.Replace the SASS file name to CSS in the CSSConfig.xml of CTRIAFramework in the application WAR.
Info |
---|
For example, in Tomcat server, the CSSConfig.xml is located in the following location: - ..\apache-tomcat-7.0.67\webapps\ctmodelhouse\CTRIAFramework\UIArena\theme\system\cssconfig.xml (here, ctmodelhouse is the application)
|
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<themeConfig>
<!-- * * Copyright 2014. Intellect Design Arena Limited. All rights reserved. * -->
<theme id="structure" name="Structure Theme" folderRef="">
<framework name="jqtbs" folderRef="/CTRIAFramework/UIArena/theme/system/jqtbs/structure/How to hide a specific column header in a grid, such as plus icon column header in Grouped Grid? |
| You can hide a specific column header in a grid, such as plus icon header column in Grouped Grid through CSS. Let's consider a grid widget shown in the following screen shot taken from the sample application, ModelHouse. Image Added Assume that the ModelHouse application is using the Market theme and the corresponding CSS file is: D:\Canvas\apache-tomcat-7.0.67\webapps\ctmodelhouse\css\style\market\jqtbs\market-jqtbs-ltr.css. To hide hide a specific column header in a grid, perform the following: Open the market-jqtbs-ltr.css file and add the following code in it.
Code Block |
---|
| .CT_ACC_SUMMARY_WGT table tr th:first-child .ct-row-expand
{
display: none;
}
/* where CT_ACC_SUMMARY_WGT is the widget ID. */ |
- Save the changes to market-jqtbs-ltr.css file.
- Refresh the browser and verify if the specific column header (plus icon in this example) is hidden as shown in the following screenshot.
Image Added |
...
...