cancel
Showing results for 
Search instead for 
Did you mean: 

How To - Rename Search Field Labels using WDJ

0 Kudos

Hello Experts,

I'm developing an WDJ application that is utilizing the MDM Configurator (...mdm/wdconfig).  I've written WDJ code using the native MDM Search Component Interface.  However, when I run the code, I get native field names that are being pulled directly from the repository.  I need the ability to rename or re-label the fields due to the clutter of how MDM pulls the names from the repository.  I'm exposing the app in the SAP Portal.

Q:  How do you rename a field label in WDJ that can be exposed in the portal?  The native MDM Configurator does not support an "alias" text field for this type of activity.  If this can be done, can you please supply some sample code?  If this cannot be done, what are my options ?

Example:  From:    "Authorized Replacement Parts::Program"

                To:        "Replacement Parts"

Thanks!

Chris

Accepted Solutions (1)

Accepted Solutions (1)

former_member40425
Contributor
0 Kudos

Hi Chris,

You can not rename labels by using standard search component of MDM Configurator.

If you want to lables with different names then you have to add your custom search fields and have to write logic to fetch records from repository.

To fetch records from MDM either you can create a WebService using WSGENERATOR and import this as a model or you can use MDM java APIs.

Use below link for more information on wsgenerator

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60fbcee6-c30c-2d10-1f9d-b9493fce7...

MDM Java APIs : http://help.sap.com/javadocs/mdm/sp06/index.html

Above two approachs will provide you record IDs in an array which you can set in the interface of your resultSet.

 

wdThis.wdGet<ResultSet_Name>Interface().setRecordIds(RecordArray);

Here record array is of Type Integer and will be having record IDs.

Please revert if you face any issue.

Regards,

Rohit Makkar

Answers (0)