Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

site drop down need in report dialog

Posted on by 5,885

hi all,

i need site in report dialog. So, i did the below code in dialog

dialogSite     = dialog.addField(extendedTypeStr(InventSiteId), "@SYS122446");

site.jpg

i wants only HK in site drop down. how i will do this?

please give me more shed on this.

thanks!

  • @rp@n Profile Picture
    @rp@n 5,885 on at
    RE: site drop down need in report dialog

    yes, rite nikoloas,

    in EDT -- table reference, relation is missing. i make it siteid

    now it's proper working

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: site drop down need in report dialog

    We can see that InventSite EDT is customized on VAR layer. Please right click it and compare between VAR and SYP/SYS. What differences do you see?

  • @rp@n Profile Picture
    @rp@n 5,885 on at
    RE: site drop down need in report dialog

    hi Sergei,

    siteid.jpg

    i not found any changes. please suggset if any

  • Verified answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,083 on at
    RE: site drop down need in report dialog

    Hi @rp@n,

    If you check InventSiteId EDT in AOT, do you see any changes for it? (especially changes in relations)

  • @rp@n Profile Picture
    @rp@n 5,885 on at
    RE: site drop down need in report dialog

    my code is working fine in Test environment. means in site drop down it's coming site, name.

    i think some one do any modification in site or something.

    any way my code is correct.

    thanks Nikoloas

  • @rp@n Profile Picture
    @rp@n 5,885 on at
    RE: site drop down need in report dialog

    hi Nikoloas,

    yes, i did db synch and full CIL

    both are done  and successful but still get the same output for site drop down

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: site drop down need in report dialog

    I don't know what screenshot you would want. I tried to add InventSiteId dialog field to Tutorial_RunBaseBatch class and the lookup worked ok, showing a list of sites.

    So something is wrong in your system, not your code. Perhaps you have copied database from another system, breaking object id values.

    Did you do full compilation, CIL and db sync as suggested? Was it succesful? Did it help?

    Based on your recent questions, it seems that your project team has some trouble with environment setup, deployments and data migrations. It could make sense to try to get additional help to your team to ensure success of your project. Since you are still in dev/test phase, it's a good time to fix things.

  • Vishal Dhavgaye Profile Picture
    Vishal Dhavgaye 405 on at
    RE: site drop down need in report dialog

    I dont see you packing your variables, but try clearing out your usage data.

  • @rp@n Profile Picture
    @rp@n 5,885 on at
    RE: site drop down need in report dialog

    nikoloas, send e the screen shot please

  • nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: site drop down need in report dialog

    No, I mean full x++ compilation, full CIL and database synchronization. My recommendation is to run those regularly in your dev system (you can automate it to happen every night - but that's another discussion).

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans