Dear,
BE exposed as data objects.
we are using invokes that can have datasets in there input or output parameters.
In the heading of your BE you can find:
@progress.service.resource FILE(name="", URI="", schemaName="", schemaFile="").
This works and add the dataset to your catalog.
But how I can do this for my custom methods (invokes)?
Or is this only possible by adding this to the schema defined in you main annotation.
Kind regards
Kevin Hermans
Hello Kevin,
The schemaName property is used to represent the schema of the resource/Business Entity.
The schema for dataset parameters used in invoke methods is handled different.
If the dataset is the same as the one for the resource, you would use the schema property.
For other datasets, the general idea is that these schemes would be generated into the catalog as a separate property called dataDefinitions.
There is also an annotation that you can use to indicate that you want to generate the schema into the catalog.
Example:
@progress.service.dataDefinition(name="eOrder").
DEFINE TEMP-TABLE ttTest
FIELD ttCode AS INTEGER
FIELD ttDesc AS CHARACTER.
Note: In a future version this generation will be done automatically without using the annotation.
Please notice that to call invoke operations, you just need to pass the appropriate parameters. You do not need the info in the catalog.
Are you trying to consume the schema from the catalog?
I hope this helps,
Edsel
Hello Kevin,
The schemaName property is used to represent the schema of the resource/Business Entity.
The schema for dataset parameters used in invoke methods is handled different.
If the dataset is the same as the one for the resource, you would use the schema property.
For other datasets, the general idea is that these schemes would be generated into the catalog as a separate property called dataDefinitions.
There is also an annotation that you can use to indicate that you want to generate the schema into the catalog.
Example:
@progress.service.dataDefinition(name="eOrder").
DEFINE TEMP-TABLE ttTest
FIELD ttCode AS INTEGER
FIELD ttDesc AS CHARACTER.
Note: In a future version this generation will be done automatically without using the annotation.
Please notice that to call invoke operations, you just need to pass the appropriate parameters. You do not need the info in the catalog.
Are you trying to consume the schema from the catalog?
I hope this helps,
Edsel
Thank you Edsel this does the job!
Oh sorry didn't respond on your question.
We know we don't need the data in the catalog.
But we need it to parse the catalog for our .net team that we can generate a client and use intellisense etc.. in visual studio.