Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

DataType Option

Posted on by 3,027

Hi

   I want to add Blank option in addition to Export,Import in Option DataItem in report on Request Page.

Secondly in code i want to check if field is not blank then i want to setrange records in Item Table

Thanks

*This post is locked for comments

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: DataType Option

    Try with Parenthesis,

    IF (ItemLine."ColorType" <> ColorType) and  (ColorType <>  ColorType::" ") THEN BEGIN

       CurrReport.SKIP ;

    END;

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: DataType Option

    You need to define values in variable which you are using in request page like as follows

    In option variable  give some space like  ,export,import

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: DataType Option

    Hi

     I am trying this but it is giving error - Type Conversion is not possible because one of the operators contains an Invalid Type

      IF ItemLine."ColorType" <> ColorType and  ColorType <>  ColorType::" " THEN BEGIN

        CurrReport.SKIP ;

    Thanks

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: DataType Option

    At the end place a comma and space, that means blank option.

    In your code you can write Datatype=datatype::" ";

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: DataType Option

    What have you tried till now and what is not working ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans