I have an OpenEdge Service Object defined with a document template. I am trying to construct a link where I need to get hold of the templateId. How can I reliably retrieve the templateId using either server side or client side scripting.
Can any of the following be used to find it: Original Id, integration Code, or Template Name?
Thanks for any help
A new api getIdByOriginalId has been added to 4.2 Release. It is valid for all the metadata's.
We do not have such an api at the moment which can give you the id given original id/integration code/name etc. But, we can try to help you if you can explain your use case a bit more?
I have an Openedge Service object with a document template defined (format application/pdf). To actually see this template merged for one of the records the user has to:
select the main menu
then select the drop down menu
Select the template from the list
Choose one of the records to preview
Finally the user can now see a record merged with the document template
The link to this final page is something like this: localhost:8830/.../Template
It would be more preferable for one of the following:
Select the main menu
Select a link within the grid to bring up the merged document template record.
view a record
click a button or link within the view page to bring up the merged document template.
The whole link can be constructed easily enough apart from the templateId which changes for every customer.
In the case of OESO object's, you can map a JSDO field to a Document Template Field in Rollbase during Object import/create. Once that is done, you can create a document template and set this template in the created Document Template field. This field can then be shown on list views, view pages of the object's record which when clicked will display the generated document.
ok, thanks guys I will give this a try as it sounds like the perfect solution