Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solve] Business Map - Leadsource in Opportunities
#1
I tried create a new business map in Opportunities module, for check a valid leadsource, but not working.

What I did  wrong?

I tested in online demo, too.

<map>
 <originmodule>
 <originname>Opportunities</originname>
 </originmodule>
 <fields>
 <field>
 <fieldname>leadsource</fieldname>
 <validations>
 <validation>
 <rule>notIn</rule>
 <restrictions>
 <restriction>---None--</restriction>
 </restrictions>
 </validation>
 </validations>
 </field>
</fields>
</map>
Ranieri
eCRM Web
Reply
#2
You have 3 dashes in front of the value:

---None--
--None--

try that change and let us know
Joe
TSolucio
Reply
#3
You're right, thanks Joe!

And how I input more than one value to exclude?
Ranieri
eCRM Web
Reply
#4
the example on the documentation page (cbCalendar) says you can just add more restriction directives:

http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:validations

<restrictions>
<restriction>--None--</restriction>
<restriction>Another exclusion value</restriction>
</restrictions>

let us know how it goes
Joe
TSolucio
Reply
#5
Ah ok, I can add more lines, one with each value.

Thanks!
Ranieri
eCRM Web
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)