Benutzer mit den meisten Antworten
Befüllen eines Feldes mit einer Abfrage von einem anderen Feld

Frage
-
Hallo,
ich möchte gerne ein neues Feld mit dem Ergebnis einer Abfrage aus einem anderen Feld befüllen. Beides sind Textfelder
Bsp.: Feld1 enthält den Text: abc oder def oder hij
Feld2 soll dann, wenn Feld1 abc enthält, xxx sein
wenn Feld1 def enthält, soll Feld2 yyy sein
wenn Feld1 hij enthält, soll Feld2 zzz sein.
Wenn es einfacher ist, wenn Feld1 einen Text nicht entält, sondern "ist=" wäre auch ausreichend.
Mit einem Workflow habe ich es bereits hinbekommen. Würde es aber gerne mit einem kleinen Script (OnLoad oder OnSave) machen.
Vlt. kann jemand helfen?
Danke schon mal.
Herkulez
Antworten
-
Hallo Herkulez,
zu CRM und JavaScript speziell nicht, aber natürlich eine ganze Reihe von Dokumentationen zu CRM.
Es gibt zum einen die Produktdokumentation:
- Microsoft Dynamics CRM 4.0 Implementation Guide http://www.microsoft.com/downloads/details.aspx?familyid=1CEB5E01-DE9F-48C0-8CE2-51633EBF4714&displaylang=de
- Microsoft Dynamics CRM 4.0 Server Readme http://www.microsoft.com/downloads/details.aspx?familyid=1DB2D16D-7885-4561-A461-20B948913B3F&displaylang=de
- Microsoft Dynamics CRM 4.0 E-mail Router Readme (On-Premise and Microsoft Dynamics CRM 4.0 Service Provider Editions) http://www.microsoft.com/downloads/details.aspx?FamilyId=C54B428B-3565-4037-B4F3-C553F3288C45&displaylang=de
- Microsoft Dynamics CRM 4.0 Software Development Kit http://www.microsoft.com/downloads/details.aspx?familyid=82E632A7-FAF9-41E0-8EC1-A2662AAE9DFB&displaylang=en
- Microsoft Dynamics CRM 4.0 Logical Database Diagrams http://www.microsoft.com/downloads/details.aspx?familyid=B73912E8-861E-43AE-97B4-72B3E809F287&displaylang=en
- Developing ISV Applications using Microsoft Dynamics CRM 4.0 http://www.microsoft.com/downloads/details.aspx?familyid=1217EFFF-BE8F-4AC8-8E32-AF367305FBA9&displaylang=en
- Microsoft Dynamics CRM Developer Center http://msdn.microsoft.com/en-us/dynamics/crm/default.aspx
dann sind folgende Bücher zu CRM 4.0 erschienen (kein Anspruch auf Vollständigkeit)
- Arbeiten mit Microsoft Dynamics CRM 4.0 ISBN 978-3-86645-427-9
- Working with Microsoft Dynamics CRM 4.0 2.Edition ISBN 978-0-7356-2378-1
- Microsoft Dynamics CRM unleashed ISDB 978-0-672-32970-8
- Programming Microsoft Dynamics CRM 4.0 ISBN 978-0-7356-2594-5
- Microsoft Dynamics CRM 4.0 Grundlagen ISBN 978-3-86645-437-8
- Success with Microsoft Dynamics CRM 4.0 ISBN 978-1-4302-1604-9
- Microsoft® Dynamics™ CRM 4.0 and Microsoft Dynamics Live CRM Step by Step ISBN 978-0-73562-576-1
- Microsoft CRM 4.0 User Handbook, ISBN 978-0-95568-590-3
- CRM as a rapid development platform, 978-0-9815-1181-8
Viele Grüße
Michael Sulz
axcentro GmbH
MVP für Microsoft Dynamics CRM- Als Antwort markiert JuergenBeckModerator Dienstag, 5. Januar 2010 16:35
Alle Antworten
-
Hallo Herkulez,
versuche einfach folgendes:
switch(crmForm.all.Feld1.DataValue)
{
case "abc":
crmForm.all.Feld2.DataValue = "xxx";break;
case "def":
crmForm.all.Feld2.DataValue = "yyy";
break;default:
break;
}
Viele Grüße
Michael Sulz
axcentro GmbH
MVP für Microsoft Dynamics CRM- Als Antwort vorgeschlagen Michael Sulz Donnerstag, 13. August 2009 13:39
-
Hallo Michael,
super, hat geklappt. Ich dachte "case" könnte man nur mit Zahlenwerten benutzen. Sollte mich doch mal mehr mit den Java-Scripten anfreunden. Gibts da speziell aufs CRM angelehnte Bücher oder Dokus, ausser das SDK?
Danke nochmal.
Herkulez -
Hallo Herkulez,
zu CRM und JavaScript speziell nicht, aber natürlich eine ganze Reihe von Dokumentationen zu CRM.
Es gibt zum einen die Produktdokumentation:
- Microsoft Dynamics CRM 4.0 Implementation Guide http://www.microsoft.com/downloads/details.aspx?familyid=1CEB5E01-DE9F-48C0-8CE2-51633EBF4714&displaylang=de
- Microsoft Dynamics CRM 4.0 Server Readme http://www.microsoft.com/downloads/details.aspx?familyid=1DB2D16D-7885-4561-A461-20B948913B3F&displaylang=de
- Microsoft Dynamics CRM 4.0 E-mail Router Readme (On-Premise and Microsoft Dynamics CRM 4.0 Service Provider Editions) http://www.microsoft.com/downloads/details.aspx?FamilyId=C54B428B-3565-4037-B4F3-C553F3288C45&displaylang=de
- Microsoft Dynamics CRM 4.0 Software Development Kit http://www.microsoft.com/downloads/details.aspx?familyid=82E632A7-FAF9-41E0-8EC1-A2662AAE9DFB&displaylang=en
- Microsoft Dynamics CRM 4.0 Logical Database Diagrams http://www.microsoft.com/downloads/details.aspx?familyid=B73912E8-861E-43AE-97B4-72B3E809F287&displaylang=en
- Developing ISV Applications using Microsoft Dynamics CRM 4.0 http://www.microsoft.com/downloads/details.aspx?familyid=1217EFFF-BE8F-4AC8-8E32-AF367305FBA9&displaylang=en
- Microsoft Dynamics CRM Developer Center http://msdn.microsoft.com/en-us/dynamics/crm/default.aspx
dann sind folgende Bücher zu CRM 4.0 erschienen (kein Anspruch auf Vollständigkeit)
- Arbeiten mit Microsoft Dynamics CRM 4.0 ISBN 978-3-86645-427-9
- Working with Microsoft Dynamics CRM 4.0 2.Edition ISBN 978-0-7356-2378-1
- Microsoft Dynamics CRM unleashed ISDB 978-0-672-32970-8
- Programming Microsoft Dynamics CRM 4.0 ISBN 978-0-7356-2594-5
- Microsoft Dynamics CRM 4.0 Grundlagen ISBN 978-3-86645-437-8
- Success with Microsoft Dynamics CRM 4.0 ISBN 978-1-4302-1604-9
- Microsoft® Dynamics™ CRM 4.0 and Microsoft Dynamics Live CRM Step by Step ISBN 978-0-73562-576-1
- Microsoft CRM 4.0 User Handbook, ISBN 978-0-95568-590-3
- CRM as a rapid development platform, 978-0-9815-1181-8
Viele Grüße
Michael Sulz
axcentro GmbH
MVP für Microsoft Dynamics CRM- Als Antwort markiert JuergenBeckModerator Dienstag, 5. Januar 2010 16:35