Benutzer mit den meisten Antworten
in URL-Feld auch File: erlauben

Frage
-
Hallo NG,
gibt es eigentlich eine Möglichkeit in einem Attribut vom Typ nvarchar/url auch file-Pfade anzugeben. also quasi file:// . Im standard bekomme ich die Fehlermeldung das nur http(s) und ftp erlaubt sind.
Kann man das Konfigurieren, austricksen oder muss man dann auf ein normales textfeld umstellen?Besten Dank schon mal für die Hilfe!
Viele Grüße
Benni
Antworten
-
Mit einem URL Feld bekommst Du das nicht hin. Aber Du kannst ein Standard-Text Feld manipulieren mit
document.getElementByid('new_myfield_d').innerHTML = '<a href="'+
crmForm.all.new_myfield.DataValue + '">'+ crmForm.all.new_myfield.DataValue +
'</a>';
Gruß Carsten Groth http://carstengroth.spaces.live.com- Als Antwort markiert Benni_1983 Donnerstag, 6. Mai 2010 06:13
-
Hi,
du benötigst ein normales Textfeld. Siehe http://mscrm4ever.blogspot.com/2009/03/creating-network-path-text-control.html
- Als Antwort markiert Benni_1983 Donnerstag, 6. Mai 2010 06:13
-
Hübsch ist auch diese Lösung hier: http://icu-mscrm.blogspot.com/2008/09/create-link-to-file-or-directory-from.html
Create a Link to a File or Directory from a CRM Record
Posted by Matt WittemannIf you are like many of our clients, you still retain a lot of Word and Excel documents about your customers. Wouldn't it be nice to be able to link directly to the appropriate folder from the CRM record for that customer? Here's how to use some OnLoad script to turn a regular text field into a link to a folder.
1) Add a text field attribute called 'folderlink' to your account form. Give it a maximum length of 300 characters to make sure you have enough space for long paths.
2) Paste the following code into the OnLoad event for the Account entity's form:
if (crmForm.all.new_folderlink != null)
{
crmForm.all.new_folderlink.style.color = '#0000FF';
crmForm.all.new_folderlink.style.textDecorationUnderline = true;
crmForm.all.new_folderlink.style.fontWeight = 'bold';
var folderunc = crmForm.all.new_folderlink.DataValue;
{
crmForm.all.new_folderlink.ondblclick = function()
{
window.open(folderunc);
}
}
}
3) That's it. Now save and publish your form and paste a path to a folder into that field and try it out. You'll notice that the script above also formats the text in the field to be blue, bold, and underlined so it looks like a standard link, helping your users intuitively understand that they can click on it to open the folder.
Jürgen Beck
Dipl. Kfm./Wirtschaftsinformatik
MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
Microsoft Certified Business Management Solutions Professional
Microsoft Certified CRM Developer
Microsoft Certified Trainer
ComBeck IT Services & Business Solutions
Microsoft Gold Certified Partner
Microsoft Small Business Specialist
Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors
http://www.combeck.de
- Als Antwort markiert JuergenBeckModerator Montag, 17. Mai 2010 18:08
Alle Antworten
-
Mit einem URL Feld bekommst Du das nicht hin. Aber Du kannst ein Standard-Text Feld manipulieren mit
document.getElementByid('new_myfield_d').innerHTML = '<a href="'+
crmForm.all.new_myfield.DataValue + '">'+ crmForm.all.new_myfield.DataValue +
'</a>';
Gruß Carsten Groth http://carstengroth.spaces.live.com- Als Antwort markiert Benni_1983 Donnerstag, 6. Mai 2010 06:13
-
Hi,
du benötigst ein normales Textfeld. Siehe http://mscrm4ever.blogspot.com/2009/03/creating-network-path-text-control.html
- Als Antwort markiert Benni_1983 Donnerstag, 6. Mai 2010 06:13
-
Hübsch ist auch diese Lösung hier: http://icu-mscrm.blogspot.com/2008/09/create-link-to-file-or-directory-from.html
Create a Link to a File or Directory from a CRM Record
Posted by Matt WittemannIf you are like many of our clients, you still retain a lot of Word and Excel documents about your customers. Wouldn't it be nice to be able to link directly to the appropriate folder from the CRM record for that customer? Here's how to use some OnLoad script to turn a regular text field into a link to a folder.
1) Add a text field attribute called 'folderlink' to your account form. Give it a maximum length of 300 characters to make sure you have enough space for long paths.
2) Paste the following code into the OnLoad event for the Account entity's form:
if (crmForm.all.new_folderlink != null)
{
crmForm.all.new_folderlink.style.color = '#0000FF';
crmForm.all.new_folderlink.style.textDecorationUnderline = true;
crmForm.all.new_folderlink.style.fontWeight = 'bold';
var folderunc = crmForm.all.new_folderlink.DataValue;
{
crmForm.all.new_folderlink.ondblclick = function()
{
window.open(folderunc);
}
}
}
3) That's it. Now save and publish your form and paste a path to a folder into that field and try it out. You'll notice that the script above also formats the text in the field to be blue, bold, and underlined so it looks like a standard link, helping your users intuitively understand that they can click on it to open the folder.
Jürgen Beck
Dipl. Kfm./Wirtschaftsinformatik
MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
Microsoft Certified Business Management Solutions Professional
Microsoft Certified CRM Developer
Microsoft Certified Trainer
ComBeck IT Services & Business Solutions
Microsoft Gold Certified Partner
Microsoft Small Business Specialist
Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors
http://www.combeck.de
- Als Antwort markiert JuergenBeckModerator Montag, 17. Mai 2010 18:08