Skip to Content
0
Dec 01, 2009 at 08:14 PM

WebElments, Add "search" help to populate WETextBox

25 Views

Hey Jaime -

Continuation from thread: [WebElements, pass multiple variables through WETargetPath function|WebElements, pass multiple variables through WETargetPath function;

1st report just holds webelements formulas in a selection screen .rpt file ...

WETextBox ("[!V000001]", "", 50, 150, "", "empty", "Enter Fiscal Year")
WETextBox ... V000002  
WETextBox ... V000003
WETextBox ... V000004
WETextBox ... V000005
WETextBox ... V000006

Question:

I need another button to the right of the WETextBox that allows the users to choose fields from a hierarchy, and then I need to transfer that value into WETextBox (MUCH like standard prompt screen). The reason is, most users don't know that "1007" is their profit center number, but the hierarchy in BW shows descriptions (basically trying to recreate what they have on portal now, this is a problem in BOBJ now).

Users then click the web element submit button, and the search help values are passed to the receiving report:

stringvar path:= WETargetPath ("rpt", "Name", "Profit Statement", "");
WESubmitButton ("Submit", path, "");

Then Builder function, debug set '2':

stringvar allelements:= {@[!V000001]}+{@[!V000002]}+{@[!V000003]}+{@[!V000004]}+{@[!V000005]}+{@[!V000006]}+{@submit};
WEBuilder (allelements, 2)

Hope this makes sense, I know I'm throwing a ton of questions out there!

-mb