web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Change PV in Customization

(0) ShareShare
ReportReport
Posted on by 4

I need to change a PV in a native Dynamics SL screen, but I keep getting an error telling me to check the scode. Is there a way to get around this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mark E Profile Picture
    6,451 on at

    You cannot change the PV in Customization Manager, but you are able to modify/add (to an extent) some of the fields that the stored procedure called by the PV displays.

  • Suggested answer
    Ram Peru Profile Picture
    2,830 on at

    As Mark Said you cannot change the PV in customization Manager but You can assign the Run time PV on SAFTextbox control in Dynamics SL. You have to do the code on key press event of SAFTextbox control.

    For Instance,

    cProject.Pv = PvRec name with parameters which you want to pass into the PVRec

    Hope this may help you.

    Thanks,

    Perumalsamy R

  • Candice82 Profile Picture
    4 on at

    There's not a key press event. There's only chk, default, mousedown, mousemove, mouseup, oleinternal1, and PV.

    I've tried the examples below but neither works:

        cacct.PV = "Account_Active", %; 0; 0; 0; 0,0; 0; 127; 0; 0,

        call setprop(cacct,"PV","Account_Active", %; 0; 0; 0; 0,0; 0; 127; 0; 0,)

  • Butch Adams Profile Picture
    4,763 on at

    Are you just trying to modify what you see in a PV list when you hit F3?

  • Ram Peru Profile Picture
    2,830 on at

    Did you try to code this in default event of SAFTextBox?

    Thanks,

    Perumalsamy R

  • Candice82 Profile Picture
    4 on at

    Its a little more complicated. Users do not want to see the subaccount that is listed in AcctSub_Account. I removed subaccount from the pv but I get multiple records (one for each acct/sub combination). I figured I would use the Account_Active PV instead since I will only see 1 account.

  • Verified answer
    Candice82 Profile Picture
    4 on at

    I figured out how to get it to work.

    I added a copy of an existing table structure (e.g. Account) and aliased it with another name. I was able to go into the insert object wizard and add the aliased structure with the field I needed.

    I hid the original field and added the new field with the same exact properties with the exception of the PV. On the chk event of the new field, I set the original field to the value of the new one. On form_display, I set the value of the new field to the original so that it would properly display on the screen.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans