cancel
Showing results for 
Search instead for 
Did you mean: 

Last prompt values in left panel extension

former_member197488
Participant
0 Kudos

Hi...

I used the "custom prompts" sample from [http://wiki.sdn.sap.com/wiki/display/BOBJ/Additional+Samples] to build a page for custom prompt handling.

Everything works like expected, but there is one issue in my page and also in the wiki sample.

Steps to reproduce the issue:

-> Open a document (deski / webi)

-> Go to the custom prompt page

-> Change some values and submit the form

-> Collapse the left panel

-> Expand the left panel

Result: Prompt values are not the expected values - instead the default values are shown.

The default prompt panel doesn't show this behaviour. And even my custom prompt handling works, if you switch the left panel content to the search panel and back.

Any hints??

Thanks in advance.

- Jan

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

Hello Jan,

Are you referring to how the customPrompts_simple.jsp initializes the values for the prompts by calling prompt.getPreviousValues() method call?

Sincerely,

Ted Ueda

former_member197488
Participant
0 Kudos

Hi Ted,

well, ok - I didn't check the point in customPrompts_simple.jsp that it always gets the previous value from the prompt.

My jsp looks more like the viewPrompt.jsp - something like

if(prompt.getCurrentValues() ...) then

else if (prompt.getPreviousValues()...) then

else if(prompt.getDefaultValues() ...) then

So I think, it should display the prompt value, with wich the user refreshed the report.

In my opinion, the collapse and expand of the left panel, doesn't submit the least storageToken (sEntry).

I hope you understand what I mean.

Best regards

- Jan

ted_ueda
Employee
Employee
0 Kudos

Would you be able to tell whether it's not generating a new storage token, which I'm assuming you don't mean, or that the page re-opened uses the old storage token?

Sincerely,

Ted Ueda

former_member197488
Participant
0 Kudos

I just used the firebug plugin to read the sEntry parameter from request. This is what I get:

Opening my custom prompt form: re000100003512bf4b3112

Refreshing document (got sEntry from report.jsp): re0002000029526258841f

Collapsing and expanding left panel: re000100003512bf4b3112

The new storage token is generated as expected, but the wrong one is passed to my prompt form after expanding.

Best regards,

- Jan

former_member197488
Participant
0 Kudos

Just did some more research with the "normal" prompt panel and I think the problem has to be somewhere in the jsp where the prompts are processed and the viewer refreshed.

For my custom prompt page, I use (mostly) the code from customPrompts_simple_process.jsp

The difference between working, and failing has to be the difference between customPrompts_simple_process.jsp and processPrompts.jsp.

I stepped through processPrompts.jsp and checked what I might be missing - but I didn't find anything that would make sense to me.

Maybe you can help me with that information.

Thank you for having a look at my problem!

Best regards,

- Jan

Answers (0)