cancel
Showing results for 
Search instead for 
Did you mean: 

Question about development with EPCM

Former Member
0 Kudos

Dear all,

If I wanna develop a set of custom iViews which will make use of the EPCM (client side code), is it a must to develop a JSPDynPage? Can I use DynPage only?

Besides, when developing a JSPDynPage, can I generate / construct the page layout by HTMLB from the java class and pass it to the jsp page?

Thanks for your kindly help

Sam

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Sam,

for working with EPCF, you just have to care that the JavaScript code exists on the client side - so it doesn't matter whether you choose JSPDynPage, DynPage, AbstractPortalComponent...

I hope that with this the second question is out of matter. If you build the HTMLB by java classes, JSPDynPage is just the wrong choice. The only advantage you have from JSPDynPage is somehow seperating content / design from logic. If you create the design programatically, this advantage (which might be a disadvantage sometimes, yo the decision to build the HTMLB by using the Java classes may be the better choice) has gone.

Hope it helps

Detlev

Former Member
0 Kudos

Thanks Detlev again,

Hope you won't mind here comes a following question. How can I output the client script for EPCF from DynPage?

Besides, how can I use EPCF to control an iView content from another iView? For example, I want to click a link in iView A and show the corresponding reference in iView B.

Thanks a lot

Sam

detlev_beutner
Active Contributor
0 Kudos

Hi Sam,

> Hope you won't mind here comes a following question

As long as two answers mean double points - no...

> How can I output the client script for EPCF from DynPage?

Within a DynPage, you can do it as follows


HTMLFragment htmlf = new HTMLFragment("ScriptFragment");
String jScript = "<Script [...]";
htmlf.setHtml(EditCtrlSrc);
outerComp.addComponent(htmlf);

with outerComp the most outest component (it works with Form form = getForm(); form.addComponent(htmlf)). Maybe also using document instead of form works, didn't test it.

Hope it helps

Detlev

detlev_beutner
Active Contributor
0 Kudos

Hi Sam,

I forgot the last question:

> how can I use EPCF to control an iView content from another iView

Use EPCF event API, see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enterpris... portal client.pdf

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

The reward point is what I can gave for your kindly help.

But can't give u a double point on the same topic. 😃

Thanks

Sam

Answers (0)