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"
SL Version : SL-2011 SP2
Your comments would be really helpful and appreciate thanks in advance.
Thanks,
Karthik
Hi Perumal,
It works after i used SetDefaults to unselect the check box. Thanks for your time.
Thanks,
Karthik
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
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148