Skip to Content
author's profile photo
Former Member

Post fields on MVC-BSP

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Jan 07, 2004 at 07:11 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 main.do" /> that then calls sub controllers where I now have my fields available as global attributes.

      😊