cancel
Showing results for 
Search instead for 
Did you mean: 

Post fields on MVC-BSP

Former Member
0 Kudos

Hello,

Is it possible to have an external web-page to "post" something on a MVC page?

I would like to have some fields dynamically prefilled from an external page when on that page a button is pressed and my MVC page is called.

It works with a BSP-page with flow logic, but I want to use a MVC-page.

Best regards,

Jacco

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Jacco:

Easiest way to do this is to define a global attribute in your controller class, and set the value in the do_request() method (or wherever else is appropriate). Then you can transfer the global attribute value to the specific page attribute that relates to your field.

Regards,

D.

Former Member
0 Kudos

Hello Dorian,

The problem was how to fill this global attribute when you come from an external page that fills fields on your page with POST.

I solved it with putting a page-with-flow-logic inbetween. I can POST fields on this page and then fill my global controller attributes with these fields in the OnInitialization event.

In the body of this page I call my MVC page with  <bsp:call url="main.do" /> that then calls sub controllers where I now have my fields available as global attributes.