Question

i want to open object using custome java code. anyone know how to do that

i want to open object using costume java code. anyone know how to do that

Correct Answer
April 18, 2019 - 9:44am

 SamplePage = tools.getDatabase().open(SamplePage, false);

You need to create the clipboard page with name SamplePage and set the necessary values for the keys.

Comments

Keep up to date on this post and subscribe to comments

April 18, 2019 - 4:39am

Try adding an activity steps when you call an Obj-Open-By-Handle, and save it.

You can then examine the java code that it generated. But this java code would only work if called in  Pega.

 

Pega
April 18, 2019 - 6:50am

 You can see the generated Java code of activity using "View Java" in actions menu of activity.

April 18, 2019 - 9:44am

 SamplePage = tools.getDatabase().open(SamplePage, false);

You need to create the clipboard page with name SamplePage and set the necessary values for the keys.