Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: pls help datagrid problem
boy
Posts: 7
 
pls help datagrid problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Mar 07 1:56 PM
fiogf49gjkf0d
i've updated a column in a table but the update is not reflecting on the datagrid. Its a checkbox column(if value is "T" then checked else then uncheck)
what seems to be the problem here?
[Reply][Quote]
Lloy Sanders
Posts: 69
 
Re: pls help datagrid problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Mar 07 8:10 AM
fiogf49gjkf0d
Are you calling DataGrid1.Refresh after updating the value? Are you setting the recordset property of the datagrid? You may want to include the code you are using here so someone can help you.
[Reply][Quote]
boy
Posts: 7
 
Re: pls help datagrid problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Mar 07 10:22 AM
fiogf49gjkf0d
Thanks for replying. Heres the code:

strFlag = "T"

Set objCon = Application.GetNewConnection
strSQL = "UPDATE SALESPROCESSAUDIT SET" 'DNL
strSQL = strSQL & " COMPLETED = '" & strFlag &"'" 'DNL
strSQL = strSQL & " WHERE SALESPROCESSAUDITID ='QBPDVA000HOK'" 'DNL
objCon.Execute(strSQL)
grdSalesProcess.Refresh

i also tried reruning the whole application but still the update didnt reflect the datagrid. am i missing something?
[Reply][Quote]
Lloy Sanders
Posts: 69
 
Re: pls help datagrid problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Mar 07 2:27 PM
fiogf49gjkf0d
This looks OK to me. Assuming grdSalesProcess is the name of the correct datagrid, here are a few other things to look for:
Is there any code that sets the recordset property (e.g. grdSalesProcess.Recordset = ...)
Is 'QBPDVA000HOK' the correct id? What happens if you run the following SQL From Administrator?
Select Completed From SalesProcessAudit Where SalesProcessAuditId = 'QBPDCA000HOK'
Are you sure the code that updates the database is actually running?
[Reply][Quote]
boy
Posts: 7
 
Re: pls help datagrid problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Mar 07 3:41 PM
fiogf49gjkf0d
'QBPDVA000HOK' is a valid id. I'm sure the code that updates the databse is actually running. it executes the sql statement but the update is not reflecting on the datagrid. i check sql managestudio after running the code the value is already updated but on the datagrid column is still not checked. i also rerunning the whole application but still the column isn't checked at all. pls help i'm stuck at this problem.

theres no code that sets the recordset property, but theres a bunch of included script in there i just don't know w/ those included scripts. i think this sales process also checks for completeddate idk i'll have to try updating the completeddate as well and see if whether updating that thing will solve the problem.

thanks!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/27/2024 8:38:15 AM