Skip to main content

Notifications

Microsoft Dynamics SL forum
Answered

Enable to disable control in Invoice and adjustment screen

Posted on by 1,190

Hello there,

I just tried to customize the invoice and adjustment screen to display the FB detail records with the draft number at the top of the grid and the FB detail records without draft # at the bottom of the grid by click on the custom button even though it is standard one but we are applying few filters in the result set. When i tried to load the grid the select check box is checked automatically for all the lineitems since it should be checked for the records with draft number. The Select check box is an standard control with temporary buffer table so i'm not able to assign the value through back end. I tried to enable the check box and set the value but it doesn't seem working.

code snippet:

I tried both of the methods:

Method 1:

Call setprop("cselect", "PROP_ENABLED", 1)
Call SetObjectValue("cselect", "N")
Call setprop("cselect", "PROP_ENABLED", 0)

Method 2:

sivMyApp.Controls("cSelect").Properties(PROP_ENABLED) = "False"

sivMyApp.Controls("cSelect").value = "N"

Invoice-_2600_-Adj_5F00_4.jpg

SL Version :  SL-2011 SP2

Your comments would be really helpful and appreciate thanks in advance.

Thanks,

Karthik

Categories:
  • Verified answer
    RE: Enable to disable control in Invoice and adjustment screen

    Hi Perumal,

    It works after i used SetDefaults to unselect the check box. Thanks for your time.

    Thanks,

    Karthik

  • RE: Enable to disable control in Invoice and adjustment screen

    Hi Perumal,

    Thanks for your valuable answer and I already tried this solution but not able to assign the value to buffer since its a standard unbound control and it does not show up in the customization part. Any other thoughts?

    Thanks,

    Karthik

  • Suggested answer
    Ram Peru Profile Picture
    Ram Peru 2,830 on at
    RE: Enable to disable control in Invoice and adjustment screen

    Hello Karthik,

    It's my understanding that you are having the custom button to fill the records in the grid based on the Header selection criteria. The Select box is automatically checked once you load the records in the Grid. This could be the standard behavior in that screen.

    You are trying to load the grid without select box is checked. If that is the case, you have to just loop the grid to set the value of select box after your load grid functionality.

    Sample code in Grip Loop:

    bdetailgrid.select = "N"

    Call MUpdate(xxxxxx)

    Here XXXXX should be your Grid memory Handle. Hope this helps.

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans