This code opens a WebForm EPSalesTotals with width and height specified.
(The ugly way, but also kinda cute)
a) Add a WebStaticText control where you need the link.
b) In the init method of the WebForm (or anywhere else you like) change the text property of this control, inserting the link in it:
link = new WebLink();
link.menufunction(new MenuFunction(‘EPCustTableInfo’, MenuItemType::Display));
WebStaticText1.text(’’ + “My Customer Info” + “”);
The WebStaticText1 will now look as a link with the text “My Customer Info”. Clicking on it will open a separate window with the Customer Info Table.
You might notice that the asppage ‘default.asp’ is used here. So the global and local menues will also be opened. Try using the lookup.asp if you need to hide the menues. (I haven’t, but I am pretty sure it works ;))
Also, you might want to check out the Web class - here is how it can be used:
(Adds a link to the webForm - where the infoboxes appear - that opens the EPCustTableInfo webForm)
Web::LinkToMenuFunction(New MenuFunction(‘EPCustTableInfo’, MenuItemType::Display), “true”);
Web::Write(‘Click me to Open Customer Information’);