Quantcast
Channel: DevNet Questions
Viewing all 11916 articles
Browse latest View live

How to get the value of a cms:FormField in a form layout script block?

$
0
0
I have a form that has a layout like so:@cms:FormField runat="server" ID="fMemberType" Field="MemberType" /@ @cms:FormField runat="server" ID="fEmployeeCount" Field="EmployeeCount" /@ @asp:Literal runat="server" ID="test" Text="test" /@ @script runat="server"@ protected void Page_PreRender(object sender, EventArgs e) { test.Text = fMemberType.Value.ToString(); } @/script@ However this produces Object reference not set to an instance of an object. because it can't find fMemberType for some reason. Looking for the correct way of doing this.It's worth noting that the form fields are dropdowns with depending flags set so changing them triggers a postback, or at least it would, but I set the webpart container to be an update panel so it's AJAXing which means the data isn't available in the page POST params. I could turn this off and grab the data from the POST data but wanted to know if there was a better way first.

Updated API related to DocumentHelper.AddAttachment() method in Kentico10

$
0
0
As DocumentHelper.AddAttachment() method is changed in Kentico 10 I need the alternate approach to my below code :: public void InsertAttachment(string url, SKUTreeNode productDoc) { string file = DownloadImage(url); if (!String.IsNullOrEmpty(file)) { Bitmap bmp = (Bitmap)System.Drawing.Image.FromFile(Server.MapPath(file), true); AttachmentInfo attachment = DocumentHelper.AddAttachment(productDoc, "ProductImage", file, tree); attachment.AttachmentImageHeight = getRelativeHeight(bmp); attachment.AttachmentImageWidth = 300; attachment.AttachmentIsUnsorted = true; AttachmentInfoProvider.SetAttachmentInfo(attachment); productDoc.Update(); } } Based on suggestion from this link If I replace AttachmentInfo with DocumentAttach return type and remove the last argument in AddAttachment method then what about the SetAttachmentInfo method and how will I relate the added attachment with the tree ? What code should replace my this line of code AttachmentInfoProvider.SetAttachmentInfo(attachment);

PunchOut cXML & Kentico

$
0
0
I will be working on a project where enterprise customers will need to be authenticated into a kentico B2B portal. They will arrive from an Enterprise Procurement system, such as Oracle JDE or Ariba. Has anyone used PunchOut to get users into kentico. The authentication and data is normally sent in an XML payload using the cXML Protocol.I'm thinking I could use the kentico API or a .NET micro service to intercept the XMP payload, parse the XML for UserID and any parameters ( would might be brands and or products that the user can order from) and then use SSO to log the user into Kentico. Would appreciate any thoughts on experience on this

Log user into Kentico Admin site based on HttpHeader value from Siteminder

$
0
0
My company has just obtained Kentico for some new applications. These applications will be going into production in about 2 weeks, so we are still fairly new with this. What we have are three ASP.NET MVC applications/sites that format and present content that is stored in Kentico. Additionally, we have specific users who will log into the Kentico9/Admin site to manage the content displayed by the MVC apps. From a corporate standpoint, we also have Siteminder SSO enabled. When a user navigates to our Kentico9/Admin site, they are first authenticated by our corporate Siteminder SSO form using their corporate user id. When they are successfully authenticated, Siteminder redirects the user to the Kentico9/Admin site they originally requested and the user is presented with the standard Kentico login form. If the user has already logged in through Siteminder during another session, they only get presented with the Kentico login form. Otherwise, if this is their first time logging in, the user is required to login twice (once through Siteminder and again through Kentico). What I want to do is bypass the standard Kentico login form and use the Siteminder information to Authorize the user to log them into the Kentico admin site. Siteminder adds the username and some other information to the HTTP request headers. Using C#, I can retrieve their corporate user id using the following: System.Web.HttpContext.Current.Request.Headers.Get("SM_USERID").So, in a nutshell, I want to override Kentico's standard login form and write some code that will get the user id from the HTTP request header and authorize the user by looking up their userid in Kentico. If the user id is not found or is not active, present the user with the standard Kentico login form. Otherwise, if the user is a valid and active user, pull their user record and allow them to access Kentico.I have found some tidbits of information and given enough time, I may be able to figure something out, but I am hoping someone has done something similar and can speed up my process. Any ideas on what I can do? I will also entertain anything that might have tighter integration with Siteminder, although it doesn't seem Kentico can handle Siteminder out of the box, but I am not sure about that.

GET API Request - Form Data Types

