Skip to content

Commit

Permalink
First Contact Manager Table Defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mt1976 committed Nov 24, 2021
1 parent 195cbb0 commit 4104c06
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions data/in/cmnotes.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# What to generate
create_application=y
create_dao=y
create_datamodel=y
create_job=n
create_menu=y
create_html=y
create_adaptor=y
# actions - view/list are mandatory
can_edit=n
can_new=n
can_delete=n
can_list=y
can_save=n
can_view=y
can_export=y
# use values can be db or list (db will attempt to connect to a db and extract data from the table to get the fields list)
use=db
# COmmon application properties
FriendlyName=Customer Notes
objectname=CMNotes
endpointroot=
querystring=ID
queryfield=noteId
objectglyph=fas fa-poo
textclass=""
projectrepo=github.com/mt1976/mwt-go-dev
propertiesOverride=Siena
# If automatic generation of the application is true, then the following values are used
server=eb-ldn-pc105
port=1433
user=rob
password=rob123
database=ReportingDb_sal_prd_demo_sys-3
schema=SRS
sqlTableName=contactManagerNote
sqlSearchID=noteId
#ReverseLookup=CashBalance
hasEnrichments=n
isSpecial=n
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ func getFieldDefinitions_DB(e enrichments, p map[string]string) enrichments {
}
//fmt.Printf("db: %v\n", db)

tsql := fmt.Sprintf("USE %s EXEC sp_columns '%s'", p["database"], p["sqltablename"])

//tsql := fmt.Sprintf("USE %s EXEC sp_columns '%s'", p["database"], p["sqltablename"])
tsql := fmt.Sprintf("EXEC sp_columns '%s'", p["sqltablename"])
//logs.Query(tsql)
results, noFields, err := das.Query(db, tsql)
//fmt.Printf("results: %v\n", results)
Expand Down

0 comments on commit 4104c06

Please sign in to comment.