Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Using form variables marked by FormObservable in CoC

(0) ShareShare
ReportReport
Posted on by 2
Hello Community,

I faced with issue while extending the form WHSBatchAttribReserve through CoC.
It has such  varibles declared in classDeclaration:

I`m trying to use variable currentItemId in the extension for this form, but I`m getting such compile error:

Compiling Application Suite model is not helping.
If I check variable which doesn`t have attribute it compiles without any issues:

Is this any resriction for CoC? Because I have not find any information about it for FormObservable attribute.

Thank you in advance for answers.
  • Using form variables marked by FormObservable in CoC
    Hello GirishS,

    That helped me.

    Thank you a lot.
  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    Using form variables marked by FormObservable in CoC
    Hi,
     
    Use if(this.currentItemId) and check whether it throws any compile time error.
     
    Thanks,
    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans