on 10-17-2015 2:35 PM
Hello experts.
I have customized Work Manager 6.2 with Meter Management to extend Register Object with extra fields.
Now, the Register Object have 4 z fields that are working ok.
The problem is with a collections that calls the Register Object.
If I check the values coming for each object on ATE, I can see:
Main Object --> MeterReadingUnits Collection --> Meters Collection --> Register Collection --> Register item contains all the z fields with the values
Main Object --> MeterPeriodicRegisters Collection --> Register Collection --> Register item is with all the values, except my z fields, that are empty
I don't understand why this is happening when both are calling Register Collection.
Manish,
In Agentry you have added this z property that's why you can see these z property under Periodic collection also. Are you sure while fetching PeriodicMeter you are also setting up this values in Java?
In java to fetch Register properties normally we use different bapi classes.
e.g: 1. MeterPeriodicReadingFetchBAPI
2. MeterInstallationBAPI
3. Meter DisconnectionBAPI.
To set you z properties in to PeriodicMeter collection you have to add this to below method in Register class.
public void setProperties(JCO.Table registerTable, JCO.Table limitsTable, JCO.Table reasonsTable, JCO.Table previousReadingTable, JCO.Table equipmentTable) throws Exception
{
setzXXX(XXX)
}
Please cross verify this.
Thanks
Ajitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajitesh.
I added the properties in Register object in Java, in fact, the data is coming to the object, the problem is the following:
What happen is that the Register object is called by 2 collections, MeterReadingUnits and MeterPeriodicRegisters, and is working only in MeterReadingUnits.
Do you think that modifying something in Java I can add things to the collection?
Regards.
Hi Manish,
You must have extended Register object class in order to include your custom fields. Now what I think is, while fetching the data for MeterPeriodicRegisters collection, might be the control is going to the Standard Register Object class instead your Custom Register object class. You can find this out using Java debug.
Best Regards,
Sujit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.