on 08-11-2005 5:50 PM
Gurus,
I've an htmlb tree created on my JSP.Iam trying to create the nodes as htmlb links such that when i click a node the value(Node Text) can be fired with EPCF.
<b>1.Is it possible to fire an event from the Nodes??
2.Can we actually color the nodes?
3.How do i pass model values filled from an RFC to the Tree??</b>
Hoping to see atleast a hit to this thread!!
Thank you !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That really helps me a lot but Even before i start coding my own application..I wanted to know, if we can do the same on the JSP and fire an event with EPCF after setting jsObjectNeeded="true" value in any one of the tree node..
Any workarounds if No??
Thank you for your quick note on my query.
Regards.
Hi Robert,
I didn't want to answer your question till you have looked at my weblogs but now that you have looked at my weblog i can answer your question.
1. Yes you can recreate the whole thing in JSP, the recursion has to be done in JSP.
2. You should be able to fire EPCF by
1.activating the
setOnNodeClick("NodeClickEvent")
on each node click.
2. Adding the following method in your JSPDynPage
public void onNodeClickEvent(Event vent) throws PageException {
IPortalComponentResponse response = (IPortalComponentResponse)this.getResponse();
response.write("<script>EPCM.subscribeEvent(........);</script>");
}
Prakash, What is wrong with the following code:
<b>
String name="Robert";
response.write("<script language='JavaScript'>");
response.write("alert('Event fired with value:"+name+"')");
response.write("EPCM.storeClientData('urn:com.sap.name:myName', 'newName',"+name+");");
response.write("EPCM.raiseEvent('urn:com.sap.name:myName', 'newName',"+name+");");
response.write("</script>");
</b>
I can see the alert if i comment the EPCF lines.
If i turn them On then,Iam getting a Javascript error, with a pop window:
Do you wish to Debug?
Runtime error: Line 50
Error:Expected';'
Could you please suggest a way to fire an event from the JSPDynpage?
Thanks.
try the following lines of code.
response.write("<script language='JavaScript'>");
response.write("alert('Event fired with value:"+name+"');");
response.write("EPCM.storeClientData('urn:com.sap.name:myName','newName','"+name+"');");
response.write("EPCM.raiseEvent('urn:com.sap.name:myName','newName','"+name+"');");
response.write("</script>");
Message was edited by: Prakash Singh
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.