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

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Enable to disable control in Invoice and adjustment screen

(0) ShareShare
ReportReport
Posted on by 1,202

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

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ram Peru Profile Picture
    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.

  • Karthik Sellamuthu Palanisamy Profile Picture
    1,202 on at
    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

  • Verified answer
    Karthik Sellamuthu Palanisamy Profile Picture
    1,202 on at
    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

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