Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope.
I still don't get this. I want to reference another textbox. I've tried these expressions below and get the same error. For instance, I'm referencing this from textbox6. I've put the data in a group, doesn't work. How do I reference different reportitems??? Thanks =ReportItems!textbox15 =ReportItems!ThresholdIncome.value =ReportItems!ThresholdIncome.value,"table1_Group1"
May 4th, 2006 11:54am

You should be able to reference textboxes in the same or a containing scope. This first expression would return you the textbox object. The second one should work if ThresholdIncome exists in the same or a containing scope. You can't explicitly specify the scope of a report item. Therefore the 3rd one wouldn't work. What error did you get with these expressions?
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2006 12:48am

Fang - Thanks for your help. Error I'm getting is what is in the subject - Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope. So does that mean I need to add a group and the textboxes can only know about each other in that group, but not any other textboxes on the report? That is what I don't understand. If it's all the same xml, why don't the controls know about each other?
May 6th, 2006 11:12pm

You can refer to textboxes in that group, and the ones in the containing scope of that group (i.e. outer groups all the way up to the report level). But you can't refer to textboxes in an inner group. The reason is that when the report is rendered (combining layout information with data), there will be multiple instances of the inner groups. For example, if the outer grouping is by country and the inner grouping is by state, you'll get multiple states for USA. We wouldn't know from which inner group instance you want to get the textbox value.
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2006 2:03am

Fang Wang - MSFT wrote: You can refer to textboxes in that group, and the ones in the containing scope of that group (i.e. outer groups all the way up to the report level). But you can't refer to textboxes in an inner group. The reason is that when the report is rendered (combining layout information with data), there will be multiple instances of the inner groups. For example, if the outer grouping is by country and the inner grouping is by state, you'll get multiple states for USA. We wouldn't know from which inner group instance you want to get the textbox value.any chance you or anyone could elaborate on this further? I am getting the exact same error, but I honestly dont understand the explanation. How are "groups" defined? Can I assign a text box to be in the same group as others? I have a bunch of textboxes on the form however, some of the textboxes read from different datasets. Is there no way to multiply two textboxes that read from two datasets and assign the result to another textbox?EDIT: OK, what the heck? I renamed the textboxes from defaults to something I could keep track of easier and now all of a sudden I can multiply two of them? How does that work????????
September 19th, 2008 1:44am

Fang Wang - MSFT wrote: You can refer to textboxes in that group, and the ones in the containing scope of that group (i.e. outer groups all the way up to the report level). But you can't refer to textboxes in an inner group. The reason is that when the report is rendered (combining layout information with data), there will be multiple instances of the inner groups. For example, if the outer grouping is by country and the inner grouping is by state, you'll get multiple states for USA. We wouldn't know from which inner group instance you want to get the textbox value. any chance you or anyone could elaborate on this further? I am getting the exact same error, but I honestly dont understand the explanation. How are "groups" defined? Can I assign a text box to be in the same group as others? I have a bunch of textboxes on the form however, some of the textboxes read from different datasets. Is there no way to multiply two textboxes that read from two datasets and assign the result to another textbox? EDIT: OK, what the heck? I renamed the textboxes from defaults to something I could keep track of easier and now all of a sudden I can multiply two of them? How does that work???????? I was able to reproduce the same thing you found. Rename the TextBoxes to your own variable name and then you can reference them. Doesn't make much sense, but it works.
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2012 12:09pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics