Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Setting the field at run time in the nested report

Posted on 2006-04-21
2
Medium Priority
?
305 Views
Last Modified: 2013-12-26
How do you set the text field in the nested report.
I am able to do it in the original dw ( the main report window), but what is the syntax to access the dw that is part of that main one.

Here is what I have to set the field of the original:
w_reports.dw_1.object.revision_number.text = sle_1.text

dw_1 is a nested report that has dw_2, dw_3, dw_4 in it.
If I need to set the "shipper" field in dw_2. how do I do that?

Thanks
0
Comment
Question by:Namik48075
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
berXpert earned 300 total points
ID: 16507812
Hi Namik,

To access properties, and fields of your DW in a nested report you need to use DatawindowChild variable:



DatawindowChild ldwch_dw_2

dw_1.GetChild("dw_2", ldwch_dw_2)

// If it's a field
ldwch_dw_2.SetItem(1, "shipper", sle_1.Text)
// If it's a Text control
ldwch_dw_2.Modify("t_1.text = '" + sle_1.Text + "'")


I hop it helps,

BerX
0
 
LVL 5

Expert Comment

by:berXpert
ID: 16509060
By the way,

you can get sample code here:

http://berxpert.googlepages.com/powerbuilder


Regards,

BerXpert
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question