Skip to Content
avatar image
Former Member

Add Custom Fields to My Inbox App

Hi Experts ,

I want to ask you a question about the extension of the My Inbox app.

I will trying to extend the s2 view in order to show some custome fields for an especifc work flow (Maintenace orders approval workflow).

The first step that i made was extend the TASKPROCCESING service and add the custome fields to TASK entity type:



Then, i redefined the ENTITYSET_TASK method of the /IWPGW/CL_TGW_EDP_TASK class in order to set the values of new fields (Aufnr, Value, Currency).


Finally, I created a SAP UI5 app, that extend the standard cross.fnd.fiori.inbox.Component, in which we are using the CustomerExtensionForObjectListItem extension point. But when i tried to use the new custome fields this aren't show when the app is started.






I rea



l really appreciate if you can give some comment about my issue.

Regards
Felipe

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 13, 2016 at 08:23 PM

    Hi,

    I finally found the solution to my issue, this link describes it!

    "..you could disable the select query by doing adding the URL parameter : useOdataSelect = false in your tile configuration....."

    https://archive.sap.com/discussions/thread/3878398

    Tks

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 15, 2016 at 02:36 AM

    Hi Felipe,

    Please check the OData response. If there is the custom attribute, the issue is in extended UI side. If there is no custom attribute, the issue is in OData side. If the issue is in OData side, check the service document and $metadata.

    Regards,

    Masa / SAP Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 22, 2016 at 03:19 AM

    Hi Felipe,

    You can look at the developer tools in the browser. Just press F12.

    Check the Network tab and Console tab.

    Regards,

    Masa / SAP Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Masayuki

      I review both tabs and this is de result:

      Console Tab:

      Network Tab:

      I found the custom attributes in the service response, but without values (The complete response is on the attached file)

      This is the formated json

      This is all de response:

      { "d": { "__metadata": { "id": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')", "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')", "type": "ZCA_MYINBOX_V2_SRV.Task", "content_type": "application/octet-stream", "media_src": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/$value" }, "TaskSupports": { "__metadata": { "type": "ZCA_MYINBOX_V2_SRV.TaskSupports" }, "AddAttachments": true, "AddComments": true, "Attachments": true, "Comments": true, "CreatedByDetails": true, "CustomAttributeData": true, "Description": true, "PossibleAgents": true, "PotentialOwners": true, "ProcessingLogs": true, "ProcessorDetails": true, "TaskDefinitionData": true, "TaskObject": true, "UIExecutionLink": true, "CancelResubmission": false, "Confirm": false, "Claim": false, "Forward": true, "Release": true, "Resubmit": true, "SetPriority": true }, "SAP__Origin": "EAD_CLNT_110_PGW", "InstanceID": "190001216289", "TaskDefinitionID": "TS00008267_WS91000078_0000000019", "TaskDefinitionName": "WS91000078_0000000019", "TaskTitle": "Liberar orden de mantenimiento: 400344645", "Priority": "MEDIUM", "Status": "IN_PROGRESS", "StatusText": "", "CreatedOn": "\/Date(1479436704000)\/", "CreatedBy": "WF-BATCH", "CreatedByName": "SAPNotifications", "Processor": "FGIRALDO", "ProcessorName": "Felipe Giraldo", "SubstitutedUser": "", "SubstitutedUserName": "", "StartDeadLine": null, "CompletionDeadLine": null, "ExpiryDate": null, "IsEscalated": false, "SupportsComments": true, "HasComments": false, "SupportsAttachments": true, "HasAttachments": false, "HasPotentialOwners": true, "SupportsClaim": false, "SupportsRelease": true, "SupportsForward": true, "mime_type": "", "PriorityNumber": 5, "ScenarioID": "", "ForwardingUser": "", "ForwardingUserName": "", "Aufnr": "", "Value": "0.00", "Currency": "", "TaskDefinitionData": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/TaskDefinitionData" } }, "Description": { "__metadata": { "id": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskDescriptionCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')", "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskDescriptionCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')", "type": "ZCA_MYINBOX_V2_SRV.TaskDescription" }, "SAP__Origin": "EAD_CLNT_110_PGW", "InstanceID": "190001216289", "Description": " Seleccione una de las alternativas de decisión. De esta forma finalizará el tratamiento de este paso. Antes de tomar una decisión, puede visualizar los anexos y objetos que se hayan añadido a la decisión del usuario. También tiene la posibilidad de añadir anexos propios. Si selecciona Cancelar , la decisión de usuario permanecerá en nuevo tratamiento en la entrada del usuario.", "DescriptionAsHtml": " <P>Seleccione una de las alternativas de decisión. De esta forma finalizará el tratamiento de este paso.</P> <P></P> <P>Antes de tomar una decisión, puede visualizar los anexos y objetos que se hayan añadido a la decisión del usuario. También tiene la posibilidad de añadir anexos propios.</P> <P>Si selecciona <B>Cancelar</B> , la decisión de usuario permanecerá en nuevo tratamiento en la entrada del usuario.</P>" }, "UIExecutionLink": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/UIExecutionLink" } }, "CustomAttributeData": { "results": [ ] }, "Comments": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/Comments" } }, "Attachments": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/Attachments" } }, "CreatedByDetails": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/CreatedByDetails" } }, "ProcessorDetails": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/ProcessorDetails" } }, "PossibleAgents": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/PossibleAgents" } }, "PotentialOwners": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/PotentialOwners" } }, "ProcessingLogs": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/ProcessingLogs" } }, "TaskObjects": { "__deferred": { "uri": "https://coibmsfdw6k01.grupoargos.loc/sap/opu/odata/sap/ZCA_MYINBOX_V2_SRV;v=2;mo/TaskCollection(SAP__Origin='EAD_CLNT_110_PGW',InstanceID='190001216289')/TaskObjects" } } } }

      Regards

  • Nov 24, 2016 at 03:40 AM

    Hi Felipe,

    I see there is no value in the additional properties.

    You can set a bleakpoint at the backend method which set a value.

    Regards,

    Masa / SAP Technology RIG

    Add comment
    10|10000 characters needed characters exceeded