cancel
Showing results for 
Search instead for 
Did you mean: 

Java MDM API Programming

Former Member
0 Kudos

Hi,

I am new to Java MDM API programming. I am developing Webdynpro application that has the following requirements.

1. Search the MDM database Main Table for records with field values that match the ones passed through View input fields

2. Get all values from Look up table to show it as Dropdown menu in View

3. Insert New Record to the Main table

4. Update a record that was retrived from above search

I went through various documentations but still couldnot accomplish much. Can any one of you give me some code sample for each of the 4 above mentioned requirement with some explanation, asap?

So far, I have this much of code working:

{

RegionProperties dataRegion = new RegionProperties();

dataRegion.setRegionCode("engUSA");

dataRegion.setLocale(new Locale("en", "US"));

dataRegion.setName("US");

ConnectionAccessor simpleConnection = SimpleConnectionFactory.getInstance("10.79.128.55");

CreateUserSessionCommand cmdGetUserSession = new CreateUserSessionCommand(simpleConnection);

RepositoryIdentifier repositoryID = new RepositoryIdentifier("VENDOR","MD1",DBMSType.ORACLE);

cmdGetUserSession.setRepositoryIdentifier(repositoryID);

cmdGetUserSession.setDataRegion(dataRegion);

cmdGetUserSession.execute();

String sessionId = cmdGetUserSession.getUserSession();

AuthenticateUserSessionCommand cmdAuthUserSession = new AuthenticateUserSessionCommand(simpleConnection);

cmdAuthUserSession.setSession(sessionId);

cmdAuthUserSession.setUserName("Admin");

cmdAuthUserSession.setUserPassword("");

cmdAuthUserSession.execute();

msgMgr.reportWarning("Authentication Complete") ;

}

Any help would be greatly appreciated. Rewards guarateed.

Thanks,

Sudheer

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192434
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Sudheer,

Check the following threads:

If you search in the MDM forum with your requirement you will be able to find all these, it's already there.

Regards.

Rajat