I have a custom web part containing one bizform which serves as a filter for UniGrid. I've migrated from kentico 7 to 8 and now the form doesn't update the data.
For instance I try to tick one option in the field and then submit it and after page reload its back to default value also UniGrid stays as it is. What's even more interesting is if I do it on the page in version 7 and then refresh the page of version 8 it filters the UniGrid according to filter from version 7. I think it's because it takes the value from session or some cookie. I commented out one line of code because the field FormMode isn't there anymore:int formRecordId = ValidationHelper.GetInteger(dsFilterForm.Tables[0].Rows[0][0], 0);
//viewBiz.FormMode = FormModeEnum.Update;
viewBiz.ItemID = formRecordId;
I tried to comment out that line in the version 7 as well but the only thing that does is update filter form from database. UniGrid is filtered correctly (in ver. 7) even with this commented out.I also tried to debug the program and examined the database traffic in SQL Server Profiler and found out that there's one operation which kentico 8 doesn't do after submit (or save):exec sp_executesql N'UPDATE Form_CSOBL_FilterForm SET [FormInserted] = @FormInserted, [FormUpdated] = @FormUpdated, [UniGridID] = @UniGridID, [PageName] = @PageName, ...
Can you provide any possible causes and solutions to this problem? EDIT:Also, the form displays this when I try to save the data: @An error occurred when saving data:@EDIT 2:Here is the event log for the bizform: http://pastebin.com/Y3qhzwqE
↧
Kentico doesn't update bizform after upgrade
↧
Add a font awesome icon with biz form submit button
I want to a font awesome icon with biz form submit button but there is no way to add and due to input tag i didn't use jquery too to add an icon. Let me know any way to add a font awesome icon with biz form submit button.
↧
↧
Filter SmartSearch based on URL path
I've been combing Devnet and the documentation but have not really found anything helpful. Basically I am looking for the same functionality as this page: http://www.kentico.com/customers/customer-projects, where the filters also become the the URL and visa versa. Is this something that can be done within the transformation or the configuration of the page type/template that contains the SmartSearch Results web part? or is this something that needs to be done with Javascript?I'm fairly new to MVC and .NET, so if it involves editing some C# code, then I'd need to pointed in the right direction for that as well.Thank you
↧
Send subscription emails to BCC
When using the Email Marketing application in Kentico and configuring the automatic mail send out, is there a way to have the subscriber email address be sent as a BCC rather than just TO. We have an email group with a lot of users in it and we do not want those users to appear in everyone’s TO field once they receive an email.
Perhaps some sort of class or method that need to be adjusted to have that sort of functionality?Thanks!
↧
Macro to retrieve widget properties
I've created a widget based off the static text web part. It has 3 properties: Text, Month, and Year. In the Text property I have set the default Value to @This item appeared in the @ %insert macro expression to get the value of the month property% of %insert macro expression to get the value of the year property% @issue@However no matter what macro expression I use I can't seem to access either of those other properties. Any ideas?
↧
↧
Multiple Wildcards in URL
Is there a way to be able to use multiple wildcards in Wildcard URLS, where the user is able to enter either wildcard or both wildcards, and the Smart Search results will still show properly?Am I able to do an AND/OR thing with wildcard URLS?
↧
E-Commerce - Add Handling fee based on Payment Method
Current site was upgraded from Kentico v7 to v9 and have replaced the old shopping cart web-part with the a checkout wizard.Where can I add a handling fee during the checkout process based on the payment method.
For example, If the visitor pays by credit card, I wish to add a handling fee associated with it. It should act like a flat fee for the order and not based on products. We are currently using the AuthorizeNet payment gateway to process the credit card orders.Since the site does not charge shipping as they are digital goods, I attempted to use the Custom Shipping provider, but I only have access to the Delivery. public decimal GetPrice(Delivery delivery, string currencyCode)Is there a better way? Am I missing something in the API?
↧
Implementing Custom UI For BreadCrumbs
I have added the Breadcrumbs Web Part to my page and I would like to change what is rendered. Currently the BreadCrumb is rendered as @a href=@/Products/Pumps-and-Process-Equipment.aspx@ class=@CMSBreadCrumbsLink@@Products@/a@ @ @span class=@CMSBreadCrumbsCurrentItem@@Valves and Valve Automation@/span@. I would like it to look like this when it is rendered @ol class=@breadcrumb csg-breadcrumbs__breadcrumb@@
@li@@a href=@#@@Products@/a@@/li@
@li class=@active@@Valves and Valve Automation@/li@
@/ol@
Is this possible and how so?Kentico Version: 9.0
↧
Store media library in Azure Blob
Hi,I'm trying to configure Kentico to stor media file in Azure Blob Storage. I've already found aritcle in documentation where this issue is decribe. I follow steps - add two keys in web.config, copy and change code as follow:mediaProvider.CustomRootPath = @MyContainerThatIHaveInAzure@;
andStorageHelper.MapStoragePath(@~/MySiteCodeName/media/@, mediaProvider);
The rest of code is the same. MyContainerThatIHaveInAzure is new container without any files inside.I've rebuild solution and open in my localhost. When I log in to administrator panel go to Media library application I can find list of media libaries that were already created. When I click on one of them to edit files inside i get follown errorFolderTree.FailedLoad: [ContainerInfoProvider.GetContainer]: Error when getting container (it may be caused by inability to connect to the cloud).Does anyone have any ideas?
↧
↧
"Form dataItem which is intended to update does not exist."
I want to retrieve a data row (from the Recorded data table of the form) and load it to the bizform. I have this code in my web part:protected override void OnLoad(EventArgs e)
{
...
QueryMacros macros = new QueryMacros();
macros.Where = String.Format(@(UserID = '{0}') AND (UniGridID = '{1}')@,
CMS.Membership.MembershipContext.AuthenticatedUser.UserID, UniGridID);
DataSet dsFilterForm = connection.ExecuteQuery(dataAlterClassinfo.ClassName + @.selectall@, null, macros);
if (dsFilterForm.Tables[0].Rows.Count != 0 @@ dsFilterForm.Tables[0].Rows[0][0] != null)
{
int formRecordId = ValidationHelper.GetInteger(dsFilterForm.Tables[0].Rows[0][0], 0);
viewBiz.ItemID = formRecordId;
viewBiz.ReloadData();
}
formRecordId loads correct ID which really exists however bizform doesn't update itself and displays this error string: @Form dataItem which is intended to update does not exist.@
↧
New ReCaptcha SSL Issues
I'm using the new Recaptcha control from the Kentico Marketplace (developed by Kentico) and recently started having issues with SSL and had to disable the new Recaptcha on several sites. It was working without issue at least 7-10 days ago but all of the sudden yesterday it stopped.
No code changes have been made on the 3 sites we're having issues with and no configuration changes (reviewed logs and such on all 3 servers). The error I'm getting shows there is a conflict between using SSL and not.Uncaught SecurityError: Blocked a frame with origin @https://www.google.com@ from accessing a frame with origin @https://www.domain.com@. The frame requesting access has a protocol of @https@, the frame being accessed has a protocol of @http@. Protocols must match.
There are no other http requests coming out of these sites as I've verified several times. Any thoughts or suggestions?
↧
ValidationHelper error
Hello
I am working a webpart where I need to get an order id from the url, as Kentico say I'm using this code:
string orderHash = QueryHelper.GetString(@o@, string.Empty);
orderId = ValidationHelper.GetInteger(WindowHelper.GetItem(orderHash), 0);
But when I try to use that orderId I'm getting this error:
Message: Input string was not in a correct format.
Exception type: System.FormatException
Stack Trace:
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.String.System.IConvertible.ToDouble(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at CMS.Ecommerce.SKUInfoSerializer.Convert(XmlData data, String columnName, Type type)
at CMS.Ecommerce.InfoSerializer`1.Deserialize(XmlData xmlData)
at CMS.Ecommerce.OrderItemInfo.get_OrderItemSKU()Any idea what could be the error? (I am on kentico9)
↧
Kentico CKEditor Configure Style Set Dynamically
I'm using Kentico 9 and I'd like to be able to use different CK Editor style sets on different pages. I have added a style set to the styles.js file as follows.CKEDITOR.stylesSet.add("mystyles", [{ name: "testone", element: "p" }]);
Then in the page I've added some JS as per the CK Editor web site.if (CKEDITOR.currentInstance) {
CKEDITOR.currentInstance.config.stylesSet = "mystyles";
}
When I load the page containing the CK Editor, the style drop down contains the default style set, not the custom one I defined. Does anyone know how to achieve this?
↧
↧
please advice
In my site when the order is placed it display the notification emil in the sent item. but i didnt receive any email to my inbox. what can be the reason for thatPlease advice
Ramesh
↧
Show property value in webpart ascx
Hi!I've made a web part with some properties and I'm getting my data by code behind.
Currentyl I want to show the value in my ascx file but it is only showing when i use @%= LocationAddress %@.However when you are within the admin environment and on the design tab of a page you get errors about the @%...%@ usage.Should I use a different method to show these values within my ascx file?Thanks in advance!
↧
submit button in custom layout form builder not working
Hi there!I have made form by the out-of-the-box form builder and using a custom layout as ascx.
I have added the submit button in my template, but it does not appear in my view but below it. See attached images:do I need to enable a function first to make this work?Thanks in advance!
↧
merging contacts from domain aliases
HelloI'm tracking the activities of my visitors on my mainsite domain.com, and on alias.domain.com.The problem is, when a user visits alias.domain.com and after that, the user visits domain.com, there are two contacts created.Is there a way to merge these two into the contact from alias.domain.com, or domain.com?Kind regardsKenny
↧
↧
On a fresh install Kentico tries to create my database a second time
I have a fresh install of Kentico 8.2. I'm trying to create a local dev instance of our staging site. I just want to get to where I can import the site package to my local instance. Currently, when I visit the /Admin route on my local instance, I get redirected to cmsinstall/install.aspx and see the following a database creation dialog. Every field is disabled and its trying to install into the database that was created and populated when I ran the .exe installer. So, with no other options available to me I click ahead.When the Kentico instance inexplicably tries to create all new tables over the already existing ones, I get the inevitable error:ERROR: An error occurred: [DataConnection.HandleError]:
Query:
CREATE TABLE [CMS_Resource] (
[ResourceID] [int] IDENTITY(1,1) NOT NULL,
[ResourceDisplayName] [nvarchar](100) NOT NULL,
[ResourceName] [nvarchar](100) NOT NULL,
[ResourceDescription] [nvarchar](max) NULL,
[ShowInDevelopment] [bit] NULL,
[ResourceURL] [nvarchar](1000) NULL,
[ResourceGUID] [uniqueidentifier] NOT NULL,
[ResourceLastModified] [datetime2](7) NOT NULL,
[ResourceIsInDevelopment] [bit] NULL,
[ResourceHasFiles] [bit] NULL,
[ResourceVersion] [nvarchar](200) NULL,
[ResourceAuthor] [nvarchar](200) NULL
)
ALTER TABLE [CMS_Resource]
ADD CONSTRAINT [PK_CMS_Resource] PRIMARY KEY NONCLUSTERED ([ResourceID])
ALTER TABLE [CMS_Resource]
ADD CONSTRAINT [DEFAULT_CMS_Resource_ResourceHasFiles] DEFAULT ((0)) FOR [ResourceHasFiles]
ALTER TABLE [CMS_Resource]
ADD CONSTRAINT [DEFAULT_CMS_Resource_ShowInDevelopment] DEFAULT ((0)) FOR [ShowInDevelopment]
CREATE CLUSTERED INDEX [IX_CMS_Resource_ResourceDisplayName] ON [CMS_Resource] ([ResourceDisplayName])
CREATE NONCLUSTERED INDEX [IX_CMS_Resource_ResourceName] ON [CMS_Resource] ([ResourceName])
Caused exception: There is already an object named 'CMS_Resource' in the database.
at CMS.DataEngine.AbstractDataConnection.HandleError(String queryText, Exception ex)
at CMS.DataEngine.AbstractDataConnection.ExecuteQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction)
at CMS.DataEngine.SqlInstallationHelper.RunSQLQuery(String query, IDataConnection conn, String dbSchema)
at CMS.DataEngine.SqlInstallationHelper.RunSQLScript(String fileName, IDataConnection conn, String dbSchema)
Why on earth is it even trying to create a db when there's already a fully populated one its already pointed at? More importantly, how do I get it to stop?!For context, my install options:Custom,Web App,Installed to a preexisting empty database on my local SQL Server 2012 instanceconnection string: @Data Source=localhost;Initial Catalog=Kentico;Integrated Security=True;User ID=;Password=;Connect Timeout=60@IIS site bound to wwwroot/Kentico/CMSApplication pool Identity set to LocalSystemNT_AUTHORITY/SYSTEM is added to the db with full permissions.
↧
Logic within repeater
Hello,I'm trying to pull data from two different page types into a repeater. Once I have the data, here's what I'd like to do with it:First, I need to iterate over all items(pages) within a specific folder and display a couple fields of information, pulled from each one of these pages. This is working.Secondly, each one of these pages has a set of sub pages. I need to iterate over each sub page, in each one of these pages, and display some more information.I do not want to use a hierarchal viewer/control and am wondering what is the best way to do this? Can I nest repeaters? Can I stick a for loop inside the repeaters transformation?Any ideas and help is as always, much appreciated.Thanks in advance,Shawn
↧
Alphabetical Order of pages
Hello,I have an issue with the alphabetical ordering of our pages as they populate on the main page. The list starts out with 5 pages we have designated as the priority followed by the start of an alphabetical list. However, this list does not accurately reflect the order as displayed in our listed pages (missing one). Then, half way down it starts again with an alphabetically ordered list. Ultimately, the list is split into two alphabetical sections without any indication or determinant about what will generate where.Thank you for your support,Connor
↧