Dear All,
I've got a parameterized view that I have created as follows:
create sql view as SELECT T_worklog.ip_work_lo,;
T_worklog.i_activity,;
T_worklog.i_bf,;
T_worklog.f_date,;
T_worklog.f_ncode,;
T_worklog.f_ndesign,;
T_worklog.f_ntest,;
T_worklog.f_ndocs,;
T_worklog.f_ninfoman,;
T_worklog.f_notes,;
T_activities.ip_activity,;
T_activities.f_name as v_act_name,;
T_bfs.ip_bf,;
T_bfs.f_abbrev as v_bf_abbrev;
FROM (worklog_db!t_worklog;
INNER JOIN worklog_db!t_activities;
ON T_worklog.i_activity = T_activities.ip_activity);
INNER JOIN worklog_db!t_bfs ;
ON T_worklog.i_bf = T_bfs.ip_bf ;
WHERE T_worklog.i_owner = cp_iOwner;
ORDER BY T_worklog.f_date
dbsetprop( "v_worklog.f_ncode", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ndocs", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ndesign", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ntest", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ninfoman", "field", "Updatable", .T.)
dbsetprop( "v_worklog.i_bf", "field", "Updatable", .T.)
dbsetprop( "v_worklog.i_activity", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_notes", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_date", "field", "Updatable", .T.)
dbsetprop( "v_worklog", "view", "SendUpdates", .T.)
dbsetprop( "v_worklog", "view", "tables", "worklog_db!t_worklog,worklog_db!t_activities,worklog_db!t_bfs"
dbsetprop( "v_worklog.f_ncode", "field", "UpdateName", "worklog_db!v_worklog.f_ncode"
dbsetprop( "v_worklog.f_ndesign", "field", "UpdateName", "worklog_db!v_worklog.f_ndesign"
dbsetprop( "v_worklog.f_ntest", "field", "UpdateName", "worklog_db!v_worklog.f_ntest"
dbsetprop( "v_worklog.f_ndocs", "field", "UpdateName", "worklog_db!v_worklog.f_ndocs"
dbsetprop( "v_worklog.f_ninfoman", "field", "UpdateName", "worklog_db!v_worklog.f_ninfoman"
dbsetprop( "v_worklog.f_date", "field", "UpdateName", "worklog_db!v_worklog.f_date"
dbsetprop( "v_worklog.i_bf", "field", "UpdateName", "worklog_db!v_worklog.i_bf"
dbsetprop( "v_worklog.i_activity", "field", "UpdateName", "worklog_db!v_worklog.i_activity"
dbsetprop( "v_worklog.f_notes", "field", "UpdateName", "worklog_db!v_worklog.f_notes"
dbsetprop( "v_worklog.ip_work_lo", "field", "UpdateName", "worklog_db!v_worklog.ip_work_lo"
It works fine for viewing the data, changing the value of the parameter cp_iOwner and issueing a Requery() produces the expected results.
However when I actually edit any values using the application or the browse window I get the following error:
No Update tables are specified. Use the tables properties of the cursor. (Erro 1491).
The output from Display Database is:
View v_worklog
*UpdateType 1
*WhereType 3
*FetchMemo TRUE
*ShareConnection FALSE
*SendUpdates TRUE
*Prepared FALSE
*CompareMemo TRUE
*FetchAsNeeded FALSE
*UseMemoSize 255
*FetchSize 100
*MaxRecords -1
*SourceType 1
*BatchUpdateCount1
*Tables worklog_db!t_worklog,worklog_db!t_activities,worklog_db!t_bfs
Field ip_work_lo
*KeyField FALSE
*Updatable TRUE
*UpdateName worklog_db!v_worklog.ip_work_lo
*DataType I
etc.
I've ommitted the SQL Property since it has been stated earlier.
Can you spot the problem??!!! I'm sure its ones of those blindingly obvious ones to the experienced eye, however it's driving me mad!
Many Thanks Andy.
I've got a parameterized view that I have created as follows:
create sql view as SELECT T_worklog.ip_work_lo,;
T_worklog.i_activity,;
T_worklog.i_bf,;
T_worklog.f_date,;
T_worklog.f_ncode,;
T_worklog.f_ndesign,;
T_worklog.f_ntest,;
T_worklog.f_ndocs,;
T_worklog.f_ninfoman,;
T_worklog.f_notes,;
T_activities.ip_activity,;
T_activities.f_name as v_act_name,;
T_bfs.ip_bf,;
T_bfs.f_abbrev as v_bf_abbrev;
FROM (worklog_db!t_worklog;
INNER JOIN worklog_db!t_activities;
ON T_worklog.i_activity = T_activities.ip_activity);
INNER JOIN worklog_db!t_bfs ;
ON T_worklog.i_bf = T_bfs.ip_bf ;
WHERE T_worklog.i_owner = cp_iOwner;
ORDER BY T_worklog.f_date
dbsetprop( "v_worklog.f_ncode", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ndocs", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ndesign", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ntest", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_ninfoman", "field", "Updatable", .T.)
dbsetprop( "v_worklog.i_bf", "field", "Updatable", .T.)
dbsetprop( "v_worklog.i_activity", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_notes", "field", "Updatable", .T.)
dbsetprop( "v_worklog.f_date", "field", "Updatable", .T.)
dbsetprop( "v_worklog", "view", "SendUpdates", .T.)
dbsetprop( "v_worklog", "view", "tables", "worklog_db!t_worklog,worklog_db!t_activities,worklog_db!t_bfs"
dbsetprop( "v_worklog.f_ncode", "field", "UpdateName", "worklog_db!v_worklog.f_ncode"
dbsetprop( "v_worklog.f_ndesign", "field", "UpdateName", "worklog_db!v_worklog.f_ndesign"
dbsetprop( "v_worklog.f_ntest", "field", "UpdateName", "worklog_db!v_worklog.f_ntest"
dbsetprop( "v_worklog.f_ndocs", "field", "UpdateName", "worklog_db!v_worklog.f_ndocs"
dbsetprop( "v_worklog.f_ninfoman", "field", "UpdateName", "worklog_db!v_worklog.f_ninfoman"
dbsetprop( "v_worklog.f_date", "field", "UpdateName", "worklog_db!v_worklog.f_date"
dbsetprop( "v_worklog.i_bf", "field", "UpdateName", "worklog_db!v_worklog.i_bf"
dbsetprop( "v_worklog.i_activity", "field", "UpdateName", "worklog_db!v_worklog.i_activity"
dbsetprop( "v_worklog.f_notes", "field", "UpdateName", "worklog_db!v_worklog.f_notes"
dbsetprop( "v_worklog.ip_work_lo", "field", "UpdateName", "worklog_db!v_worklog.ip_work_lo"
It works fine for viewing the data, changing the value of the parameter cp_iOwner and issueing a Requery() produces the expected results.
However when I actually edit any values using the application or the browse window I get the following error:
No Update tables are specified. Use the tables properties of the cursor. (Erro 1491).
The output from Display Database is:
View v_worklog
*UpdateType 1
*WhereType 3
*FetchMemo TRUE
*ShareConnection FALSE
*SendUpdates TRUE
*Prepared FALSE
*CompareMemo TRUE
*FetchAsNeeded FALSE
*UseMemoSize 255
*FetchSize 100
*MaxRecords -1
*SourceType 1
*BatchUpdateCount1
*Tables worklog_db!t_worklog,worklog_db!t_activities,worklog_db!t_bfs
Field ip_work_lo
*KeyField FALSE
*Updatable TRUE
*UpdateName worklog_db!v_worklog.ip_work_lo
*DataType I
etc.
I've ommitted the SQL Property since it has been stated earlier.
Can you spot the problem??!!! I'm sure its ones of those blindingly obvious ones to the experienced eye, however it's driving me mad!
Many Thanks Andy.