$
0
0
I am currently trying to pull data from Kentico using a C# Web API, and I can successfully pull the data, but I also plan on storing it into a database.Using a call like : /rest/bizformitem.bizform.contactusI receive back all of the data within the form, but since I am storing these values into the database I would like to know the field data type for that form name/value.Most API references have lists such as: ID:USER_ID | Type:int | Desc:User ID Form Field.I am trying to find a reference via the API or documentation for these values within the form, so any assistance would be appreciated.

Log user into Kentico Admin site based on HttpHeader value from Siteminder

$
0
0
My company has just obtained Kentico for some new applications. These applications will be going into production in about 2 weeks, so we are still fairly new with this. What we have are three ASP.NET MVC applications/sites that format and present content that is stored in Kentico. Additionally, we have specific users who will log into the Kentico9/Admin site to manage the content displayed by the MVC apps. From a corporate standpoint, we also have Siteminder SSO enabled. When a user navigates to our Kentico9/Admin site, they are first authenticated by our corporate Siteminder SSO form using their corporate user id. When they are successfully authenticated, Siteminder redirects the user to the Kentico9/Admin site they originally requested and the user is presented with the standard Kentico login form. If the user has already logged in through Siteminder during another session, they only get presented with the Kentico login form. Otherwise, if this is their first time logging in, the user is required to login twice (once through Siteminder and again through Kentico). What I want to do is bypass the standard Kentico login form and use the Siteminder information to Authorize the user to log them into the Kentico admin site. Siteminder adds the username and some other information to the HTTP request headers. Using C#, I can retrieve their corporate user id using the following: System.Web.HttpContext.Current.Request.Headers.Get(@SM_USERID@).So, in a nutshell, I want to override Kentico's standard login form and write some code that will get the user id from the HTTP request header and authorize the user by looking up their userid in Kentico. If the user id is not found or is not active, present the user with the standard Kentico login form. Otherwise, if the user is a valid and active user, pull their user record and allow them to access Kentico.I have found some tidbits of information and given enough time, I may be able to figure something out, but I am hoping someone has done something similar and can speed up my process. Any ideas on what I can do? I will also entertain anything that might have tighter integration with Siteminder, although it doesn't seem Kentico can handle Siteminder out of the box, but I am not sure about that.Thank you for any help,Ken Fitzpatrick

Ketico Form submission throws "Invalid View State" error

$
0
0
Hello Everyone There is a bizform that is sporadically throwing an @Invalid View State@ error on submission. Has anyone of you had this issue? I found this stack overflow post and it sounds like an iis / web config issue. thoughts? Thanks Paul

Rearrange Widgets in Widget Zone

$
0
0
Hello Kentico Team,I am having a hard time moving widgets placed in a widget area. It doesn't seem possible to rearrange them by dragging them up or down. Many of my widgets are very tall, which may be complicating things further. I have also added some styles to the Page tab that might be interfering in some way.Is it possible to add the @Move Up@/@Move Down@ buttons that appear on web parts to the widgets? @Move to Top@ and @Move to Bottom@ would be great too.Alternatively, could I just add a few more styles to the Page tab so that the widgets are a fixed size and easier to move? Any advice would be greatly appreciated. Thanks.-mike

Display different forms based on workflow step

$
0
0
HIIs it possible to display different forms based on workflow step of currently editing document type?Say:there is one document type : custom.requestwe apply four step advanced workflow to this document type.custom.request has two form that each one of them must be displayed on special workflow step.(say we defined two alternative form , the first form has only some sort of fields that must be filled in first step and second form display another part of custom.request fields that must be filled in a special step ).now , when a user decide to create a document type we display him first form.user save form and sent it to the next step.in the current step we want to display second form to the user then user can fill subset of fields that is not displayed in the first form and save data and send it to final step.Note : existence of workflow is required.wizard can not be used here.we only want to display different views of our document type in context of forms and let them provide us with required information. Is there any suggestion how we can do this?

Can we add extra column to unigrid for default cms modules in kentico

$
0
0
I want to add a "timezone" column to the grid shown above. The "Countries" module is under the "Configuration" section. How can I add the column? Is it possible?

Kentico Form Aria-Label

$
0
0
Is it possible to add aria labels to a Kentico form. I am adding the forms to my pages using the online form widget and I would like to add aria labels to each section to help make my site more ADA compliant.

How to hide the repeater carousel on the page,Kentico

$
0
0
I wanted to know how can i hide a repeater carousel on a webpage, i have tried uncheck the visibility option on the control property, which removes the carousel as whole. I wanted to implement visibility = false .

