Hi
Below error pop-up after select drop-down list box (press tab) , how to fix this ?
Hi
Below error pop-up after select drop-down list box (press tab) , how to fix this ?
Hi Chen,
As I mentioned in your ticket #5836. the root cause of the issue is line 'ls_old = this.getitemstring(row, ls_column)' in itemchanged event. PowerServer has more stringent type checking than PowerBuilder, and you can't use getitemstring to get the value of a datetime column. Though it doesn’t report any error in PowerBuilder, the return value is null.
Please use the getitemdatetime function to solve the issue.
For example:
string ls_column
datetime ls_new, ls_old
ls_column = dwo.Name
ls_new = datetime(data)
ls_old = this.getitemdatetime(row, ls_column)
IF ls_new <> ls_old OR IsNull(ls_old) THEN
pb_save.Enabled = TRUE
END IF
Regards,
ZhaoKai
Hi Chen,
Please open a support ticket in the support portal and please provide a test case, Many thanks in advance.
https://www.appeon.com/standardsupport/
Regards,
ZhaoKai
did you change anything in the datawindow or database, like the type of the column?
If so, you should do a full redeploy.
DBMS & version :-
PowerServer mapped to the same DB instance :-
Yes worked fine in PB app.
Below is the calendar drop-down properties :-
Hi Chen May;
Does the application work OK when run as a native PB App?
Regards ... Chris
to add to this, you can't use getitemstring on any non-string column, not just datetime. so, for example, you get the same error with number/decimals. which i just ran into due to a typo for the column name today!