Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Creating custom scheduled jobs

$
0
0

Thanks for the helpful hints.

 

In addition to your hint, I also found the following in another discussion answer from PTC-167919.

 

ant -f bin/tools.xml class -Dclass.includes=*.java      -Dclass.source=C:\LoadECR

 

I used this syntax using my folder structure to complete the compile. 

 

My Java and class skills are not good.   As I was looking at the examples in the Customizer guide, I found references to fields like 'Default_Representation' in DerivedImage.  Since I was looking to use the DerivedImage table and the field Last Modified field, I was expecting to use the syntax 'Last_Modified' but keep getting 'cannot find symbol' in reference to using 'Last_Modified' during the compile.

 

I can't believe how difficult it seems to be to find references to the field names for use in the queryspecs.  I obviously am still missing where to find this info.  In the report management tool, Last Modified field is in the DerivedImage table.

 

*** Last_Modified as a date field - I did see reference to ModifyStampA2 ***

            SearchCondition sc2 =

                new SearchCondition(DerivedImage.class,

                                    DerivedImage.Last_Modified,

                                    SearchCondition.LESS_THAN, DateExpression.newExpression("2012-01-01"),

                                    0L);

 

There must be some other documentation that is worth reading that I haven't come across.

 

Thanks,

Mike


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>