Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

datawindow child, how to change the dataobject?

2 posts in DataWindow Last posting was on 2008-11-07 16:52:20.0Z
Sharon Posted on 2008-11-07 15:22:10.0Z
Sender: 22e9.49145baa.1804289383@sybase.com
From: Sharon
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: datawindow child, how to change the dataobject?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49145d22.2329.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 7 Nov 2008 07:22:10 -0800
X-Trace: forums-1-dub 1226071330 10.22.241.41 (7 Nov 2008 07:22:10 -0800)
X-Original-Trace: 7 Nov 2008 07:22:10 -0800, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88129
Article PK: 417385

How do I change the dataobject on a child datawindow?
I tried the following code but
ldc_item_code.dataobject =
'd_dddw_contract_item_by_contract'
is not correct.
Any suggestions?

// Set the transaction object for the child & retrieve
datawindowchild ldc_item_code
dw_task.GetChild('item_code', ldc_item_code)
ldc_item_code.dataobject =
'd_dddw_contract_item_by_contract'
ldc_item_code.SetTransObject(SQLCA)
ldc_item_code.Retrieve(ii_id_contract)


scionyx Posted on 2008-11-07 16:52:20.0Z
From: scionyx <sfield@scionyx.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: datawindow child, how to change the dataobject?
Date: Fri, 7 Nov 2008 08:52:20 -0800 (PST)
Organization: http://groups.google.com
Lines: 32
Message-ID: <338a972c-ea30-4ed8-b914-71c3715d638f@f40g2000pri.googlegroups.com>
References: <49145d22.2329.1681692777@sybase.com>
NNTP-Posting-Host: 170.104.61.146
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1226076740 26326 127.0.0.1 (7 Nov 2008 16:52:20 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 7 Nov 2008 16:52:20 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f40g2000pri.googlegroups.com; posting-host=170.104.61.146; posting-account=-kzySgkAAAAqb7jiNSJ1XKXlAz27meBa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!f40g2000pri.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88133
Article PK: 417388

I think what you want is

dw_task.object.item_code.dddw.name='d_dddw_contract_item_by_contract';

You may have to check/reset other dddw.properties too, for example, if
the code and display columns don't match original.

// The new sequence...
dw_task.object.item_code.dddw.name='d_dddw_contract_item_by_contract';
dw_task.GetChild('item_code', ldc_item_code)
ldc_item_code.SetTransObject(SQLCA)
ldc_item_code.Retrieve(ii_id_contract)

On Nov 7, 7:22 am, Sharon wrote:
> How do I change the dataobject on a child datawindow?
> I tried the following code but
> ldc_item_code.dataobject =
> 'd_dddw_contract_item_by_contract'
> is not correct.
> Any suggestions?
>
> // Set the transaction object for the child & retrieve
> datawindowchild ldc_item_code
> dw_task.GetChild('item_code', ldc_item_code)
> ldc_item_code.dataobject =
> 'd_dddw_contract_item_by_contract'
> ldc_item_code.SetTransObject(SQLCA)
> ldc_item_code.Retrieve(ii_id_contract)