Setting the field at run time in the nested report

Posted on 2006-04-21
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?

Question by:Namik48075
    LVL 5

    Accepted Solution

    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,

    LVL 5

    Expert Comment

    By the way,

    you can get sample code here:



    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deletiā€¦
    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 and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now