Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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!
 Administration Forums - General Administration
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General Administration | New ThreadView:  Search:  
 Author  Thread: Changing data in a field based off spreadsheet
Tom Burnett
Posts: 10
 
Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 May 11 2:42 PM

What is the best way to change data in a field for a list of accounts on an excel spreadsheet?  I have the slx account id for each line.     If I understand correctlyI should not do it with a SQL update, but through SLX. 


 


SLX 7.0.1

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 May 11 4:02 PM

you've lost me on this Tom....


 are you able to read the excel spreadsheet through a vbscript that you have written?


Are you able to come up with the values desired from the excel spreadsheet in a vbscript code?


you do SQL updates through SLX.....either a SQL statement, command object, or ADO recordset update.....


Please post your code here and we can quickly write an ADO Connection, Recordset object, populate the fields to be updated....update the ADO recordset through SLX, close the ADO object, loop through the spreadsheet, etc.

[Reply][Quote]
Tom Burnett
Posts: 10
 
Re: Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 May 11 8:25 AM

Sorry to be vague.  I don't really have a lot of experience in this area.  Basically I have a list of accounts in an excel spreadsheet with data for accountid, account name, and account status.  I Need to update the matching record in SalesLogix with the new status.  Where do I begin if I want to learn how to do this?


I have done this type of thing before directly on a SQL databse through the Enterprise Manager. In that instance I created a temporary table from the spreadsheet and did a table to table update. 

[Reply][Quote]
Lane
Posts: 121
 
Re: Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 May 11 10:58 AM

Look in the "asge saleslogix lan developers reference" under "COM"



Sub ExcelButtonClick(Sender)


Dim objSLXApp


Dim objSLXBasicFunctions


set objSLXApp = CreateObject("SalesLogix.SlxApplication")


set objSLXBasicFunctions = objSLXApp.BasicFunctions


msgbox objSLXBasicFunctions.CurrentUserID


set objSLXBasicFunctions = nothing


set objSLXApp = nothing


End Sub




 


[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 May 11 2:52 PM
fiogf49gjkf0d

You can bring an EXCEL spreadsheet into a SQL Server table as well.....either through DTS or SSIS....Import\Export.....


then run your table joined to table update statement....just like you did before.


Did you need to Synch the data to remotes???


OR you can write a vbScript....


 


Scribe or Inaport or Starfish ETL can do this as well....

[Reply][Quote]
John Paul Welther
Posts: 27
 
Re: Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Aug 11 9:45 AM
fiogf49gjkf0d



Depending on the number or records you are updating, I have a not so elegant solution. You can use excel to build individual update statements then cut and past them into a text document and use “Execute SQl” to run them all. This will be sent to remotes/disconnected clients. I have done this with a couple thousand updated before and it was effective. You just need to put a “;” at the end of each statements. If this is confusing I can through together a Google spreadsheet to show you what I’m talking about.

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Changing data in a field based off spreadsheetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Sep 11 3:18 PM
fiogf49gjkf0d

yea, I do that all of the time to even build code for VB Scripts.....or SQL to build SQL statements....

[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/26/2024 12:28:42 AM