Quantcast
Channel: SCN : Discussion List - Business Server Pages (BSP)
Viewing all articles
Browse latest Browse all 237

Bsp Model Instance

$
0
0

Hi All

 

I have a problem with my model class in my bsp application.

 

I have created a bsp mvc application.

 

I do not have an application class and all my controllers are stateful.

 

I create and instanciate a model class in my start page and I am trying to use it in my other views but when i use get_model command in the do_int method of my controller it can't find the model from my start page and creates it again and therefore I loose all my data.

 

Anyone got any ideas as to what I am doing wrong ?

 

Here is the code I use

  • Get a pointer to the Model Object.

  me->model ?= get_model( 'MOD' ).

 

  IF me->model IS INITIAL.

  •   Create the Model to hold data for the Document Search Controller

    model ?= create_model( model_id = 'MOD'

                          class_name = 'ZCL_WFORMS_MODEL' ).

 

  ENDIF.

 

 

Thanks


Viewing all articles
Browse latest Browse all 237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>