Sql script error when upgrading from 8.2 to 9

$
0
0
Hi All,We are in the process of upgrading from Kentico 8.2.48 to Kentico 9. Everything is going okay except for two statements at the end of the SQL script. The sql script is having a problem deleting some things from the CMS_Document table and CMS_attachment table due to some foreign key constraints. I didn't see anything in the upgrading to Kentico 9 documentation that had to do with deleting attachments manually, and the log file doesn't show the IDs that are having problems.Has anyone had any problems upgrading from Kentico 8.2 to 9 like this before or have any suggestions? I've copied the errors below. ALTER TABLE [CMS_Tree] WITH CHECK ADD CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] FOREIGN KEY([NodeParentID]) REFERENCES [CMS_Tree] ([NodeID]) ALTER TABLE [CMS_Tree] CHECK CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] ALTER TABLE [CMS_Tree] DROP CONSTRAINT [FK_CMS_Tree_CMS_Tree] The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Attachment_AttachmentDocumentID_CMS_Document@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Attachment@, column 'AttachmentDocumentID'. The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Document_DocumentNodeID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Document@, column 'DocumentNodeID'. The ALTER TABLE statement conflicted with the FOREIGN KEY SAME TABLE constraint @FK_CMS_Tree_NodeParentID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Tree@, column 'NodeID'. ALTER TABLE [CMS_Tree] WITH CHECK ADD CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] FOREIGN KEY([NodeParentID]) REFERENCES [CMS_Tree] ([NodeID]) ALTER TABLE [CMS_Tree] CHECK CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] ALTER TABLE [CMS_Tree] DROP CONSTRAINT [FK_CMS_Tree_CMS_Tree] The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Attachment_AttachmentDocumentID_CMS_Document@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Attachment@, column 'AttachmentDocumentID'. The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Document_DocumentNodeID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Document@, column 'DocumentNodeID'. The ALTER TABLE statement conflicted with the FOREIGN KEY SAME TABLE constraint @FK_CMS_Tree_NodeParentID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Tree@, column 'NodeID'. Any help would be greatly appreciated, anything really to point me in the right direction.Thanks

Kentico Search

$
0
0
Hi, The search results summary is pulling up the random parts/texts of the page. For instance, its taking heading from one panel and alongside the content from different parts/ panel of the page. Thus it is really not making any sense together. We are using the default Kentico search so I am not sure whether this is how it is supposed to be. Thus instead of showing like the way we have right now, can we show the relevant/applicable sentence only? or depending upon the given length, also some parts of the next sentence following it.Thanks, Bijay

//devnet122.rssing.com/chan-6430755/article4875-live.html

$
0
0
Hi,(version 8.0)I want to tweak the doctype for our kentico site. I checked the /CMSPages/PortalTemplate.aspx file, and this is what it has for the doctype:@%=DocType%@@html xmlns=@https://www.w3.org/1999/xhtml@ @%=XmlNamespace%@@Would anybody be able to tell me where that @DocType@ variable is set? I haven't found anything in the master template ... maybe I'm not looking in the right place?Thank you, Rita.

Importing a few gigs of images in hierarchical folders

$
0
0
Hello Everyone I need to import a bunch of media files into kentico. Are there instructions anywhere? I have found how to import and export them if they are in kentico but none for , choosing a media folder and uploading entire folder structures of media. Any suggestions would be helpful, thanks Paul

Tracking Document download in Analytics section.

$
0
0
We have a requirement to create a report that tells us how many times a document has been downloaded. Is it possible to track the document download in Kentico Analytics section.

In kentico how to create image editor using .net api

$
0
0
i want to implement image editor in kentico using .net api which perform different operation on image so give me proper solution

Editing images using Image Editor in Kentico 9

$
0
0
I want to show Image Editor on the Page(for website visitor). I am using Media Gallery web part to use kentico's Image editor. I want to show the image editor pop up by clicking the edit link or button. Please suggest the solution.

How can we create file type uploader for custom user registration form ?

$
0
0
Dear Team,Can you please help me for file upload, I want to file upload feature on my custom user registration form like CV Attachment,Profile Picture,Other Document upload.I want same feature like data type :File which only available for Page Type @ Online Form.I don't know why not this feature available for Custom table @ new custom user registration field.can you help me to how i create File Type upload in Custom table @ user registration and Its work for Update user profile as well.I have some idea to upload file on Media gallery but i don't want,I want to upload file in only like any upload happen using Online Form File Type control.Thanks @ Regards Rasiuddin Khan
Viewing all 11916 articles
Browse latest View live