-
Philip Troise
- PowerBuilder
- Monday, 11 May 2026 02:51 PM UTC
What is the best technique upon opening a window, to load an external datawindow with data from a database table.
If it was two tables, I would use the below logic. but the table I want to insert in is an external datawindow
INSERT INTO glacct
( id,
gl_acct,
gl_type,
gl_desc,
gl_seq,
gl_code,
gl_rept,
gl_group,
gl_tax_act,
gl_tax,
gl_tax_acct2,
gl_tax2,
gl_tax_acct3,
gl_tax3,
gl_sdi,
gl_default_amt,
gl_groups,
gl_sub_acct,
gl_kind,
gl_one_time,
gl_i_b,
gl_activate,
gl_additional_charges,
gl_tax4,
gl_tax_acct4,
gl_datetime_1,
gl_datetime_2,
gl_item_price,
gl_rgb,
gl_pos_menu,
gl_memo,
custom1_text,
custom2_text,
custom3_text,
custom4_text,
custom5_text,
custom1_long,
custom2_long,
custom3_long,
custom4_long,
custom5_long,
custom1_yesno,
custom2_yesno,
custom3_yesno,
custom4_yesno,
custom5_yesno,
custom1_currency,
custom2_currency,
custom3_currency,
custom4_currency,
custom5_currency,
gl_rgb_11 )
SELECT glacct.id,
glacct.gl_acct,
glacct.gl_type,
glacct.gl_desc,
glacct.gl_seq,
glacct.gl_code,
glacct.gl_rept,
glacct.gl_group,
glacct.gl_tax_act,
glacct.gl_tax,
glacct.gl_tax_acct2,
glacct.gl_tax2,
glacct.gl_tax_acct3,
glacct.gl_tax3,
glacct.gl_sdi,
glacct.gl_default_amt,
glacct.gl_groups,
glacct.gl_sub_acct,
glacct.gl_kind,
glacct.gl_one_time,
glacct.gl_i_b,
glacct.gl_activate,
glacct.gl_additional_charges,
glacct.gl_tax4,
glacct.gl_tax_acct4,
glacct.gl_datetime_1,
glacct.gl_datetime_2,
glacct.gl_item_price,
glacct.gl_rgb,
glacct.gl_pos_menu,
glacct.gl_memo,
glacct.custom1_text,
glacct.custom2_text,
glacct.custom3_text,
glacct.custom4_text,
glacct.custom5_text,
glacct.custom1_long,
glacct.custom2_long,
glacct.custom3_long,
glacct.custom4_long,
glacct.custom5_long,
glacct.custom1_yesno,
glacct.custom2_yesno,
glacct.custom3_yesno,
glacct.custom4_yesno,
glacct.custom5_yesno,
glacct.custom1_currency,
glacct.custom2_currency,
glacct.custom3_currency,
glacct.custom4_currency,
glacct.custom5_currency,
glacct.gl_rgb_11
FROM glacct ;
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.