Home Component Writing

Question on a tppLabel desendant

edited September 2002 in Component Writing
I'm making a TppLanguageCaption that will get a enduser caption from our
database based on the caption in the component.

however I run in a litle problem with showing the Datapipeline and
datafield propertiy allong with the caption property in the toolbar, I
need all.

An other question is can I invoke a query without having to setup a
datapipeline. this component will be in our application and so no need
to have the users specify the source/ sql for collecting the specific
caption text. Now I am looping through all components hoping to find a
dbaware and finding its database pointer but there must be a better way
as I hope to have be abble to avoid having to do this for very one of my
compnent that is droped on the report.

Thanks for the help.

Walter
CPI AG

Comments

  • edited September 2002
    You should be able to override the IsDataAware method in your descendent and
    return true. This should cause the toolbar to show the data pipeline and
    datafield boxes.

    Create a single pipeline that isn't connected to the report. Use this
    pipeline for all of the components that you have this special dataset. It
    will return the first record only since it isn't connected to a report
    component and so there is no data traversal engine to traverse the records.
    You can use a TppJITPipeline to do this.

    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Hi Jim.

    I know about the dataAware, I have found the artical, however I can not
    get to show the Caption as well as the DataAware edit fields in the
    toolbar. I have solved it by using a popup menu, not as good but it will
    do unless you know how to show all 3.

    I use A TQuery in my component to retrieve & manage the translation. I
    get the reports connection from the
    TppDBDatapipeline.datasource.dataset.databasename and seems to work well.

    Anyway, excelent tool, and super service.

    Walter
    CPI

  • edited September 2002
    You can't show all three in the toolbar. The best solution is going to be
    to do what you are doing. You could place all three in the dialog and leave
    the caption in the toolbar additionally.

    You could also descend from TppDBText to get the DataPipeline and Datafield
    drop edit boxes in the toolbar. Then you can provide for the Caption
    property in the popup menu. These are the options available.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.