Search
Saturday, October 31, 2009
Create Popup using Peoplecode
How to create Popups in peoplesoft applications using Peoplecode:
1. Create the content that you want to show in the Pop up (SRB_HTML_EXEC)
2. Create another HTML as below (SRB_HTML_MASTER)
href="#" onclick="window.open('%BIND(:1)','whatevername','width =400,height=400')
HelpLink
3. Create a web library (WEBLIB) and create an iscript with in Field Formula Event
Function iscript_dev
&HTML = GetHTMLText(HTML.SRB_HTML_EXEC);
%Response.Write(&HTML);
End-Function;
4. Add HTMLAREA to the page on which you want to click to get the popup.
5. Add Record Field FIFO peoplecode to the above field as below. Code this as a function.
Function CallFunc(&u)
&suburl = &u;
&url = GenerateScriptContentURL(%Portal, %Node, Record.WEBLIB_SRB, Field.SRB_ISCRIPT, "FieldFormula", &suburl);
SRB_WRK.HTMLAREA.Value = GetHTMLText(HTML.SRB_HTML_MASTER, &url);
End-Function
6. Now call the above function from RowInit peoplecode of Component Record of HTMLAREA (Html Area is added to the page in step#4 above):
CallFunc("iscript_dev")
Subscribe to:
Post Comments (Atom)
Thanks for that. I was able to replicate your example!!
ReplyDelete