Is there a x-axis tag in Coldfusion 8? I was going through the below link but couldn't find it on the official Adobe docs.
<xAxis type="DateTime" isAbsolute="false" scaleMin="0">
<labelFormat style="DateTimePattern" pattern="dd-MMM-yyyy"/>
<parseFormat style="DateTimePattern" pattern="yyyy-MM-dd HH:mm:ss.S"/>
<dateTimeStyle minorUnit="Hour"/>
<labelStyle isMultiline="false" orientation="Vertical"/>
<titleStyle font="Arial-16-bold" isMultiline="false"/>
<groupStyle>
<format pattern="#,##0.###"/>
</groupStyle>
</xAxis>
Source:http://www.raymondcamden.com/forums/messages.cfm?threadid=ECB52D08-A990-DA46-5A61466378765992
Related
I am trying to redirect a new page by using tag in coldfusion page by using below code. I am able to get achor symbol,but it is not going to respective page.
Can any one help me on it.
<p class="login__signup">Don't have an account?
<cfoutput ><a herf="RegisterFrom.cfm">Sign up</a></cfoutput></p>
Thanks.
"herf" is not a valid anchor property. It should be "href".
I am Using SharePoint 2013 Public Site not Blog Site.
According to requirement I Need to Customize Sharepoint 2013 Public Site Blog "Summary View" by showing a new custom column of video.
As Per Research i get result in Sharepoint 2010 Only not SP2013.
I also tried by doing these thing but not work :-(
1.Download Blog.xsl via SiteCollection URL/_layouts/xsl/blog.xsl.
2.Change according to the requirement Just Add xml snippet in Blog.xsl nothing else.and save CustomBlog.xsl.
3.Edit Post section Of The Blog Page.
4.Select "Summary View" and in XSL section Provide Path of CustomBlog.xsl.
<!--Start Blog for Video -->
<div class="Video">
<xsl:for-each select="$Fields">
<xsl:if test="#Name='VideoThumbnail' and not ($thisNode/#VideoThumbnail='')">
<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">: </xsl:text><xsl:apply-templates select="$Fields[#Name='VideoThumbnail']" mode="Computed_body"><xsl:with-param name="thisNode" select="$thisNode"/></xsl:apply-templates>
</xsl:if>
</xsl:for-each>
</div>
<!--End Blog for Video -->
Research URL:
http://sympmarc.com/2012/04/04/customizing-the-display-of-a-sharepoint-2010-blog/
Please help me out How to Customize summary view of Blog in Sharepoint 2013.
Thanks,
Satyam
I'm using cfgrid with format="html" to edit data after submission on Adobe's coldfusion-11 Update 4 (11,0,04,293328) and jQuery 1.8.3 (on java version 1.7.0_55 on IIS7 on Windows Server 2008 R2 64bit) and get a "submitted cfgrid form field is corrupt" error using the below cfform and cfgrid code, with these details:
The submitted cfgrid form field is corrupt (name:
__CFGRID__AFORM__OneGrid value:
,__CFGRID__EDIT__=4�field1�Y�field2�Y�field3�Y�is_expected�Y
�1�U�Detail 1�Detail 1�Category 3�Details, details, details�D
etails, details, details�No�No)
ColdFusion cannot determine the line of the template that caused this
error. This is often caused by an error in the exception handling
subsystem.
The coldfusion source code is:
<cfform name="aform" action="" method="post">
<cfgrid name="OneGrid"
query="rsDetails"
format="html"
selectmode="edit"
selectcolor="blue"
insert="true"
insertbutton="Click here to insert"
delete="true"
deletebutton="Click here to delete"
colheaderbold="true"
bgcolor="##E3F2FF"
striperowcolor="##BDE0FF"
striperows="true"
rowHeight="20"
>
<cfgridcolumn name="field1" type="combobox"
header="Field 1"
width="200"
valuesdelimiter=","
values="#lstField1Values#"
valuesdisplay="#lstField1Values#" select="true" >
<cfgridcolumn name="field2" type="combobox"
header="Field 2"
width="150"
valuesdelimiter=","
values="#lstField2Values#"
valuesdisplay="#lstField2Values#"
>
<cfgridcolumn
name="field3"
header="Field 3**"
type="string_noCase"
width="300">
<cfgridcolumn name="is_expected" type="Boolean"
header="Is this what you expected?"
width="50"
>
</cfgrid>
</cfform>
This error has been reported by other developers here (last update on March 13th), but as one can see, no response by adobe has been given.
Has anybody found a solution?
Few days ago I found that Jamie Martin reported on June 25, 2015 that adobe has mailing out fixes to individuals about this fix. I've not tried it yet but instead replaced the server-side cfgrid with a client-side solution: jqgrid. Here comes Jamie's report:
«
Seems Adobe is mailing out fixes to individuals. I received a fix (some data redacted due to security). Would be nice if they'd just make the fix public at this point.
Adobe response follows
We have got a new fix for the cfgrid issues, you are facing. This fix covers Bug# 3842284 (The submitted cfgrid form field is corrupt), Bug# 3945554 (cfgridupdate) and Bug# 3741324 (dropdown listbox outside the confines of the grid control). You can apply CF11 Update 5 first and then this fix on top of it. Please try the following steps:-
Stop ColdFusion 11 Application Service
Download the hotfix from ftp://XXXXXXXX#sjftp.adobe.com/ColdFusion/hf1100-3842284.jar. Alternatively, you can download the fix from https://www.dropbox.com/s/XXXXXXX/hf1100-3842284.jar as well.
Place this hf1100-3842284.jar at the location -- \ColdFusion11\cfusion\lib\updates\
Take a backup of cfgrid.js at \CFIDE\scripts\ajax\package\ and delete it.
Download the cfgrid.js from ftp://XXXXXXXXX#sjftp.adobe.com/ColdFusion/cfgrid.js and place it at the above location. Alternatively, you can download the fix from https://www.dropbox.com/s/XXXXXXXX/cfgrid.js, as well.
Start ColdFusion 11 Application Service.
»
Remove CF delimiters <, ;> from the CFGRID data. It worked for me. TIP: Reformat date data.
This question already has an answer here:
JavaScript Date Format for ColdFusion Date Field
(1 answer)
Closed 8 years ago.
This is very frustrating. I am using cfinput datefield and mask="MM/DD/YYYY" and its not working. If it is cfinput text and mask="MM/DD/YYYY" it works perfect. I do not want to only have a textbox though I would like to keep the calendar that the date field gives you... The issue is when they use the calendar it is in the correct format MM/DD/YYYY but if the user just types in the date into the textbox without using the calendar the user can type whatever they desire.. (122334435) which obviously is unacceptable. Any ideas or workarounds anyone may be aware of?
Works:
<cfform name="foo">
<cfinput
type="text"
name="test"
validate="eurodate"
mask="99/99/9999"
validateat="onblur" />
<input type="submit">
</cfform>
Does Not Work:
<cfform name="foo">
<cfinput
type="datefield"
name="test"
validate="eurodate"
mask="MM/DD/YYYY"
validateat="onblur" />
<input type="submit">
</cfform>
I have added an answer to the other question that was originally opened regarding this same issue. I will post a bit here as well since users may find this question and not the other one. Or you could delete this question.
I believe the problem is that the mask attribute on the <cfinput type="datefield" ... code only works when using Flash forms - documentation reference.
I have emphasized the text from that documentation below:
Masking cfcalendar and datefield input
In the cfcalendar tag and the Flash format datefield input control, you use the following masks to determine the format of the output. You can use uppercase or lowercase characters in the mask:
...
The following pattern specifies that the Flash form sends the date selected using a datefield input control to ColdFusion as text in the format 04/29/2004:
<cfinput name="startDate" type="datefield" label="date:" mask="mm/dd/yyyy"/>
Since you are not using a Flash form the mask is not working for you. You could try switching to a regular <cfinput type="text" ... input and change your mask to something like "99/99/9999". That would give you the correct format but the user could still enter invalid dates so you would need additional code to catch that.
This is just another example of why using the built-in ColdFusion UI tags is not a good idea. They work for very simple examples but when you need more customization they fail you. You would be better off to use a JavaScript library (like jQuery) for client side validation. Adobe's own Ben Forta acknowledged this several years ago. And the ColdFusion-UI-the-Right-Way project was started because of this as well.
EDIT
On the other question that was posted Adam pointed out another reference in the ColdFusion documentation that reinforces my point. I have emphasized the text from that documentation below:
Masking input data
In HTML and Flash forms, the mask attribute controls the format of data that can be entered into a text field or that is selected in a datefield input control calendar. In HTML format, it does not prevent users from typing a date that does not follow the mask into a datefield input control. You can combine masking and validation on a field.
I've created a custom ItemStyle_ContactDetails.xsl for a SharePoint 2010 content query web part, which points to this custom file via the ItemXslLink property. The web part will be filtered to display only one record for that department's contact info. The list it's reading has these columns:
#Title -- built-in SharePoint column
/dsQueryResponse/Rows/Row/#WorkAddress -- built-in SharePoint column
/dsQueryResponse/Rows/Row/#PrimaryNumber -- built-in SharePoint column
#EMail -- built-in SharePoint column
#Opening_x0020_Hours -- custom multi-line rich text column
The above names are what they're called in the Data View Web Part from another site. I had the following in that DVWP that worked for a local site:
<td colspan="2" class="ms-vb" style="text-align:center">
<b><xsl:value-of select="#Title"/></b><br></br>
<div style="margin-top:10px;"><xsl:value-of
select="/dsQueryResponse/Rows/Row/#WorkAddress"/>
(MAP)
</div>
Tel: <xsl:value-of select="/dsQueryResponse/Rows/Row/#PrimaryNumber"/><br></br>
<xsl:value-of select="#EMail"/>
<p><b>Opening Hours:</b></p>
<div style="position:relative; top:0; margin:0">
<xsl:value-of select="#Opening_x0020_Hours"
disable-output-escaping="yes"/>
</div>
</td>
How do I translate this to the custom ItemStyle_ContactDetails.xsl template? The user needs to see the info without having to click a link to get to it -- it's always going to be just one record for that department. Thanks.
Some serious trial-and-error yielded the result, along with this great article: http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx
Maybe others trying this same thing can find this useful: You can edit the custom XSL file on the server via SPDesigner, but you can't do the same with the web part and hope to have the changes immediately reflected. You must export the content query web part, then edit the file in Notepad, etc., to make your changes to the following 3 items:
Change the ItemXslLink to point to your custom XSL file:
<property name="ItemXslLink" type="string">/Style Library/XSL Style Sheets/ItemStyle_ContactDetails.xsl</property>
Change the ItemStyle item in the web part to reference your template name; the template name in the XSL file is ContactDetails:
<xsl:template name="ContactDetails" match="Row[#Style='ContactDetails']" mode="itemstyle">
So in your web part, you'd have this:
<property name="ItemStyle" type="string">ContactDetails</property>
Update the CommonViewFields to list your custom columns and their types:
<property name="CommonViewFields" type="string">WorkAddress, Text; EMail,Text; Contact_x0020_Department,Choice; Map,URL; Opening_x0020_Hours,Text; PrimaryNumber, Text</property>
Save the web part file and import (upload) it via the browser to your web part gallery. Each time you make changes to the web part, you'll want to do this; the XSL file can be edited and saved in SPDesigner and the changes reflect immediately in the browser.
Hope this helps someone who gets stuck like I was :)
Whenever I edit "CommonViewFields" in the Webpart, I cannot edit the Properties after inserting the Webpart because of Correlation Error.
I am using SP 2013 onprem. Do I really need to modify the Webpart ? Isn't it enough to create a custom itemstyle.xls ?
I am playing around now for days. Each days more I have to say - Sharepoint is a mess.