cancel
Showing results for 
Search instead for 
Did you mean: 

PowerBuilder DW SaveAs Cancel

11-04-2016 3:32 PM
1380 views 5 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,

I am using PB 12.5.

How do I know that a user selected Cancel in PB SaveAs dialog? li_ret = dw_1.SaveAs()

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Powerbuilder returns -1 if the user cancels the SaveAs dialog. But it also returns -1 if the save fails because of other reasons.

So the only way to know that user cancels the dialog is to show your own SaveAs dialog as Roland suggested.

Answers (3)

Answers (3)

Former Member
0 Likes

I'm using, Powerbuilder 12.5. Where can I download maintenace bug fixed download ?

Former Member
0 Likes

Thanks Rene.

I think Appeon should update this return code - maybe return 0 if user cancels.

Former Member
0 Likes

You could use GetFileSaveName instead and then pass the returned 'pathname' to the SaveAs with a hard coded SaveAsType.

Former Member
0 Likes

Thanks Roland. But I do not know what the user wants to save as.