cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying data type of binary attribute

Former Member
0 Kudos

Hello

I am not able to modify the context attribute using

IWDModifiableBinaryType binaryType =

(IWDModifiableBinaryType) attInfo.getModifiableSimpleType();

binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg

beccause the data is mapped from the component controller .

Geeting the folllowing exception when I rin the program.

com.sap.tc.webdynpro.progmodel.context.ContextException: AttributeInfo(IPrivateXYView.IXYElement.PIC_DB):

must not modify the datatype of a mapped attribute

how to resolve this issue.

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Modify the data type of the mapping origin.

Armin

Former Member
0 Kudos

Thanks Armin..

I am getting the image displayed on the portal.

but it disappears after 2 min.How can I increse the Cache duration.?

thanks

Former Member
0 Kudos

Hi,

Please incrase Time duration of the project in Webdynpro. Appication>Property>Application Property-->Add predefined variable with some delay time.

Then redeploy it will work fine.

Kind Regards,

S.Saravanan.

Former Member
0 Kudos

Hi Saravanan.

I set the expiration time to 1000 and redployed.

I am getting the same error..this image is displed within a cell in the table UI.All other data is getting displayed properly except image.

regards