Notifications
Announcements
No record found.
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
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.
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
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,)
Are you just trying to modify what you see in a PV list when you hit F3?
Did you try to code this in default event of SAFTextBox?
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.