datawindow

Powerbuilder: ImportFile of UTF-8 (Converting UTF-8 to ANSI)

牧云@^-^@ 提交于 2021-01-28 06:50:31
问题 My Powerbuilder version is 6.5, cannot use a higher version as this is what I am supporting. My problem is, when I am doing dw_1.ImportFile(file) the first row and first column has a funny string like this:  Which I dont understand until I tried opening the file and saving it to a new text file and trying to import that new file.which worked flawlessly without the funny string. My conclusion is that this is happening because the file is UTF-8 (as shown in NOTEPAD++) and the new file is

PowerBuilder 12.5 Web Forms - Columns Not Editable or Lost Tab Order upon Deploy

為{幸葍}努か 提交于 2019-12-23 15:49:52
问题 I am a seasoned PB developer, but primarily with the typical client-server architecture and am really having problems with a Web Forms application deployed to IIS7.5 using PB12.5 Classic . I am creating an updateable dataobject (web service) that works perfectly in design mode, however when run from deployed IIS server, all of the columns I have set to a positive tab order (editable) , appear as if they have a tab order of zero . I cannot select a row, cannot get focus to a column, the only

Load Excel File To Powerbuilder

五迷三道 提交于 2019-12-12 02:46:26
问题 I have this code for buttonclicked event to load excel and text file to powerbuilder and the excel data is not copied i.e ll_return_xls <= 0 and thus when i want to load it to db i will get error since it has no value or data in it...The problem here is i get the data from text file but not from the excel file...Any help will be appreciated long ll_return long ll_return_xls OLEObject excel IF rb_file.checked then IF dwo.Name = "b_browse_meters" THEN // Browse Button Clicked for Text ll_return

How to disable a single row in a datawindow?

我的未来我决定 提交于 2019-12-11 05:06:59
问题 Can anybody help me that how can I protect individual column of an individual row, though my datawindow has more than one row. I am writing a code like this: dw_1.Modify("column_name.protect = '1'") However it is making all my rows disabled. 回答1: You need to have some sort of conditional statement for the particular row/column you wish to protect. One way is to have an additional field you set programatically like. dw_1.setitem(1,"protect_me","Y") Then in your other column you set an

Doing a database lookup in formatting expression

本小妞迷上赌 提交于 2019-12-11 04:56:50
问题 Where it says "blob_curr = 1" I need to do a check to see if the object id exists in another table. I have no idea how to do this. This is an application that was written several years ago and I am a co-op student who was asked to make some changes to it so I have very limited knowledge of this environment. This is Powerbuilder 9.0 if that helps. 回答1: You have two options here: 1) You can update your datawindow query to include an additional field that returns whether the item exists in the

How to import Excel file into DataWindow

試著忘記壹切 提交于 2019-12-07 08:41:03
问题 I want to import the .xlsx file into PowerBuilder DataWindow, I know we can able to do it with CSV format, but the user wants to use the xlsx format, Please let me know if there are any options to import. 回答1: you can import xls like this (this is our import function). Of course you have to know where to put each columns value from the excel to the datawindow. I think you do not need such a sophisticated solution, but there are the main guidelines: int li_rtn, li_i string ls_range long ll

How to import Excel file into DataWindow

你说的曾经没有我的故事 提交于 2019-12-05 15:53:01
I want to import the .xlsx file into PowerBuilder DataWindow, I know we can able to do it with CSV format, but the user wants to use the xlsx format, Please let me know if there are any options to import. DARKinVADER you can import xls like this (this is our import function). Of course you have to know where to put each columns value from the excel to the datawindow. I think you do not need such a sophisticated solution, but there are the main guidelines: int li_rtn, li_i string ls_range long ll_excel_rows, ll_max_rows, ll_max_columns long ll_i, ll_j string lsa_column_names[], ls_mod long lla

PowerBuilder 12.5 Classic PDF SaveAs creating files of 0 size on Win7 x64

断了今生、忘了曾经 提交于 2019-12-02 08:23:50
问题 Platform: Windows 7 x64 PB 12.5 Classic Ghostscript 9.07 (both x32 and x64 are installed) HP Laserjet PS printer installed as "Sybase DataWindow PS" Datawindow's Data Export tab has Format to configure: PDF and Method: Distill . Both the checkboxes "Distill custom postscript" and "Print using XSLFOP" are unchecked. I click File | Run/Preview and File | Save Rows As and select PDF as save as type and enter a pdf file name and click on Save. It says in a message box that Save Rows As failed . I

Relation does not exist

江枫思渺然 提交于 2019-11-29 12:46:30
I have just connected Powerbuilder with PostgreSQL through ODBC, but something goes wrong when I'm trying to create a datawindow! I can't understand where is the problem. I will be so grateful to receive any answers. The error: Cannot create DataWindow SQLSTATE=42P01 ERROR:relation "core sample" does not exist; No query has been executed with that handle SELECT CORE_SAMPLE.N_CORE, CORE_SAMPLE.DEPTH, CORE_SAMPLE.WELL_ID_WELL, CORE_SAMPLE.ID_CORE FROM CORE_SAM' Erwin Brandstetter Obviously, there is a mixup with names. "core sample" is not the same as CORE_SAMPLE . Hard to say more, based on

Relation does not exist

坚强是说给别人听的谎言 提交于 2019-11-28 05:06:15
问题 I have just connected Powerbuilder with PostgreSQL through ODBC, but something goes wrong when I'm trying to create a datawindow! I can't understand where is the problem. I will be so grateful to receive any answers. The error: Cannot create DataWindow SQLSTATE=42P01 ERROR:relation "core sample" does not exist; No query has been executed with that handle SELECT CORE_SAMPLE.N_CORE, CORE_SAMPLE.DEPTH, CORE_SAMPLE.WELL_ID_WELL, CORE_SAMPLE.ID_CORE FROM CORE_SAM' 回答1: Obviously, there is a mixup