HARLIBRA
asked on
Trying to save a datawindow in a table column of type longvarchar in PowerBuilder 10
Hi there. We are trying to save a datawindow syntax into a table column of type longvarchar.
It was working fine previously with 3 groupby clauses but as soon as we add 4th group by
it won't load. all the groupby's are defined in the datawindow painter The trailer for this new group has 10 computed fields. The datawindow has about 35 columns including computed fields in the trailer bands
for the groupby's. If I remove all computed fields in the new trailer band the datawindow saves fine.
It was working fine previously with 3 groupby clauses but as soon as we add 4th group by
it won't load. all the groupby's are defined in the datawindow painter The trailer for this new group has 10 computed fields. The datawindow has about 35 columns including computed fields in the trailer bands
for the groupby's. If I remove all computed fields in the new trailer band the datawindow saves fine.
/******** Validate the Syntax of Datawindow *************/
ls_data_source = event ue_datawindow_syntax()
IF ls_data_source = "FALSE" OR (dw_1.create(ls_data_source,ls_err_buffer ) = -1 ) THEN
messagebox("Dynamic Reports","Failed to Upload the Dynamic Reports " + is_datawindow_name + ".~r~n Please Contact with IS Department",true)
IF dw_report_header.deleterow(0) = 1 THEN
dw_report_header.update()
triggerevent ("ue_reset")
RETURN -1
END IF
END IF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what is the code in 'ue_datawindow_syntax' and what it returns to 'ls_data_source'?
Paste the code and value of ls_data_source here.
As you are creating or changing anything dynamically, and there is some PB datawindow syntax error which cause the problem.
Regards,
Sandeep
Paste the code and value of ls_data_source here.
As you are creating or changing anything dynamically, and there is some PB datawindow syntax error which cause the problem.
Regards,
Sandeep
ASKER
is being checked before saving. I have checked SQLCA.SQLCODE. It is 0. The command
dw_1.create(ls_data_source
The ls_err_buffer has a value = "incorrect syntax" .
iS there a way to check the datawindow syntax and why it is failing
Thanks