cancel
Showing results for 
Search instead for 
Did you mean: 

Model object

Former Member
0 Kudos

Hi,

Can we bind model object directly to view controller ?

Thanks,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

Hi

Yes we can , But as standard ,dont do this try to keep your model Node and Value node(For UI ) separate

Best Regards

Satish Kumar.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ..

You can do the binding model into view controler.this is not good pratice for doing this type of binding.it makes problem for doing manuplation the value node attribute like like you want do the sorting type of work in your requirement.remenmber every time you call the model node value.

you know that java web dynpro follows MVC pattern.so its makes lot of problem manupulation your node value attribute.

its better you copy from model node to custom node and manupating the atrbute instead of hitting RFC.

This is good partice.

thanks

jati

Former Member
0 Kudos

Hi Ravi Kiran,

we can do that, but not recommended by SAP, becuase MVC architecture is not like that, we are not supposed to combined the business logic with presentation logic, we need to use component ctrl as mediator b/w them,

Cheers,

Apparao

Former Member
0 Kudos

Hi,

Yes. you can directly bind the model node with the UI view controller.But you can't do any customisation with this model attribute.

If you want any customisation to the model node value then you need to copy the model node value to value node then you can do any customisation on the value node.Just like sorting of the table value.

Thanks

Kanai