• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Auchi
#1 Posted : Tuesday, January 30, 2007 1:41:33 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

I've been trying to create a custom policy, in this case it's the Guarantee Policy. By checking other default policies i've thought than if i'd just change the default policy name (for example: Termsandconditions) every time it appears in the page, that would be enough to call the Guarantee text from the Content > Policies from the BVAdmin.


But that returns me this error:



[color=#ffffcc>

[tr ][td ][/tr][tr ]<TD><CODE>
[color=red>Line][/color]Line 23: For Each block As Content.PolicyBlock In policy.Blocks
</PRE>[/code][/td][/tr]</TABLE></FONT>



Any idea of how can I solve this problemm? or how can I declare ir in the Core? or anything at all?

Thanks everybody.
Marcus
#2 Posted : Tuesday, January 30, 2007 1:43:26 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

You'll need to use the actual ID number of your policy instead of "webappsettings.GuaranteePolicy"

The "WebAppSettings.xxxxxPolicy" is a shortcut we included so we didn't have to type our the GUID value for the builtin policies. In your case it's a new policy so there is know web app setting for it.

You could also call the policy by name instead of bvin:

Code:

Dim policy as Content.Policy = Content.Policy.FindByName("Guarantee")
Auchi
#3 Posted : Tuesday, January 30, 2007 3:42:27 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

THANKS THANKS THANK




AND



T H A N K S ! ! !
Auchi
#4 Posted : Tuesday, January 30, 2007 4:21:11 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

'FindByName' is not a member of 'BVSoftware.Bvc5.Core.Content.Policy'


:sad:



Last one (I promise its de last one): How I get the policy id?



Anyway: THANKS!
Auchi
#5 Posted : Wednesday, January 31, 2007 4:03:34 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

I've solved it. I just needed to sleep a little and I understood that I should check out the database.


Thanks again. :smilewinkgrin:



p.s: Now I will post another question, so don't be so happy
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012