This is a migrated thread and some comments may be shown as answers.

Fields expressions vs ReportItem

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steffen
Top achievements
Rank 1
Steffen asked on 26 Feb 2013, 04:43 PM
When using ObjectDatasources, it makes sense, not to work with values of properties/fields,
but to get the owner/parent of the property.

1. So you have the type information of the owner and the type information of each property.
2. You can convert data, and format data, and localize data by their type information...

Inside DataSource binded table...

=MyFunction(Fields.MyPpropertyName)  //  --  works fine
 
=MyFunction(ReportItem.DataObject.RawData , "MyPpropertyName"//  --   works fine
 
=MyFunction(Fields, "MyPpropertyName")   //--  does not work - why is it not a valid expression?

Or is there another better shortcut to get the "Fields object" itself, i should use?

thank you
Steffen

1 Answer, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 01 Mar 2013, 07:26 AM
I believe that Fields is some kind of helper and not the actual data-object because you can skip the Fields
for e.g. "= YourFieldname" is equal to "= Fields.YourFieldName" (just to be clear that it is a Field). 
Also what is the point in calling 
=MyFunction(Fields, "MyPpropertyName"
when you can just say
=MyFunction(Fields.MyPpropertyName
or
=MyFunction(Fields("MyPpropertyName"))


Tags
General Discussions
Asked by
Steffen
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Share this question
or