Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 25, 2025 
 
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: Form does not store new DB-entries
Marty05
Posts: 68
 
Form does not store new DB-entriesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 08 7:02 AM
Hi,
I made a customized form (SLX 6.2.6 Oracle 9i) to add and edit the ASSOCIATION-Table of SLX.
The main view is a datagrid showing all associations of current account. Works fine.

The edit form is called
a) for new: Application.BasicFunctions.ShowViewForRecord "association", "Personal:My_Associations_Edit", ""
b) for editing: Application.BasicFunctions.ShowViewForRecord "association", "Personal:My_Associations_Edit", dgAsso.GetCurrentField("")

(This mechanism works for many others forms as well.)

Editing data of a given data record works fine in form Personal:My_Associations_Edit.
But creating new entries just does not work. The new entry wont be created.

Form:
+ All db-fields are connected to input fields (.Text). (except create/modify - date/user)
+ AXFormChange does:
if Application.BasicFunctions.CurrentViewID = "" then
edID.Text = Application.BasicFunctions.GetIDFor("ASSOCIATION")
edAccID.Text = Application.BasicFunctions.CurrentAccountID
if Application.MainViews.ActiveView.BaseTable = "ACCOUNT" Then edAccAss.Text = "T" Else edAccAss.Text = "F"
end if

that's all - nothing else happens in the form

any ideas where to look for the failure? i have no more idea after investigation for 2 days...

Thanks!
Martin
[Reply][Quote]
Steve Robertson
Posts: 146
 
Re: Form does not store new DB-entriesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 08 8:40 AM
Hi Martin,

Make sure you are populating Fromid and Toid fields as they are not allowed to be null, as well as the normal primary key field of associationid.

You could run SLXProfiler (I think it works on Oracle) and see what is trying to happen, you should see what the insert statement is trying to do and hopefully it will report the error.

Cheers,

Steve
[Reply][Quote]
Marty05
Posts: 68
 
Re: Form does not store new DB-entriesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 08 8:46 AM
Hi Steve,
I already tried the Profiler, it showed no INSERT-statement.
Anyway - sometimes you need a good soul to give you the needed hint as you dont notice the obviouse. I checked it 2 times but didnt see, that TOID was provided 2 times, but FROMID not a single time....
Thanks for leading me, now it works
Martin
[Reply][Quote]
Steve Robertson
Posts: 146
 
Re: Form does not store new DB-entriesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 08 8:49 AM
Hi Martin,

Glad to help!

Cheers,

Steve
[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 © 2025 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): 8/25/2025 10:10:39 AM