Campaign page data validation error

etarunetarun Member Posts: 26
edited 2013-09-06 in NAV Three Tier
Hi All, I have a problem and its bugging me out, Hope someone could help me.

I have a perfectly good working campaign form in Navision. When I Transform it to RTC Page, While testing the campaign page I get the following Error message(See Image)

I guess i am missing some property here because as far as my knowledge is concerned, If a form is working in Navision, That should work in Pages too [-o< , As far as Data is concerened.

Campaign for sure is an option field.

DATABASE : NAV 2009 R2


Please help, any help is greatly appreciated.
Cheers Tarun!

Answers

  • etarunetarun Member Posts: 26
    HI,

    This issue was solved with an Hotfix in CU 423 in function FormatValue
    GetField(TableNumber,FldRef.NUMBER,Field);
    IF Field.Type = Field.Type::Option THEN BEGIN
      //Version before Dynamics NAV 2009:
      //::TK5421 Blocked for Transformation  Start
      //::EVALUATE(OptionNo,FORMAT(FldRef.VALUE));
      //::TK5421 Blocked for Transformation  END
    
      OptionNo := FldRef.VALUE;
      OptionStr := FORMAT(FldRef.OPTIONCAPTION);
    
      FOR i := 1 TO OptionNo DO
        OptionStr := COPYSTR(OptionStr,STRPOS(OptionStr,',') + 1);
      IF STRPOS(OptionStr,',') > 0 THEN
        IF STRPOS(OptionStr,',') = 1 THEN
          OptionStr := ''
        ELSE
          OptionStr := COPYSTR(OptionStr,1,STRPOS(OptionStr,',') - 1);
      EXIT(OptionStr);
    END ELSE
      EXIT(FORMAT(FldRef.VALUE));
    

    It works fine now.
Sign In or Register to comment.