Skip to Content
avatar image
Former Member

open the smartform as a PDF in UI5

Hi All,

I do have one requirement where I need to generate the PDF from smartform and that has to open from Ui5.

Now I have created one smartform and created one RFC FM which covert the smartform to XSTRING format.

Now I need to create Odata service for which I have referred the below mentioned blog:

Display Smartform (PDF) in SAPUI5

But problem is: While I have created Entity Types and Entity set, Media also been checked

Service also implement for the same:

Activated successfully.

Now When I redefine the method: MPC_EXT and DPC_EXT, also activated successfully.

But in the project where I have created this entity type, Entity set and service , there are multiple already created. Now These redefine methods get called in those service also. So is there any check we can put that it should only call in case of our entity type, Entity set and service?

2. Now its giving error while running existing application:

help me out what I am missing here?

Untitled.png (6.4 kB)
Untitled.png (9.0 kB)
Untitled.png (10.0 kB)
Untitled.png (33.4 kB)
Untitled.png (19.2 kB)
Untitled.png (26.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 17, 2015 at 10:38 AM

    From screenshot it is not clear if you have MimeType as property in your entity and hence the error message.

    Regards,

    Chandra

    Add comment
    10|10000 characters needed characters exceeded

    • HI,

      i am trying the above mentioned example. but i am facing some error . i have pasted my error below.

      Error:Uncaught TypeError: Cannot read property 'url' of undefined .

      My odata value is undefined. Please help me?

      Thanks,

      JK