Exception if Dataset is empty

Hello all,

i have a report with one PageHeader band.
Into PageHeader band exists two MemoViews.
MemoView1 contains [order."STREET"] and
MemoView2 contains [delivery."STREET"]

If the delivery dataset is empty i get an error.
How can i check empty dataset in OnBeforePrint?

regards
Kostas

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 1:21AM
    leave the memoview empty don't connect it to a dataset.
    assuming engine convert null property has not been changed
    in the obp event write code to test for empty string and add text to the memoview.
    if not (<delivery."STREET"> = ' ') then memo2.text:= '[delivery."STREET"]';


Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.