Skip to Content
avatar image
Former Member

MDM Custom Iview and Standard Iview Portal Eventing

Hi

I'm trying to develop a custom iview which updates a Standard MDM Result Set iview:

I found this documentation:

http://help.sap.com/saphelp_mdm550/helpdata/en/45/c87cfd43e56f75e10000000a1553f6/frameset.htm

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/12195312-0e01-0010-a392-debbd32e39d4

So i created an iview which raises this event

WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews","updateSearch","ID=115551&RefreshSearch=True");

Then i upladed my code in the portal, created a new iview and put it in the same page with a Result Set iview. During testing when i rise the event form the custom iview, the standard Result Set catch this event but instead of update it gives the following error:

Error occurred: Error performing search. com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter, com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter (see log for details)

In SDN there is a thread with the same problem (Search Standard iView + Search Custom iView) which is not solved.

Can somebody help me ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 20, 2009 at 07:18 PM

    Hello Alessandro

    I think you are missing to raise an event for the iview first, try to call the iview with this code

    &externalRequestEvent=com.sap.pct.mdm.appl.masteriviews.events.externals.SetSelectedIdHandler&id=10

    Hope this helps

    Regards,

    Ricardo Pineda

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 23, 2009 at 09:51 AM

    Hi,

    If you want fire an event for result set to catch, try following way:

    WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews","getRecordByIds",MDMSystemAlias=XXXXX&MDMTableName=YYYY"+search condition);

    Regards,

    Ganga

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 23, 2009 at 11:42 AM

    Hi everbody

    Thanks for your help but my problem was due to an error in the help page:

    The help tell us that if we want filter the record by ID we have to create an event and specify the Fieldname "id": Doing this we have the error but instead using the fieldname "mdmid" it works!

    So with this code:

    WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews","updateSearch","mdmid=115551&RefreshSearch=True");

    we are able to raise an event which filters our records using the field ID.

    Add comment
    10|10000 characters needed characters exceeded

    • sorry, I have same task and tried same code for my alias, table and field.

      	WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews", 
      			"updateSearch", 
      			"MDMSystemAlias=NSI_PRODUCTION_ALIAS&MDMTableName=Assets&R3Code=411000000000000006&RefreshSearch=True");

      I fire event (for my alias, table and field)

      but not any resultset or Current Search on page is catching this search.

      please provide which options must be set made for views on page so that result set to be updated,

      I hope this may help

      does it need to add some custom event to result set?

      thanks

      Edited by: Ivan Ivanov on Aug 21, 2009 3:49 PM